Skip to content

Commit 2726cc5

Browse files
authored
HGI-9420: fix missing account fields for incremental ProfitAndLossDetail (#193)
1 parent 22098c7 commit 2726cc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tap_quickbooks/quickbooks/reportstreams/ProfitAndLossDetailReport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def sync(self, catalog_entry):
242242
LOGGER.info(f"Syncing P&L of last {self.number_of_periods} periods")
243243
end_date = datetime.date.today()
244244

245-
for i in range(self.number_of_periods):
245+
for _ in range(self.number_of_periods):
246246
start_date = end_date.replace(day=1)
247247
params = {
248248
"start_date": start_date.strftime("%Y-%m-%d"),
@@ -256,6 +256,7 @@ def sync(self, catalog_entry):
256256

257257
# Get column metadata.
258258
columns = self._get_column_metadata(resp)
259+
columns += ["Account"]
259260

260261
# Recursively get row data.
261262
row_group = resp.get("Rows")

0 commit comments

Comments
 (0)