fix(utils,core-flows): subtotal calculation and returns location (#13497)
* fix(utils,core-flows): subtotal calculation and returns location * changeset * fix test * var * rm extra field from test * fix original total * fix partial refunds and pending difference * fix test * fix test * test * extract to util * original total and update payment when receive return * original_subtotal * default fields * test * calculate pending difference * revert claims test * pending difference * creadit line fix * if
This commit is contained in:
committed by
GitHub
parent
4736c58da5
commit
9563ee446f
@@ -227,7 +227,7 @@ moduleIntegrationTestRunner<IOrderModuleService>({
|
||||
const serializedOrder = JSON.parse(
|
||||
JSON.stringify(
|
||||
await service.retrieveOrder(created.id, {
|
||||
select: ["id", "summary"],
|
||||
select: ["id", "summary", "total"],
|
||||
})
|
||||
)
|
||||
)
|
||||
@@ -246,7 +246,7 @@ moduleIntegrationTestRunner<IOrderModuleService>({
|
||||
const serializedOrder2 = JSON.parse(
|
||||
JSON.stringify(
|
||||
await service.retrieveOrder(created.id, {
|
||||
select: ["id", "summary"],
|
||||
select: ["id", "summary", "total"],
|
||||
})
|
||||
)
|
||||
)
|
||||
@@ -271,7 +271,7 @@ moduleIntegrationTestRunner<IOrderModuleService>({
|
||||
const serializedOrder3 = JSON.parse(
|
||||
JSON.stringify(
|
||||
await service.retrieveOrder(created.id, {
|
||||
select: ["id", "summary"],
|
||||
select: ["id", "summary", "total"],
|
||||
})
|
||||
)
|
||||
)
|
||||
@@ -290,7 +290,7 @@ moduleIntegrationTestRunner<IOrderModuleService>({
|
||||
const serializedOrder4 = JSON.parse(
|
||||
JSON.stringify(
|
||||
await service.retrieveOrder(created.id, {
|
||||
select: ["id", "summary"],
|
||||
select: ["id", "summary", "total"],
|
||||
})
|
||||
)
|
||||
)
|
||||
|
||||
@@ -414,7 +414,7 @@ moduleIntegrationTestRunner<IOrderModuleService>({
|
||||
})
|
||||
|
||||
const changedOrder = await service.retrieveOrder(createdOrder.id, {
|
||||
select: ["total", "items.detail", "summary"],
|
||||
select: ["total", "items.detail", "summary", "total"],
|
||||
relations: ["items"],
|
||||
})
|
||||
|
||||
@@ -492,7 +492,7 @@ moduleIntegrationTestRunner<IOrderModuleService>({
|
||||
})
|
||||
|
||||
const modified = await service.retrieveOrder(createdOrder.id, {
|
||||
select: ["total", "items.detail", "summary"],
|
||||
select: ["total", "items.detail", "summary", "total"],
|
||||
relations: ["items"],
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user