feat(cloud): online orders keep the delivery area's id for the site's fee check
The site checks the cloud's delivery fee with its own engine when it pulls an order (plan phase 3S, step S.5) and needs the area by id: a name can change between a menu push and the order. New column online_orders.delivery_area_id (migration 0004), set from the priced cart, and in the pending-orders payload (C-4, additive). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -83,6 +83,7 @@ class PendingOrderOut(BaseModel):
|
||||
customer_notes: Optional[str] = None
|
||||
table_label: Optional[str] = None # the QR menu's table (S.2)
|
||||
delivery_area: Optional[str] = None # the delivery area's name (S.3)
|
||||
delivery_area_id: Optional[int] = None # the site's area id (S.5)
|
||||
requested_for: Optional[datetime] = None # when the customer wants it (S.4); None = as soon as possible
|
||||
sales_point: Optional[str] = None # the site's sales point (S.2)
|
||||
items_json: str
|
||||
|
||||
Reference in New Issue
Block a user