付款申请单 候补发票

This commit is contained in:
程小伟 2025-05-13 15:02:24 +08:00
parent 312790e980
commit 5a5dff4a77
1 changed files with 3 additions and 18 deletions

View File

@ -114,9 +114,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
@Override
public void propertyChanged(PropertyChangedArgs e) {
if (!"C".equals(this.getModel().getValue("billstatus"))){
super.propertyChanged(e);//单据不是审核状态走父类
}
//单据为审核走以下逻辑
log.info("SupplementInvoiceBillPlugin:发生变动的字段:"+e.getProperty().getName());
String billId = this.getModel().getDataEntity().getPkValue().toString();
@ -239,14 +237,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
public void closedCallBack(ClosedCallBackEvent event) {
String billId = this.getModel().getDataEntity().getPkValue().toString();
log.info("SupplementInvoiceBillPlugin:主键值:"+billId);
if (!"C".equals(this.getModel().getValue("billstatus"))){
super.closedCallBack(event);
String actionId = event.getActionId();
Object returnData = event.getReturnData();
if (actionId.equals("selectinvoice") && returnData != null) {
this.selectInvoiceCallBack(returnData);
}
} else if (!billId.equals("0") &&"C".equals(this.getModel().getValue("billstatus"))){
if (!billId.equals("0") &&"C".equals(this.getModel().getValue("billstatus"))){
String actionId = event.getActionId();//获取回调标识
Object returnData = event.getReturnData();//获取子页面返回的数据
log.info("SupplementInvoiceBillPlugin:获取回调标识:"+actionId);
@ -259,13 +250,7 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
}
protected void selectInvoiceCallBack(Object returnData) {
DynamicObject org = (DynamicObject)this.getModel().getValue("fiaccountorg");
List<InvoiceVO> invoiceVOList = InvoiceDataHandleHelper.parseXhInvoiceCloudReturnData(returnData);
Map<Boolean, Set<DynamicObject>> invoiceMap = CustomInvoiceDataHandleHelper.processInvoiceVO(invoiceVOList, RequestContext.get().getCurrUserId(), org.getLong("id"), new Date(), "ec_in_invoice", (DynamicObject)this.getModel().getValue("currency"), true);
ImportInvoiceUtils invoiceUtils = new ImportInvoiceUtils(this.getView(), this.getPageCache());
this.addInvoiceToEntry(invoiceUtils, invoiceMap);
}
protected void invoiceCloseCallBack1(ClosedCallBackEvent event) {
ListSelectedRowCollection rows = (ListSelectedRowCollection)event.getReturnData();