Merged changes up to 2.3.16 into unstable
[fa-stable.git] / reporting / rep113.php
index 940b9e145260b1ef13010ca9c5d9d5fabff0d22e..2e8e1dc5484509dbc28aaa39803e19fc7230ada5 100644 (file)
@@ -85,13 +85,13 @@ function print_credits()
                                $rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
                                $rep->title = _('CREDIT NOTE');
                                $rep->filename = "CreditNote" . $myrow['reference'] . ".pdf";
-                       }       
-                       $rep->SetHeaderType('Header2');
+                       }
+                   $rep->SetHeaderType('Header2');
                        $rep->currency = $cur;
                        $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();