feat: port QA/money fixes from tehran_taj (atomic document confirm, validated inputs, expert customer edit/toggle/weights, made-to-order, grid sort/customer column)
Order-revision workflow kept as is: the direct admin line-edit routes were not ported. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
756ecef6db
commit
3eaecde876
@@ -0,0 +1,3 @@
|
||||
-- Pieces asked for on a made-to-order request (legacy custom_orders.sum). Existing
|
||||
-- rows were all treated as one piece by the admin grid, so they keep 1.
|
||||
ALTER TABLE "PreOrder" ADD COLUMN "quantity" INTEGER NOT NULL DEFAULT 1;
|
||||
@@ -947,6 +947,9 @@ model PreOrder {
|
||||
sizeSpec String?
|
||||
stoneColor String?
|
||||
minaColor String?
|
||||
/// Legacy custom_orders.sum — how many pieces the customer asked for. The first
|
||||
/// schema had no field for it and the admin grid showed a hard-coded 1.
|
||||
quantity Int @default(1)
|
||||
estimatedWeightGrams Decimal? @db.Decimal(14, 4)
|
||||
estimatedPriceRial Decimal? @db.Decimal(20, 2)
|
||||
description String?
|
||||
|
||||
Reference in New Issue
Block a user