@open-mercato/core 0.9.1-develop.7467.1.3b2bb92d47 → 0.9.1-develop.7468.1.7ea720142b
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/.turbo/turbo-build.log +1 -1
- package/dist/modules/sales/commands/documents.js +6 -3
- package/dist/modules/sales/commands/documents.js.map +2 -2
- package/dist/modules/sales/lib/convertedOrderTotals.js +51 -0
- package/dist/modules/sales/lib/convertedOrderTotals.js.map +7 -0
- package/package.json +7 -7
- package/src/modules/sales/commands/documents.ts +6 -3
- package/src/modules/sales/lib/convertedOrderTotals.ts +79 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -101,6 +101,7 @@ import {
|
|
|
101
101
|
loadPaymentSnapshot,
|
|
102
102
|
restorePaymentSnapshot
|
|
103
103
|
} from "./payments.js";
|
|
104
|
+
import { resolveConvertedOrderFeeTotals } from "../lib/convertedOrderTotals.js";
|
|
104
105
|
import {
|
|
105
106
|
mapOrderLineEntityToSnapshot,
|
|
106
107
|
mapQuoteLineEntityToSnapshot,
|
|
@@ -5026,9 +5027,11 @@ const convertQuoteToOrderCommand = {
|
|
|
5026
5027
|
subtotalGrossAmount: snapshot.quote.subtotalGrossAmount,
|
|
5027
5028
|
discountTotalAmount: snapshot.quote.discountTotalAmount,
|
|
5028
5029
|
taxTotalAmount: snapshot.quote.taxTotalAmount,
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5030
|
+
...resolveConvertedOrderFeeTotals({
|
|
5031
|
+
totalsSnapshot: snapshot.quote.totalsSnapshot,
|
|
5032
|
+
currencyCode: snapshot.quote.currencyCode,
|
|
5033
|
+
adjustments: snapshot.adjustments
|
|
5034
|
+
}),
|
|
5032
5035
|
grandTotalNetAmount: snapshot.quote.grandTotalNetAmount,
|
|
5033
5036
|
grandTotalGrossAmount: snapshot.quote.grandTotalGrossAmount,
|
|
5034
5037
|
paidTotalAmount: "0",
|