|
|
@@ -161,6 +161,8 @@ public class stockbill extends Controller {
|
|
|
InsertSQL inserthead = row.getInsertSQL("sys_enterprise_stockbill");
|
|
|
inserthead.setValue("billno", createBillCode("enterprise_stockbill"));
|
|
|
inserthead.setValue("rb", 0);
|
|
|
+ inserthead.setValue("sys_enterprise_stockid", row.getLong("sys_enterprise_stockid"));// 企业仓库ID
|
|
|
+ inserthead.setValue("sys_enterpriseid", sys_enterpriseid);
|
|
|
inserthead.setValue("sourceid", sys_enterprise_stockbillid);
|
|
|
inserthead.setValue("sourceobject", "sys_enterprise_stockbill");
|
|
|
inserthead.setValue("status", "新建");
|
|
|
@@ -187,6 +189,7 @@ public class stockbill extends Controller {
|
|
|
insertdetail.setValue("changeby", username);
|
|
|
insertdetail.setDateValue("changedate");
|
|
|
insertdetail.setValue("hongqty", 0);
|
|
|
+ insertdetail.setValue("sys_enterpriseid", sys_enterpriseid);
|
|
|
insertdetail.setUniqueid(hongdetailid);
|
|
|
sqlDump.add(insertdetail);
|
|
|
|
|
|
@@ -200,6 +203,7 @@ public class stockbill extends Controller {
|
|
|
insertcode.setValue("sys_enterprise_stockbill_itemsid", hongdetailid);
|
|
|
insertcode.setValue("sys_enterprise_stockbillid", hongheadid);
|
|
|
insertcode.setValue("createby", username);
|
|
|
+ insertcode.setValue("sys_enterpriseid", sys_enterpriseid);
|
|
|
insertcode.setDateValue("createdate");
|
|
|
sqlDump.add(insertcode);
|
|
|
}
|