Skip to content

Commit

Permalink
fix params for balance sheet report (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Aug 27, 2024
1 parent f82177e commit a947244
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tap_xero/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def sync(self, ctx):
to_date = to_date.strftime("%Y-%m-%d")
if self.tap_stream_id == "budgets":
self.filter_options.update(dict(DateFrom=from_date, DateTo=to_date))
elif self.tap_stream_id == "reports_balance_sheet":
self.filter_options.update(dict(date=from_date, timeframe="MONTH"))
else:
self.filter_options.update(dict(fromDate=from_date, toDate=to_date))
records = _make_request(ctx, self.tap_stream_id, self.filter_options)
Expand Down

0 comments on commit a947244

Please sign in to comment.