[account_tax_include] calculates wrong if tax included in price

Asked by TArpi

Hello,
I have OERP 6.0.2. on Ubuntu 10.10.

I installed account_tax_include (from http://doc.openerp.com/v6.0/technical_guide/account_tax_include.html), because I needed in the invoice report the tax amount of each line.

I have a product witch has tax included in price. It subtracts the double of the tax from the price, instead of once.

To reproduce: (tax: 24%)
I want to purchase 1 piece of product witch's unit price (with tax included): 12.4 EUR.
I get subtotal w/o tax : 8.06 EUR instead of 10 EUR.

Thanks,
Arpi

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
filsys
Solved:
Last query:
Last reply:
Revision history for this message
Amit Parik (amit-parik) said :
#1

Hello TArpi,

I have checked your issue.

But from v5 to v6 we have improve the functionally of addons so you can see that the account_tax_include module is already merged with account module that's why no need to install this module in v6 and trunk any more.

So the account_tax_module is not available in official addons you can use this module's functionally from account module.

You can try with only account module which is working fine.So I am closing this issue.

Thanks for understanding!

Revision history for this message
TArpi (teksearpi) said :
#2

Hello Amit Parik,

I need for a sale invoice the tax amount for each line.
For example if I sell 1 piece of product with 10 EUR (unit price), with 24% tax results a 2.4 EUR tax.
I need this 2.4 EUR to appear on the invoice line.

Until now I made this with the account_tax_include module.
Can you please tell me how can I obtain this amount. Because as I saw in the account_invoice_line it is not there.

Thank you.
Arpi

Revision history for this message
Best filsys (office-filsystem) said :
#3

Hello Arpy,
What you need is not really a tax_include.
Your example (price=10, tax=2.4) actually seems like price_unit without tax.
Even if you don't see tax column in invoice lines, they exist.
If your issue is in printed invoice (tax column in lines), yo can solve the issue by adding column
[[formatLang (l.quantity * l.invoice_line_tax_id.amount [0] * l.price_unit)]]
(for tax_exclude)
in o.invoice_line object.

Thanks

Revision history for this message
TArpi (teksearpi) said :
#4

Hello filsys,

It works perfect. That's what I need.

Thank you!
Arpi

Revision history for this message
TArpi (teksearpi) said :
#5

Thanks filsys, that solved my question.