Skip to content

Commit 21cd282

Browse files
authored
Prefer coltitle (#185)
1 parent fb9a4e6 commit 21cd282

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,6 @@ cython_debug/
152152
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
153153
# and can be added to the global gitignore or merged into this file. For a more nuclear
154154
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
155-
#.idea/
155+
#.idea/
156+
.DS_Store
157+
.vscode/

tap_quickbooks/quickbooks/reportstreams/BaseReport.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ def _get_column_metadata(self, resp, schema=None):
3737
LOGGER.info(f"Metadata for col {column.get('ColTitle')} not found, skipping.")
3838
continue
3939
# append col to columns
40-
columns.append(schema.get(col_type))
40+
col_title = column.get("ColTitle")
41+
if col_title in schema.values():
42+
columns.append(col_title.replace(" ", ""))
43+
else:
44+
columns.append(schema.get(col_type))
4145
else:
4246
if column.get("ColTitle") == "Memo/Description":
4347
columns.append("Memo")

tap_quickbooks/quickbooks/reportstreams/english_schemas/GeneralLedgerReportFields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"rate": "Rate",
1717
"account_name": "Account",
1818
"split_acc": "Split",
19-
"inv_date": "Invoice Date",
19+
"inv_date": "InvoiceDate",
2020
"is_ar_paid": "A/RPaid",
2121
"is_ap_paid": "A/PPaid",
2222
"is_cleared": "Clr",

0 commit comments

Comments
 (0)