Update invoice to use invoice terms when converted from a quote
This commit is contained in:
parent
a1fcc3519a
commit
d0b06b94da
1 changed files with 3 additions and 0 deletions
|
|
@ -652,6 +652,9 @@ class InvoiceRepository extends BaseRepository
|
|||
if ($quotePublicId) {
|
||||
$clone->invoice_type_id = INVOICE_TYPE_STANDARD;
|
||||
$clone->quote_id = $quotePublicId;
|
||||
if ($account->invoice_terms) {
|
||||
$clone->terms = $account->invoice_terms;
|
||||
}
|
||||
}
|
||||
|
||||
$clone->save();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue