added parent id field to import and export
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user