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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user