fix create invoice from contract with free service line
This commit is contained in:
parent
242c403f50
commit
3ed18dc92c
1 changed files with 2 additions and 1 deletions
|
|
@ -1723,7 +1723,8 @@ if (empty($reshook)) {
|
|||
}
|
||||
} else {
|
||||
// Positive line
|
||||
$product_type = ($lines[$i]->product_type ? $lines[$i]->product_type : 0);
|
||||
// we keep first type from product if exist, otherwise we keep type from line (free line)
|
||||
$product_type = $lines[$i]->product_type ?? ($lines[$i]->type ?? 0);
|
||||
|
||||
// Date start
|
||||
$date_start = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue