Commit 35034846 by liuyang

2024-08-06 销售开票本次开票金额加累计开票金额不能超出销售合同金额20%,如果要超出20%需要业务新增补充协议

parent f6858725
...@@ -215,7 +215,7 @@ public class ServiceHGCW010 extends ServiceBase { ...@@ -215,7 +215,7 @@ public class ServiceHGCW010 extends ServiceBase {
hgcw011.setMainId(hgcw010.getId()); hgcw011.setMainId(hgcw010.getId());
hgcw011.setId(null); hgcw011.setId(null);
// 反写金额 // 反写金额
HGCWTools.HgCw008.deductionAmount(hgcw011.getSettlementNumber(),rowMap.get(hgcw011.getSettlementNumber())); HGCWTools.HgCw008.deductionAmount(resultRows.get(0).get("contractNumber"), hgcw011.getSettlementNumber(),rowMap.get(hgcw011.getSettlementNumber()));
DaoUtils.insert(HGCW011.INSERT, hgcw011); DaoUtils.insert(HGCW011.INSERT, hgcw011);
} }
} else { } else {
...@@ -231,7 +231,7 @@ public class ServiceHGCW010 extends ServiceBase { ...@@ -231,7 +231,7 @@ public class ServiceHGCW010 extends ServiceBase {
for (HGCW011 hgcw011 : hgcw011List) { for (HGCW011 hgcw011 : hgcw011List) {
hgcw011.setMainId(hgcw010.getId()); hgcw011.setMainId(hgcw010.getId());
// 反写金额 // 反写金额
HGCWTools.HgCw008.deductionAmount(hgcw011.getSettlementNumber(),rowMap.get(hgcw011.getSettlementNumber())); HGCWTools.HgCw008.deductionAmount(resultRows.get(0).get("contractNumber"), hgcw011.getSettlementNumber(), rowMap.get(hgcw011.getSettlementNumber()));
this.addHGCW011(hgcw011); this.addHGCW011(hgcw011);
} }
List<HGCW011> hgcw011s = HGCWTools.HgCw011.getMainId(hgcw010.getId()); List<HGCW011> hgcw011s = HGCWTools.HgCw011.getMainId(hgcw010.getId());
......
...@@ -95,6 +95,9 @@ ...@@ -95,6 +95,9 @@
<isNotEmpty prepend=" AND " property="companyCodes"> <isNotEmpty prepend=" AND " property="companyCodes">
COMPANY_CODE IN <iterate close=")" open="(" conjunction="," property="companyCodes">#companyCodes[]#</iterate> COMPANY_CODE IN <iterate close=")" open="(" conjunction="," property="companyCodes">#companyCodes[]#</iterate>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="settlementNumbers">
SETTLEMENT_NUMBER IN <iterate close=")" open="(" conjunction="," property="settlementNumbers">#settlementNumbers[]#</iterate>
</isNotEmpty>
</sql> </sql>
<select id="query" parameterClass="java.util.HashMap" <select id="query" parameterClass="java.util.HashMap"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment