chenrui
2025-05-26 a117f28f890f89bfef46b0920b4861b542cd395b
src/utils/summarizeTable.js
@@ -34,6 +34,10 @@
        }
    });
    return sums;
};
}
const calculateTaxExclusiveTotalPrice = (taxInclusiveTotalPrice, taxRate) => {
    const taxRateDecimal = taxRate / 100;
    return (taxInclusiveTotalPrice / (1 + taxRateDecimal)).toFixed(2);
}
// 导出函数供其他文件使用
export { summarizeTable };
export { summarizeTable, calculateTaxExclusiveTotalPrice };