mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Set invoice date to today when cloning
This commit is contained in:
parent
6a00a11e96
commit
6fc91d165e
@ -153,6 +153,7 @@ class InvoiceController extends \BaseController {
|
||||
$invoice->id = null;
|
||||
$invoice->invoice_number = Auth::user()->account->getNextInvoiceNumber($invoice->is_quote);
|
||||
$invoice->balance = $invoice->amount;
|
||||
$invoice->invoice_date = date_create()->format('Y-m-d');
|
||||
$method = 'POST';
|
||||
$url = "{$entityType}s";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user