mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Bug: Due date not updated when copying invoice #1557
This commit is contained in:
parent
2c6f8d0b4f
commit
be4dbe5195
@ -101,6 +101,7 @@ class InvoiceController extends BaseController
|
||||
$invoice->id = $invoice->public_id = null;
|
||||
$invoice->is_public = false;
|
||||
$invoice->invoice_number = $account->getNextNumber($invoice);
|
||||
$invoice->due_date = null;
|
||||
$invoice->balance = $invoice->amount;
|
||||
$invoice->invoice_status_id = 0;
|
||||
$invoice->invoice_date = date_create()->format('Y-m-d');
|
||||
@ -536,7 +537,7 @@ class InvoiceController extends BaseController
|
||||
$versionsJson = [];
|
||||
$versionsSelect = [];
|
||||
$lastId = false;
|
||||
//dd($activities->toArray());
|
||||
|
||||
foreach ($activities as $activity) {
|
||||
if ($backup = json_decode($activity->json_backup)) {
|
||||
$backup->invoice_date = Utils::fromSqlDate($backup->invoice_date);
|
||||
|
Loading…
x
Reference in New Issue
Block a user