force ids to be int

This commit is contained in:
denisdulici 2020-02-24 00:56:02 +03:00
parent f7c9116bc3
commit b462e66e33

View File

@ -28,7 +28,7 @@ trait Import
$id = $this->getAccountIdFromCurrency($row); $id = $this->getAccountIdFromCurrency($row);
} }
return $id; return (int) $id;
} }
public function getCategoryId($row, $type = null) public function getCategoryId($row, $type = null)
@ -41,7 +41,7 @@ trait Import
$id = $this->getCategoryIdFromName($row, $type); $id = $this->getCategoryIdFromName($row, $type);
} }
return $id; return (int) $id;
} }
public function getContactId($row, $type = null) public function getContactId($row, $type = null)
@ -58,7 +58,7 @@ trait Import
$id = $this->getContactIdFromName($row, $type); $id = $this->getContactIdFromName($row, $type);
} }
return $id; return (int) $id;
} }
public function getDocumentId($row) public function getDocumentId($row)
@ -81,7 +81,7 @@ trait Import
} }
} }
return $id; return (int) $id;
} }
public function getItemId($row) public function getItemId($row)
@ -92,7 +92,7 @@ trait Import
$id = $this->getItemIdFromName($row); $id = $this->getItemIdFromName($row);
} }
return $id; return (int) $id;
} }
public function getTaxId($row) public function getTaxId($row)
@ -107,7 +107,7 @@ trait Import
$id = $this->getTaxIdFromRate($row); $id = $this->getTaxIdFromRate($row);
} }
return $id; return (int) $id;
} }
public function getAccountIdFromCurrency($row) public function getAccountIdFromCurrency($row)