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
@@ -128,6 +128,7 @@ export type AdminPostClaimsAddItemsReqSchemaType = z.infer<
|
||||
>
|
||||
|
||||
export const AdminPostClaimsRequestReturnItemsReqSchema = z.object({
|
||||
location_id: z.string().optional(),
|
||||
items: z.array(
|
||||
z.object({
|
||||
id: z.string(),
|
||||
|
||||
@@ -7,6 +7,7 @@ export const defaultAdminListOrderFields = [
|
||||
"region_id",
|
||||
"*items",
|
||||
"summary",
|
||||
"total",
|
||||
"metadata",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
@@ -31,6 +32,7 @@ export const defaultAdminOrderFields = [
|
||||
"*shipping_methods.tax_lines",
|
||||
"*shipping_methods.adjustments",
|
||||
"summary",
|
||||
"total",
|
||||
"metadata",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
|
||||
@@ -127,6 +127,7 @@ export type AdminPostExchangesAddItemsReqSchemaType = z.infer<
|
||||
>
|
||||
|
||||
export const AdminPostExchangesReturnRequestItemsReqSchema = z.object({
|
||||
location_id: z.string().optional(),
|
||||
items: z.array(
|
||||
z.object({
|
||||
id: z.string(),
|
||||
|
||||
@@ -4,6 +4,7 @@ export const defaultAdminOrderFields = [
|
||||
"status",
|
||||
"version",
|
||||
"summary",
|
||||
"total",
|
||||
"metadata",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
@@ -19,6 +20,7 @@ export const defaultAdminRetrieveOrderFields = [
|
||||
"discount_total",
|
||||
"discount_tax_total",
|
||||
"original_total",
|
||||
"original_subtotal",
|
||||
"original_tax_total",
|
||||
"item_total",
|
||||
"item_subtotal",
|
||||
|
||||
Reference in New Issue
Block a user