Skip to content

Commit

Permalink
bug fix: remove negetive multiplication from expense amount (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Dec 27, 2023
1 parent 894b3bf commit 25f58a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/qbd/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def create_journal(
date=get_transaction_date(expenses, date_preference=date_preference),
account=corporate_card_name if fund_source == 'CCC' else export_settings.bank_account_name,
name=name,
amount=sum([expense.amount for expense in expenses]),
amount=sum([expense.amount for expense in expenses]) * -1,
memo=get_top_purpose(
workspace_id=workspace_id,
expense=expenses[0],
Expand Down Expand Up @@ -696,7 +696,7 @@ def create_journal_lineitems(
and export_settings.mileage_account_name else expense.category,
name=journal.name,
class_name=class_name,
amount=expense.amount * -1,
amount=expense.amount,
memo=get_expense_purpose(workspace_id, expense),
journal=journal,
expense=expense,
Expand Down

0 comments on commit 25f58a5

Please sign in to comment.