fix(order, core-flows): Tax inclusive order line item adjustments (#12875)
* fix(order, core-flows): Tax inclusive order line item adjustments * fix test
This commit is contained in:
1 parent
2f70f13351
commit
a7700f116f
7 files changed
+391
-28
No files matched your search
@@ -195,6 +195,7 @@ export function prepareAdjustmentsData(data: CreateOrderAdjustmentDTO[]) {
|
||||
amount: d.amount,
|
||||
description: d.description,
|
||||
promotion_id: d.promotion_id,
|
||||
provider_id: d.promotion_id,
|
||||
provider_id: d.provider_id,
|
||||
is_tax_inclusive: d.is_tax_inclusive
|
||||
}))
|
||||
}
|
||||
@@ -296,6 +296,11 @@ export interface CreateOrderAdjustmentDTO {
|
||||
* The associated provider's ID.
|
||||
*/
|
||||
provider_id?: string
|
||||
|
||||
/**
|
||||
* Whether the adjustment is tax inclusive.
|
||||
*/
|
||||
is_tax_inclusive?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user