Compare commits
No commits in common. "b6f019de22ae17101864573a3f7a7515a21e56c5" and "4088d77e2ba35f394bd7168d1f084e2a265c525f" have entirely different histories.
b6f019de22
...
4088d77e2b
|
|
@ -122,13 +122,6 @@ public class SubjectbalanceAutoData {
|
|||
}
|
||||
balanceQueryParamApi.setAccountAssgrp(accountAssgrp);
|
||||
groupBy.add(asseestype);
|
||||
}else{
|
||||
Map<String, List<Map<String, String>>> accountAssgrp = new HashMap<>();
|
||||
List<Map<String, String>> li = new ArrayList<>();
|
||||
for (String accNum : accountNumber) {
|
||||
accountAssgrp.put(accNum, li);
|
||||
}
|
||||
balanceQueryParamApi.setAccountAssgrp(accountAssgrp);
|
||||
}
|
||||
groupBy.add("account");
|
||||
balanceQueryParamApi.setGroupBys(groupBy);
|
||||
|
|
@ -162,7 +155,6 @@ public class SubjectbalanceAutoData {
|
|||
assistbalance.set("zcgj_sourcetype", asseestype);
|
||||
|
||||
Map<String, AccountRecord.AssGrpItem> assgrp = record.getAssgrp();
|
||||
if(assgrp!=null){
|
||||
if (assgrp.containsKey("0032")) {
|
||||
if (assgrp.get("0032") != null) {
|
||||
assistbalance.set("zcgj_processnumber", assgrp.get("0032").getNumber());
|
||||
|
|
@ -174,7 +166,6 @@ public class SubjectbalanceAutoData {
|
|||
assistbalance.set("zcgj_costcompanyname", assgrp.get("0017").getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
addEntities.add(assistbalance);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,21 +126,16 @@ public class FundingplanapplyAccountBalancePlugin extends AbstractBillPlugIn imp
|
|||
List<AccountRecord> records = gson.fromJson(data, listType);
|
||||
|
||||
BigDecimal totalbeginlocal = BigDecimal.ZERO;
|
||||
BigDecimal totalendlocal = BigDecimal.ZERO;
|
||||
BigDecimal totayeardebitfor = BigDecimal.ZERO;
|
||||
BigDecimal totalyearcreditfor = BigDecimal.ZERO;
|
||||
for (AccountRecord record : records) {
|
||||
totalbeginlocal = totalbeginlocal.add(record.getBeginlocal());//期初本位币金额
|
||||
totalendlocal = totalendlocal.add(record.getEndlocal());//期初本位币金额
|
||||
totayeardebitfor = totayeardebitfor.add(record.getYeardebitfor());//yeardebitfor
|
||||
totalyearcreditfor = totalyearcreditfor.add(record.getYearcreditfor());//yearcreditfor
|
||||
}
|
||||
DynamicObjectCollection zcgjFinApprovedAmount = this.getModel().getDataEntity(true).getDynamicObjectCollection("zcgj_infundproject_entry");
|
||||
DynamicObject dynamicObject = zcgjFinApprovedAmount.get(rowIndex);
|
||||
//年初余额 = 期末余额-本年累计借方+本年累计贷方
|
||||
BigDecimal beginningbalanceofyear =totalendlocal.subtract(totayeardebitfor).add(totalyearcreditfor);
|
||||
dynamicObject.set("zcgj_iinitialreceivable",beginningbalanceofyear);//年初余额取科目余额表年初数
|
||||
dynamicObject.set("zcgj_monthbeginreceivable",totalbeginlocal);//月初应收余额
|
||||
dynamicObject.set("zcgj_iinitialreceivable",totalbeginlocal);//年初余额取科目余额表年初数
|
||||
dynamicObject.set("zcgj_ytdoutputvalue",totayeardebitfor);//本年累计结算-借方
|
||||
dynamicObject.set("zcgj_ytdpaymentreceived",totalyearcreditfor);//本年累计回款-贷方
|
||||
this.getView().updateView("zcgj_infundproject_entry");
|
||||
|
|
@ -149,7 +144,6 @@ public class FundingplanapplyAccountBalancePlugin extends AbstractBillPlugIn imp
|
|||
DynamicObjectCollection zcgjFinApprovedAmount = this.getModel().getDataEntity(true).getDynamicObjectCollection("zcgj_infundproject_entry");
|
||||
DynamicObject dynamicObject = zcgjFinApprovedAmount.get(rowIndex);
|
||||
dynamicObject.set("zcgj_iinitialreceivable",BigDecimal.ZERO);//年初余额取科目余额表年初数
|
||||
dynamicObject.set("zcgj_monthbeginreceivable",BigDecimal.ZERO);//年初余额取科目余额表年初数
|
||||
dynamicObject.set("zcgj_ytdoutputvalue",BigDecimal.ZERO);//本年累计结算-借方
|
||||
dynamicObject.set("zcgj_ytdpaymentreceived",BigDecimal.ZERO);//本年累计回款-贷方
|
||||
this.getView().updateView("zcgj_infundproject_entry");
|
||||
|
|
@ -203,30 +197,24 @@ public class FundingplanapplyAccountBalancePlugin extends AbstractBillPlugIn imp
|
|||
List<AccountRecord> records = gson.fromJson(data, listType);
|
||||
|
||||
BigDecimal totalbeginlocal = BigDecimal.ZERO;
|
||||
BigDecimal totalendlocal = BigDecimal.ZERO;
|
||||
BigDecimal totayeardebitfor = BigDecimal.ZERO;
|
||||
BigDecimal totalyearcreditfor = BigDecimal.ZERO;
|
||||
for (AccountRecord record : records) {
|
||||
totalbeginlocal = totalbeginlocal.add(record.getBeginlocal());//期初本位币金额
|
||||
totalendlocal = totalendlocal.add(record.getEndlocal());//期初本位币金额
|
||||
totayeardebitfor = totayeardebitfor.add(record.getYeardebitfor());//yeardebitfor
|
||||
totalyearcreditfor = totalyearcreditfor.add(record.getYearcreditfor());//yearcreditfor
|
||||
}
|
||||
DynamicObjectCollection zcgjFinApprovedAmount = this.getModel().getDataEntity(true).getDynamicObjectCollection("zcgj_outfundproject_entry");
|
||||
DynamicObject dynamicObject = zcgjFinApprovedAmount.get(rowIndex);
|
||||
//年初余额 = 期末余额-本年累计借方+本年累计贷方
|
||||
BigDecimal beginningbalanceofyear =totalendlocal.subtract(totalyearcreditfor).add(totayeardebitfor);
|
||||
dynamicObject.set("zcgj_openingpayable",beginningbalanceofyear);//年初余额取科目余额表年初数
|
||||
dynamicObject.set("zcgj_monthbeginpayable",totalbeginlocal);//月初应付余额
|
||||
dynamicObject.set("zcgj_ytdtotalpayment",totayeardebitfor);//本年累计付款-借方
|
||||
dynamicObject.set("zcgj_ytdnetsettlement",totalyearcreditfor);//本年累计结算-贷方
|
||||
dynamicObject.set("zcgj_openingpayable",totalbeginlocal);//年初余额取科目余额表年初数
|
||||
dynamicObject.set("zcgj_ytdnetsettlement",totayeardebitfor);//本年累计结算-借方
|
||||
dynamicObject.set("zcgj_ytdtotalpayment",totalyearcreditfor);//本年累计付款-贷方
|
||||
this.getView().updateView("zcgj_outfundproject_entry");
|
||||
}
|
||||
}else{
|
||||
DynamicObjectCollection zcgjFinApprovedAmount = this.getModel().getDataEntity(true).getDynamicObjectCollection("zcgj_outfundproject_entry");
|
||||
DynamicObject dynamicObject = zcgjFinApprovedAmount.get(rowIndex);
|
||||
dynamicObject.set("zcgj_openingpayable",BigDecimal.ZERO);//年初余额取科目余额表年初数
|
||||
dynamicObject.set("zcgj_monthbeginpayable",BigDecimal.ZERO);//年初余额取科目余额表年初数
|
||||
dynamicObject.set("zcgj_ytdnetsettlement",BigDecimal.ZERO);//本年累计结算-借方
|
||||
dynamicObject.set("zcgj_ytdtotalpayment",BigDecimal.ZERO);//本年累计付款-贷方
|
||||
this.getView().updateView("zcgj_outfundproject_entry");
|
||||
|
|
|
|||
Loading…
Reference in New Issue