付款申请单已审核 重新添加发票

This commit is contained in:
程小伟 2025-05-08 14:25:44 +08:00
parent d303624622
commit bc2b6bc036
1 changed files with 5 additions and 4 deletions

View File

@ -35,10 +35,11 @@ public class SupplementInvoiceBillPlugin extends PaymentApplyEditUI {
public void beforeDoOperation(BeforeDoOperationEventArgs args) {
String billId = this.getModel().getDataEntity().getPkValue().toString();
log.info("SupplementInvoiceBillPlugin:主键值:"+billId);
if (!billId.equals("0") && "A".equals(this.getModel().getValue("billstatus"))){
log.info("SupplementInvoiceBillPlugin:单据暂存,走父类方法");
super.beforeDoOperation(args);
} else if (!billId.equals("0") &&"C".equals(this.getModel().getValue("billstatus"))){
// if (!billId.equals("0") && "A".equals(this.getModel().getValue("billstatus"))){
// log.info("SupplementInvoiceBillPlugin:单据暂存,走父类方法");
// super.beforeDoOperation(args);
// } else
if (!billId.equals("0") &&"C".equals(this.getModel().getValue("billstatus"))){
log.info("SupplementInvoiceBillPlugin:单据已审核,走子类方法");
FormOperate operate = (FormOperate)args.getSource();
String key = operate.getOperateKey();//获取操作码