Closed jlvanhulst closed 4 months ago
@jlvanhulst This is great! I'd be meaning to get around to writing something like this to make QBO's report output more useful. I support adding it in the next release, but obviously that decision is @ej2's.
Report features are lacking in this library. Ultimately I would like to add report objects for all of the QBO reports. Those objects could have alternate ways of accessing the data.
That said, if @jlvanhulst is interested in putting together a PR I will review it.
Happy to look at that over the next few weeks. The current code supports all types of reports as far as I have seen, they all seem to follow the same structure.
347-453-7686
On Wed, Jan 3, 2024 at 3:15 PM Edward Emanuel @.***> wrote:
Report features are lacking in this library. Ultimately I would like to add report objects for all of the QBO reports. Those objects could have alternate ways of accessing the data.
That said, if @jlvanhulst https://github.com/jlvanhulst is interested in putting together a PR I will review it.
— Reply to this email directly, view it on GitHub https://github.com/ej2/python-quickbooks/issues/325#issuecomment-1875915380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFPPQ6RABTUR3W4BZAJHP73YMW36LAVCNFSM6AAAAAA6AR7UYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVHEYTKMZYGA . You are receiving this because you were mentioned.Message ID: @.***>
The report API is pretty powerful but the resulting JSON imposing. I could not find an easy processor. The class below converts the report JSON in an multi dimensional array that could go straight to xls or google sheets with a single line of code. Is there an interest of adding this to the codebase? (In that case I would have to add a test, which does not seem too hard)
Example:
def getProfitandloss(client): report = client.get_report('ProfitAndLoss', qs = { "date_macro":'This Fiscal Year-to-date', "accounting_method":'Accrual',"summarize_column_by":'Month'}) return convertReport(report).mainArray
class convertReport:
Converts a Quickbooks report Json in a spreadsheet like Array