add plant to out
This commit is contained in:
parent
36c11fabc1
commit
ae539ae285
@ -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
|
||||
|
||||
4
src/main/resources/dbmigration/1.32.sql
Normal file
4
src/main/resources/dbmigration/1.32.sql
Normal 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);
|
||||
14
src/main/resources/dbmigration/model/1.32.model.xml
Normal file
14
src/main/resources/dbmigration/model/1.32.model.xml
Normal 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>
|
||||
Loading…
x
Reference in New Issue
Block a user