FIX extrafields for invoice too

This commit is contained in:
atm-quentin 2017-07-26 15:55:50 +02:00
parent 29a4900d0b
commit 09a1118036

View File

@ -749,7 +749,12 @@ class Facture extends CommonInvoice
// Charge facture source
$facture=new Facture($this->db);
foreach($this->lines as $line){
$this->fetch_optionals();
if(!empty($this->array_options)){
$facture->array_options = $this->array_options;
}
foreach($this->lines as &$line){
$line->fetch_optionals();//fetch extrafields
}