From 299015daab779504db4aa715b9f2ff9673728abd Mon Sep 17 00:00:00 2001 From: Renan Butkeraites Date: Thu, 12 Sep 2024 20:15:53 -0300 Subject: [PATCH] Replicate logic from FULL_TABLE to INCREMENTAL sync (#116) --- .../quickbooks/reportstreams/TransactionListReport.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tap_quickbooks/quickbooks/reportstreams/TransactionListReport.py b/tap_quickbooks/quickbooks/reportstreams/TransactionListReport.py index 355efc2..d477a50 100644 --- a/tap_quickbooks/quickbooks/reportstreams/TransactionListReport.py +++ b/tap_quickbooks/quickbooks/reportstreams/TransactionListReport.py @@ -172,7 +172,15 @@ def sync(self, catalog_entry): # Zip columns and row data. for raw_row in output: - row = dict(zip(columns, raw_row)) + row = {} + for c, v in zip(columns, raw_row): + if isinstance(v, dict): + row[c] = v.get("value") + if "id" in v: + row[f"{c}Id"] = v.get("id") + else: + row[c] = v + if not row.get("Amount"): # If a row is missing the amount, skip it continue