Retrieve the value for tax calculation as that of the currency

Registered by hbto [Vauxoo] http://www.vauxoo.com

Actually it is only available to have a Tax that is not dependent on the time, Why is It is not correct?:
i.e.,
-- You are on March 20,
-- your Tax is 15%,
-- you make and invoice and then,
-- the law changes and the tax is 20%,
-- you have to keep doing invoices,
"-- you have two options --",
one, change the name of the tax, and the percentual value of the tax, or add more tax with the right names and the values,
but, if you add a way to keep the track of the value changes of the tax per dates basis as that of the currency, you could, easily just add a line for the day and the value, be it, fixed, percentual, balance or python code. and you keep with only one tax that is applied based on the time.

So this way if you know law changes from a day on, you just has to add a single line and the one who is going to invoice, if not aware of the changes, it is not prone to errors. Another example, is when you have to many products depending on that tax is changing, if there are many products, it could be a onerous job to done, with this solution the work is reduced again to just change/add a single line, and from that day on, it is applied.

when you have 10 or 20 customers, is imposible attend all of them in the ame date only to apply an update on taxes.

Somebody could complain about the refund invoice. this has two point of view, even more, but as far as I know you could be winning or losing money because of the change of the tax and the tax rate to be considered to apply to the refund invoice, so one way to address the issue is relating the refund invoice to the date of the invoice you are refunding, so that way you could be refunding your invoice at the same amount rate of that day. but this a way of addressing this issue there could be other more elegant way of doing it.

There are a branch linked with the proof of concept, the branch only has related the account module, replace you current link to account module an link this to try it.

The changes on this branche aren't doing anything else than show the new models necesaries for the change. you can use a diff command on linux to see _only_this changes.

I will attach a "bzr diff" result done on my main branch.

So this way if you know law changes from a day on, you just has to add a single line and the one who is going to invoice, if not aware of the changes, it is not prone to errors. Another example, is when you have to many products depending on that tax is changing, if there are many products, it could be a onerous job to done, with this solution the work is reduced again to just change/add a single line, and from that day on, it is applied.

Somebody could complain about the refund invoice. this has two point of view, even more, but as far as I know you could be winning or losing money because of the change of the tax and the tax rate to be considered to apply to the refund invoice, so one way to address the issue is relating the refund invoice to the date of the invoice you are refunding, so that way you could be refunding your invoice at the same amount rate of that day. but this a way of addressing this issue there could be other more elegant way of doing it.

Conclusion:

OpenERP must be prepared for the future not only in technical ways even in functional ways, in _all_ countries around the world the laws around the taxes can change the value for a tax, your ERP system must be prepared to manage this changes around the dates.

Blueprint information

Status:
Complete
Approver:
Nhomar - Vauxoo
Priority:
Undefined
Drafter:
hbto [Vauxoo] http://www.vauxoo.com
Direction:
Needs approval
Assignee:
Javier Duran
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Nhomar - Vauxoo

Sprints

Whiteboard

- bzr diff results from my main addons branch:
- http://openerp.org.ve/blueprints/account.diff

Some notes:

  - Maybe the taxes should depend on the fiscal year or periods, not dates. So we don't have problems with countries that let use dates not in the fiscal period of the invoice.

  - On Spain, when making refund invoices, the original taxes must be used. For example if sent a client an invoice for 1000 euro + 160 taxes on May, on June (when the tax change to 18%) I detect that the invoice was wrong (it should be 500 euro) and create a refund invoice for the client (500 euro plus taxes), it should use the original taxes (16%) not the current taxes (for example 18%).

- Ok, excelent. Is like our cuntry, BTW make it dependent for fiscal year or period will restrict to an exact date, in Venezuela, it could or couldn't be the right choice, i.e last year VAT changes twice on diferent dates with refer at all to periods, only dates (the law refers only to "From this date the tax will be this other" not "From this period the tax will be this other" ), obviously, it should be cnfigurable, and in code must be calculable th period where it must be used ("for the countries where it is the case!"), what do you think?

- Doing it by date is a one_solution_fits_all approach because if country A changes its taxes based in year (2011), country B changes its taxes based in periods (01/2011) and Country C changes its taxes based in dates (01/01/2011), then using the date 01/01/2011 fits all the different based ways of tax changes, 'cause 01/01/2011 is the begining of fiscal year 2011, the beginning of period 01/2011 and of course is the same date.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.