Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013434 | Openbravo ERP | 09. Financial management | public | 2010-05-25 17:09 | 2011-07-20 18:17 |
Reporter | ALino | ||||
Assigned To | jonalegriaesarte | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
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. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | PATCH_13434.diff (6,010) 2011-01-18 11:31 https://issues.openbravo.com/file_download.php?file_id=3502&type=bug | ||||
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 | bug_revision_view_page.php?bugnote_id=0033705#r1431 | ||
2011-01-18 11:34 | psanjuan | Note Edited: 0033705 | bug_revision_view_page.php?bugnote_id=0033705#r1432 | ||
2011-01-18 11:34 | psanjuan | Type | defect => feature request | ||
2011-07-20 18:17 | dalsasua | Assigned To | dalsasua => jonalegriaesarte |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|