bills import/export

This commit is contained in:
denisdulici
2020-01-21 09:55:12 +03:00
parent 45c02d5502
commit 1383dd4758
18 changed files with 242 additions and 51 deletions

View File

@@ -13,6 +13,16 @@ class Bills extends Import
return new Model($row);
}
public function map($row): array
{
$row = parent::map($row);
$row['category_id'] = $this->getCategoryId($row, 'expense');
$row['contact_id'] = $this->getContactId($row, 'vendor');
return $row;
}
public function rules(): array
{
return (new Request())->rules();