diff --git a/tap_xero/streams.py b/tap_xero/streams.py index 7ef1cc2..0ef4573 100644 --- a/tap_xero/streams.py +++ b/tap_xero/streams.py @@ -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)