import and export parent number issues fixed

This commit is contained in:
Cihan Şentürk
2023-07-24 14:55:44 +03:00
committed by GitHub
parent ceb04a546f
commit ab4c59082f
4 changed files with 10 additions and 6 deletions

View File

@ -35,7 +35,7 @@ class Bills extends Import
$row['currency_code'] = $this->getCurrencyCode($row);
$row['type'] = Model::BILL_TYPE;
$row['contact_country'] = !empty($country) ? $country : null;
$row['parent_id'] = $this->getParentId($row);
$row['parent_id'] = $this->getParentId($row) ?? 0;
return $row;
}

View File

@ -35,7 +35,7 @@ class Invoices extends Import
$row['currency_code'] = $this->getCurrencyCode($row);
$row['type'] = Model::INVOICE_TYPE;
$row['contact_country'] = !empty($country) ? $country : null;
$row['parent_id'] = $this->getParentId($row);
$row['parent_id'] = $this->getParentId($row) ?? 0;
return $row;
}