Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013434
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] 09. Financial managementmajoralways2010-05-25 17:092011-07-20 18:17
ReporterALinoView Statuspublic 
Assigned Tojonalegriaesarte 
PriorityurgentResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0013434: "Deductable Rate" field in Tax window is not taken into consideration when posting Invoices

DescriptionWhen 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 ReproduceCreate 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 SolutionDocTax 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.
TagsNo tags attached.
Attached Filesdiff file icon 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
Powered by Mantis Bugtracker