Fixed bug [0000179] (data error in supplier allocations)
[fa-stable.git] / includes / ui / allocation_cart.inc
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);
                                
 
                                //////////////////////////////////////////////////////////////