Skip to content

Commit

Permalink
bug fix: add org id argument in create invoice call (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Jan 24, 2024
1 parent 3a69a16 commit 5ab2d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/travelperk/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def create(self, request, *args, **kwargs):
invoice_lineitems_data = request.data.pop('lines')

# Create or update Invoice and related line items
invoice = Invoice.create_or_update_invoices(request.data)
invoice = Invoice.create_or_update_invoices(request.data, kwargs['org_id'])
invoice_linteitmes = InvoiceLineItem.create_or_update_invoice_lineitems(invoice_lineitems_data, invoice)

create_expense_in_fyle(kwargs['org_id'], invoice, invoice_linteitmes)
Expand Down

0 comments on commit 5ab2d9f

Please sign in to comment.