Fee CN/DN

This commit is contained in:
2026-06-17 00:08:52 +02:00
parent ee1cb3e7fb
commit a8102d513f
5 changed files with 38 additions and 8 deletions

View File

@@ -1017,6 +1017,9 @@ class Purchase(
logger.info("PROCESS_INVOICE:%s",action)
invoice = purchase.create_invoice(lots,action)
if not invoice:
logger.info(
"PROCESS_INVOICE_NO_INVOICE: purchase=%s action=%s",
getattr(purchase, 'id', None), action)
continue
if action == 'prov':
invoice.reference = 'Provisional'
@@ -1028,6 +1031,7 @@ class Purchase(
if invoices:
cls._save_invoice(invoices,prepayment)
return invoices
@classmethod
def _save_invoice(cls, invoices,prepayment=None):