VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: roman5527 on August 19, 2015, 21:53:48 PM

Title: bug - modifier prices without VAT for the entire order
Post by: roman5527 on August 19, 2015, 21:53:48 PM
hi , i have problem with discount - modifier prices without VAT for the entire order.

discount is set how : modifier prices without VAT for the entire order but vm calculated discount from prices with vat.

i have joomla 3.4.3 and vm 3.0.9.4

example from invoice:
base price: € 131,76
VAT (20%): € 26,35
Discount 3%: - € 4,74   --------- it´s bad , good discount is 3,95€ .

Can you help me ?

thanks



Title: Re: bug - modifier prices without VAT for the entire order
Post by: roman5527 on August 20, 2015, 22:27:35 PM
Nobody has any idea???????
Title: Re: bug - modifier prices without VAT for the entire order
Post by: roman5527 on August 26, 2015, 12:21:29 PM
Hi, I need help with this problem. will not find one here who would like to help them know? Thank you
Title: Re: bug - modifier prices without VAT for the entire order
Post by: roman5527 on August 31, 2015, 13:19:17 PM
Good day. I need advice from someone competent.

Why the discount is calculated from the price when the tax is to be calculated from prices without taxes? Thank you
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Studio 42 on August 31, 2015, 16:54:25 PM
Hi,
I had myself bugs on calculation rules and hacked core for customers.
I don't know you're setting, but sometime the "filters" do not work and you have bad results(eg. when you have a rules without country, is applied in all countries)
The only way i can help you, is that you contact me, because i need work on your server to fix it.

Best regards,
Patrick
P.S: i hate changing VM code, i prefere wait for update, but in my case this was blocking anonymous prices with tax(an anonymous get only country set when in cart and no country is set as default in VM2 or 3).
Title: Re: bug - modifier prices without VAT for the entire order
Post by: roman5527 on September 04, 2015, 10:33:48 AM
Quote from: Studio 42 on August 31, 2015, 16:54:25 PM
Hi,
I had myself bugs on calculation rules and hacked core for customers.
I don't know you're setting, but sometime the "filters" do not work and you have bad results(eg. when you have a rules without country, is applied in all countries)
The only way i can help you, is that you contact me, because i need work on your server to fix it.

Best regards,
Patrick
P.S: i hate changing VM code, i prefere wait for update, but in my case this was blocking anonymous prices with tax(an anonymous get only country set when in cart and no country is set as default in VM2 or 3).


Thanks . I send you privat message.
Title: Re: bug - modifier prices without VAT for the entire order
Post by: roman5527 on September 09, 2015, 11:30:22 AM
Hi , I though that none of you wants to help, you know tell me where we find the code rule calculations? Thanks
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Studio 42 on September 09, 2015, 13:08:14 PM
Sorry roman, but i don't know how much time i need to fix it.
I cannot do it for free, because i need to do some test because it's not exactly same problem as me and this need perhaps 1 hour.
I hope you understand,
Patrick
Title: Re: bug - modifier prices without VAT for the entire order
Post by: roman5527 on September 09, 2015, 22:55:20 PM
Hi, Thnaks . and what the cost to repair the errors?
Title: Re: bug - modifier prices without VAT for the entire order
Post by: K&K media production on September 10, 2015, 11:32:31 AM
You are using a taxbill rule or vattax per product?

Is the discount rule a rule before tax or after tax?
Title: Re: bug - modifier prices without VAT for the entire order
Post by: roman5527 on September 10, 2015, 22:33:07 PM
Hi, for product i using vattax

and discount is DBTaxBill - before tax

Where is problem ? thanks
Title: Re: bug - modifier prices without VAT for the entire order
Post by: K&K media production on September 11, 2015, 00:07:51 AM
With VatTax and DBTaxBill rules the VatTax subtotal is reduced with the taxamount of the DBTaxBill rule. This is the logic way.

So a subtotal with tax of 110 (net 100 + 10 if you have 10% tax) and an DBTaxBill of 10% will results in an total of 99 incl. tax (net 90 + 9 tax if you have 10% tax).

This is the same like 100 without tax - 10% discount + 10% tax (100-10 = 90, 90 x 1,1 = 99).


Maybe you should use TaxBill and not VatTax.
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Studio 42 on September 11, 2015, 02:26:50 AM
Do you haven't checked all discount type?
Check first . But  it's not the first time, i have problem with VAT and discount(especially with multiple rules).
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Milbo on September 11, 2015, 16:21:16 PM
Quote from: Studio 42 on August 31, 2015, 16:54:25 PM
but sometime the "filters" do not work
They work always

Quote from: Studio 42 on August 31, 2015, 16:54:25 PM
and you have bad results(eg. when you have a rules without country, is applied in all countries)
No it is the intended result and following http://docs.virtuemart.net/manual/general-concepts/209-general.html If we would have write it the opposite way, you would have to enter all countries if it should work for all countries.


Quote from: Studio 42 on August 31, 2015, 16:54:25 PM
but in my case this was blocking anonymous prices with tax(an anonymous get only country set when in cart and no country is set as default in VM2 or 3).


