ffl_core.api.pos_close¶
Source: apps/ffl_core/ffl_core/api/pos_close.py · 1 endpoint(s)
Generated by
make api-docs— do not edit by hand.
auto_close_open_pos¶
POST /api/method/ffl_core.api.pos_close.auto_close_open_pos
Auth (derived from code): Roles: Sales Manager / Stock Manager / System Manager
Auto-close every stale open POS shift, WITHOUT counting the drawer.
Finds every unclosed POS Opening Entry older than min_age_hours and submits a matching POS Closing Entry (card and other tenders trusted: closing amount = expected amount; the Cash row repeats the cash ledger, flagged not counted). Then leaves an uncounted Cash Drawer Close for the day in every company that has a POS Profile, unless staff already counted today. Nothing is booked for the drawer. Runs nightly from the scheduler; whitelisted for a manual force-close.
| arg | type | required | default | description |
|---|---|---|---|---|
min_age_hours |
integer | null | no | None |
Minimum opening age to close (default 1). |
Returns: {closed: [{opening, closing, grand_total}], skipped: [...], errors: [...], cash_drawer: [Cash Drawer Close names left uncounted], total_open_at_start, min_age_hours, ran_at}.
Permissions: Sales Manager / Stock Manager / System Manager.
apps/ffl_core/ffl_core/api/pos_close.py:45