@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.
@@ -1,4 +1,4 @@
1
- [build:core] found 5551 entry points
1
+ [build:core] found 5553 entry points
2
2
  [build:core] built successfully
3
3
  [build:core:generated] found 248 entry points
4
4
  [build:core:generated] built successfully
@@ -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
- shippingNetAmount: "0",
5030
- shippingGrossAmount: "0",
5031
- surchargeTotalAmount: "0",
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",