Commit graph

11 commits

Author SHA1 Message Date
snipe 4215a3257b Fixes #1044 - adds suppliers and image to accessories (#4266)
* Ignore accesories uploads

* API: Allow searching accessories by supplier id

* Adds suppliers and image upload to accessories

* Allow sorting by counts for suppliers

* Validate supplier image uploads

* Remove purchase_date from protected accessory array, it was converting it to datetime in datepicker
2017-10-19 16:25:24 -07:00
Andrea Bergamasco e03ebc3fd0 AssetTransformer refactoring, restored tests (#3407)
* Refactored AssetsTransformer

Casted all ids to int, escaped all text values,

* Added warranty_expires attribute to Asset model

$asset->warranty_expires contains a Carbon object with the warranty
expiration date. Returns null when either purchase_date or
warranty_months are not set.

* Ignoring php-cs cache files

* Restored asset tests expectations

Work in progress - tests still fail

* API controller refactoring, fixed HTTP status codes in responses

* Restored $request->get - debugging

* Added further checks in ApiAssetsCest::updateAssetWithPatch
2017-03-14 08:37:39 -07:00
snipe 97a1a166f0 Ignore generated OAuth keys 2016-12-14 10:05:54 -08:00
snipe 93d9a6e4bb Ignore npm log 2016-12-01 05:52:50 -08:00
snipe 9c31c0edce Ignore uploaded barcodes 2016-08-02 01:26:44 -07:00
snipe 1493251794 Gitignore cleanup 2016-07-27 20:16:46 -07:00
snipe 63f4bbe412 Temporarily remove clone option from categories view 2016-05-14 18:06:49 -07:00
snipe 93294583f8 Clean up gitignore 2016-05-14 17:48:03 -07:00
snipe b5a1e261e5 Added gitkeep for users dir 2016-05-14 17:40:41 -07:00
snipe 1773f671da Ignore laravel backups dir 2016-05-12 16:20:39 -07:00
snipe fe00b0e401 Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00