added parent id field to import and export

This commit is contained in:
Cihan Şentürk
2023-07-20 15:39:23 +03:00
committed by GitHub
parent 7768280ea3
commit 6a07f8ad9e
7 changed files with 25 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ class Transactions extends Import
$row['category_id'] = $this->getCategoryId($row);
$row['contact_id'] = $this->getContactId($row);
$row['document_id'] = $this->getDocumentId($row);
$row['parent_id'] = $this->getParentId($row);
return $row;
}

View File

@@ -35,6 +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);
return $row;
}

View File

@@ -35,6 +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);
return $row;
}