mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:24:30 -04:00
Update invoice to use invoice terms when converted from a quote
This commit is contained in:
parent
a1fcc3519a
commit
d0b06b94da
@ -652,6 +652,9 @@ class InvoiceRepository extends BaseRepository
|
|||||||
if ($quotePublicId) {
|
if ($quotePublicId) {
|
||||||
$clone->invoice_type_id = INVOICE_TYPE_STANDARD;
|
$clone->invoice_type_id = INVOICE_TYPE_STANDARD;
|
||||||
$clone->quote_id = $quotePublicId;
|
$clone->quote_id = $quotePublicId;
|
||||||
|
if ($account->invoice_terms) {
|
||||||
|
$clone->terms = $account->invoice_terms;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$clone->save();
|
$clone->save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user