diff --git a/apps/user-app/src/utils/filters.ts b/apps/user-app/src/utils/filters.ts index 0fdd613..afb2126 100644 --- a/apps/user-app/src/utils/filters.ts +++ b/apps/user-app/src/utils/filters.ts @@ -20,3 +20,11 @@ export function jdate(val: string | undefined | null): string { } return val as any } + +/** Compact Jalali stamp for the order-detail timeline (day + month name + time). */ +export function jtimelineWhen(val: string | undefined | null): string { + if (val) { + return moment(val).format('jD jMMMM، HH:mm') + } + return val as any +} diff --git a/apps/user-app/src/views/CartView.vue b/apps/user-app/src/views/CartView.vue index 569475f..aa4c93f 100644 --- a/apps/user-app/src/views/CartView.vue +++ b/apps/user-app/src/views/CartView.vue @@ -214,9 +214,6 @@ const submitOrder = async () => { // Ignored by the server, which takes the customer from the token; still // sent so older builds keep validating. Removed in Phase 2. customerId: session.customerId ?? undefined, - // Wholesale (عمده) — same as legacy mobile; server also forces this for - // customer placements so admin omde list shows the order. - channel: 'WHOLESALE', items: cart.items.map((item) => { const variant = cart.variant(item) return {