* feat: carry over promotions toggle on exchanges * fix: inital flag value, return the flag on preview * fix: validation of allocation type * fix: revert client changes * fix: invert condition * feat: recompute adjustments when outbound item is updated * fix: condition again * fix: display more accurate inbound/outbound totals for exchanges * fix: make exchanges specs green * feat: more testing cases * wip: pr feedback * fix: use plural for the flag on Admin * fix: schema test, route refactor * feat: tooltip * feat: refactor to use update workflow * feat: display applied promotion per item on order details, show copy sku on hover * feat: refactor edits and exchanges to have common flag toggle flow * fix: delete empty file * fix: exchange_id param query
33 lines
584 B
TypeScript
33 lines
584 B
TypeScript
export const defaultAdminRetrieveOrderChangeFields = [
|
|
"id",
|
|
"order_id",
|
|
"return_id",
|
|
"claim_id",
|
|
"exchange_id",
|
|
"version",
|
|
"change_type",
|
|
"*actions",
|
|
"description",
|
|
"status",
|
|
"internal_note",
|
|
"created_by",
|
|
"requested_by",
|
|
"requested_at",
|
|
"confirmed_by",
|
|
"confirmed_at",
|
|
"declined_by",
|
|
"declined_reason",
|
|
"metadata",
|
|
"declined_at",
|
|
"canceled_by",
|
|
"canceled_at",
|
|
"created_at",
|
|
"updated_at",
|
|
"carry_over_promotions",
|
|
]
|
|
|
|
export const retrieveTransformQueryConfig = {
|
|
defaults: defaultAdminRetrieveOrderChangeFields,
|
|
isList: false,
|
|
}
|