04-Aug-2009 Joe Hunt
# [0000150] Logo on printed papers is placed on top of the adress rule nr 1
$ /reporting/includes/header2.inc
+# [0000145] Email sales order doesn't work if no email on branch but on customer
+$ /sales/includes/db/sales_order_db.inc
+ /reporting/rep109.php
------------------------------- Release 2.1.4 ----------------------------------
30-Jul-2009 Joe Hunt
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;
$sql = "SELECT ".TB_PREF."sales_orders.*, "
.TB_PREF."debtors_master.name, "
.TB_PREF."debtors_master.curr_code, "
+ .TB_PREF."debtors_master.email AS master_email, "
.TB_PREF."locations.location_name, "
.TB_PREF."debtors_master.payment_terms, "
.TB_PREF."debtors_master.discount, "