shareneus 1.6.63 → 1.6.64
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.
|
@@ -521,7 +521,8 @@ function ComputeDocumentTotals(input) {
|
|
|
521
521
|
// 5. DocTotal rounding
|
|
522
522
|
let roundedTotal = grandTotal;
|
|
523
523
|
let roundAdj = 0;
|
|
524
|
-
|
|
524
|
+
console.log('Rounding', Rounding);
|
|
525
|
+
if ((Rounding === null || Rounding === void 0 ? void 0 : Rounding.DocTotal) !== false) { // default true
|
|
525
526
|
roundedTotal = RoundAmount(grandTotal, { Method: Rounding.Method, Precision: Rounding.Precision });
|
|
526
527
|
roundAdj = (0, math_operations_1.Subtract)(roundedTotal, grandTotal);
|
|
527
528
|
}
|