snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Add Supplier when creating asset

Open madd15 opened this issue 12 years ago • 14 comments

Wondering whether a box could be added for Supplier name when creating assets as sometimes a reseller is used and we need to document who we bought it off.

Ultimately would be nice to have a section like the model section where details of the supplier could be put, and then when creating the asset a drop-down of the suppliers.

madd15 avatar Jun 13 '14 04:06 madd15

What info would you typically need on suppliers?

snipe avatar Jun 19 '14 20:06 snipe

I think the needed info would be name, address (maybe split address, suburb, post code), phone number and fax number

madd15 avatar Jun 19 '14 22:06 madd15

Possibly also be able to see all assets provided by the supplier if you click on their name

madd15 avatar Jun 24 '14 00:06 madd15

Yeah, I would definitely do that for this, same as I do for seeing all assets assigned to a user, all assets of an asset model, etc.

snipe avatar Jun 24 '14 00:06 snipe

I'm working on this now, BTW

snipe avatar Jun 24 '14 01:06 snipe

Sweet can't wait :+1:

madd15 avatar Jun 24 '14 01:06 madd15

Be sure to run the following before hitting it in the browser:

php composer.phar dump-autoload (to clear the cache for the new routes and controllers)

and

php artisan migrate to add new DB table and fields.

snipe avatar Jun 24 '14 02:06 snipe

Someone I work with just asked whether the suppliers website could be added as its own field

madd15 avatar Jun 24 '14 03:06 madd15

Just added that.

snipe avatar Jun 24 '14 03:06 snipe

just tried to input a url and noticed that i was required to put http:// in possible to change this

madd15 avatar Jun 24 '14 03:06 madd15

That's part of the standard URL validation for Laravel. I guess I could check for it in the url and add it if it's not found. Not tonight though - heading out soon.

snipe avatar Jun 24 '14 03:06 snipe

Struck something that is a very minor specific issue that just required a change in the db structure. In Australia most of our states are shortened to 3 characters so we were adding states and noticing it being cut down to 2. I looked at the DB and noticed that it was set to a length of 2 for state and changed it to 255 to suit our needs of either the 3 characters or righting the whole name. I also changed country to 255 to allow the full name to be used.

Just thought i would post it here to let you know.

madd15 avatar Jun 26 '14 23:06 madd15

Hmm... might be better to increase that to 3 characters then in the actual app here (versus your version), as any changes could get overwritten in newer versions.

snipe avatar Jun 26 '14 23:06 snipe

Hi,

Is there any issues reported in regards to "License" having it's own supplier ?

pakkua80 avatar Nov 19 '14 06:11 pakkua80