Fixed bug [0000179] (data error in supplier allocations)
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 3 Dec 2009 08:41:34 +0000 (08:41 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 3 Dec 2009 08:41:34 +0000 (08:41 +0000)
CHANGELOG.txt
includes/ui/allocation_cart.inc
purchasing/includes/db/supp_trans_db.inc

index 5ddc106106fb837302298c9a3d724762601ac05c..067f02a748b0fabcd4bca30c6827464b6bfe3ef3 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+03-Dec-2009 Janusz Dobrowolski
+# Fixed bug [0000179] data error in supplier allocations
+$ /includes/ui/allocation_cart.inc
+
 ------------------------------- Release 2.2.1 ----------------------------------
 02-Dec-2009 Janusz Dobrowolski
 # Fixed insert null data values for bank_trans
index e6163392b877497cfc3cc273d89168b35cc3fc71..6d081aefb97e1646f2621a56b8bd281441123373 100644 (file)
@@ -192,8 +192,7 @@ class allocation
                                exchange_variation($this->type, $this->trans_no,
                                        $alloc_item->type, $alloc_item->type_no, $this->date_,
                                        $alloc_item->current_allocated,
-                                       $sup ? PT_SUPPLIER 
-                                               : PT_CUSTOMER);
+                                       $this->person_type ? PT_SUPPLIER : PT_CUSTOMER);
                                
 
                                //////////////////////////////////////////////////////////////
index 2aa6d0b420dd954b756648804313ba23ca5464f8..3a95a4f502eae85bb604901ab2886dcd1ef1a124 100644 (file)
@@ -37,7 +37,6 @@ function add_supp_trans($type, $supplier_id, $date_, $due_date, $reference, $sup
 
        if ($err_msg == "")
                $err_msg = "Cannot insert a supplier transaction record";
-error_log($sql);
 
        db_query($sql, $err_msg);
        add_audit_trail($type, $trans_no, $date_);