From 71af8385cd546d7c5c009be1cc993029a52b8f8f Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 1 Nov 2022 20:25:55 +0100 Subject: [PATCH] Bug. Dimensions on credit note should also be set on balance accounts. Fixed. --- sales/includes/db/sales_credit_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/includes/db/sales_credit_db.inc b/sales/includes/db/sales_credit_db.inc index 0bdbf707..7d8a3ca8 100644 --- a/sales/includes/db/sales_credit_db.inc +++ b/sales/includes/db/sales_credit_db.inc @@ -229,7 +229,7 @@ function add_gl_trans_credit_costs($order, $order_line, $credit_no, $date_, $stock_entry_account = $stock_gl_code["inventory_account"]; } - $total += add_gl_trans_std_cost(ST_CUSTCREDIT, $credit_no, $date_, $stock_entry_account, 0, 0, + $total += add_gl_trans_std_cost(ST_CUSTCREDIT, $credit_no, $date_, $stock_entry_account, $dim, $dim2, "", ($unit_cost * $order_line->qty_dispatched), PT_CUSTOMER, $order->customer_id, "The stock side (or write off) of the cost of sales GL posting could not be inserted"); -- 2.30.2