Revision a1a9815a
Added by Mikaël Ates about 13 years ago
| calebasse/facturation/models.py | ||
|---|---|---|
|
'''Return the currently open invoicing'''
|
||
|
if service.name != 'CMPP':
|
||
|
start_date, end_date = quarter_start_and_end_dates()
|
||
|
invoicing, created = self.get_or_create(start_date=start_date,
|
||
|
end_date=end_date, service=service)
|
||
|
invoicing, created = \
|
||
|
self.get_or_create(start_date=start_date,
|
||
|
end_date=end_date, service=service,
|
||
|
status=Invoicing.STATUS.closed)
|
||
|
else:
|
||
|
try:
|
||
|
invoicing = self.get(service=service,
|
||
Also available in: Unified diff
facturation: an invoicing for services bu CMPP are created closed.