Fixed in revision 203 for 5.0 and in revision 225 for 6.0. The second solution has been implemented: truncate the code of the partner to 12 characters (the last 12 characters). It is the easiest to code. I don't want the first one, force the user to change the partner code, because in the ERP could be a lot of documents using this partner code and it is better not change it. The third solution is good, but I don't know if we must have the NIF/CIF for all the partners to send 19 and 58 payment orders.
Now the length of the lines are checked when the file is computed for the all 4 types of Spanish payments: 19, 58, 32 and 34. -- 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: Fix Committed 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 _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

