From: Joe Hunt Date: Mon, 13 Dec 2021 11:24:21 +0000 (+0100) Subject: Bug 5544: Notes from template are not used in recurring invoices. Fixed. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=761ed4535349a1cf8af1900b41eb1a99c31834f0 Bug 5544: Notes from template are not used in recurring invoices. Fixed. --- diff --git a/sales/create_recurrent_invoices.php b/sales/create_recurrent_invoices.php index ea71fd3a..b14b3056 100644 --- a/sales/create_recurrent_invoices.php +++ b/sales/create_recurrent_invoices.php @@ -46,6 +46,8 @@ function create_recurrent_invoices($customer_id, $branch_id, $order_no, $tmpl_no $doc->reference = $Refs->get_next($doc->trans_type, null, array('customer' => $customer_id, 'branch' => $branch_id, 'date' => $date)); + if (!empty($doc->Comments)) + $memo .= "\n" . $doc->Comments; $doc->Comments = $memo; foreach ($doc->line_items as $line_no=>$item) {