From 5a58b118cb634490cd53cdce6d2ea7e6f1a10843 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 3 Dec 2009 08:41:34 +0000 Subject: [PATCH] Fixed bug [0000179] (data error in supplier allocations) --- CHANGELOG.txt | 4 ++++ includes/ui/allocation_cart.inc | 3 +-- purchasing/includes/db/supp_trans_db.inc | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5ddc1061..067f02a7 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/includes/ui/allocation_cart.inc b/includes/ui/allocation_cart.inc index e6163392..6d081aef 100644 --- a/includes/ui/allocation_cart.inc +++ b/includes/ui/allocation_cart.inc @@ -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); ////////////////////////////////////////////////////////////// diff --git a/purchasing/includes/db/supp_trans_db.inc b/purchasing/includes/db/supp_trans_db.inc index 2aa6d0b4..3a95a4f5 100644 --- a/purchasing/includes/db/supp_trans_db.inc +++ b/purchasing/includes/db/supp_trans_db.inc @@ -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_); -- 2.30.2