chore: merge money amounts and price set money amounts (#6768)

what: 

- merges price set money amounts and money amount
This commit is contained in:
Riqwan Thamir
2024-03-21 17:10:13 +01:00
committed by GitHub
parent 1ef9c78cea
commit b792c4cab5
29 changed files with 569 additions and 1534 deletions

View File

@@ -46,7 +46,7 @@ export function buildPriceSetPricesForCore(
: {}
return {
...priceSetMoneyAmount.money_amount,
...priceSetMoneyAmount,
variant_id: productVariant?.id ?? null,
rules,
}
@@ -62,7 +62,7 @@ export function buildPriceSetPricesForModule(
: {}
return {
...priceSetMoneyAmount.money_amount!,
...priceSetMoneyAmount,
price_set_id: priceSetMoneyAmount.price_set!?.id!,
rules,
}