Skip to content

Commit

Permalink
Merge branch 'netsuite_api_release_2024_07_12' of https://github.com/…
Browse files Browse the repository at this point in the history
…fylein/fyle-netsuite-api into netsuite_api_release_2024_07_12
  • Loading branch information
Ashutosh619-sudo committed Jul 15, 2024
2 parents 447e0a8 + afb4d68 commit 4df84db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/fyle/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ def create_expense_objects(expenses: List[Dict], workspace_id, skip_update: bool
expense_data_to_append = {
'claim_number': expense['claim_number'],
'report_title': expense['report_title'],
'approved_at': expense['approved_at']
'approved_at': expense['approved_at'],
'expense_created_at': expense['expense_created_at'],
'expense_updated_at': expense['expense_updated_at']
}

defaults = {
Expand Down Expand Up @@ -173,8 +175,6 @@ def create_expense_objects(expenses: List[Dict], workspace_id, skip_update: bool
'file_ids': expense['file_ids'],
'spent_at': expense['spent_at'],
'posted_at': expense['posted_at'],
'expense_created_at': expense['expense_created_at'],
'expense_updated_at': expense['expense_updated_at'],
'fund_source': SOURCE_ACCOUNT_MAP[expense['source_account_type']],
'verified_at': expense['verified_at'],
'custom_properties': expense['custom_properties'],
Expand Down
4 changes: 2 additions & 2 deletions tests/test_fyle/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
'name': 'Administration'
},
'cost_center_id': 23166,
'created_at': '2024-05-10T07:52:10.551260+00:00',
'created_at': None,
'creator_user_id': 'usVN2WTtPqE7',
'currency': 'USD',
'custom_fields': [
Expand Down Expand Up @@ -180,7 +180,7 @@
'tax_group': None,
'tax_group_id': None,
'travel_classes': [],
'updated_at': '2024-06-10T11:41:40.779611+00:00',
'updated_at': None,
'user': {
'email': '[email protected]',
'full_name': 'Theresa Brown',
Expand Down

0 comments on commit 4df84db

Please sign in to comment.