Revision 0e34ab8f
Added by Benjamin Dauvergne almost 12 years ago
calebasse/facturation/invoice_header.py | ||
---|---|---|
172 | 172 |
for center in centers: |
173 | 173 |
if headers is not True and headers is not False and headers != center: |
174 | 174 |
continue |
175 |
files = batches_files(service, invoicing, center, |
|
176 |
batches_by_health_center[center], delete=delete, |
|
177 |
headers=headers, invoices=invoices, counter=counter) |
|
178 |
all_files.extend(files) |
|
175 |
for batch in batches_by_health_center[center]: |
|
176 |
files = batches_files(service, invoicing, center, |
|
177 |
[batch], delete=delete, |
|
178 |
headers=headers, invoices=invoices, counter=counter) |
|
179 |
all_files.extend(files) |
|
179 | 180 |
output_file = tempfile.NamedTemporaryFile(prefix='%s-invoicing-%s-' % |
180 | 181 |
(service.slug, invoicing.id), suffix='-%s.pdf' % now, delete=False) |
181 | 182 |
pdftk = PdfTk() |
Also available in: Unified diff
facturation: generate invoice headers by batches no by healthcenter
fixes #2568