fix import line from object default value for situations

This commit is contained in:
ATM john 2020-03-18 10:59:13 +01:00
parent cb43928a5d
commit c767e553d3

View File

@ -2541,7 +2541,12 @@ if (empty($reshook))
$pa_ht = $originLine->pa_ht;
$label = $originLine->label;
$array_options = $originLine->array_options;
$situation_percent = 100;
if($object->type == Facture::TYPE_SITUATION){
$situation_percent = 0;
}
else{
$situation_percent = 100;
}
$fk_prev_id = '';
$fk_unit = $originLine->fk_unit;
$pu_ht_devise = $originLine->multicurrency_subprice;