sales_report
Generate a read-only sales report showing revenue and net profit across POS, Web, and Manual channels. Filter by date, view, channel, and product type for per-order or per-product tax-classified results.
Instructions
The POS Sales Report (revenue + profit, all channels), returned UNCHANGED — columns, rows and the report_summary cards. view: "Order" (per-order), "Order Detail" (order → line drill-down) or "Product" (default here — the CPA tax-reporting view: per-line tax from ERPNext's stored item-wise tax details, tax rows classified to Sales Tax / Shipping / Unclassified fail-closed). channel: POS | Web | Manual (empty = all). product_type: "Firearms" | "Non-Firearms" (empty = all) — any OTHER value is REFUSED by the server rather than ignored (F-2: an unrecognised value used to return everything unfiltered, which reads as "no rows of that type"). Profit is net (pre-tax). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | Product | |
| channel | No | ||
| to_date | Yes | ||
| from_date | Yes | ||
| product_type | No |