Email of Sales Documents now use the General Contact type (fall back if no 'orders...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 20 Jan 2013 16:22:29 +0000 (17:22 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 20 Jan 2013 16:22:29 +0000 (17:22 +0100)
reporting/rep107.php
reporting/rep109.php
reporting/rep110.php
reporting/rep111.php
reporting/rep113.php

index 19f590ede16052e0eb9c7ac48153d4e0a045021a..94681d9010e20f2203b04cd37efae6a419708ad3 100644 (file)
@@ -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();
index 0497392fba0f0cb6df11a3e5cdad3b5b53b2e24d..3251efcf5cc2bbc068b432eae3dc2e97e9680b0a 100644 (file)
@@ -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();
 
index 69457665fa19911d929f2afb9ac8ba2d8c6d458d..bfc1e4e6ccc4850b23b92172c42a62e046a93c2f 100644 (file)
@@ -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();
 
index 89ef41d2149ec3ca430e3d70f9d39b7e8d5a93c8..49036917db934d915f88835d7a04836e87e09d0e 100644 (file)
@@ -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();
index ed5cc705cc6a40534fe0f772bd65c4a72ad4e8fb..f38fd4c19e3805b655ea8b28f093758d3323a430 100644 (file)
@@ -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();