From 1caf04c98ffd40afe72f0c9f435cc8472627c796 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 19 Sep 2017 08:18:16 +0200 Subject: [PATCH] Bug in rep108 (and 101) when using Journal Entry for making entries in AR account. --- includes/ui/items_cart.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ui/items_cart.inc b/includes/ui/items_cart.inc index 92cc1a46..7a19d235 100644 --- a/includes/ui/items_cart.inc +++ b/includes/ui/items_cart.inc @@ -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)) -- 2.30.2