chenrui
2025-05-26 3ee713b4feb3b1dba3b66f59c4bd25ecf69a791f
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 };