入库单导入发票逻辑优化
This commit is contained in:
parent
7353758ec5
commit
5e596f260c
|
|
@ -259,13 +259,14 @@ public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn i
|
|||
} else {
|
||||
long orgId = (Long) ((DynamicObject) this.getModel().getValue("fiaccountorg")).getPkValue();
|
||||
DynamicObject fiaccountorg = (DynamicObject)this.getModel().getValue("fiaccountorg");//财务记账组织
|
||||
String ffirmname = fiaccountorg.getString("ffirmname");
|
||||
String ffirmname = fiaccountorg.getString("ffirmname");//业务单元-公司名称
|
||||
Set<DynamicObject> newInvoices = (Set) invoiceMap.get(Boolean.TRUE);
|
||||
Set<DynamicObject> existInvoices = (Set) invoiceMap.get(Boolean.FALSE);
|
||||
if (newInvoices != null && !newInvoices.isEmpty()) {
|
||||
for (DynamicObject newInvoice : newInvoices) {
|
||||
DynamicObject buyerOrg = newInvoice.getDynamicObject("buyer");
|
||||
if (buyerOrg != null && !buyerOrg.getString("name").equals(ffirmname) && buyerOrg.getLong("id") != orgId) {
|
||||
String buyername = newInvoice.getString("buyername");//购买方文本
|
||||
if (buyerOrg != null && !buyername.equals(ffirmname) && buyerOrg.getLong("id") != orgId) {
|
||||
this.getView().showTipNotification(ResManager.loadKDString("导入失败:当前发票购买方不为当前财务记账组织,请确认信息。", "PaymentApplyEditUI_20", "ec-contract-formplugin", new Object[0]));
|
||||
//this.getView().showErrorNotification(ResManager.loadKDString("导入失败:当前发票购买方不为当前财务记账组织,请确认信息。", "PaymentApplyEditUI_20", "ec-contract-formplugin", new Object[0]));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue