Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0031744Localization Pack: SpainMulti Dimensional Tax Report Cash VATpublic2015-12-17 15:262016-02-09 11:38
ngarcia 
markmm82 
urgentmajoralways
closedfixed 
5
 
 
vmromanos
39850
OBPS
0031744: Multidimensional Tax Report Cash VAT is empty report if the Tax Rate filter is used
Multidimensional Tax Report Cash VAT is empty report if the Tax Rate filter is used. The tax rate name is passed as parameter instead of the ID
As group admin role:
   Launch the Multidimensinal Tax Report Cash VAT, configure the filters in order to get some values there
   Select one of the tax rates shown there
   Launch the report again with the same filters but adding the tax rate in the Tax Rate filter
   Check the report is empty
No tags attached.
related to defect 0031890 closed markmm82 Multidimensional Tax Report is empty report if the Tax Rate filter is used 
Issue History
2015-12-17 15:26ngarciaNew Issue
2015-12-17 15:26ngarciaRegression date => 2016-01-21
2015-12-17 15:26ngarciaSupport ticket => 39850
2015-12-17 15:26ngarciaOBNetwork customer => Yes
2015-12-17 15:27ngarciaAssigned To => Triage Finance
2015-12-17 15:28ngarciaIssue Monitored: networkb
2015-12-17 15:34ngarciaDescription Updatedbug_revision_view_page.php?rev_id=10505#r10505
2015-12-18 10:45ngarciaRegression date2016-01-21 =>
2015-12-18 10:45ngarciaResolution time => 1453330800
2015-12-23 16:02markmm82Statusnew => scheduled
2015-12-28 15:00markmm82Note Added: 0083013
2015-12-31 13:12vmromanosAssigned ToTriage Finance => markmm82
2016-01-14 12:57vmromanosIssue cloned0031890
2016-01-14 12:57vmromanosRelationship addedrelated to 0031890
2016-01-14 13:03hgbotCheckin
2016-01-14 13:03hgbotNote Added: 0083295
2016-01-14 13:03hgbotStatusscheduled => resolved
2016-01-14 13:03hgbotResolutionopen => fixed
2016-01-14 13:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.invoiceTaxReportEnhanced30.cashvat/rev/14458e7d47664ae57c8789a6c49b4bb92b02b1aa [^]
2016-01-14 13:05vmromanosReview Assigned To => vmromanos
2016-01-14 13:05vmromanosNote Added: 0083297
2016-01-14 13:05vmromanosStatusresolved => closed
2016-01-14 13:07ngarciaIssue cloned0031891
2016-02-09 11:38eugeniIssue Monitored: eugeni

Notes
(0083013)
markmm82   
2015-12-28 15:00   
Fixes Issue 31744: Fixed options of the autogenerated Tax Rate combo.
Each time the Organization combo fire the onchange event, the Tax Rate combo is populated with Tax Rates for this organization. The HTML source code for the combo was incorrect: inside the option the value attribute was setted with the text of the Tax Rate instead of the tax rate ID.
For this reason when the report was used filtering by the Tax rate, an incorrect parameter was submitted and no results obtained.

Several changes was made to return not only the names of the Tax Rates, also the IDs inside
modules\org.openbravo.module.invoiceTaxReportEnhanced30.cashvat\src\org\openbravo\module\invoiceTaxReportEnhanced30\cashvat\ad_reports\OBMTRCV_InvoiceTaxReportJR.java

Test Plan
As group admin role:
   Launch the Multidimensinal Tax Report Cash VAT, configure the filters in order to get some values there
    From Date: 24-12-2014
    To Date: today
    Organization: F&B International Group
    Tax Rate: blank
    Click the HTML format button.
    Notice report have several rows and Tax rates.
   Select one of the tax rates shown there
    Tax Rate: Sales Exempt
   Launch the report again with the same filters but adding the tax rate in the Tax Rate filter
   Check the report return only results for the selected tax rate.
(0083295)
hgbot   
2016-01-14 13:03   
Repository: erp/pmods/org.openbravo.module.invoiceTaxReportEnhanced30.cashvat
Changeset: 14458e7d47664ae57c8789a6c49b4bb92b02b1aa
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Thu Jan 14 11:25:33 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.invoiceTaxReportEnhanced30.cashvat/rev/14458e7d47664ae57c8789a6c49b4bb92b02b1aa [^]

Fixed bug 31744: Tax and Withholding combo doesn't filter

Solution partially based on m.molina@nectus.com one.

Each time the Organization combo fire the onchange event, the Tax Rate combo is populated with Tax Rates for this organization. The HTML source code for the combo was incorrect: inside the option the value attribute was setted with the text of the Tax Rate instead of the tax rate ID.
For this reason when the report was used filtering by the Tax rate, an incorrect parameter was submitted and no results obtained.


The fixes properly populates the tax rate and withholding combos with ID and name.
It uses ScrollableResults and session clears to avoid running out of memory.
It uses LinkedHashMap to store the id-value in the right order.

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/invoiceTaxReportEnhanced30/cashvat/ad_reports/OBMTRCV_InvoiceTaxReportJR.java
---
(0083297)
vmromanos   
2016-01-14 13:05   
Solution based on markmm82 one.

Code review + testing OK.

Available in Multidimensional Tax Report Cash VAT 1.0.100 (or higher)