Calculate the costprice calculates first 'save' incorrect second 'save' correct

Started by rolandlaich, October 05, 2012, 22:17:54 PM

Previous topic - Next topic

rolandlaich

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?

apessoa

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

Milbo

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)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/



Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tomas-ss

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

Milbo

I am quite sure it is in the 2.0.20b. If not, please try the 2.0.21d
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/