snipe-it/tests/_data/IMPORT_CONSUMABLES.csv
Daniel Meltzer d722ed3823 Partialize forms (#2884)
* Consolidate edit form elements into reusable partials.

This is a large code change that doesn't do much immediately.  It
refactors all of the various edit.blade.php files to reference
standardized partials, so that they all reference the same base html
layout. This has the side effect of moving everything to the new fancy
"required" indicators, and making things look consistent.

In addition, I've gone ahead and renamed a few database fields.  We had
Assetmodel::modelno and Consumable::model_no, I've renamed both to
model_number.  We had items using ::note and ::notes, I've standardized
on ::notes.  Component used total_qty where consumables and accessories
used qty, so I've moved everything to qty (And fixed a few bugs in the
helper file in the process.

TODO includes looking at how/where to place the modal javascripts to
allow for on the fly creation from all places, rather than just the
asset page.

Rename assetmodel::modelno to model_number for clarity and consistency

Rename consumable::model_no to model_number for clarity and consistency

Rename assetmodel::note to notes for clarity and consistency

Port asset and assetmodel to new partials layout.  Adapt all code to the renamed model_number and notes database changes.  Fix some stying.

* Share a settings variable with all views.

* Allow editing the per_page setting.  We showed the value, but we never showed it on the edit page..

* use snipeSettings in all views instead of the long ugly path.

* War on partials. Centralize all bootstrap table javascript

* Use model_number instead of modelno in importer

* Codacy fix.

* More unification/deduplication.  Create an edit form template layout that we use as the base for all edit forms.  This gives the same interface for editing everything and makes the edit.blade.* files much easier to read.

* Use a ViewComposer instead of sharing the variable directly.  Fixes artisan optimize trying to hit the db--which ruins new installs

* Fix DB seeder.

* Base sql dump and csv's to import data from for tests.

* Start some functional tests for creating items.

* Add functional tests for all create methods.  Still need to do tests for edits, deletes, and lots of other things

* Improvements to functional tests.

Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.

* Some improvements to acceptance tests.

Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.

I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.

* A few things to make acceptance tests work.  Add a name to the companies table, and make the locations table have the correct name

* Use a .env.tests file for testing functional and unit to allow a separate database.

* Add functional tests for compoents, groups, and licenses.

* Now that the config is in the functional.yml, this just confuses things.

* Start some functional tests for creating items.

* Add functional tests for all create methods.  Still need to do tests for edits, deletes, and lots of other things

* Improvements to functional tests.

Use the built in DB seeding mechanism instead of doing it ourselves.
Break the tests into multiple units, rather than testing everything in
each function.

* Some improvements to acceptance tests.

Make sure we're only looking at the "trs" within the bootstrap table.
Creation of assets is now tested at the functional level (and is faster)
so ignore it here.

I'm testing acceptance tests with the
IMPORT_{ASSETS,ACCESSORIES,CONSUMABLES}.csv in the tests/_data folder
imported.

* update db dump

* Update tests to new reality

* env for the test setup

* only load the database at beginning of tests, not between each Functional test.

* Fix a miss from renaming note to notes.

* Set Termination date when creating an asset.  It was only set on edit.

* Rename serial_number to serial in components for consistency.

* Update validation rules to match limits in database.  Currently we just accepted the values and they were truncated when adding to DB.

* Much more detailed functional testing of creating items.  This checks to make sure all values on form have been successfully persisted to database.
2016-11-16 16:56:57 -08:00

1.9 KiB

1Item NamePurchase DatePurchase CostLocationCompanyOrder NumberCategoryRequestableQuantity
2eget01/03/201185.91mauris blandit mattis.LycosT295T06VTriamterene/HydrochlorothiazideNo322
3Morbi10/24/201687.42iaculisLavasoftW787T62QRanitidine HCl1374
4arcu.09/22/200748.34ornareGoogleN961E50AAmoxicillinFalse252
5nec08/16/20098.71lectusApple SystemsX624N14CLantus Solostar130
6Nam03/30/201724.07a,MacromediaN618A20SHydrocodone/APAPTrue551
7Nullam12/16/200373.23Donec est mauris,YahooB386I67LFluticasone PropionateNo395
8erat08/03/201017.49ProinBorlandG606H92IAmlodipine Besylate1297
9purus10/12/200463.52tellus justo sitChamiR660Z45OOmeprazole (Rx)Yes557
10dignissim11/10/201077.94nibh vulputate maurisLavasoftG230Z67XRisperidone147
11Nam01/25/201564.33taciti sociosqu adMicrosoftB613L84CSuboxoneNo310
12Nunc04/13/201781.02nec orci.BorlandO367N55NFluoxetine HClNo404
13Phasellus12/23/200570.67quis, tristique ac,BorlandK941C02TAlendronate Sodium0590
14Nulla07/21/201799.04augue malesuada malesuada.LycosD663L90HAllopurinolNo48
15at10/31/200758.42dolor sit amet,LavasoftY229E62ISimvastatinNo181
16Sed04/14/201148.86lectus convallis est,CakewalkT666E70KFluconazoleTrue169
17quis01/08/201455.64varius orci,LycosT767G07UAdvair DiskusFalse264
18viverra.01/07/201393.48cursus et, magna.SibeliusT276L44HLoestrin 24 FeNo293
19Sed03/20/200864.75arcu. SedCakewalkA933E55VPantoprazole SodiumNo407
20iaculis07/17/201556.74necBorlandN568F73CVenlafaxine HCl ERNo115
21leo.12/09/201296.88AeneanAltavistaH283Z42UCephalexinTrue208
22leo.04/24/200740.87tincidunt adipiscing. MaurisLycosT054Q83ULyrica0486
23pede.09/29/201019.64nec enim. NuncChamiL842O70ASimvastatinYes214
24massa05/18/201518.43nisi magna sedAdobeV029Q52KMeloxicam0131
25urna10/22/20147.41acSibeliusZ708U15XFlovent HFAYes15