From 5ab2d9fad05a032aed5f84f0d2287565f8ee887c Mon Sep 17 00:00:00 2001 From: Nilesh Pant <58652823+NileshPant1999@users.noreply.github.com> Date: Wed, 24 Jan 2024 20:52:10 +0530 Subject: [PATCH] bug fix: add org id argument in create invoice call (#153) --- apps/travelperk/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/travelperk/views.py b/apps/travelperk/views.py index bcbc1e5..cb662ee 100644 --- a/apps/travelperk/views.py +++ b/apps/travelperk/views.py @@ -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)