mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Require invoice number when importing invoices
This commit is contained in:
parent
2b81d7ec47
commit
08aed19f9a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user