From: Joe Hunt Date: Sun, 20 Jan 2013 16:22:29 +0000 (+0100) Subject: Email of Sales Documents now use the General Contact type (fall back if no 'orders... X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=4138f8a9673ec2b5fad98d79b75f7ae728241502;p=textcart.git Email of Sales Documents now use the General Contact type (fall back if no 'orders', 'invoices' contact types) --- diff --git a/reporting/rep107.php b/reporting/rep107.php index 19f590e..94681d9 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 0497392..3251efc 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 6945766..bfc1e4e 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 89ef41d..4903691 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 ed5cc70..f38fd4c 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();