Skip to content

Commit

Permalink
location support and import account bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh committed Jan 17, 2024
1 parent 281fe0b commit 2a4c5c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/business_central/exports/journal_entry/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def create_or_update_object(self, accounting_export: AccountingExport, advance_s

invoice_date = self.get_invoice_date(accounting_export=accounting_export)

account_type, account_id = self.get_account_id_type(accounting_export=accounting_export, export_settings=export_settings)
merchant = expenses[0].vendor if expenses[0].vendor else None

account_type, account_id = self.get_account_id_type(accounting_export=accounting_export, export_settings=export_settings, merchant=merchant)

journal_entry_object, _ = JournalEntry.objects.update_or_create(
accounting_export= accounting_export,
Expand Down

0 comments on commit 2a4c5c6

Please sign in to comment.