From 08aed19f9aa3f4db29026979ff96dabf23653e4d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 26 Mar 2018 13:05:28 +0300 Subject: [PATCH] Require invoice number when importing invoices --- app/Services/ImportService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index 7c927660b964..6b6ae78dbe24 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -393,12 +393,14 @@ class ImportService } } + /* // if the invoice number is blank we'll assign it if ($entityType == ENTITY_INVOICE && ! $data['invoice_number']) { $account = Auth::user()->account; $invoice = Invoice::createNew(); $data['invoice_number'] = $account->getNextNumber($invoice); } + */ if (EntityModel::validate($data, $entityType) !== true) { return false;