- [x] 排查收款单携带资金计划失效
- [x] 去掉收款单携带资金计划(去掉无值才携带的逻辑) - [x] 优化付款单逻辑,携带过业务大小类等打上标记,下次无需携带 --s
This commit is contained in:
parent
b9db1f424c
commit
71a5e81a17
|
|
@ -33,8 +33,13 @@ public class PayBillSaveOperation extends AbstractOperationServicePlugIn impleme
|
|||
DynamicObject[] dataEntities = e.getDataEntities();
|
||||
for (DynamicObject bill : dataEntities) {
|
||||
|
||||
//是否携带过业务大小类等(只有第一次生成时携带)
|
||||
boolean shjhXddxl = bill.getBoolean("shjh_xddxl");
|
||||
if (!shjhXddxl) {
|
||||
//携带生单规则分录的业务大类,业务小类,成本中心,利润中心到收款处理单头,原因码到分录
|
||||
carryCustomer(bill);
|
||||
}
|
||||
|
||||
|
||||
// bill = BusinessDataServiceHelper.loadSingle(bill.getPkValue(),"cas_paybill");
|
||||
DynamicObject paymentidentify = bill.getDynamicObject("paymentidentify");
|
||||
|
|
@ -107,6 +112,7 @@ public class PayBillSaveOperation extends AbstractOperationServicePlugIn impleme
|
|||
if (null == shjhPc) {
|
||||
bill.set("shjh_pc", entry.getDynamicObject("shjh_e_pc"));
|
||||
}
|
||||
bill.set("shjh_xddxl",true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
|
|||
}
|
||||
bill = BusinessDataServiceHelper.loadSingle(bill.getPkValue(),"cas_recbill");
|
||||
|
||||
DynamicObject planClass = bill.getDynamicObject("shjh_planclass");
|
||||
if (null == planClass) {
|
||||
// DynamicObject planClass = bill.getDynamicObject("shjh_planclass");
|
||||
// if (null == planClass) {
|
||||
//根据配置表携带资金计划科目
|
||||
bill.set("shjh_planclass", xdMembersubject(bill));
|
||||
}
|
||||
// }
|
||||
|
||||
//携带生单规则分录的业务大类,业务小类,成本中心,利润中心到收款处理单头,原因码到分录
|
||||
carryCustomer(bill);
|
||||
|
|
|
|||
Loading…
Reference in New Issue