本文解答了关于《合并报表逆流抵消分录》相关内容,同时关于1、合并报表逆流抵消分录,2、合并报表逆流交易抵消,3、合并报表逆流交易抵销存货,4、合并报表顺流逆流抵消,5、合并报表顺流抵消分录,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
合并报表逆流抵消分录
List reportDataMerges = reportDataMergeService.getByWbIdsAndItemCode(wbIds, entryId);
for (ReportDataMerge reportDataMerge : reportDataMerges) {
originAccount = NumberUtils.sub(originAccount, reportDataMerge.getDrAmount());
destAccount = NumberUtils.sub(destAccount, reportDataMerge.getCrAmount());
}
balanceIn.setInitBalance(originAccount.subtract(destAccount));
balanceIns.add(balanceIn);
}
//判断是否计算期末余额 默认1:做计算 0 不做
if (parameter.getCalcEndBalanceFlag() == 1) {
//额(期初余额-期末余额)计算期末余额
//获取后续借贷发生额
AccountingSubject subject = subjects.get(0);
QueryLedgerParamQuery query = new QueryLedgerParamQuery();
query.setAccountBookId(vo.getAccountBookId());
query.setVoucherIds(vo.getVoucherIds());
query.setSubjectId(subject.getId());
query.setSubjectIds(subjectIds);
query.setStartPeriod(parameter.getStartYear() + "-" + parameter.getStartPeriod());
query.setEndPeriod(parameter.getYear() + "-" + parameter.getPeriod());
List laterList = currencyBalanceService.getLaterDrCrAmount(query);
BigDecimal laterDrAmount = BigDecimal.ZERO;
BigDecimal laterCrAmount = BigDecimal.ZERO;
for (OverageEntityVo later : laterList) {
laterDrAmount = laterDrAmount.add(later.getDrAmount());
laterCrAmount = laterCrAmount.add(later.getCrAmount());
}
balanceIn.setBorrowAmount(originAccount.add(laterDrAmount));
balanceIn.setLoanAmount(destAccount.add(laterCrAmount));
}
//节点
FastUtils.checkParams(parameter.getUnitId());
String unitName = unitService.getByUnitId(parameter.getUnitId()).getName();
if(StringUtils.isNotEmpty(vo.getUnitName())){
unitName = vo.getUnitName();
}
NodeTree tree = NodeTree.builder().code(vo.getSubjectCode()+"_"+vo.getUnitId()).name(subject.getName()
+ "-" + unitName).nodeType(vo.getSubjectName() +"--"+ unitName).folder(false).hasChildren(false).build();
trees.add(tree);
}
return out(balanceIns, trees);
}
}
总结:以上是编辑:【翟焯添】整理及AI智能原创关于《合并报表逆流抵消分录
》优质内容解答希望能帮助到您。