fix(app): restore order timeline filter and drop unused cart channel

Keep OrdersView typing against this branch's API, and omit channel from createOrder since the server already forces WHOLESALE for app placements.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
mahmood
2026-10-27 16:46:26 +03:30
co-authored by Cursor
parent c438ab2159
commit 733cb60807
2 changed files with 8 additions and 3 deletions
+8
View File
@@ -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
}
-3
View File
@@ -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 {