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