← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 736004] [NEW] Error generating csb19 file

 

Public bug reported:

Hi,

I'm using 5.0.15

If a partner has a code longer than 12 characters, the method
"_individual_obligatorio_19" and "individual_opcional_19" will generate
a line that has more than 162 characters, which invalidates the file.

There are several options to fix this problem:
- show an error to the user and force him to change the code of the partner so it has less or 12 characters
- truncate the code of the partner to 12 characters. I think this is not a good choice as two partner can have the same truncated code.
- use the NIF/CIF as the code to identify the register in the csb19 file (IMHO this is the best option). The wizard should show an error to the user if any of the lines don't have the VAT set.

Anyway, the csb19 code should always check that the generated lines are
of 162 characters showing an error if the line generated has different
size.

Regards,
Manu

** Affects: openerp-spain
     Importance: Undecided
         Status: New


** Tags: 5.0

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/736004

Title:
  Error generating csb19 file

Status in OpenERP Spanish Localization Project:
  New

Bug description:
  Hi,

  I'm using 5.0.15

  If a partner has a code longer than 12 characters, the method
  "_individual_obligatorio_19" and "individual_opcional_19" will
  generate a line that has more than 162 characters, which invalidates
  the file.

  There are several options to fix this problem:
  - show an error to the user and force him to change the code of the partner so it has less or 12 characters
  - truncate the code of the partner to 12 characters. I think this is not a good choice as two partner can have the same truncated code.
  - use the NIF/CIF as the code to identify the register in the csb19 file (IMHO this is the best option). The wizard should show an error to the user if any of the lines don't have the VAT set.

  Anyway, the csb19 code should always check that the generated lines
  are of 162 characters showing an error if the line generated has
  different size.

  Regards,
  Manu



Follow ups

References