ffl_core.api.pos_serial¶
Source: apps/ffl_core/ffl_core/api/pos_serial.py · 1 endpoint(s)
Generated by
make api-docs— do not edit by hand.
get_pos_reserved_serial_nos¶
POST /api/method/ffl_core.api.pos_serial.get_pos_reserved_serial_nos
Auth (derived from code): Requires read permission on POS Invoice (Frappe DocType permission check).
Serials held by submitted, not-yet-consolidated POS Invoices (override).
Replaces ERPNext's serial_no.get_pos_reserved_serial_nos for the POS page's add-to-cart check. Same result as upstream, except a POS Invoice that has been consolidated into a Sales Invoice no longer reserves its serials: the stock ledger already reflects that sale.
| arg | type | required | default | description |
|---|---|---|---|---|
filters |
— | yes | — | Dict (or JSON string) with item_code and warehouse. |
Returns: List of serial numbers reserved by open POS tickets, net of open return tickets.
Permissions: Same gates as upstream: POS Invoice read, and select on the warehouse.
apps/ffl_core/ffl_core/api/pos_serial.py:25