feat(medusa): Add item and shipping tax totals to order (#5385)
* Expose item tax total and shipping tax total in order totals * Added changeset * Fixes to tests * Fixes to integration tests * Fixes to integration tests * Fixes to integration tests * Change changeset to patch
This commit is contained in:
committed by
GitHub
parent
5a5c96e211
commit
0d7c5543dd
@@ -1616,7 +1616,9 @@ describe("/admin/orders", () => {
|
||||
first_name: "lebron",
|
||||
}),
|
||||
shipping_total: expect.any(Number),
|
||||
shipping_tax_total: expect.any(Number),
|
||||
discount_total: expect.any(Number),
|
||||
item_tax_total: expect.any(Number),
|
||||
tax_total: expect.any(Number),
|
||||
refunded_total: expect.any(Number),
|
||||
total: expect.any(Number),
|
||||
@@ -2448,7 +2450,9 @@ describe("/admin/orders", () => {
|
||||
id: "test-order",
|
||||
region: expect.any(Object),
|
||||
shipping_total: 1000,
|
||||
shipping_tax_total: 0,
|
||||
discount_total: 800,
|
||||
item_tax_total: 0,
|
||||
tax_total: 0,
|
||||
refunded_total: 0,
|
||||
total: 8200,
|
||||
@@ -2491,7 +2495,9 @@ describe("/admin/orders", () => {
|
||||
sales_channel_id: null,
|
||||
returnable_items: expect.any(Array),
|
||||
shipping_total: 1000,
|
||||
shipping_tax_total: 0,
|
||||
discount_total: 800,
|
||||
item_tax_total: 0,
|
||||
tax_total: 0,
|
||||
refunded_total: 0,
|
||||
total: 8200,
|
||||
@@ -2517,7 +2523,9 @@ describe("/admin/orders", () => {
|
||||
id: "test-order",
|
||||
returnable_items: expect.any(Array),
|
||||
shipping_total: 1000,
|
||||
shipping_tax_total: 0,
|
||||
discount_total: 800,
|
||||
item_tax_total: 0,
|
||||
tax_total: 0,
|
||||
refunded_total: 0,
|
||||
total: 8200,
|
||||
|
||||
Reference in New Issue
Block a user