Magento what is hidden_tax_amount - magento

Could somebody helpme pelase?. I see that Magento in almost all my orders is calculating a tax named hidden_tax_amount . What does this value is related with?. And how can I disable it?.
Here you can see what I'm talking about.
[hidden_tax_amount] => 4.3000
[base_hidden_tax_amount] => 4.3000
[hidden_tax_invoiced] => 4.3000
[base_hidden_tax_invoiced] => 4.3000
Edit:
Ok, I've been digging in my code and fount that this field was introduced in 1.6.0.0 (Mage/Sales/sql/sales_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php:1616) and the value is get or set here
Mage/Tax/Model/Sales/Total/Quote/Tax.php:391: $address->setShippingHiddenTaxAmount(0);
Mage/Sales/Model/Order/Invoice/Total/Tax.php:85: $totalHiddenTax += $order->getShippingHiddenTaxAmount();
And in Mage/Tax/Helper/Data.php you can find in line 1114 to 1116 the following condition
if ($current->getShippingHiddenTaxAmount() > 0) {
$taxClassAmount[0]['hidden_tax_amount'] = $current- >getShippingHiddenTaxAmount();
}
Then researching more about the issue I found that:
"hidden_tax_amount" holds the substraction of the actual tax amount (on the current order) from the tax amount that should have been applied if there was no discount http://forum.azmagento.com/how-to/grand-total-calculation-v142--82183.html .
What leads me to the point that this is due a wrong tax configuration from my side rather than a bug and is related with a shipping tax. If so, could some body point me in the correct direction please?
Thankyou very much!

For anyone looking to understand the porpouse of hidden_tax_amount let me tell you that is not a bug or a missconfiguration, it's a feature:
it is used by Magento to calculate the amount of tax that is not originally calculated when a product that has a tax is under discount.
For example, you have:
a product named "Pencil" with price of $100.00 and a tax of 16% so the final price will be $116.
a coupon code with 10% off for all the Pencils
(This is important) your store is configured to calculate the discount after tax.
The user will see a final price including tax of 104.4 that is the result of 116 - 11.6. And that is correct.
But legally you can't discount any amount from tax because your base tax is still 100 and not 104.4.
Then Magento hiddes that quantity of money in hidden_tax_amount.
For accounting porpouses this process is correct. Then you can show that value as Tax.
Hope this helps someone else!

I had to give the Magento tax/discount issue some serious thought recently.
To set this problem up, assume there are four parties involved in a transaction, the wholesaler, the retailer, the consumer and the tax man. Assume the retailer is selling an item for £100 to the consumer (including tax), the tax rate is 20% and the wholesaler is providing a 10% discount on the item
The vital point here is that the 10% discount is offered by the wholesaler, not by the retailer. The retailer will get the full £100 for the item, with the consumer paying £90 and the wholesaler making up the remaining £10.
The retailer owes tax on the full amount paid. That is, at a tax rate of 20% £15 of the £90 paid for by the consumer is tax, and £1.67 of the £10 paid by the wholesaler is tax, giving a total tax bill of £16.67 or 20% of the net price (£83.33).
When the consumer receives their invoice, it makes sense to show them only the tax that they have paid, not the total tax paid on the item. However for the retailers accounting, they need to see all the tax that is due, that is the tax due on the portion paid by the consumer paid and the tax due on the portion paid by the wholesaler.
The hidden tax is still tax which has to be paid by the retailer, but it should be hidden from the consumer, because its nothing to do with their part of the transaction.

Related

Magento - unable to refund

When attempting a full refund in Magento 1.7.0.2 (there is no Adjustment Refund or Adjustment Fee being applied) but we are receiving the following message
This Refund would exceed the amount of the original transaction.
As a test, we have a staging site setup where we have replicated and refunded the order without any issues.
Below are the order totals in Magento
Subtotal £7.49
Discount £1.12 (15% off)
Tax £2.07
Shipping £4.95
Grand Total £11.32
Logging into the Payment Provider system, show the grand total as £11.31
Any ideas about what might be happening and what we can look into would be greatly appreciated?
Refunds can only be performed if the amount is equal to or less then the original purchased amount. If it does not meet this criteria you cannot issue that refund.

Magento - How can I add a non-taxable fee to a taxable product?

We are using Magento EE 1.12. We have associated fees with individual products that cannot be taxed, however the product itself can be. The desired solution will be similar to a custom option where the fee is included on the same line item as the product and included in the product's price and therefore in the order subtotal. The only problem with a custom option is that the fee is taxed along with the product.
We've gone through several scenarios but I think the most likely solution is to use a custom option, but after the tax has been calculated we will reduce the tax to the correct amount. We tax on the subtotal and shipping. We will have access to the amount of fees so we can get the tax on that total and reduce the order tax amount.
Does this seem like a good solution? Does anyone have other ideas?
Make it a bundle product, and put in a product which is not taxable.

Total amount tax for a product

Is there a way to show the tax amount for a product. I want to show the tax amount on the product page.
For example:
The price is € 119 Euro and the the taxrate is 19%. Then a want to show the tax amount € 19 euro.
Hopefully someone can help me with this.
Gr,
Lex
yes it is possible but before you can do that you need to know the user shipping and billing data as tax calculations are based either on billing or shipping (country, region, zip) information and can be different for different locations

Magento - Apply discount on Shipping Amount

I cannot figure it out. How to apply discount to the basket amount before shipping. I see an option in Shopping Cart Price Rule "Apply to Shipping Amount" but what every amount or the way i enter it apply to the total amount not to the shipping amount.
The offer is for one product. Customer buy product A for 30 euro plus shipping but if the customer buy one more of product A he will get the second one for 20 euro + no shipping. i have solved the price but cant solve the shipping price issue.
This is actually the way it is suppose to work. I think the wording is confusing, it should be something like : "Apply Discount After Shipping Costs is added", or something like that.
Basically, setting Apply to Shipping amount to ON will make the discount work like this:
Total = (Subtotal + Shipping) - Discount Amount
While leaving the setting off will do this:
Total = (Subtotal - Discount Amount) + Shipping
In this case, if your Subtotal is lower than you discount, your Subtotal will be adjusted to 0 but the customer will still have to pay for shipping.

Magento - Product prices with and without VAT change

I have set up two tax rates based on uk + eu tax (including vat) and rest of the world tax rate (excluding vat).
All works fine and the correct tax rates show on the checkout and in the invoices but there is a problem: if you purchase something and you are from a non ey country then the frontend price reduces by 17.5% - the tax rate i have configured.
I would have thought that the prices shown on front end wouldnt change?
Any ideas?
That's a setting you can control in the admin. I believe it is called "catalog prices include tax" or something like that...
Silvo is right but I would say that this is exactly what you'd want to happen. If you are selling B2C in the UK (and many other EU countries) then you have to show the prices in the catalog inclusive of VAT. However, if your customer has registered and has a shipping address outwith the EU then you want them to be shown the price net of VAT because you shouldn't be charging them VAT.

Resources