add plant to out

This commit is contained in:
gowthaman 2024-05-28 13:14:30 +05:30
parent 36c11fabc1
commit ae539ae285
3 changed files with 23 additions and 1 deletions

View File

@ -24,10 +24,10 @@ open class IncomingInventory : BaseTenantModel() {
var mrn: String? = null
var date: LocalDate? = null
var vendorBillNum: String? = null
var unloadingPlantId: String? = null
var vendorBillAmount: Double = 0.0
var vehicle: String = ""
var loading: String? = ""
var unloadingPlantId: String? = null
var unloading: String? = ""
@DbJsonB
@ -50,11 +50,15 @@ open class OutgoingInventory : BaseTenantModel() {
this.outMode = updated.outMode
this.person = updated.person
this.vehicle = updated.vehicle
this.unloading = updated.unloading
this.unloadingPlantId = updated.unloadingPlantId
}
var mdn: String? = null
var date: LocalDate? = null
var unloadingPlantId: String? = null
var unloading: String? = ""
@DbJsonB
var products: List<POProducts>? = null

View File

@ -0,0 +1,4 @@
-- apply alter tables
alter table outgoing_inventory add column if not exists unloading_plant_id varchar(255);
alter table outgoing_inventory add column if not exists unloading varchar(255);
alter table outgoing_inventory add column if not exists job_card varchar(255);

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<migration xmlns="http://ebean-orm.github.io/xml/ns/dbmigration">
<changeSet type="apply">
<addColumn tableName="outgoing_inventory">
<column name="unloading_plant_id" type="varchar"/>
<column name="unloading" type="varchar"/>
<column name="job_card" type="varchar"/>
</addColumn>
</changeSet>
<changeSet type="pendingDrops">
<dropTable name="sql_model" sequenceCol="sys_pk"/>
<dropTable name="vehicle" sequenceCol="sys_pk"/>
</changeSet>
</migration>