✨ 汇总前新增明细纳入应收合计
This commit is contained in:
@@ -1570,8 +1570,7 @@ public class ArBillServiceImpl implements IArBillService {
|
||||
private void writeOoxmlFooter(OutputStream output, Map<Integer, String> templateRows, int footerRow, ArBill bill)
|
||||
throws IOException {
|
||||
int rowOffset = footerRow - TEMPLATE_FOOTER_START_ROW;
|
||||
int lastDetailRow = Math.max(TEMPLATE_DATA_START_ROW, footerRow - 1);
|
||||
String totalAmountFormula = "SUM(S" + TEMPLATE_DATA_START_ROW + ":S" + lastDetailRow + ")";
|
||||
String totalAmountFormula = "SUM(S" + TEMPLATE_DATA_START_ROW + ":INDEX(S:S,ROW()-1))";
|
||||
for (int offset = 0; offset < 4; offset++) {
|
||||
int sourceRowNumber = TEMPLATE_FOOTER_START_ROW + offset + 1;
|
||||
int targetRowNumber = sourceRowNumber + rowOffset;
|
||||
|
||||
Reference in New Issue
Block a user