sales_history_report
Run a sales receipt and item sales history report by specifying a date range, company, and user. Supports advanced filter overrides for custom criteria.
Instructions
Run the Diaspark sales receipt / item sales history report (pos/point_of_sale_report/sales_receipt_with_item_report). Dates use YYYY/MM/DD format. Use raw_overrides for any of the report's other criteria fields (str1-str60, all1-all30, multiselect1-30, dec1-10, list1-10, etc).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | Defaults to 1 | |
| end_date | No | Transaction date range end (dt2), format YYYY/MM/DD | |
| company_id | No | Defaults to 7 | |
| start_date | No | Transaction date range start (dt1), format YYYY/MM/DD | |
| document_id | No | Report definition id, defaults to 2679 | |
| raw_overrides | No | Advanced: map of any other <tag> names in the criteria XML to raw values |