formatting

This commit is contained in:
Frederik Jaeckel 2024-11-21 14:34:17 +01:00
parent 0b2bada596
commit 08b8768dd4
4 changed files with 11 additions and 22 deletions

View file

@ -38,10 +38,9 @@ class XReport(Report):
invoice_string = template.render(edoc_versions[data['edocument']])
file_name = slugify('%(date)s-%(descr)s' % {
'date': IrDate.today().isoformat().replace('-', ''),
'descr': invoice.rec_name,
},
max_length=100, word_boundary=True, save_order=True)
'date': IrDate.today().isoformat().replace('-', ''),
'descr': invoice.rec_name},
max_length=100, word_boundary=True, save_order=True)
if data['as_zip'] is True:
return (