Fix wholesale app orders, polish admin/user chrome, and harden order detail UX.
Customer placements now store WHOLESALE (with a migration for prior RETAIL rows), order status opens in a right drawer, logout asks for confirm, and the dashboard profile nudge plus IRANSans panel typeface are tightened for readability. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -545,7 +545,9 @@ async function main() {
|
||||
orderNumber: 'ORD-SEED-0002',
|
||||
customerId: customer2.id,
|
||||
branchId: branchTehran.id,
|
||||
channel: OrderChannel.RETAIL,
|
||||
// App / customer channel is wholesale (عمده); keep seed aligned with
|
||||
// OrdersService customer placements and the omde admin list.
|
||||
channel: OrderChannel.WHOLESALE,
|
||||
status: 'PLACED',
|
||||
totalGoldWeightGrams: computed,
|
||||
wageWeightGrams: (parseFloat(computed) - parseFloat(rash)).toFixed(4),
|
||||
@@ -577,7 +579,7 @@ async function main() {
|
||||
});
|
||||
await prisma.order.updateMany({
|
||||
where: { orderNumber: 'ORD-SEED-0002' },
|
||||
data: { channel: OrderChannel.RETAIL },
|
||||
data: { channel: OrderChannel.WHOLESALE },
|
||||
});
|
||||
|
||||
// ── A delivered order + posted debt, so the dashboard shows real numbers ──
|
||||
|
||||
Reference in New Issue
Block a user