Skip to content

Commit

Permalink
FIX : Extrafield following between rec invoice and classic invoice (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-irvine authored Oct 18, 2024
1 parent 111e3fc commit 352bdaf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions htdocs/compta/facture/class/facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,14 @@ public function createRecurringInvoices($restrictioninvoiceid = 0, $forcevalidat
$facture->multicurrency_tx = $facturerec->multicurrency_tx;
}

if (isset($facture->array_options) && isset($facturerec->array_options)) {
foreach ($facturerec->array_options as $key => $value) {
if (isset($facture->array_options[$key])) {
$facture->array_options[$key] = $value;
}
}
}

$invoiceidgenerated = $facture->create($user);
if ($invoiceidgenerated <= 0) {
$this->errors = $facture->errors;
Expand Down

0 comments on commit 352bdaf

Please sign in to comment.