X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcreate_recurrent_invoices.php;h=b14b30569dc10ec1716fd60999cbcf713d5ec7d7;hb=761ed4535349a1cf8af1900b41eb1a99c31834f0;hp=ea71fd3a903d421d8f51a7739ae6e1c3555afa09;hpb=75a6c36f067b8a728934f0f89ba33381a2bbec06;p=fa-stable.git 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) {