Project

General

Profile

« Previous | Next » 

Revision 0e34ab8f

Added by Benjamin Dauvergne almost 13 years ago

facturation: generate invoice headers by batches no by healthcenter

fixes #2568

View differences:

calebasse/facturation/invoice_header.py
for center in centers:
if headers is not True and headers is not False and headers != center:
continue
files = batches_files(service, invoicing, center,
batches_by_health_center[center], delete=delete,
headers=headers, invoices=invoices, counter=counter)
all_files.extend(files)
for batch in batches_by_health_center[center]:
files = batches_files(service, invoicing, center,
[batch], delete=delete,
headers=headers, invoices=invoices, counter=counter)
all_files.extend(files)
output_file = tempfile.NamedTemporaryFile(prefix='%s-invoicing-%s-' %
(service.slug, invoicing.id), suffix='-%s.pdf' % now, delete=False)
pdftk = PdfTk()

Also available in: Unified diff