丽知:调拨订单新增退货标识,新增部门(002)。
This commit is contained in:
parent
b0f2b4fe11
commit
0265e59477
|
@ -349,7 +349,8 @@ public class TransferInPluginInitializer extends PluginBaseEntity {
|
|||
parentvo.setPk_calbody(corpCode);
|
||||
//pk_corp 公司
|
||||
parentvo.setPk_corp(corpCode);
|
||||
|
||||
//cdptid 部门
|
||||
parentvo.setCdptid("002");
|
||||
|
||||
//pk_defdoc19 自定义项19(ofs调拨订单号)
|
||||
parentvo.setVuserdef19(ofsRefOrderCode);
|
||||
|
@ -357,23 +358,45 @@ public class TransferInPluginInitializer extends PluginBaseEntity {
|
|||
parentvo.setDbilldate(format.substring(0, 10));
|
||||
|
||||
|
||||
//pk_defdoc4 ofs调入店铺
|
||||
// //pk_defdoc4 ofs调入店铺
|
||||
// if (isReturn) {//需要反转
|
||||
// String inShop = locateShop(ofsTranseferOrder.getHeader().getCompanyCode());
|
||||
// if (inShop == null) {
|
||||
// Assert.state(false, "根据调入公司:{},未查询到对应的店铺,请维护(BDDP,调拨公司对应店铺)自定义项档案。", ofsTranseferOrder.getHeader().getCompanyCode());
|
||||
// } else {
|
||||
// parentvo.setPk_defdoc4(inShop);
|
||||
// }
|
||||
// } else {
|
||||
// String inShop = locateShop(ofsTranseferOrder.getHeader().getToCompanyCode());
|
||||
// if (inShop == null) {
|
||||
// Assert.state(false, "根据调入公司:{},未查询到对应的店铺,请维护(BDDP,调拨公司对应店铺)自定义项档案。", ofsTranseferOrder.getHeader().getCompanyCode());
|
||||
// } else {
|
||||
// parentvo.setPk_defdoc4(inShop);
|
||||
// }
|
||||
// }
|
||||
|
||||
//pk_defdoc1 ofs调入店铺
|
||||
if (isReturn) {//需要反转
|
||||
String inShop = locateShop(ofsTranseferOrder.getHeader().getCompanyCode());
|
||||
if (inShop == null) {
|
||||
Assert.state(false, "根据调入公司:{},未查询到对应的店铺,请维护(BDDP,调拨公司对应店铺)自定义项档案。", ofsTranseferOrder.getHeader().getCompanyCode());
|
||||
} else {
|
||||
parentvo.setPk_defdoc4(inShop);
|
||||
parentvo.setPk_defdoc1(inShop);
|
||||
}
|
||||
} else {
|
||||
String inShop = locateShop(ofsTranseferOrder.getHeader().getToCompanyCode());
|
||||
if (inShop == null) {
|
||||
Assert.state(false, "根据调入公司:{},未查询到对应的店铺,请维护(BDDP,调拨公司对应店铺)自定义项档案。", ofsTranseferOrder.getHeader().getCompanyCode());
|
||||
} else {
|
||||
parentvo.setPk_defdoc4(inShop);
|
||||
parentvo.setPk_defdoc1(inShop);
|
||||
}
|
||||
}
|
||||
|
||||
//boutretflag 销售调拨出库退回使用
|
||||
if(isReturn){
|
||||
parentvo.setBoutretflag("Y");
|
||||
}
|
||||
|
||||
|
||||
//U8C调拨出库单主表信息
|
||||
List<IcGeneralHEntity> icGeneralHEntityList = queryIcGeneralHByVdef19(ofsRefOrderCode);
|
||||
|
|
|
@ -318,6 +318,8 @@ public class TransferOutPluginInitializer extends PluginBaseEntity {
|
|||
parentvo.setCoperatorid("tbadmin");
|
||||
//cbiztypeid 业务流程编码
|
||||
parentvo.setCbiztypeid("to01");
|
||||
//部门
|
||||
parentvo.setCbiztypeid("to01");
|
||||
|
||||
String corpCode = "";
|
||||
String toCorpCode = "";
|
||||
|
@ -429,6 +431,9 @@ public class TransferOutPluginInitializer extends PluginBaseEntity {
|
|||
try {
|
||||
BillVO.Childrenvo children = new BillVO.Childrenvo();
|
||||
//表体
|
||||
//部门写死cindeptid调入部门、coutdeptid调出部门
|
||||
children.setCindeptid("002");
|
||||
children.setCoutdeptid("002");
|
||||
//cinvbasid 存货基本档案
|
||||
children.setCinvbasid(ofsDetail.getSkuCode());
|
||||
//nnum 数量
|
||||
|
|
|
@ -34,6 +34,7 @@ public class GeneralBillVO {
|
|||
* 公司ID
|
||||
*/
|
||||
private String pk_corp;
|
||||
private String cdptid;
|
||||
/**
|
||||
* 制单人
|
||||
*/
|
||||
|
@ -58,6 +59,8 @@ public class GeneralBillVO {
|
|||
* 单据日期
|
||||
*/
|
||||
private String dbilldate;
|
||||
/** 销售调拨出库退回使用 */
|
||||
private String boutretflag;
|
||||
private String pk_defdoc1;
|
||||
private String pk_defdoc10;
|
||||
private String pk_defdoc11;
|
||||
|
|
Loading…
Reference in New Issue