VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: slutsker on April 22, 2012, 21:07:52 PM

Title: all prices in admin inventory view equals 0
Post by: slutsker on April 22, 2012, 21:07:52 PM
VM 2.0.6
joomla 2.5.4

when i look at my products  in VM admin panel - i see prices
but when i look at them in in stock view of admin panel (maybe it is called inventory) all prices are 0

so in administrator/index.php?option=com_virtuemart&view=product   i see products and prices
and in administrator/index.php?option=com_virtuemart&view=inventory all prices are 0
Title: Re: all prices in admin inventory view equals 0
Post by: slutsker on April 23, 2012, 12:19:44 PM
am i only one to face this problem?

what prices are checked on in you VM 2.0.6 admin panel? 
i checked on only sales price
Title: Re: all prices in admin inventory view equals 0
Post by: teobgeno on April 23, 2012, 17:14:18 PM
No you are not the only one.

At administrator/components/com_virtuemart/views/inventory/view.html.php

Modify this line
$product->product_price_display = $currencydisplay->priceDisplay($product->product_price,'',false);

to
$product->product_price_display = $currencydisplay->priceDisplay($product->product_price,'',1,false);
Title: Re: all prices in admin inventory view equals 0
Post by: slutsker on April 23, 2012, 21:54:48 PM
thank u a lot! :)

p.s. updating VM is very interisting! :(

Title: Re: all prices in admin inventory view equals 0
Post by: Milbo on April 24, 2012, 01:13:41 AM
Thank you for this fix. I directly add it.
Title: Re: all prices in admin inventory view equals 0
Post by: Milbo on April 24, 2012, 01:23:53 AM
Ha that was fun, I directly added a column which shows directly the value of your stock.
Title: Re: all prices in admin inventory view equals 0
Post by: Giannis86 on June 28, 2012, 10:48:17 AM
Quote from: Milbo on April 24, 2012, 01:23:53 AM
Ha that was fun, I directly added a column which shows directly the value of your stock.


could you please share how you did that? I really need this function for my accountant