X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep109.php;h=31a769df1114bb1ff4dc68558119897c2bd8d621;hb=9b413697aa4ca30f7f336dbf5fd04bf8caf2bc43;hp=7c57da3f3f643afd30ff6d7ba4dda7ee85c3d351;hpb=bea28752e406cf6e00ac0ae08b30c96179a7b479;p=fa-stable.git diff --git a/reporting/rep109.php b/reporting/rep109.php index 7c57da3f..31a769df 100644 --- a/reporting/rep109.php +++ b/reporting/rep109.php @@ -161,8 +161,11 @@ 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']; } + $myrow['reference'] = $i; $rep->End($email, $doc_Invoice_no . " " . $i, $myrow); } }