feat(dashboard,core-flows,types,utils,medusa): Order cancelations will refund payments (#10667)

* feat(order, types): Add Credit Line to order module

* chore: add action to inject credit lines

* WIP

* chore: add fixes + observe

* chore: fix balances

* chore: add canceled badge

* chore: fix i18n schema

* chore: remove redunddant query

* chore: add changeset

* chore: add credit lines for all cancel cases

* chore: add accounting total

* chore: address review & cleanup
This commit is contained in:
Riqwan Thamir
2025-01-07 07:56:28 +01:00
committed by GitHub
parent 99a06102a2
commit 47594192b7
27 changed files with 1241 additions and 1666 deletions
@@ -1,5 +1,16 @@
import { TFunction } from "i18next"
export const getCanceledOrderStatus = (
t: TFunction<"translation">,
status: string
) => {
if (status === "canceled") {
return { label: t("orders.status.canceled"), color: "red" }
}
return
}
export const getOrderPaymentStatus = (
t: TFunction<"translation">,
status: string