Topic: Cost Update - Cost was %s changed to %s x quantity on hand of %s

Hi

If a cost update is made, in the automatic comment 'Cost was %s changed to %s x quantity on hand of %s', the second '%s' only gives a rounded amount, not the real amount with decimals.

Kind Regards,
F.

Re: Cost Update - Cost was %s changed to %s x quantity on hand of %s

open /inventory/includes/db/items_trans_db.inc and  find this

$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);

and replace with user_price_dec and update it as well like below one

$cart->memo_ = sprintf(_("Cost was %s changed to %s x quantity on hand of %s"),
                    number_format2($last_cost, user_price_dec()), number_format2($new_cost, user_price_dec()), $qoh);
Subscription service based on FA
HRM CRM POS batch Themes

Re: Cost Update - Cost was %s changed to %s x quantity on hand of %s

SOLVED
Thanks !
F.

Re: Cost Update - Cost was %s changed to %s x quantity on hand of %s

Thank you guys. Committed to stable repo.

A fixed file can be downloaded here.

Joe