forked from Wavyzz/dolibarr
fix create invoice from contract with free service line
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user