Skip to content

Commit

Permalink
feat: handle posted at (#91)
Browse files Browse the repository at this point in the history
* handle posted at

* added spent at to approved at

* bump ber
  • Loading branch information
anishfyle authored Nov 12, 2024
1 parent 93ab5af commit 3e3edd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ def __construct_expenses_objects(self, expenses: List[dict]) -> List[dict]:
'file_ids': expense['file_ids'],
'spent_at': self.__format_date(expense['spent_at']),
'approved_at': self.__format_date(expense['report']['last_approved_at']) if 'report' in expense and expense['report'] else None,
'posted_at': self.__format_date(posted_at) if posted_at else None,
'posted_at': self.__format_date(posted_at) if posted_at else self.__format_date(expense['spent_at']),
'is_posted_at_null': False if posted_at else True,
'expense_created_at': expense['created_at'],
'expense_updated_at': expense['updated_at'],
'source_account_type': expense['source_account']['type'],
Expand Down
2 changes: 1 addition & 1 deletion connector/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='fyle-integrations-platform-connector',
version='1.39.2',
version='1.39.3',
author='Shwetabh Kumar',
author_email='[email protected]',
description='A common platform connector for all the Fyle Integrations to interact with Fyle Platform APIs',
Expand Down

0 comments on commit 3e3edd7

Please sign in to comment.