mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix create invoice from contract with free service line
This commit is contained in:
parent
242c403f50
commit
3ed18dc92c
|
|
@ -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 New Issue
Block a user