Purchase Order use the same header as Sales Order
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 10 Jul 2009 21:54:12 +0000 (21:54 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 10 Jul 2009 21:54:12 +0000 (21:54 +0000)
CHANGELOG.txt
includes/db/manufacturing_db.inc
reporting/includes/doctext.inc
reporting/includes/doctext2.inc

index c75217a1e13d09ad523337a9ef5254e5d8e479c0..fa84db2bc8a2cc9cd9ee620d62a7250ed95a4010 100644 (file)
@@ -19,6 +19,13 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+10-Jul-2009 Joe Hunt
+# [0000142] Purchase Order use the same header as Sales Order
+$ /reporting/includes/doctext.inc
+  /reporting/includes/doctext2.inc
+# Bug in demand qty
+$ /includes/db/manufacturing.inc
+
 10-Jul-2009 Janusz Dobrowolski
 # [0000141] Attachment view/download bug.
 $ /admin/attachments.php
index c2f34d9be21aac04c17bd4fcde878753313fe158..1153010d725e78cb92f1b7592c999c6c6f7ba435 100644 (file)
@@ -60,7 +60,7 @@ function stock_demand_manufacture($stock_id, $qty, $demand_id, $location, $level
        }
        $stock_qty = $qoh_stock[$stock_id];
        if ($stock_qty == NULL) $stock_qty = 0;
-       if ($qty < $stock_qty) return $demand;
+       if ($qty <= $stock_qty) return $demand;
        $bom = $bom_list[$stock_id];
        if ($bom == NULL) {
                $sql = "SELECT parent, component, quantity FROM ".TB_PREF."bom WHERE parent = '$stock_id'";
index b28bb901e9e1fc4facebb117eb0e29acc7bb48eb..fdcd548429d7f361650b202dd9b052015d821656 100644 (file)
@@ -13,8 +13,16 @@ if (isset($header2type))
 {
        $doc_Cust_no = _("Cust no");
        $doc_Date = _("Date");
-       $doc_Charge_To = _("Charge To");
-       $doc_Delivered_To = _("Delivered To");
+       if ($doctype == 8) // Purchase Order
+       {
+               $doc_Charge_To = _("Order To");
+               $doc_Delivered_To = _("Charge To");
+       }
+       else
+       {
+               $doc_Charge_To = _("Charge To");
+               $doc_Delivered_To = _("Delivered To");
+       }       
        $doc_Shipping_Company = _("Shipping Company");
        if ($doctype == 9)
                $doc_Due_Date = _("Delivery Date");
index 689cbb5ea027d2961dbce7b3cea6b5ac3009c521..1b70eee4f4745a4ce9018048e60de96918a749b2 100644 (file)
@@ -13,8 +13,16 @@ if (isset($header2type))
 {
        $doc_Cust_no = "Cust no";
        $doc_Date = "Date";
-       $doc_Charge_To = "Charge To";
-       $doc_Delivered_To = "Delivered To";
+       if ($doctype == 8) // Purchase Order
+       {
+               $doc_Charge_To = "Order To";
+               $doc_Delivered_To = "Charge To";
+       }
+       else
+       {
+               $doc_Charge_To = "Charge To";
+               $doc_Delivered_To = "Delivered To";
+       }       
        $doc_Shipping_Company = "Shipping Company";
        if ($doctype == 9)
                $doc_Due_Date = "Delivery Date";