Fix extrafields transmition from supplier order lines to supplier invoice lines

This commit is contained in:
John 2018-01-02 12:06:11 +01:00
parent 0abe19c30d
commit 9180121999

View File

@ -679,6 +679,11 @@ if (empty($reshook))
$desc=($lines[$i]->desc?$lines[$i]->desc:$lines[$i]->libelle);
$product_type=($lines[$i]->product_type?$lines[$i]->product_type:0);
// Extrafields
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i], 'fetch_optionals')) {
$lines[$i]->fetch_optionals($lines[$i]->rowid);
}
// Dates
// TODO mutualiser
$date_start=$lines[$i]->date_debut_prevue;