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:
@@ -26,6 +26,7 @@ class OnlineOrder(Base):
|
||||
customer_notes = Column(Text, nullable=True)
|
||||
table_label = Column(String, nullable=True) # the QR menu's table, as the customer gave it
|
||||
delivery_area = Column(String, nullable=True) # the delivery area's name (S.3)
|
||||
delivery_area_id = Column(Integer, nullable=True) # the site's area id (S.5: the site checks the fee)
|
||||
requested_for = Column(DateTime(timezone=True), nullable=True) # the time slot picked (S.4); null = asap
|
||||
sales_point = Column(String, nullable=True) # the site's sales point (phase 3S, S.2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user