Add Supplier when creating asset
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.
What info would you typically need on suppliers?
I think the needed info would be name, address (maybe split address, suburb, post code), phone number and fax number
Possibly also be able to see all assets provided by the supplier if you click on their name
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.
I'm working on this now, BTW
Sweet can't wait :+1:
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.
Someone I work with just asked whether the suppliers website could be added as its own field
Just added that.
just tried to input a url and noticed that i was required to put http:// in possible to change this
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.
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.
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.
Hi,
Is there any issues reported in regards to "License" having it's own supplier ?