Skip to content

Commit

Permalink
Bug fix for Qbo bill refund (#609)
Browse files Browse the repository at this point in the history
* Support for refund for Bill module

* linting

* Test cases and comment resolved

* added more tests

* making test case better

* corrected test

* corrected fixture

* corrected test

* spent_at test fixed

* linting fixed

* bug fix for refund for bill

* made changes

* making safe code

* made correct changes

* remove comma
  • Loading branch information
Ashutosh619-sudo authored May 14, 2024
1 parent 0997099 commit ac60bda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/workspaces/apis/export_settings/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def update(self, instance, validated):
expense_group_settings['import_card_credits'] = False

if (
workspace_general_settings.get('corporate_credit_card_expenses_object') == 'JOURNAL ENTRY'
workspace_general_settings.get('corporate_credit_card_expenses_object') in ('JOURNAL ENTRY', 'BILL')
or (map_merchant_to_vendor and workspace_general_settings['corporate_credit_card_expenses_object'] == 'CREDIT CARD PURCHASE')
or (workspace_general_settings.get('reimbursable_expenses_object') in ('JOURNAL ENTRY', 'EXPENSE'))
or (workspace_general_settings.get('reimbursable_expenses_object') in ('JOURNAL ENTRY', 'EXPENSE', 'BILL'))
):
expense_group_settings['import_card_credits'] = True

Expand Down

0 comments on commit ac60bda

Please sign in to comment.