Clean ups in default themes.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 16 Sep 2009 11:30:21 +0000 (11:30 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 16 Sep 2009 11:30:21 +0000 (11:30 +0000)
CHANGELOG.txt
config.php
reporting/rep101.php
themes/aqua/default.css
themes/cool/default.css
themes/default/default.css

index cff0b998d3f8c954b707fbc990eccbe5d8e9fbb2..064d4064c117ea76bbc4849377ce5559945a012e 100644 (file)
@@ -19,6 +19,13 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+16-Sep-2009 Joe Hunt
+! Clean ups in default themes.
+$ config.php
+  /themes/default/default.css
+  /themes/aqua/default.css
+  /themes/cool/default.css
+  
 15-Sep-2009 Janusz Dobrowolski/Joe Hunt
 # Fixed journal entry type and systype selectors
 # Restore of the 4 include files in types.inc
index c88489c41e971b280eccc4998ddac8286ee3696c..810620f2381702584bc09dcb73b0d01a5e9cf967 100644 (file)
@@ -107,8 +107,8 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
        /* Default border and spacing for tables */
        /* Should be moved to CSS */
 
-       $table_style    = "cellpadding=3 border=1 bordercolor='#8cacbb' style='border-collapse: collapse'";
-       $table_style2   = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'";
+       $table_style    = "cellpadding=3 border=1 bordercolor='#8cacbb' class='tablestyle'";
+       $table_style2   = "cellpadding=3 border=1 bordercolor='#cccccc' class='tablestyle2'";
 
        /* Accounts Payable */
        /* System check to see if quantity charged on purchase invoices exceeds the quantity received.
index 913c12b40f7ce42f81645e99f2b62df519b8d798..c57ab3aebe36c7ae45001a9e6ef9e6e1ce6d9b93 100644 (file)
@@ -34,12 +34,12 @@ function get_open_balance($debtorno, $to, $convert)
        $to = date2sql($to);
 
     $sql = "SELECT SUM(IF(".TB_PREF."debtor_trans.type = ".ST_SALESINVOICE.", (".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + 
-       ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_discount)";
+       ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_freight_tax + ".TB_PREF."debtor_trans.ov_discount)";
     if ($convert)
        $sql .= " * rate";
     $sql .= ", 0)) AS charges,
        SUM(IF(".TB_PREF."debtor_trans.type <> ".ST_SALESINVOICE.", (".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + 
-       ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_discount)";
+       ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_freight_tax + ".TB_PREF."debtor_trans.ov_discount)";
     if ($convert)
        $sql .= " * rate";
     $sql .= " * -1, 0)) AS credits,
@@ -48,12 +48,12 @@ function get_open_balance($debtorno, $to, $convert)
                $sql .= " * rate";
        $sql .= ") AS Allocated,
                SUM(IF(".TB_PREF."debtor_trans.type = ".ST_SALESINVOICE.", (".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + 
-       ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_discount - ".TB_PREF."debtor_trans.alloc)";
+       ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_freight_tax + ".TB_PREF."debtor_trans.ov_discount - ".TB_PREF."debtor_trans.alloc)";
     if ($convert)
        $sql .= " * rate";
     $sql .= ", 
        ((".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + ".TB_PREF."debtor_trans.ov_freight + 
-       ".TB_PREF."debtor_trans.ov_discount) * -1 + ".TB_PREF."debtor_trans.alloc)";
+       ".TB_PREF."debtor_trans.ov_freight_tax + ".TB_PREF."debtor_trans.ov_discount) * -1 + ".TB_PREF."debtor_trans.alloc)";
     if ($convert)
        $sql .= " * rate";
     $sql .= ")) AS OutStanding
@@ -72,7 +72,8 @@ function get_transactions($debtorno, $from, $to)
        $to = date2sql($to);
 
     $sql = "SELECT ".TB_PREF."debtor_trans.*,
-               (".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_discount)
+               (".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + ".TB_PREF."debtor_trans.ov_freight + 
+               ".TB_PREF."debtor_trans.ov_freight_tax + ".TB_PREF."debtor_trans.ov_discount)
                AS TotalAmount, ".TB_PREF."debtor_trans.alloc AS Allocated,
                ((".TB_PREF."debtor_trans.type = ".ST_SALESINVOICE.")
                AND ".TB_PREF."debtor_trans.due_date < '$to') AS OverDue
index 775116d94a6fdcbe5a7efb00af25ceafc89d442a..e7584a94a2ec3702edbbcaada8a4e99badb75634 100644 (file)
@@ -356,14 +356,10 @@ div.tabs a:hover {
 }
 
 .tablestyle {
-       padding: 3px;
-       border: 1px solid #8cacbb;
        border-collapse: collapse;
 }
 
 .tablestyle2 {
-       padding: 0 3px;
-       border: 1px solid #ccc;
        border-collapse: collapse;
 }
 .tablestyle_noborder {
index bf6e6eacc0f7895fa414997144914793f441d297..a2dddc9a1381f4c3b92cb44610cc39ba9ee8fd8f 100644 (file)
@@ -361,14 +361,10 @@ div.tabs a:hover {
 }
 
 .tablestyle {
-       padding: 3px;
-       border: 1px solid #cccccc;
        border-collapse: collapse;
 }
 
 .tablestyle2 {
-       padding: 0 3px;
-       border: 1px solid #ccc;
        border-collapse: collapse;
 }
 .tablestyle_noborder {
index d45f2e2ce2db45eb21aa34af168da58a373eeb99..d5d5dde0ed55809aa3120314ff315c0d88e71dc3 100644 (file)
@@ -356,14 +356,10 @@ div.tabs a:hover {
 }
 
 .tablestyle {
-       padding: 3px;
-       border: 1px solid #8cacbb;
        border-collapse: collapse;
 }
 
 .tablestyle2 {
-       padding: 3px;
-       border: 1px solid #cccccc;
        border-collapse: collapse;
 }
 .tablestyle_noborder {