Require invoice number when importing invoices
This commit is contained in:
parent
2b81d7ec47
commit
08aed19f9a
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue