Merge pull request #36527 from FHenry/22_fix_subtotal_attribute_copy

fix: when create invoices from orders list, title and subtotal attribute is now copied
This commit is contained in:
Laurent Destailleur 2025-12-04 21:26:01 +01:00 committed by GitHub
commit c9d1f3baa3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -606,6 +606,13 @@ if (empty($reshook)) {
$lines[$i]->fk_unit
);
if ($result > 0) {
if (!empty($lines[$i]->extraparams)) {
$factureLine = new FactureLigne($db);
$factureLine->id = $result;
$factureLine->extraparams = $lines[$i]->extraparams;
$factureLine->setExtraParameters();
}
$lineid = $result;
} else {
$lineid = 0;