Bug in rep108 (and 101) when using Journal Entry for making entries in AR account.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 19 Sep 2017 06:18:16 +0000 (08:18 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 19 Sep 2017 06:18:16 +0000 (08:18 +0200)
includes/ui/items_cart.inc

index 92cc1a462c2193a30f3b0ed8d5743eacf933fa2c..7a19d23508e508c4d4e857b9d948461312848ab9 100644 (file)
@@ -407,7 +407,7 @@ class items_cart
                        foreach($cust_trans as $branch_id => $amount)
                                if (floatcmp($amount, 0))
                                        write_cust_journal($this->trans_type, $this->order_id, $branch_id, $this->tran_date,
-                                               $this->reference, -$amount, $this->rate);
+                                               $this->reference, $amount, $this->rate);
                        // update AP
                        foreach($supp_trans as $supp_id => $amount)
                                if (floatcmp($amount, 0))