- Home
- Forum
- Community Forum
- Report bugs
- fatal error when installing Solidres version 4.0.0 Alpha
Tax on room discount missing
- gmonamour
-
Topic Author
- Offline
Less
More
7 years 5 months ago - 7 years 5 months ago #10664
by gmonamour
My site with Solidres www.gmonamour.it/
Tax on room discount missing was created by gmonamour
Hi,
it seems that the tax of the discount is missing.
I mean:
I set a tax of 10% on the solidres tax.
Now the tariff of the room has a tax of 10%. This is correct!
But if there is a discount on the price of the room there must be an amount of the tax of the discount.
On the invoice_customer_pdf.php file i have
But where is the Discount tax amount?
By this way the total tax amount in the invoice is not correct because it misses the discount in the tax.
As you can see from my screenshot the tax is not €471 but the correct amount is €290 because you have to subtract the discount to the room cost first and then you have to calculate the tax!.
Thanks a lot, best regards
it seems that the tax of the discount is missing.
I mean:
I set a tax of 10% on the solidres tax.
Now the tariff of the room has a tax of 10%. This is correct!
But if there is a discount on the price of the room there must be an amount of the tax of the discount.
On the invoice_customer_pdf.php file i have
// Total room cost
$totalPriceTaxExcl = clone $baseCurrency;
$totalPriceTaxExcl->setValue($displayData['reservation']->total_price_tax_excl);
// Total discount
$totalDiscount = clone $baseCurrency;
$totalDiscount->setValue($displayData['reservation']->total_discount);
// Room Tax amount
$roomTaxAmount = $displayData['reservation']->tax_amount;
$roomTax = clone $baseCurrency;
$roomTax->setValue($roomTaxAmount);
But where is the Discount tax amount?
By this way the total tax amount in the invoice is not correct because it misses the discount in the tax.
As you can see from my screenshot the tax is not €471 but the correct amount is €290 because you have to subtract the discount to the room cost first and then you have to calculate the tax!.
Thanks a lot, best regards
My site with Solidres www.gmonamour.it/
Last edit: 7 years 5 months ago by gmonamour.
Please Log in or Create an account to join the conversation.
- gmonamour
-
Topic Author
- Offline
7 years 5 months ago #10666
by gmonamour
My site with Solidres www.gmonamour.it/
Replied by gmonamour on topic Tax on room discount missing
Hi,
Ok, I've got it!
There was the discount pre tax setting. I saw it. But it has no effect on the old booking!
So, now, with a new booking it works fine.
Thanks
Ok, I've got it!
There was the discount pre tax setting. I saw it. But it has no effect on the old booking!
So, now, with a new booking it works fine.
Thanks
My site with Solidres www.gmonamour.it/
Please Log in or Create an account to join the conversation.
- solidres
-
- Offline
Less
More
- Posts: 2952
7 years 5 months ago #10671
by solidres
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Replied by solidres on topic Tax on room discount missing
Hi,
Old booking still keep the previous discount pre tax setting and it is not supposed to be changed.
You can change it in your table #__sr_reservations - field discount_pre_tax.
Regards,
Old booking still keep the previous discount pre tax setting and it is not supposed to be changed.
You can change it in your table #__sr_reservations - field discount_pre_tax.
Regards,
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Please Log in or Create an account to join the conversation.
Moderators: solidres