mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +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->id = null;
|
||||||
$invoice->invoice_number = Auth::user()->account->getNextInvoiceNumber($invoice->is_quote);
|
$invoice->invoice_number = Auth::user()->account->getNextInvoiceNumber($invoice->is_quote);
|
||||||
$invoice->balance = $invoice->amount;
|
$invoice->balance = $invoice->amount;
|
||||||
|
$invoice->invoice_date = date_create()->format('Y-m-d');
|
||||||
$method = 'POST';
|
$method = 'POST';
|
||||||
$url = "{$entityType}s";
|
$url = "{$entityType}s";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user