Searchable customer/supplier selectors in reports options (if set in company prefs).
[fa-stable.git] / reporting / rep108.php
index 0247f7cc3539ef3ec2e95ff9c0900d7080e138ba..b78f5596d57c0576b953c5f4b845b7e3a6c34da7 100644 (file)
@@ -89,7 +89,7 @@ function print_statements()
        }
 
        $sql = "SELECT debtor_no, name AS DebtorName, address, tax_id, curr_code, curdate() AS tran_date FROM ".TB_PREF."debtors_master";
-       if ($customer != ALL_NUMERIC)
+       if ($customer != ALL_TEXT)
                $sql .= " WHERE debtor_no = ".db_escape($customer);
        else
                $sql .= " ORDER by name";