2
0
forked from Wavyzz/dolibarr

Merge pull request #7207 from atm-quentin/FIX_next_situation_load_extrafields

FIX next situation keep extrafields
This commit is contained in:
Laurent Destailleur
2017-07-31 02:24:46 +02:00
committed by GitHub

View File

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