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 the invoice number is blank we'll assign it
|
||||||
if ($entityType == ENTITY_INVOICE && ! $data['invoice_number']) {
|
if ($entityType == ENTITY_INVOICE && ! $data['invoice_number']) {
|
||||||
$account = Auth::user()->account;
|
$account = Auth::user()->account;
|
||||||
$invoice = Invoice::createNew();
|
$invoice = Invoice::createNew();
|
||||||
$data['invoice_number'] = $account->getNextNumber($invoice);
|
$data['invoice_number'] = $account->getNextNumber($invoice);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (EntityModel::validate($data, $entityType) !== true) {
|
if (EntityModel::validate($data, $entityType) !== true) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user