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
Code:
// 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