支出合同结算优化

This commit is contained in:
xuhaihui 2025-11-14 19:06:20 +08:00
parent e8a147c38a
commit 5229927bba
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ public class ContractEeasurementBillPlugin extends ContractMeasureBillEditPlugin
if (thisqty.compareTo(zero)>0 && thisoftaxmount.compareTo(zero)>0) {
BigDecimal curtaxprice = thisoftaxmount.divide(thisqty,6,BigDecimal.ROUND_HALF_UP);
currentprice = curtaxprice.divide(tax, 6, BigDecimal.ROUND_HALF_UP);
DynamicObjectCollection listmodelentry = this.getModel().getDataEntity().getDynamicObjectCollection("listmodelentry");//模板分录
DynamicObject listentry = listmodelentry.get(parentRowIndex).getDynamicObjectCollection("listentry").get(rowIndex);//清单分录模板分录子分录
DynamicObjectCollection listmodelentry = this.getModel().getDataEntity(true).getDynamicObjectCollection("listmodelentry");//模板分录
DynamicObject listentry = listmodelentry.get(0).getDynamicObjectCollection("listentry").get(rowIndex);//清单分录模板分录子分录
listentry.set("curtaxprice",curtaxprice);//清单分录-当前含税单价
listentry.set("currentprice",currentprice);//清单分录-当前单价
listentry.set("currentamt",currentprice.multiply(totalqty));//清单分录-当前金额