ffl_woo_sync.woocommerce.pickup¶
Source: apps/ffl_woo_sync/ffl_woo_sync/woocommerce/pickup.py · 1 endpoint(s)
Generated by
make api-docs— do not edit by hand.
pickup_web_order¶
POST /api/method/ffl_woo_sync.woocommerce.pickup.pickup_web_order
Auth (derived from code): Roles: Sales User / Sales Manager / Stock Manager / System Manager
Hand an in-store-pickup web order to the counter.
Opens a DRAFT POS Invoice for a firearm order — already paid, serials carried from WooCommerce where staff typed them — so the cashier can run the 4473 and Complete Order the ordinary way. An order with no regulated firearm needs no 4473 and is finished on the spot instead.
The web order deliberately STAYS in the Pending Order queue until that counter
invoice is submitted (see :func:close_web_order_on_pos_submit). Retiring it
at the click would hide the one case that needs watching: a draft opened and
abandoned, with the gun still in stock, the money still unbooked, and the
customer possibly already holding the rifle.
| arg | type | required | default | description |
|---|---|---|---|---|
woo_online_order |
string | yes | — | Woo Online Order name (must be Pending Fulfillment and addressed to this store's own FFL). |
Returns: {ok, mode: "counter"|"closed", pos_invoice, order_status}.
Permissions: Counter roles.
apps/ffl_woo_sync/ffl_woo_sync/woocommerce/pickup.py:360