~pedro.baeza/openerp-spain/7.0-l10n_es-refactorized

« back to all changes in this revision

Viewing changes to l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py

  • Committer: Ignacio Ibeas - Acysos S.L.
  • Date: 2014-02-16 18:24:48 UTC
  • Revision ID: ignacio@acysos.com-20140216182448-jc0omn27wq6vtghe
[FIX] l10n_es_aeat_mod340: compatibilidad nuevo programa de hacienda

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
            text += ' '+self._formatNumber(0, 11, 2)  
268
268
            #Situación del Inmueble #TODO
269
269
            text += '0'
270
 
            #Referencia Catastral #TODO 
271
 
            text += 25 *' '
272
 
            #Importe Percibido en Metálico #TODO 
273
 
            text += 15 * '0'  
274
 
            # Ejercicio ( cifras del ejercicio en el que se hubieran declarado 
275
 
            # las operaciones que dan origen al cobro ) #TODO
276
 
            text += 4 * '0' 
277
 
            #Importe percibido por transmisiones de Inmuebles sujetas a IVA. 
278
 
            #TODO
279
 
            text += 15 * '0'  
280
 
            # Blancos          
281
 
            text += 56 * ' '                                                     
 
270
            #Referencia Catastral #TODO
 
271
            text += 25*' ' 
 
272
            #Importe Percibido en Metálico #TODO
 
273
            text += 15*'0'
 
274
            #Ejercicio ( cifras del ejercicio en el que se hubieran declarado las operaciones que dan origen al cobro ) #TODO
 
275
            text += 4*'0' 
 
276
            #Importe percibido por transmisiones de Inmuebles sujetas a IVA. #TODO
 
277
            text += 15*'0'            
 
278
            #Fecha de Cobro #TODO 
 
279
            text += 8*'0'
 
280
            #Importes cobrado #TODO
 
281
            text += 13*'0'
 
282
            # Medio de pago utilizado #TODO
 
283
            text += ' '
 
284
            # Cuenta Bancaria o medio de cobro utilizado #TODO
 
285
            text += 34*' ' 
282
286
            text += '\r\n'
283
287
        assert len(text) == 502 * len(invoice_issued.tax_line_ids), _("The type 2 issued record must be 500 characters long for each Vat registry")
284
288
        return text
380
384
            # Número de registro 
381
385
            sequence_obj = self.pool.get('ir.sequence')
382
386
            text += self._formatString(sequence_obj.get(cr, uid, 'mod340'), 18)  
383
 
            text += self._formatNumber(1, 18) # Número de facturas
384
 
            text += self._formatNumber(len(invoice_received.tax_line_ids), 2)  # Número de registros (Desglose)
385
 
            text += 80*' '  # Intervalo de identificación de la acumulación
386
 
            text += ' '+self._formatNumber(0, 11, 2)  # Cuota deducible
387
 
            text += 151*' '                                                     # Blancos
 
387
            # Número de facturas
 
388
            text += self._formatNumber(1, 18) 
 
389
            # Número de registros (Desglose)
 
390
            text += self._formatNumber(len(invoice_received.tax_line_ids), 2)  
 
391
            # Intervalo de identificación de la acumulación
 
392
            text += 80*' '  
 
393
            # Cuota deducible
 
394
            text += ' '+self._formatNumber(0, 11, 2)  
 
395
            #Fecha de Pago #TODO 
 
396
            text += 8*'0'
 
397
            #Importes pagados #TODO
 
398
            text += 13*'0'
 
399
            # Medio de pago utilizado
 
400
            text += ' '
 
401
            # Cuenta Bancaria o medio de cobro utilizado #TODO
 
402
            text += 34*' ' 
 
403
            # Blancos
 
404
            text += 95*' '                                                     
388
405
            text += '\r\n'
389
406
        
390
407
        assert len(text) == 502*len(invoice_received.tax_line_ids), _("The type 2 received record must be 500 characters long for each Vat registry")