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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user