Skip to content

Commit

Permalink
fix primary keys for report streams (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Mar 8, 2024
1 parent 361d762 commit 8e6837a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tap_quickbooks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,19 @@ def do_discover(qb):
{
'replication-method': 'FULL_TABLE',
'reason': 'No replication keys found from the Quickbooks API'})
if sobject_name in ["GeneralLedgerCashReport","GeneralLedgerAccrualReport"]:
if sobject_name in [
"BalanceSheetReport",
"MonthlyBalanceSheetReport",
"CashFlowReport",
"DailyCashFlowReport",
"MonthlyCashFlowReport",
"GeneralLedgerAccrualReport",
"GeneralLedgerCashReport",
"ARAgingSummaryReport",
"ProfitAndLossDetailReport",
"ProfitAndLossReport",
"TransactionListReport",
]:
key_properties = []
mdata = metadata.write(mdata, (), 'table-key-properties', key_properties)

Expand Down

0 comments on commit 8e6837a

Please sign in to comment.