~txerpa-openerp/openerp-spain/7.0

« back to all changes in this revision

Viewing changes to l10n_es_aeat_mod130/mod130.py

  • Committer: Biel - txerpa.com
  • Date: 2014-04-14 15:39:21 UTC
  • Revision ID: biel.massot@txerpa.com-20140414153921-w1384rj7kz91nfo2
l10n_es_aeat_mod130: si es negativo o 0 tipo n

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
            else:
313
313
                vals['casilla_18'] = 0.0
314
314
                vals['result'] = vals['casilla_17']
315
 
            if vals['result'] <= 0 and report.period != '4T':
316
 
                vals['tipo_declaracion'] = "B"
317
 
            elif report.result <= 0:
 
315
            
 
316
            #if vals['result'] <= 0 and report.period == '4T':
 
317
            #    vals['tipo_declaracion'] = "B"
 
318
            #el
 
319
            if report.result <= 0:
318
320
                vals['tipo_declaracion'] = "N"
319
321
            else:
320
322
                vals['tipo_declaracion'] = "I"