Calling …
{{Site}}/api/method/frappe.desk.query_report.run? \
report_name=Stock+Ledger& \
filters={
"company":"Galactic Widgets LLP",
"from_date":"2020-01-01",
"to_date":"2020-12-31"
}
… gets me the data I need but in JSON format.
I want CSV, so is it possible to do something like the following?
{{Site}}/api/method/frappe.desk.query_report.run? \
report_name=Stock+Ledger& \
filters={
"company":"Galactic Widgets LLP",
"from_date":"2020-01-01",
"to_date":"2020-12-31"
}& \
format=csv
Am I right that this is the code for that RPC call?
If so It doesn’t look like alternate formatting is an option.
For what it’s worth, here’s what I am trying to do:
I need to explain/justify/document accounting and stock movements to a company accountant for the entire process from BoM, purchasing, manufacturing, sales, billing, delivery.
To do it I hoped to semi-automate the tedious job of highlighting the differences between reports taken before and after each transaction.
Manually generating the reports is time consuming, so I am trying to get csv
formatted reports from the RPC API.