Fix: reset fk_code_ventilation on invoice clone (#38084)

This commit is contained in:
atm-lucas 2026-05-07 12:58:22 +02:00 committed by GitHub
parent 3fa5112ca8
commit eb5e550490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1359,6 +1359,9 @@ class Facture extends CommonInvoice
}
$object->lines[$i]->ref_ext = ''; // Do not clone ref_ext
// Do not clone accountancy ventilation: a cloned invoice must reappear in "to dispatch" list
$object->lines[$i]->fk_code_ventilation = 0;
}
// Create clone