News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

VAT is calculated incorrectly after upgrade

Started by stensbo, January 24, 2019, 11:46:39 AM

Previous topic - Next topic

stensbo

Thanks - jjk

Please try to change your discount rule to 'Price modifier before tax per bill' and set your VAT rule to 'Tax per bill' - this is "normal" for B2B customer... and then attach your screenshot -  to see if you get the correct VAT amount / total VAT amount


jjk

If you use 'Price modifier after tax' rule set to -10%, this happens:
The discount is based on net price with VAT, the tax amount is recalculated based on the new net price. And the result are correct numbers.  I think you should just use it and it solves your problem.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

stensbo


StefanSTS

Quote from: stensbo on May 09, 2019, 16:10:31 PM
and set your VAT rule to 'Tax per bill' - this is "normal" for B2B customer...

Is it normal? I must have done something really wrong the last few years.

Maybe you could use VAT tax per product instead and prepare your invoice in a way that it shows what you want.

Regards
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

jjk

Quote from: stensbo on May 09, 2019, 17:23:07 PM
... but that rule is not 'per bill'

The 25% tax rule is a tax per bill rule. See attached screenshot. A tax per product would show in the product row next to the Quantity column.

Quote from: StefanSTS on May 09, 2019, 20:06:39 PM
Is it normal? I must have done something really wrong the last few years.

B2B VAT tax per bill is common practice in EU countries, because both, the net amount and the tax amount have to be on the invoice to allow pre-tax deduction for a business customer. At least for invoices above 250 Euro (due to EU Regulations). However, if the invoice includes products with different VAT percentages, it becomes more complicated. (But VM can handle that, too)
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

StefanSTS

Quote from: jjk on May 09, 2019, 23:11:29 PM
B2B VAT tax per bill is common practice in EU countries, because both, the net amount and the tax amount have to be on the invoice to allow pre-tax deduction for a business customer. At least for invoices above 250 Euro (due to EU Regulations). However, if the invoice includes products with different VAT percentages, it becomes more complicated. (But VM can handle that, too)

You can achieve that with VAT tax per product too. No need to use a tax that is called different. Especially using VAT tax and deducting another tax, as I have seen in places, to show the net is not necessary. Especially if you sell B2B and B2C on the same site that is complicating things for no reason.

The attached invoice is all done with VAT tax per product and shows everything you need for invoices over 250 Euro.

Regards
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

stensbo

#21
@jjk
QuoteThe 25% tax rule is a tax per bill rule. See attached screenshot

Yes but I meant that the discount rule  'Price modifier after tax' is not a PER BILL rule.

If I do as you suggested the discount is displayed as a strikethrough the price and the discounted price is displayed - you don't tell your costumer what discount they get - see screenshot of cart  'tax per bill- price modifier after tax' and order email confirmation screenshot 'order tax per bill- price modifier after tax'   

AND what if you have 2 discount rules this way  ??? then cart looks like this screeshot 'with 2 price modifire after tax' - this is not good..

I know that the discount rules that is NOT per bill is working and gives the correct VAT amount.

We need the discount calculations rules per bill like it worked back in version before upgrade to 3.4.x  please se screenshot 'Price modifier before tax per bill'  and you can see what I mean.

stensbo

@StefanSTS
QuoteMaybe you could use VAT tax per product instead and prepare your invoice in a way that it shows what you want.

Thanks but we do not do invoices in virtuemart - maybee same can be done with order email confirmation...
If discount rules per bill is used together with VAT TAX per product -  amounts is displayed incl. VAT  - that is why we have used tax per bill and discount rules per bill.

Milbo

Stensbo, thank you for your good bug report.

Please test this version http://dev.virtuemart.net/attachments/1163/com_virtuemart.3.4.5.10057_package_or_extract.zip

I fixed some notices and so I know it could not work as expected. Please try the version above.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

stensbo

#24
Thanks Milbo,

Have tested with 3.4.5.10057 - :'( but I do not get correct VAT amount  - please try to add 1 to cart  joom.danrider.dk/index.php/wear/skirt-knock-rock-detail  and view cart then you can see calculation  - or see attached screenshot

jjk

Just curious - what are the settings for your shipment and payment fees? Both shown tax amounts for these don't look correct to me either.
For a total of 169,63 you would owe the Danish Skat kontor 33,93 €.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

stensbo

I downloaded demo version and have not changed settings for these - did not think they where affecting calculation of vat/dis on product - of course total amounts they will affect Yes. I will just disable them so we don't get confused.

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/

stensbo

Thanks Milbo - I have tested with 3.4.5.10059 -  8)
I can now confirm that if you use

Calculations rule for VAT: 'Tax per bill'
Calculations rule for discount: -% 'Price modifier before tax'
Calculations rule for discount: -% 'Price modifier before tax per bill'

..you get correct amounts for product/VAT/discount and correct Total amounts for product/VAT

..but Total discount amount is incorrect when you use both discount rules at the same time, we often do that - please see screenshot -
checked in old orderconfirmations and this have been present a long time back, but I haven't noticed it before now.

Milbo

omg.

I just thought about to write "But it may not correctly work for both kind of discount rules applied in one bill."

Okey, you have it extra complex. Lets see what I can do. Anyway time for a rewrite of the calculator, next time.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/