Tax on room discount missing

More
6 years 5 months ago - 6 years 5 months ago #10664 by gmonamour
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
// 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/
Attachments:
Last edit: 6 years 5 months ago by gmonamour.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #10666 by gmonamour
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

My site with Solidres www.gmonamour.it/

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #10671 by solidres
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,

Please Log in or Create an account to join the conversation.

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?