chenrui
2025-05-26 1c16c1fc8904b917c5f0fee3f82845d9e26d29f9
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 };