Merged changes from main CVS up to 2.1.5
[fa-stable.git] / reporting / rep109.php
index 00b06d2ef1f2c513bcf288a527f8e419f9fe6162..31a769df1114bb1ff4dc68558119897c2bd8d621 100644 (file)
@@ -161,6 +161,8 @@ 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;