fix:外销合同变更单合同签章问题处理

This commit is contained in:
ljw 2024-10-09 17:47:34 +08:00
parent fcc5e56c1a
commit 574478862b

View File

@ -149,9 +149,26 @@ public class SalesorderSignatureOp extends AbstractOperationServicePlugIn {
QFilter qFilter = new QFilter("yem_isdisable", QCP.equals, false); QFilter qFilter = new QFilter("yem_isdisable", QCP.equals, false);
String name = dynamicObject.getDynamicObjectType().getName(); String name = dynamicObject.getDynamicObjectType().getName();
if ("yem_es_salesorder".equals(name)) { if ("yem_es_salesorder".equals(name)) {
qFilter.and(new QFilter("billno", QCP.equals, "WXHT-YZJ")); DynamicObject yemBilltype = dynamicObject.getDynamicObject("yem_billtype");
if (yemBilltype!=null){
String yemBilltypeString = yemBilltype.getString("number");
if ("yem_es_salesorder_nmpj".equals(yemBilltypeString)||"yem_es_salesorder_PJ".equals(yemBilltypeString)){
qFilter.and(new QFilter("billno", QCP.equals, "WXHT_WMPJ"));
}else if ("yem_es_salesorder_nmzj".equals(yemBilltypeString)||"yem_es_salesorder_ZJ".equals(yemBilltypeString)){
qFilter.and(new QFilter("billno", QCP.equals, "WXHT_WMZJ"));
}
}
} else if ("yem_es_xsalesorder".equals(name)) { } else if ("yem_es_xsalesorder".equals(name)) {
qFilter.and(new QFilter("billno", QCP.equals, "WXHTBG-GZSP")); DynamicObject yemBilltype = dynamicObject.getDynamicObject("yem_billtype");
if (yemBilltype!=null){
String yemBilltypeString = yemBilltype.getString("number");
if ("yem_es_xsalesorder_nmpj".equals(yemBilltypeString)||"yem_es_xsalesorder_pj".equals(yemBilltypeString)){
qFilter.and(new QFilter("billno", QCP.equals, "WXHTBGD-PJ"));
}else if ("yem_es_xsalesorder_nmzj".equals(yemBilltypeString)||"yem_es_xsalesorder_zj".equals(yemBilltypeString)){
qFilter.and(new QFilter("billno", QCP.equals, "WXHTBGD-ZJ"));
}
}
// qFilter.and(new QFilter("billno", QCP.equals, "WXHTBG-GZSP"));
} }
DynamicObject yem_ia_intebilllogon = BusinessDataServiceHelper.loadSingle("yem_ia_intebilllogon", "id", qFilter.toArray()); DynamicObject yem_ia_intebilllogon = BusinessDataServiceHelper.loadSingle("yem_ia_intebilllogon", "id", qFilter.toArray());
if (yem_ia_intebilllogon != null) { if (yem_ia_intebilllogon != null) {