First you can set a default country, just set the id of the country to the default field.
Second you can use http://extensions.virtuemart.net/vm-orders/vm-localise-detail so that even guests have directly the correct country.
Third you can use our MOSS for european taxes http://extensions.virtuemart.net/vm-orders/moss-tax-plugin-detail
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Studio 42 on September 11, 2015, 18:00:36 PM
Hi max,
Add a plugin only for this?
Why you cannot set default country to main vendor as default in VM?
I had the problem for 3 sites, because EU taxes. and splitting eu and rest of world.
And when you go in cart and return to shop, the Country is set( in OPC.)
With the new law, you cannot set cookies in EU site, then it's where so simple to use vendor country as default user country(or a setting in the config)
And checking for IP is only right when you don't use a proxy (proxy  are used by some mobile compagny as default in 3G/4G now).
QuoteQuote from: Studio 42 on August 31, 2015, 16:54:25 pm

    but sometime the "filters" do not work

They work always
And sorry when you use 2 taxes(eu+rest fo world), you have bad result if you need to force another tax in a product(this is added with the other taxes)

Check simply the forum, some advise i have see . to first add the tax then remove it with another rule !

Greets,
Patrick
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Milbo on September 11, 2015, 20:17:14 PM
Quote from: Studio 42 on September 11, 2015, 18:00:36 PM
Why you cannot set default country to main vendor as default in VM?

Quote from: Milbo on September 11, 2015, 16:21:16 PM
Quote from: Studio 42 on August 31, 2015, 16:54:25 PM
but in my case this was blocking anonymous prices with tax(an anonymous get only country set when in cart and no country is set as default in VM2 or 3).

First you can set a default country, just set the id of the country to the default field.

Quote from: Milbo on September 11, 2015, 16:21:16 PM
I had the problem for 3 sites, because EU taxes. and splitting eu and rest of world.
And when you go in cart and return to shop, the Country is set( in OPC.)
With the new law, you cannot set cookies in EU site, then it's where so simple to use vendor country as default user country(or a setting in the config)
And checking for IP is only right when you don't use a proxy (proxy  are used by some mobile compagny as default in 3G/4G now).
http://extensions.virtuemart.net/shoppers/bundle-eu-vat-id-checker-moss-tax-synchroniser-detail

QuoteQuote from: Studio 42 on August 31, 2015, 16:54:25 pm

    but sometime the "filters" do not work

They work always
And sorry when you use 2 taxes(eu+rest fo world), you have bad result if you need to force another tax in a product(this is added with the other taxes)

Check simply the forum, some advise i have see . to first add the tax then remove it with another rule !

Greets,
Patrick

See extensions.virtuemart.net, it works with euvatid check and 17 taxes. The whole costs are 89 euro
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Studio 42 on September 11, 2015, 22:41:08 PM
Hi max,
I think you don't speak from the same problem.
My taxes are working very well.
But i use default rules for most products(calculated by country EU or NOT EU).
Now, if i need to use another taxe for overide, i cannot set 2 taxes. You have no "parent taxe group" to do this and cannot have 2 taxes(calculated by country EU or NOT EU), but only one.
If you need to apply discount for a group of product for a certain period(not using category, but by product id) you cannot set another discount in same category for eg. and choose priority
I can give you more case, if you need.
Regards,
Patrick
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Milbo on September 13, 2015, 20:56:22 PM
http://docs.virtuemart.net/manual/general-concepts/207-categories.html

and

http://docs.virtuemart.net/manual/general-concepts/204-tax-and-calculation-rules-overview.html
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Studio 42 on September 13, 2015, 23:54:08 PM
Hi Max,
I know exactly how it works.
Thanks to try, or  ignore my message, i think is simplier.

Title: Re: bug - modifier prices without VAT for the entire order
Post by: Milbo on September 14, 2015, 18:09:11 PM
I doubt you know how it works. if you know how it works, you would not ask for, you would not even write the word "override".

Really read the manual,.... there is also something new for you.
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Studio 42 on September 15, 2015, 02:38:19 AM
Sorry, I don't read manual, i read the code.
Currently, the rules are get from product prices information, and set when there is a correlation in gatherEffectingRulesForProductPrice.
if ($hitsCategory and $hitsShopper and $hitsDeliveryArea and $hitsManufacturer)
then rule us set.
Now when you need to apply different rules in one category, you need to change virtuemart_manufacturers or you cannot have 2 "auto" rules.
If you had another group/filter(or use the name you prefer) products, then all this needed hoocks would be just an old nightmare.
This is same for discounts.
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Milbo on September 15, 2015, 08:23:33 AM
rules and products can have more than one category. I am sorry, I dont get it. When you create 2 tax rules without any restriction, any product uses both tax rules.
Title: Re: bug - modifier prices without VAT for the entire order
Post by: Studio 42 on September 15, 2015, 11:08:00 AM
Quote from: Milbo on September 15, 2015, 08:23:33 AM
rules and products can have more than one category. I am sorry, I dont get it. When you create 2 tax rules without any restriction, any product uses both tax rules.
It's exactly what i mean.
How to apply then one or the other rule ?
Title: Re: bug - modifier prices without VAT for the entire order
Post by: roman5527 on October 02, 2015, 11:29:48 AM
Good day .

I need to display a price without tax since it is a wholesale.
I set the tax as a tax on the entire order and treble functions properly. But on the invoice for items it is now dan 0% .what is wrong should be there 20%. how to set up?