Code cleanup.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 8 Nov 2008 22:19:12 +0000 (22:19 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 8 Nov 2008 22:19:12 +0000 (22:19 +0000)
sales/inquiry/customer_allocation_inquiry.php
sales/inquiry/customer_inquiry.php

index b82dda856eae43a6d0025e5d159f84dfe4ad0ccb..6d6d656f94ef68e70ea1a35b6b6285e9c2ab8e4c 100644 (file)
@@ -188,17 +188,8 @@ function fmt_credit($row)
                ."trans.ov_freight + trans.ov_freight_tax + "
                ."trans.ov_discount) - trans.alloc,6) != 0) ";
        }
-
-//    $sql .= " ORDER BY trans.tran_date";
-
-/*
-if (db_num_rows($result) == 0)
-{
-       display_note(_("The selected customer has no transactions for the given dates."), 1, 1);
-} else {
-*/
-//     start_table("$table_style width='80%'");
 //------------------------------------------------------------------------------------------------
+
 $cols = array(
        _("Type") => array('type'=>'spec', 'fun'=>'systype_name'),
        _("Number") => array('type'=>'spec', 'fun'=>'view_link'),
index db516ee0c7f5e8e382011be8f1a7b8265f463dc6..aa6dd6cec51f3d440ba69f1475c083dc4408806a 100644 (file)
@@ -146,11 +146,6 @@ function fmt_credit($row)
        return $value>0 ? price_format($value) : '';
 }
 
-function gl_link($row)
-{
-       return get_gl_view_str($row["type"], $row["trans_no"]);
-}
-
 function alloc_link($row)
 {
        if ($row['type'] == 10)