Project

General

Profile

« Previous | Next » 

Revision 2562d590

Added by Serghei Mihai over 12 years ago

facturation: function and template used to generate the invoice details renamed

Closes #3130

View differences:

calebasse/facturation/invoice_header.py
pass
raise
def details_per_year(service, invoicing,
header_service_template = 'facturation/bordereau-%s.html',
header_template = 'facturation/bordereau-details-par-annee.html',
delete = False):
def price_details(service, invoicing,
header_service_template = 'facturation/bordereau-%s.html',
header_template = 'facturation/prices-details.html',
delete = False):
context = {'invoicings': invoicing.get_stats_per_price_per_year()}
return render_to_pdf_file((header_service_template % service.slug,
header_template),
......
service = invoicing.service
now = datetime.datetime.now()
output_file = None
all_files = [details_per_year(service, invoicing)]
all_files = [price_details(service, invoicing)]
try:
if service.name == 'CMPP':
batches_by_health_center = build_batches(invoicing)

Also available in: Unified diff