Cost Update - Second parameter in memo was not showing decimals. Fixed.
authorJoe <joe.hunt.consulting@gmail.com>
Thu, 3 Nov 2022 07:54:40 +0000 (08:54 +0100)
committerJoe <joe.hunt.consulting@gmail.com>
Thu, 3 Nov 2022 07:54:40 +0000 (08:54 +0100)
inventory/includes/db/items_trans_db.inc

index 82084da252a773f7e3fceaf6884b1c3aabdb3f28..b4b3f3bf494bd2f22bb9e0c6c7c61f1f727fac63 100644 (file)
@@ -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_;