ffl_core.api.gun_shop_cards¶
Source: apps/ffl_core/ffl_core/api/gun_shop_cards.py · 1 endpoint(s)
Generated by
make api-docs— do not edit by hand.
get_count¶
POST /api/method/ffl_core.api.gun_shop_cards.get_count
Auth (derived from code): Roles: Desk User
The number behind one "Needs attention" card on the Gun Shop home page.
| arg | type | required | default | description |
|---|---|---|---|---|
filters |
— | no | None |
The card's filters_json (a JSON object or its string): {"card": <key>} with key one of pending_orders, pending_4473, transfer_pickups, to_receive, web_orders. |
Returns: {"value": count, "fieldtype": "Int", "route": [...]} in the shape Frappe's custom Number Card expects; clicking the card opens route. value is 0 for a user who may not open that page or report.
apps/ffl_core/ffl_core/api/gun_shop_cards.py:116