ej2 / python-quickbooks

A Python library for accessing the Quickbooks API.
MIT License
407 stars 195 forks source link

Query transactions, filtered by date range #288

Closed PeteLambert89 closed 1 year ago

PeteLambert89 commented 1 year ago

Hi there,

I'm trying to figure out the SDK.

I'm attempting to query expenses for a business. Ideally filtered by a date range, and by expense type.

But I can't find a "Transaction" or "Expense" object... I assume I'm missing something obvious but I've been poring over the code to no avail.

Any help is appreciated!

Thanks,

chrisnicholls commented 1 year ago

You probably want the Purchase object. I’m typing this on mobile so might have something off but it would look something like:


from quickbooks.objects.purchase import Purchase

purchases = Purchase.where(“TxnDate >= ‘2022-12-01’”, qb=client)```
PeteLambert89 commented 1 year ago

Thanks! Awesome.

On Dec 18, 2022, at 5:34 PM, Chris Nicholls @.***> wrote:



You probably want the Purchase object. I’m typing this on mobile so might have something off but it would look something like:

purchases = Purchase.where(“TxnDate >= ‘2022-12-01’”, qb=client)```

— Reply to this email directly, view it on GitHubhttps://github.com/ej2/python-quickbooks/issues/288#issuecomment-1356958774, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZ4X4PDWBLQ7P2BPJV4KCSLWN63THANCNFSM6AAAAAATCX6TTU. You are receiving this because you authored the thread.Message ID: @.***>