Changed more files with new html/css.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 27 May 2008 20:47:13 +0000 (20:47 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 27 May 2008 20:47:13 +0000 (20:47 +0000)
CHANGELOG.txt
includes/page/header.inc
purchasing/inquiry/supplier_allocation_inquiry.php
sales/credit_note_entry.php

index 90982c47ab2a947fc18594e99a6333158fadb0c8..00a7f459f1a198be8bf0a6375e8e64d448a11b46 100644 (file)
@@ -19,6 +19,12 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+27-May-2008 Joe Hunt
+# Changed more files with new html/css.
+$ /includes/page/header.inc
+  /purchasing/inquiry/supplier_allocation_inquiry.php
+  /sales/credit_note_entry.php
+  
 26-May-2008 Joe Hunt
 # Fixed many minor bugs, new ones as well as debtor_trans related.
 ! Changed to use DOCTYPE html 4.01 transitionel. Some files/css needed change.
index b8f08e6ba22ab465f5ae73043d90fb9bde6a8bab..893527e88f1823edac73a5a7217bbc2c762fcc9f 100644 (file)
@@ -104,9 +104,9 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js=""
        echo "<head><title>$title</title>";
        $local_stylesheet = $_SESSION['language']->get_stylesheet();
        echo "<meta http-equiv='Content-type' content='text/html' charset='$encoding'>";
-       echo "<link href='$local_path_to_root/themes/$theme/default.css' rel='stylesheet' type='text/css' /> \n";
+       echo "<link href='$local_path_to_root/themes/$theme/default.css' rel='stylesheet' type='text/css'> \n";
        if (file_exists($local_path_to_root. "/".$local_stylesheet))
-               echo "<link href='$local_path_to_root/$local_stylesheet' rel='stylesheet' type='text/css' /> \n";
+               echo "<link href='$local_path_to_root/$local_stylesheet' rel='stylesheet' type='text/css'> \n";
        send_scripts($js);
 
        echo "</head> \n";
index e80201393fb07ba5b6c9f770db4cbb91b6c19b1c..3e233b1477bcbbb5dc9e12b512c5d88eb7af95f2 100644 (file)
@@ -76,27 +76,27 @@ function get_transactions()
                $sql .= " AND ".TB_PREF."supp_trans.supplier_id = '" . $_POST['supplier_id'] . "'";
        if (isset($_POST['filterType']) && $_POST['filterType'] != reserved_words::get_all())
        {
-               if (($_POST['filterType'] == '1') || ($_POST['filterType'] == '2')) 
+               if (($_POST['filterType'] == '1') || ($_POST['filterType'] == '2'))
                {
                        $sql .= " AND ".TB_PREF."supp_trans.type = 20 ";
-               } 
-               elseif ($_POST['filterType'] == '3') 
+               }
+               elseif ($_POST['filterType'] == '3')
                {
                        $sql .= " AND ".TB_PREF."supp_trans.type = 22 ";
-               } 
-               elseif (($_POST['filterType'] == '4') || ($_POST['filterType'] == '5')) 
+               }
+               elseif (($_POST['filterType'] == '4') || ($_POST['filterType'] == '5'))
                {
                        $sql .= " AND ".TB_PREF."supp_trans.type = 21 ";
                }
 
-               if (($_POST['filterType'] == '2') || ($_POST['filterType'] == '5')) 
+               if (($_POST['filterType'] == '2') || ($_POST['filterType'] == '5'))
                {
                        $today =  date2sql(Today());
                        $sql .= " AND ".TB_PREF."supp_trans.due_date < '$today' ";
                }
        }
 
-       if (!check_value('showSettled')) 
+       if (!check_value('showSettled'))
        {
                $sql .= " AND (round(abs(ov_amount + ov_gst + ov_discount) - alloc,6) != 0) ";
        }
@@ -121,28 +121,28 @@ if (db_num_rows($result) == 0)
 
 /*show a table of the transactions returned by the sql */
 
-start_table("$table_style width=80%");
+start_table("$table_style width=90%");
 if ($_POST['supplier_id'] == reserved_words::get_all())
        $th = array(_("Type"), _("Number"), _("Reference"), _("Supplier"),
                _("Supp Reference"), _("Date"), _("Due Date"), _("Currency"),
-               _("Debit"), _("Credit"), _("Allocated"), _("Balance"));
-else           
+               _("Debit"), _("Credit"), _("Allocated"), _("Balance"), "");
+else
        $th = array(_("Type"), _("Number"), _("Reference"),     _("Supp Reference"), _("Date"), _("Due Date"),
-               _("Debit"), _("Credit"), _("Allocated"), _("Balance"));
+               _("Debit"), _("Credit"), _("Allocated"), _("Balance"), "");
 table_header($th);
 
 $j = 1;
 $k = 0; //row colour counter
 $over_due = false;
-while ($myrow = db_fetch($result)) 
+while ($myrow = db_fetch($result))
 {
 
        if ($myrow['OverDue'] == 1)
        {
                start_row("class='overduebg'");
                $over_due = true;
-       } 
-       else 
+       }
+       else
        {
                alt_table_row_color($k);
        }
@@ -170,7 +170,7 @@ while ($myrow = db_fetch($result))
        amount_cell($myrow["Allocated"]);
        if ($myrow["type"] == 1 || $myrow["type"] == 21 || $myrow["type"] == 22)
                $balance = -$myrow["TotalAmount"] - $myrow["Allocated"];
-       else    
+       else
                $balance = $myrow["TotalAmount"] - $myrow["Allocated"];
        amount_cell($balance);
 
@@ -179,9 +179,11 @@ while ($myrow = db_fetch($result))
        if (($myrow["type"] == 1 || $myrow["type"] == 21 || $myrow["type"] == 22) &&
                $balance > 0)
        {
-               label_cell("<a href='$path_to_root/purchasing/allocations/supplier_allocate.php?trans_no=" .    
+               label_cell("<a href='$path_to_root/purchasing/allocations/supplier_allocate.php?trans_no=" .
                        $myrow["trans_no"]. "&trans_type=" . $myrow["type"] . "'>" . _("Allocations") . "</a>");
        }
+       else
+               label_cell("");
 
        end_row();
 
index fe9bd274a7468c8cac970a4ca132817030caea59..1946aca1e339a6728e548e8db38f8e039b5dedf1 100644 (file)
@@ -113,7 +113,7 @@ function can_process()
                display_error( _("The entered reference is already in use."));
                set_focus('ref');
                $input_error = 1;
-           } 
+           }
        }
        if (!is_date($_POST['OrderDate'])) {
                display_error(_("The entered date for the credit note is invalid."));
@@ -246,7 +246,7 @@ if ($customer_error == "") {
 echo "<br><center><table><tr>";
 submit_cells('Update', _("Update"));
 submit_cells('ProcessCredit', _("Process Credit Note"));
-echo "</tr></table>";
+echo "</tr></table></center>";
 
 end_form();
 end_page();