Skip to content

Commit

Permalink
Merge pull request #32247 from atm-irvine/fix_missing_error_cron_crea…
Browse files Browse the repository at this point in the history
…terecurringinvoice

Added new error message for CRON createRecurringInvoice
  • Loading branch information
eldy authored Dec 5, 2024
2 parents 9ec4575 + 3aad5fd commit addefdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/compta/facture/class/facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,7 @@ public function createRecurringInvoices($restrictioninvoiceid = 0, $forcevalidat
$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);
}

Expand Down
1 change: 1 addition & 0 deletions htdocs/langs/en_US/bills.lang
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit addefdf

Please sign in to comment.