X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep109.php;h=31a769df1114bb1ff4dc68558119897c2bd8d621;hb=95303d7b5280820af76ddbd8908b120813f1e763;hp=c5faf7692b4c7aa3cdb21e73acea1aabf54139f4;hpb=ad96cd0abbfd826592b851b8e0cb6d89e450fdf4;p=fa-stable.git diff --git a/reporting/rep109.php b/reporting/rep109.php index c5faf769..31a769df 100644 --- a/reporting/rep109.php +++ b/reporting/rep109.php @@ -161,9 +161,12 @@ function print_sales_orders() if ($myrow['contact_email'] == '') { $myrow['contact_email'] = $branch['email']; + if ($myrow['contact_email'] == '') + $myrow['contact_email'] = $myrow['master_email']; $myrow['DebtorName'] = $branch['br_name']; } - $rep->End($email, $doc_Invoice_no . " " . $myrow['reference'], $myrow); + $myrow['reference'] = $i; + $rep->End($email, $doc_Invoice_no . " " . $i, $myrow); } } if ($email == 0)