VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: rolandlaich on October 05, 2012, 22:17:54 PM

Title: Calculate the costprice calculates first 'save' incorrect second 'save' correct
Post by: rolandlaich on October 05, 2012, 22:17:54 PM
VM 2.0.x - 2.0.12: I create a new product, add title, apply 19% VatTax rule, enter final price 10 €, check 'Calculate the costprice' and save: the resulting cost price is 10 € (wrong) and the final price is then 11.9 € (wrong). If I enter again final price 10 €, check 'Calculate the costprice' and save: Now the cost price is 8.40336 € (correct) and final price remains 10 € (correct).

Am I doing wrong or is the calculation buggy?
Title: Re: Calculate the costprice calculates first 'save' incorrect second 'save' correct
Post by: apessoa on November 03, 2012, 16:18:39 PM
the same happens to me. Always have to save twice so that the price is correct

J 2.5.7 and VM 2.0.12f
Title: Re: Calculate the costprice calculates first 'save' incorrect second 'save' correct
Post by: Milbo on November 03, 2012, 16:55:20 PM
I fixed this issue. The reason is that it was taking the values of the table. Is changed, i dont know if it is already in the latest 2.0.12, but it is in 2.1 (in svn)
Title: Re: Calculate the costprice calculates first 'save' incorrect second 'save' correct
Post by: Lehtóri on December 11, 2012, 15:22:23 PM
any hotfix available?
Title: Re: Calculate the costprice calculates first 'save' incorrect second 'save' correct
Post by: luisch125 on December 11, 2012, 18:04:25 PM
Same problem here.
Title: Re: Calculate the costprice calculates first 'save' incorrect second 'save' correct
Post by: Milbo on December 11, 2012, 20:17:05 PM
Maybe it is in the new 2.0.15c, but maybe only in the vm2.1.
Title: Re: Calculate the costprice calculates first 'save' incorrect second 'save' correct
Post by: tomas-ss on May 29, 2013, 14:57:46 PM
Is there any hotfix for this?

We have a customer which would like this function to work, it's not a good excuse to say "just type in the same thing twice as the system requires you to do so" :)

Upgrading to a newer version is not possible as the template we use have been designed for 2.08.

The must be a solution to this issue?

Best regards
Title: Re: Calculate the costprice calculates first 'save' incorrect second 'save' correct
Post by: Milbo on June 12, 2013, 14:16:45 PM
I am quite sure it is in the 2.0.20b. If not, please try the 2.0.21d