VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: lostmail on July 28, 2019, 12:05:38 PM

Title: Tax & Calculation Rule Details
Post by: lostmail on July 28, 2019, 12:05:38 PM
Don`t know if it`s a template or pricing problem but when I choose "Price modifier before tax per bill" or ".....aftter tax per bill" The tax amount is not calculated separately.
It`s only the price including the tax but I need the tax separated for the rule.

Tried out several configurations but I can`t get it.

Any idea what to do here ?
Title: Re: Tax & Calculation Rule Details
Post by: lostmail on July 28, 2019, 21:47:26 PM
Tried out the official VM Demo with a produt.

It seems that VM does not show the tax separately for discounts by defalt - what is definitively wrong.

If  you give a discount in german you have to calculate with tax and show the customer tax + price discount.

If you want to give 10 € discount - it must be net. 10 € + 19% Tax. = 11,90
or 8,40 EUR + 19% Tax = 10,00

In the sample attached the tax price is not correct in relation to the total amount the customer has to pay.
That means I take more tax than allowed.

Title: Re: Tax & Calculation Rule Details
Post by: lostmail on July 28, 2019, 21:54:47 PM
...like this....

See 2nd image how the discount should be visible in cart (rule with tax)

The 3rd image shows the additional rule i have configured for the additional fee per cart which takes affect when an article is
choosen from category "Sperrgut".

As far so good but the line in cart is not correct configured to see the tax of the discount/upcharge amount.

Tried out all possible +/- but the result is always the same - without visible tax for the discount/upcharge.

The official rule for discounts/upcharges in germany is:
Product list price netto
– Discount/Upcharge
+ Tax
– sconto
= end price

To make the customer clear how the discount/upcharge is calculated i need the tax from the discount rule separated.
Title: Re: Tax & Calculation Rule Details
Post by: StefanSTS on July 29, 2019, 16:15:50 PM
The layout does not show the tax there. Not sure why, maybe it is used for other purposes and it's not wanted there.
You might want to edit default_pricelist.php of cart view and calculate the tax with the given price and the give tax manually in this loop.

foreach ($this->cart->cartData['DBTaxRulesBill'] as $rule) {
...
}

Hope that helps
Stefan
Title: Re: Tax & Calculation Rule Details
Post by: lostmail on July 31, 2019, 20:48:46 PM
hm..found the file and location where the rules are but is there a "ruleTax" or something like that ?
Can not find out how the tax is calculated and how to show it..

Some more help?
Title: Re: Tax & Calculation Rule Details
Post by: lostmail on August 03, 2019, 16:00:16 PM
Could someone make me an offer to have the tax separated in the rules-line (like shipping line) ?
Don`t know why it is missing for rules...
Title: Re: Tax & Calculation Rule Details
Post by: lostmail on August 16, 2019, 08:34:37 AM
I created now a rule and defined it only for a (hidden) Product-Category and for Countries.

I have not assigned Andy product to the category but in the cart the additional fee is calculated (see Image).

As I understand the rule it should only take affect for articles which have the category "Sperrgut" and where customer is in the defined Country.

Does this rule work like "Category AND Country" (right)  or is it "Category OR Country" (wrong) ?

the Problem is that I Need 2 different rules depending on the Country of the customer and article dependent....
Title: Re: Tax & Calculation Rule Details
Post by: lostmail on August 16, 2019, 12:15:56 PM
 :-[
It seems that the CATEGORY Setting in calculation rules have no effect.

It does not matter if I set the rule only for a category or if category field is empty ...the rule is active in both Settings ??

Is that a bug ?


Sent it in Bug reports here:
http://forum.virtuemart.net/index.php?topic=143277.0