瀏覽代碼

发票作废,修改发票合同关联表金额为0

chenjun 7 月之前
父節點
當前提交
7510ae4a4f

+ 3 - 0
zjugis-business/src/main/java/com/zjugis/business/flow/contractinvoice/service/FlowContractInvoiceService.java

@@ -170,6 +170,9 @@ public class FlowContractInvoiceService {
         if (relations.size() == 1) {
             ContractInvoiceRelation relation = relations.get(0);
             relation.setInvoiceAmount(entity.getInvoiceAmount());
+            if(entity.getFlowStatus().equals(FlowStatusConstants.FLOW_NULLY)){
+                relation.setInvoiceAmount(null);
+            }
             contractInvoiceRelationService.updateById(relation);
         }
         return res;