b2m-utils 0.0.279 → 0.0.280
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.esm.js +6 -0
- package/build/index.esm.js.gz +0 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6 -0
- package/build/index.js.gz +0 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1361,6 +1361,12 @@ var getCtesFeesResult = function (feesToCalc, cte, allFeesForCalc) {
|
|
|
1361
1361
|
var icmsRate = (cte.icmsIncidence !== undefined && cte.icmsIncidence !== null && !isNaN(+cte.icmsIncidence))
|
|
1362
1362
|
? +(cte.icmsIncidence) / 100
|
|
1363
1363
|
: icmsFee.value || 0;
|
|
1364
|
+
console.log('DEBUG ICMS getCtesFeesResult:', {
|
|
1365
|
+
valuesForIcms: valuesForIcms,
|
|
1366
|
+
icmsRate: icmsRate,
|
|
1367
|
+
totalBeforeIcms: valuesForIcms.reduce(function (sum, val) { return sum + val; }, 0),
|
|
1368
|
+
results: results.map(function (r) { return ({ feeId: r.feeId, total: r.total }); })
|
|
1369
|
+
});
|
|
1364
1370
|
// Usar calculateIcms diretamente
|
|
1365
1371
|
var icmsCalculation = calculateIcms(valuesForIcms, icmsRate);
|
|
1366
1372
|
if (icmsCalculation.isValid && !isNaN(+icmsCalculation.total)) {
|
package/build/index.js.gz
CHANGED
|
Binary file
|