diff --git a/apps/accounting_exports/models.py b/apps/accounting_exports/models.py index e6843db9..26481eab 100644 --- a/apps/accounting_exports/models.py +++ b/apps/accounting_exports/models.py @@ -22,7 +22,7 @@ TYPE_CHOICES = ( - ('INVOICES', 'INVOICES'), + ('PURCHASE_INVOICE', 'PURCHASE_INVOICE'), ('DIRECT_COST', 'DIRECT_COST'), ('FETCHING_REIMBURSABLE_EXPENSES', 'FETCHING_REIMBURSABLE_EXPENSES'), ('FETCHING_CREDIT_CARD_EXPENENSES', 'FETCHING_CREDIT_CARD_EXPENENSES') @@ -142,6 +142,7 @@ def create_accounting_export(expense_objects: List[Expense], fund_source: str, w # Create an AccountingExport object for the expense group accounting_export_instance = AccountingExport.objects.create( + type='PURCHASE_INVOICE', workspace_id=workspace_id, fund_source=accounting_export['fund_source'], description=accounting_export,