销售订单客户与收款单客户不一致取消校验

This commit is contained in:
lihao 2025-04-16 14:59:15 +08:00
parent 83db7d650b
commit 82ea1ccb9c
3 changed files with 13 additions and 5 deletions

View File

@ -129,9 +129,9 @@ public class ArapBillUpdateChecker implements BillUpdateChecker {
++m;
if (vo.getObjtype() == s) {
Object[] values = valuechangeMap.get(s3[m]);
// if(vo.getMetaData().getEntityName().equals("arap.gatheritem") && vo.getSrc_billtype().equals("30") && s3[m].equals("customer")){
// break;
// }
if(vo.getMetaData().getEntityName().equals("arap.gatheritem") && vo.getSrc_billtype().equals("30") && s3[m].equals("customer")){
break;
}
if (values != null) {
Object oldvalue = values[1];
if (oldvalue != null && oldvalue.toString().length() == 20) {

View File

@ -128,12 +128,16 @@ public class GatheringAddAfterListenerAction {
for(IDataFromF2ForM30 data : datas) {
if (!ccustomerid.equals(data.getPayBillOrderCust())) {
if(!data.getFirstBillType().equals("30") ){
throw new BusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("4006011_0", "04006011-0193", (String)null, new String[]{head.getVbillcode()}));
}
}
if (!cinvoicecustid.equals(data.getPayBillCustomer())) {
if(!data.getFirstBillType().equals("30") ){
throw new BusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("4006011_0", "04006011-0194", (String)null, new String[]{head.getVbillcode()}));
}
}
if (!corigcurrencyid.equals(data.getPayBillCurID())) {
throw new BusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("4006011_0", "04006011-0195", (String)null, new String[]{head.getVbillcode()}));

View File

@ -155,12 +155,16 @@ public class GatheringUpdateBeforeListener implements IBusinessListener {
if (SoBalanceType.SOBALANCE_ORDERBAL.getIntValue() == fibaltype) {
if (!ccustomerid.equals(data.getPayBillOrderCust())) {
throw new BusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("4006011_0", "04006011-0193", (String)null, new String[]{(String)map.get(head.getCsobalanceid())}));
if(!(data.getFirstBillType().equals("30")&&head.getMetaData().getEntityName().equals("so.so_balance")) ) {
throw new BusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("4006011_0", "04006011-0193", (String) null, new String[]{(String) map.get(head.getCsobalanceid())}));
}
}
if (!cinvoicecustid.equals(data.getPayBillCustomer())) {
if(!(data.getFirstBillType().equals("30")&&head.getMetaData().getEntityName().equals("so.so_balance"))) {
throw new BusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("4006011_0", "04006011-0194", (String)null, new String[]{(String)map.get(head.getCsobalanceid())}));
}
}
if (!corigcurrencyid.equals(data.getPayBillCurID())) {
throw new BusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("4006011_0", "04006011-0195", (String)null, new String[]{(String)map.get(head.getCsobalanceid())}));