More sales documents available for printing from inquiry page.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 19 Oct 2008 19:59:31 +0000 (19:59 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 19 Oct 2008 19:59:31 +0000 (19:59 +0000)
reporting/includes/header2.inc
sales/inquiry/customer_inquiry.php

index 84d93e1e738236ae21b34a0d4b5a49a379084c2d..07c73f9677db6c49c496e9dfc1d5a540ab76279e 100644 (file)
                if (isset($bankaccount['bank_name']))
                        $this->Text($mcol, $bankaccount['bank_name'], $mcol2);
                $this->NewLine();
-               $this->TextWrapLines($mcol, $mcol2 - $mcol, $bankaccount['bank_address']);
+               if (isset($bankaccount['bank_address']))
+                       $this->TextWrapLines($mcol, $mcol2 - $mcol, $bankaccount['bank_address']);
                $this->row = $adrline;
                if (isset($bankaccount['bank_account_name']))
                        $this->Text($mcol2, $bankaccount['bank_account_name']);
index 1e2aa7f18bdcbd08a46565ba96593955572b4b30..bbe6f9a81182608d52622522ee61e7d4e97de182 100644 (file)
@@ -264,7 +264,7 @@ if (db_num_rows($result) == 0)
        echo $gl_trans_str;
 
        label_cell($edit_page=='' ? '' :        "<a href='$edit_page'>" . _('Edit') . '</a>');
-       if ($myrow['type'] == 10 || $myrow['type'] == 11)
+       if ($myrow['type'] != 12) // customer payment printout not defined yet.
                label_cell(print_document_link($myrow['trans_no'], _("Print"), true, $myrow['type']));
        else
                label_cell("");