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
commit b0adc9cca4

View File

@ -748,6 +748,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;