From 9e37cca6ce38f289b56374f6984f609360bb1e98 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 20 Jan 2013 17:22:29 +0100 Subject: [PATCH 1/1] Email of Sales Documents now use the General Contact type (fall back if no 'orders', 'invoices' contact types) --- reporting/rep107.php | 2 +- reporting/rep109.php | 2 +- reporting/rep110.php | 2 +- reporting/rep111.php | 2 +- reporting/rep113.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/reporting/rep107.php b/reporting/rep107.php index 19f590ed..94681d90 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -89,7 +89,7 @@ function print_invoices() $rep->Font(); $rep->Info($params, $cols, null, $aligns); - $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], false); + $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], true); $baccount['payment_service'] = $pay_service; $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, ST_SALESINVOICE, $contacts); $rep->NewPage(); diff --git a/reporting/rep109.php b/reporting/rep109.php index 0497392f..3251efcf 100644 --- a/reporting/rep109.php +++ b/reporting/rep109.php @@ -96,7 +96,7 @@ function print_sales_orders() $rep->Font(); $rep->Info($params, $cols, null, $aligns); - $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], false); + $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], true); $rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESORDER, $contacts); $rep->NewPage(); diff --git a/reporting/rep110.php b/reporting/rep110.php index 69457665..bfc1e4e6 100644 --- a/reporting/rep110.php +++ b/reporting/rep110.php @@ -99,7 +99,7 @@ function print_deliveries() $rep->Font(); $rep->Info($params, $cols, null, $aligns); - $contacts = get_branch_contacts($branch['branch_code'], 'delivery', $branch['debtor_no'], false); + $contacts = get_branch_contacts($branch['branch_code'], 'delivery', $branch['debtor_no'], true); $rep->SetCommonData($myrow, $branch, $sales_order, '', ST_CUSTDELIVERY, $contacts); $rep->NewPage(); diff --git a/reporting/rep111.php b/reporting/rep111.php index 89ef41d2..49036917 100644 --- a/reporting/rep111.php +++ b/reporting/rep111.php @@ -80,7 +80,7 @@ function print_sales_quotations() $rep->Font(); $rep->Info($params, $cols, null, $aligns); - $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], false); + $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], true); $rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE, $contacts); //$rep->headerFunc = 'Header2'; $rep->NewPage(); diff --git a/reporting/rep113.php b/reporting/rep113.php index ed5cc705..f38fd4c1 100644 --- a/reporting/rep113.php +++ b/reporting/rep113.php @@ -91,7 +91,7 @@ function print_credits() $rep->Font(); $rep->Info($params, $cols, null, $aligns); - $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], false); + $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], true); $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, ST_CUSTCREDIT, $contacts); $rep->NewPage(); -- 2.30.2