From: Joe Date: Thu, 3 Nov 2022 07:54:40 +0000 (+0100) Subject: Cost Update - Second parameter in memo was not showing decimals. Fixed. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=cb87a3aa610b60d8fdd55c1a76dde1d225abe991 Cost Update - Second parameter in memo was not showing decimals. Fixed. --- diff --git a/inventory/includes/db/items_trans_db.inc b/inventory/includes/db/items_trans_db.inc index 82084da2..b4b3f3bf 100644 --- a/inventory/includes/db/items_trans_db.inc +++ b/inventory/includes/db/items_trans_db.inc @@ -61,7 +61,7 @@ function stock_cost_update($stock_id, $material_cost, $labour_cost, $overhead_co if (empty($memo_)) $cart->memo_ = sprintf(_("Cost was %s changed to %s x quantity on hand of %s"), - number_format2($last_cost, 2), number_format2($new_cost), $qoh); + number_format2($last_cost, user_price_dec()), number_format2($new_cost, user_price_dec()), $qoh); else $cart->memo_ = $memo_;