Merge pull request #32247 from atm-irvine/fix_missing_error_cron_createrecurringinvoice

Added new error message for CRON createRecurringInvoice
This commit is contained in:
Laurent Destailleur
2024-12-05 18:14:40 +01:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -1395,6 +1395,7 @@ class FactureRec extends CommonInvoice
$nb_create++;
$this->output .= $langs->trans("InvoiceGeneratedFromTemplate", $facture->ref, $facturerec->ref)."\n";
} else {
$this->output .= $langs->trans("InvoiceGeneratedFromTemplateError", $facture->ref, $facturerec->ref, $this->error)."\n";
$this->db->rollback("createRecurringInvoices Process invoice template id=".$facturerec->id.", ref=".$facturerec->ref);
}

View File

@@ -404,6 +404,7 @@ InvoiceAutoValidate=Validate invoices automatically
GeneratedFromRecurringInvoice=Generated from template recurring invoice %s
DateIsNotEnough=Date not reached yet
InvoiceGeneratedFromTemplate=Invoice %s generated from recurring template invoice %s
InvoiceGeneratedFromTemplateError=Error Invoice %s generated from recurring template invoice %s : %s
GeneratedFromTemplate=Generated from template invoice %s
WarningInvoiceDateInFuture=Warning, the invoice date is higher than current date
WarningInvoiceDateTooFarInFuture=Warning, the invoice date is too far from current date