Skip to content

Commit

Permalink
Revert "Merge branch 'netsuite_api_release_2024_07_12' of https://git…
Browse files Browse the repository at this point in the history
…hub.com/fylein/fyle-netsuite-api into netsuite_api_release_2024_07_12"

This reverts commit 4df84db, reversing
changes made to 447e0a8.
  • Loading branch information
ashwin1111 committed Jul 15, 2024
1 parent f358072 commit 350ca29
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,9 +144,7 @@ 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'],
'expense_created_at': expense['expense_created_at'],
'expense_updated_at': expense['expense_updated_at']
'approved_at': expense['approved_at']
}

defaults = {
Expand Down Expand Up @@ -175,6 +173,8 @@ 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': None,
'created_at': '2024-05-10T07:52:10.551260+00:00',
'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': None,
'updated_at': '2024-06-10T11:41:40.779611+00:00',
'user': {
'email': '[email protected]',
'full_name': 'Theresa Brown',
Expand Down

0 comments on commit 350ca29

Please sign in to comment.