工程发票取消供应商存在性校验
This commit is contained in:
parent
af912e0444
commit
e2a8a7f155
|
|
@ -185,9 +185,10 @@ public class CustomInvoiceDataHandleHelper extends InvoiceDataHandleHelper {
|
|||
|
||||
DynamicObject seller = StringUtils.equals(dt.getName(), "ec_in_invoice") ? BusinessDataServiceHelper.loadSingle("bd_supplier", "", new QFilter[]{sellerFilter}) : BusinessDataServiceHelper.loadSingle("bos_org", "", new QFilter[]{sellerFilter});
|
||||
if (seller == null) {
|
||||
throw new KDBizException(String.format(ResManager.loadKDString("发票【%1$s】:销售方【%2$s】不存在。", "InvoiceDataHandleHelper_6", "ec-ecbd-common", new Object[0]), invoiceVO.getInvoiceCode(), sellerName));
|
||||
//throw new KDBizException(String.format(ResManager.loadKDString("发票【%1$s】:销售方【%2$s】不存在。", "InvoiceDataHandleHelper_6", "ec-ecbd-common", new Object[0]), invoiceVO.getInvoiceCode(), sellerName));
|
||||
} else {
|
||||
invoice.set("seller", seller);
|
||||
}
|
||||
invoice.set("invoicestatus", invoiceVO.getInvoiceStatus());
|
||||
invoice.set("billstatus", BillStatusEnum.AUDIT.getValue());
|
||||
invoice.set("org_id", orgID);
|
||||
|
|
@ -263,7 +264,6 @@ public class CustomInvoiceDataHandleHelper extends InvoiceDataHandleHelper {
|
|||
return invoice;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static DynamicObject getInvoiceByVO(InvoiceVO invoiceVO, String invoiceFormId) {
|
||||
if (invoiceVO != null && !StringUtils.isBlank(invoiceFormId)) {
|
||||
|
|
|
|||
|
|
@ -108,9 +108,11 @@ public class InvoiceNameRecognitionBillPlugin extends InvoiceDataHandleHelper {
|
|||
|
||||
DynamicObject seller = StringUtils.equals(dt.getName(), "ec_in_invoice") ? BusinessDataServiceHelper.loadSingle("bd_supplier", "", new QFilter[]{sellerFilter}) : BusinessDataServiceHelper.loadSingle("bos_org", "", new QFilter[]{sellerFilter});
|
||||
if (seller == null) {
|
||||
throw new KDBizException(String.format(ResManager.loadKDString("发票【%1$s】:销售方【%2$s】不存在。", "InvoiceDataHandleHelper_6", "ec-ecbd-common", new Object[0]), invoiceVO.getInvoiceCode(), sellerName));
|
||||
//throw new KDBizException(String.format(ResManager.loadKDString("发票【%1$s】:销售方【%2$s】不存在。", "InvoiceDataHandleHelper_6", "ec-ecbd-common", new Object[0]), invoiceVO.getInvoiceCode(), sellerName));
|
||||
} else {
|
||||
invoice.set("seller", seller);
|
||||
}
|
||||
|
||||
invoice.set("invoicestatus", invoiceVO.getInvoiceStatus());
|
||||
invoice.set("billstatus", BillStatusEnum.AUDIT.getValue());
|
||||
invoice.set("org_id", orgID);
|
||||
|
|
@ -187,5 +189,4 @@ public class InvoiceNameRecognitionBillPlugin extends InvoiceDataHandleHelper {
|
|||
return invoice;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue