|
...
|
...
|
@@ -535,6 +535,7 @@ public class ReceiptLedgerInfoServiceImpl extends BaseMpServiceImpl<ReceiptLedge |
|
535
|
535
|
if (CollectionUtils.isEmpty(list)) {
|
|
536
|
536
|
continue;
|
|
537
|
537
|
}
|
|
|
538
|
+ BigDecimal totalDebt = BigDecimal.ZERO;
|
|
538
|
539
|
long waitDeliveredOrderTotal = 0;
|
|
539
|
540
|
Map<String, ReceiptLedgerReportDetail> reportDetailMap = new LinkedHashMap<>();
|
|
540
|
541
|
for (Map<String, Object> map : list) {
|
|
...
|
...
|
@@ -575,9 +576,11 @@ public class ReceiptLedgerInfoServiceImpl extends BaseMpServiceImpl<ReceiptLedge |
|
575
|
576
|
}
|
|
576
|
577
|
debtTotal = debtTotal.add(debtAmount);
|
|
577
|
578
|
reportDetail.setDebtTotal(debtTotal);
|
|
|
579
|
+ totalDebt = totalDebt.add(debtAmount);
|
|
578
|
580
|
|
|
579
|
581
|
reportDetailMap.put(reportDetail.getCustomerName(), reportDetail);
|
|
580
|
582
|
}
|
|
|
583
|
+ report.setDebtTotal(totalDebt);
|
|
581
|
584
|
List<ReceiptLedgerReportDetail> details = new ArrayList<>(reportDetailMap.values());
|
|
582
|
585
|
if (CollectionUtils.isNotEmpty(details)) {
|
|
583
|
586
|
for (ReceiptLedgerReportDetail detail : details) {
|
...
|
...
|
|