Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0013434 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
feature request | [Openbravo ERP] 09. Financial management | major | always | 2010-05-25 17:09 | 2011-07-20 18:17 | |||||||
Reporter | ALino | View Status | public | |||||||||
Assigned To | jonalegriaesarte | |||||||||||
Priority | urgent | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0013434: "Deductable Rate" field in Tax window is not taken into consideration when posting Invoices | |||||||||||
Description | When defining a new Tax Rate, it is possible to fill the Deductable Rate field, which is described in help by: "It is the deductable percentage". However, if a tax with a rate of 20% and a Deductable rate of 5% is defined, when posting the invoice, the total amount is posted as deductable. The expected behaviour should be to post only 5% as deductable, being the remaining 15% posted as expense. | |||||||||||
Steps To Reproduce | Create a new Tax Rate. Set the Rate to 20. Set the Deductable Rate to 5. Create a new Purchase Invoice, add one line, and use this new Tax Rate. Complete and Post the invoice. | |||||||||||
Proposed Solution | DocTax should have an extra field, deductibleRate (int) (0 by default). In DocInvoice.java, method loadTaxes() could take the deductibleRate of the tax into consideration. This variable should be used when creating facts in method createFacts(). If tax is not deductible, don't use the deductibleRate field. If tax is deductible: 1)multiply the LineNetAmt by the deductibleRate and call the createLine() method with this value only. 2)call the createLine() method once more and use the value of LineNetAmt*(rate - deductableRate) to be posted as an expense. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | PATCH_13434.diff [^] (6,010 bytes) 2011-01-18 11:31 [Show Content] | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0033704) dalsasua (reporter) 2011-01-18 11:31 |
This is achievable in the following way: Create a summary tax rate with two rates bellow: one deductable, and one non-deductable. For example, for the rate A of 20%, you can make it deductible just in a 25%. Then create: Tax Rate A (Summary) |-> Tax Rate A.Deduct. Rate: 5%. IsDeductable='Y' |-> Tax Rate A.NonDedcut. Rate: 15%. IsDeductable='N' Nevertheless, to achieve what you mention, you can use the NON TESTED attached patch. |
(0033705) psanjuan (manager) 2011-01-18 11:32 edited on: 2011-01-18 11:34 |
It is not that easy to manage not 100% VAT deductable. Before a much more deeper research is made I'd hide "Deductable Rate" field to avoid confusion or to keep as it is but informative, no logic business behind. Changed to Feature Request. |
Issue History | |||
Date Modified | Username | Field | Change |
2010-05-25 17:09 | ALino | New Issue | |
2010-05-25 17:09 | ALino | Assigned To | => dalsasua |
2010-06-01 14:14 | vmromanos | Severity | critical => major |
2010-06-29 08:48 | balamurugan | Assigned To | dalsasua => balamurugan |
2011-01-18 11:31 | dalsasua | Note Added: 0033704 | |
2011-01-18 11:31 | dalsasua | File Added: PATCH_13434.diff | |
2011-01-18 11:32 | dalsasua | Assigned To | balamurugan => dalsasua |
2011-01-18 11:32 | psanjuan | Note Added: 0033705 | |
2011-01-18 11:33 | psanjuan | Note Edited: 0033705 | View Revisions |
2011-01-18 11:34 | psanjuan | Note Edited: 0033705 | View Revisions |
2011-01-18 11:34 | psanjuan | Type | defect => feature request |
2011-07-20 18:17 | dalsasua | Assigned To | dalsasua => jonalegriaesarte |
Copyright © 2000 - 2009 MantisBT Group |