Skip to content

Commit 7174267

Browse files
authored
feat: add support for default billable in project (#887)
1 parent 2421abd commit 7174267

File tree

3 files changed

+880
-294
lines changed

3 files changed

+880
-294
lines changed

apps/sage_intacct/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def sync_projects(self) -> list:
563563
self.workspace_id, attribute_count, SYNC_UPPER_LIMIT)
564564
return
565565

566-
fields = ['CUSTOMERID', 'CUSTOMERNAME', 'NAME', 'PROJECTID', 'STATUS']
566+
fields = ['CUSTOMERID', 'CUSTOMERNAME', 'NAME', 'PROJECTID', 'STATUS', 'BILLABLEEXPDEFAULT', 'BILLABLEAPPODEFAULT']
567567

568568
latest_updated_at = self.get_latest_sync(workspace_id=self.workspace_id, attribute_type='PROJECT')
569569
is_project_import_enabled = self.is_import_enabled('PROJECT')
@@ -577,7 +577,9 @@ def sync_projects(self) -> list:
577577
for project in projects:
578578
detail = {
579579
'customer_id': project['CUSTOMERID'],
580-
'customer_name': project['CUSTOMERNAME']
580+
'customer_name': project['CUSTOMERNAME'],
581+
'default_expense_report_billable': project['BILLABLEEXPDEFAULT'] == 'true',
582+
'default_bill_billable': project['BILLABLEAPPODEFAULT'] == 'true'
581583
}
582584

583585
project_attributes.append({

0 commit comments

Comments
 (0)