Skip to content

Commit

Permalink
comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh committed Jan 17, 2024
1 parent 2a4c5c6 commit aed2a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/business_central/exports/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_expense_purpose(lineitem: Expense, category: str, advance_setting: Advan

return purpose

def get_location_id_or_none(accounting_export: AccountingExport, lineitem: Expense):
def get_location_id(accounting_export: AccountingExport, lineitem: Expense):
location_id = None

location_setting: MappingSetting = MappingSetting.objects.filter(
Expand Down
2 changes: 1 addition & 1 deletion apps/business_central/exports/purchase_invoice/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def create_or_update_object(self, accounting_export: AccountingExport, advance_s
).first()

description = self.get_expense_purpose(lineitem, lineitem.category, advance_setting)
location_id = self.get_location_id_or_none(accounting_export, lineitem)
location_id = self.get_location_id(accounting_export, lineitem)

purchase_invoice_lineitem_object, _ = PurchaseInvoiceLineitems.objects.update_or_create(
purchase_invoice_id=purchase_invoice.id,
Expand Down

0 comments on commit aed2a9e

Please sign in to comment.