mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix for #808 Set date to today when cloning
This commit is contained in:
parent
a705c61d47
commit
2f2081b4b0
@ -554,14 +554,13 @@ class InvoiceRepository extends BaseRepository
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$clone->invoice_number = $invoiceNumber ?: $account->getNextInvoiceNumber($clone);
|
$clone->invoice_number = $invoiceNumber ?: $account->getNextInvoiceNumber($clone);
|
||||||
|
$clone->invoice_date = date_create()->format('Y-m-d');
|
||||||
|
|
||||||
foreach ([
|
foreach ([
|
||||||
'client_id',
|
'client_id',
|
||||||
'discount',
|
'discount',
|
||||||
'is_amount_discount',
|
'is_amount_discount',
|
||||||
'invoice_date',
|
|
||||||
'po_number',
|
'po_number',
|
||||||
'due_date',
|
|
||||||
'is_recurring',
|
'is_recurring',
|
||||||
'frequency_id',
|
'frequency_id',
|
||||||
'start_date',
|
'start_date',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user