Openbravo Issue Tracking System - Modules
View Issue Details
0020836ModulesTax Report Launcherpublic2012-06-22 12:232012-06-22 12:24
psanjuan 
jonalegriaesarte 
highmajoralways
newopen 
20Ubuntu 8.04.1
 
 
0020836: End user should be able to configure the encoding type to be used before launching the Tax Report Launcher
End user should be able to configure the encoding type to be used before launching the Tax Report Launcher
Launch the 303 tax report for the organization "F&B España" realize that an error message is shown after importing the file in the AEAT web.
The error is:
Fichero incorrecto. El registro en lugar de 303 y ser de 1351 bytes, tiene 303 y/o es de 1352 bytes
Corríjalo, por favor

Change the Organization name as "FB Madrid" realize that no error is shown and the file can be imported in the web without any problem.

Same applies to other tax reports, not just 303.
So far we have workaround the problem by replacing rare charaters as described below:

Sería cambiar la Ñ y la Ç por un espacio en blanco
y todas las tildes por su vocal correspondiente

 String validString(String str) {
    String st = str.toUpperCase();
    st = st.replace('Á', 'A');
    st = st.replace('É', 'E');
    st = st.replace('Í', 'I');
    st = st.replace('Ó', 'O');
    st = st.replace('Ú', 'U');
    st = st.replace('Ü', 'U');
    return st.replaceAll("[^A-Z0-9ÑÇ]", " ");
  }


No tags attached.
Issue History
2012-06-22 12:23psanjuanNew Issue
2012-06-22 12:23psanjuanAssigned To => jonalegriaesarte
2012-06-22 12:24psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3564#r3564

There are no notes attached to this issue.