feat: delivery areas drawn on a map: the customer pins the address (plan 6R.G)
- services/fees.py: the site's engine (shapes matched by the pin), shared cases - checkout: price_cart(pin=), delivery_areas with kind (+ geometry for shapes), venue_point in the public menu (postcodes and rules stay on the cloud) - orders: quote / create take lat / lng; online_orders.lat / lng (Alembic 0007), sent to the site with the pending orders - order app: PinMap (Leaflet + OpenStreetMap tiles), 'Pin it on the map' first when the venue drew areas, the browser's location offered; lat / lng sent - tests: cloud test_fees (pinned quote and order), order-app logic Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,8 @@ class OnlineOrder(Base):
|
||||
table_id = Column(Integer, nullable=True) # the site's table id, from a valid QR token (S.7)
|
||||
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)
|
||||
lat = Column(Float, nullable=True) # 6R.G: where the customer pinned the delivery
|
||||
lng = Column(Float, nullable=True)
|
||||
requested_for = Column(DateTime(timezone=True), nullable=True) # the time slot picked (S.4); null = asap
|
||||
party_size = Column(Integer, nullable=True) # reservations (S.6): how many guests
|
||||
sales_point = Column(String, nullable=True) # the site's sales point (phase 3S, S.2)
|
||||
|
||||
Reference in New Issue
Block a user