mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
44683c784f
* Major code simplification of the importers. Move towards using Model::fill and Model::update rather than reinventing the wheel. This makes the updating/creating logic a lot clearer, and allows for the deletion of a lot of code. Also allows for supporting of more fields in the future really easily. * Cleanup constructors and use setters instead. * Set the LC_MONETARY locale, and use it to strip currency symbols in Helper::parseFloat() * Move licenseseat creation/deletion logic into an event handler on the model rather than the controller. * Move the logging of parsed values to array_smart_fetch rather than writing it out everywhere * Move to storing dates as carbon rather than strings. Allows for the parsing of more arbitrary strings from the importer * Add a license importer with support for checking out to users or assets. * Make a directory for sample/mock import csvs and populate it * Adjust how we store/retrieve dates to fix some issues the tests found.
7.5 KiB
7.5 KiB
1 | Item Name | Purchase Date | Purchase Cost | Location | Company | Order Number | Category | Requestable | Quantity |
---|---|---|---|---|---|---|---|---|---|
2 | eget | 01/03/2011 | 85.91 | mauris blandit mattis. | Lycos | T295T06V | Triamterene/Hydrochlorothiazide | No | 322 |
3 | Morbi | 10/24/2016 | 87.42 | iaculis | Lavasoft | W787T62Q | Ranitidine HCl | 1 | 374 |
4 | arcu. | 09/22/2007 | 48.34 | ornare | N961E50A | Amoxicillin | False | 252 | |
5 | nec | 08/16/2009 | 8.71 | lectus | Apple Systems | X624N14C | Lantus Solostar | 1 | 30 |
6 | Nam | 03/30/2017 | 24.07 | a, | Macromedia | N618A20S | Hydrocodone/APAP | True | 551 |
7 | Nullam | 12/16/2003 | 73.23 | Donec est mauris, | Yahoo | B386I67L | Fluticasone Propionate | No | 395 |
8 | erat | 08/03/2010 | 17.49 | Proin | Borland | G606H92I | Amlodipine Besylate | 1 | 297 |
9 | purus | 10/12/2004 | 63.52 | tellus justo sit | Chami | R660Z45O | Omeprazole (Rx) | Yes | 557 |
10 | dignissim | 11/10/2010 | 77.94 | nibh vulputate mauris | Lavasoft | G230Z67X | Risperidone | 1 | 47 |
11 | Nam | 01/25/2015 | 64.33 | taciti sociosqu ad | Microsoft | B613L84C | Suboxone | No | 310 |
12 | Nunc | 04/13/2017 | 81.02 | nec orci. | Borland | O367N55N | Fluoxetine HCl | No | 404 |
13 | Phasellus | 12/23/2005 | 70.67 | quis, tristique ac, | Borland | K941C02T | Alendronate Sodium | 0 | 590 |
14 | Nulla | 07/21/2017 | 99.04 | augue malesuada malesuada. | Lycos | D663L90H | Allopurinol | No | 48 |
15 | at | 10/31/2007 | 58.42 | dolor sit amet, | Lavasoft | Y229E62I | Simvastatin | No | 181 |
16 | Sed | 04/14/2011 | 48.86 | lectus convallis est, | Cakewalk | T666E70K | Fluconazole | True | 169 |
17 | quis | 01/08/2014 | 55.64 | varius orci, | Lycos | T767G07U | Advair Diskus | False | 264 |
18 | viverra. | 01/07/2013 | 93.48 | cursus et, magna. | Sibelius | T276L44H | Loestrin 24 Fe | No | 293 |
19 | Sed | 03/20/2008 | 64.75 | arcu. Sed | Cakewalk | A933E55V | Pantoprazole Sodium | No | 407 |
20 | iaculis | 07/17/2015 | 56.74 | nec | Borland | N568F73C | Venlafaxine HCl ER | No | 115 |
21 | leo. | 12/09/2012 | 96.88 | Aenean | Altavista | H283Z42U | Cephalexin | True | 208 |
22 | leo. | 04/24/2007 | 40.87 | tincidunt adipiscing. Mauris | Lycos | T054Q83U | Lyrica | 0 | 486 |
23 | pede. | 09/29/2010 | 19.64 | nec enim. Nunc | Chami | L842O70A | Simvastatin | Yes | 214 |
24 | massa | 05/18/2015 | 18.43 | nisi magna sed | Adobe | V029Q52K | Meloxicam | 0 | 131 |
25 | urna | 10/22/2014 | 7.41 | ac | Sibelius | Z708U15X | Flovent HFA | Yes | 15 |
26 | sapien | 03/23/2017 | 50.94 | penatibus et | D258T89Z | Zolpidem Tartrate | True | 48 | |
27 | non | 05/14/2005 | 71.71 | dui. Fusce | Borland | C021V01R | Amphetamine Salts | True | 593 |
28 | et, | 10/18/2014 | 94.56 | natoque penatibus et | Lavasoft | L351F80J | Gianvi | 1 | 305 |
29 | pede | 02/18/2004 | 10.04 | felis | Yahoo | D516U60J | Pravastatin Sodium | 1 | 302 |
30 | lobortis | 06/08/2011 | 31.17 | luctus, | Yahoo | D088E82H | Azithromycin | Yes | 380 |
31 | placerat | 06/19/2005 | 5.38 | eget | Adobe | V472U75G | Nexium | 0 | -2 |
32 | leo | 10/03/2014 | 17.00 | justo | Lycos | F944A58V | Ibuprofen (Rx) | True | 294 |
33 | dictum | 11/24/2015 | 92.11 | tellus faucibus | Apple Systems | U938K61D | Oxycontin | Yes | 368 |
34 | bibendum. | 05/01/2010 | 22.45 | elit erat vitae | Lavasoft | Z326Q13R | Tramadol HCl | Yes | 12 |
35 | facilisis, | 01/02/2011 | 85.42 | purus | Finale | Z475L99M | Alprazolam | True | 359 |
36 | bibendum | 08/20/2009 | 44.68 | et pede. Nunc | N039W21L | Fluticasone Propionate | True | 569 | |
37 | eleifend | 03/17/2006 | 22.92 | velit. Cras | Lavasoft | H339Z61T | Doxycycline Hyclate | Yes | 219 |
38 | rhoncus. | 03/17/2009 | 82.52 | feugiat non, lobortis | Altavista | R524N72A | Atenolol | 0 | 176 |
39 | a | 04/03/2016 | 4.35 | nunc | Sibelius | V055S56Y | Simvastatin | Yes | 326 |
40 | enim. | 05/15/2014 | 20.18 | lectus justo | I747M47J | Atenolol | 1 | 101 | |
41 | molestie | 06/19/2012 | 11.30 | sem ut cursus | Apple Systems | F888J26K | Amoxicillin | Yes | 405 |
42 | dui. | 05/16/2010 | 72.42 | consectetuer euismod | Cakewalk | U999A42H | Atenolol | False | 253 |
43 | tortor. | 08/02/2017 | 38.51 | ultrices iaculis odio. | Lavasoft | J465G08H | Tri-Sprintec | False | 577 |
44 | natoque | 04/15/2010 | 28.88 | magnis | Sibelius | N813P74X | Lipitor | 0 | 562 |
45 | mollis | 05/07/2011 | 89.36 | Donec | Yahoo | O113X38K | Lexapro | Yes | 179 |
46 | ultrices. | 10/20/2013 | 73.45 | orci, | Lycos | N587Y98N | Benicar HCT | No | 185 |
47 | dui | 12/10/2011 | 0.57 | Mauris eu turpis. | Yahoo | S354F65P | Levothyroxine Sodium | No | 78 |
48 | sagittis. | 04/06/2014 | 38.55 | elementum sem, vitae | R931X11B | Loestrin 24 Fe | Yes | 386 | |
49 | dui, | 10/08/2010 | 52.52 | natoque penatibus | Adobe | J615B52I | Clonazepam | 0 | 563 |
50 | eros | 06/25/2015 | 45.90 | aliquam, enim | Microsoft | S216N79D | Amoxicillin | True | 371 |
51 | et, | 05/16/2008 | 4.42 | nulla. In tincidunt | Adobe | Z906A47A | Sulfamethoxazole/Trimethoprim | No | 507 |
52 | est | 12/14/2004 | 16.79 | amet | Yahoo | P540P32Z | Doxycycline Hyclate | True | 188 |
53 | montes, | 02/23/2008 | 52.98 | ante | Lavasoft | C140R27G | Lisinopril | True | 401 |
54 | mollis | 07/09/2004 | 83.26 | Curabitur dictum. Phasellus | Cakewalk | U620A61Z | Glipizide | No | 278 |
55 | dolor. | 07/01/2004 | 50.94 | non, vestibulum | Lavasoft | F625L82E | Singulair | No | 475 |
56 | aliquet | 03/18/2014 | 56.23 | erat | Altavista | L193Q72S | Clonazepam | No | 3 |
57 | nonummy | 09/13/2004 | 89.86 | enim. | Apple Systems | U466F15U | Atenolol | No | 218 |
58 | natoque | 11/09/2015 | 72.14 | ridiculus | Altavista | U295O53M | Cyclobenzaprin HCl | No | 50 |
59 | tincidunt | 01/05/2011 | 84.90 | Cras | Cakewalk | C373S25Y | Paroxetine HCl | 0 | 104 |
60 | tristique | 03/04/2010 | 64.59 | ipsum leo elementum | Macromedia | U140F94P | Atenolol | False | 486 |
61 | eleifend. | 07/11/2010 | 45.06 | a, arcu. Sed | Macromedia | G544Z82L | Zyprexa | 1 | 100 |
62 | sem | 04/18/2008 | 44.81 | magna, malesuada vel, | Chami | G143Q64L | Lorazepam | No | 440 |
63 | facilisi. | 06/13/2005 | 65.36 | ut, molestie in, | N391E28J | Januvia | False | 536 | |
64 | arcu. | 09/24/2012 | 21.27 | parturient montes, nascetur | Finale | Z720K67H | Furosemide | False | 308 |
65 | hendrerit | 01/26/2013 | 27.11 | eget varius ultrices, | Borland | P865K75O | Metformin HCl | False | 590 |
66 | Aliquam | 03/18/2010 | 64.99 | ridiculus | Borland | K003G26G | Ibuprofen (Rx) | 0 | 412 |
67 | eu | 08/27/2016 | 99.62 | Sed eu eros. | Microsoft | H049R07D | Atenolol | False | 498 |
68 | Morbi | 02/13/2008 | 30.86 | Sed nulla ante, | Altavista | U852E06G | Fluticasone Propionate | Yes | 243 |
69 | malesuada | 08/17/2010 | 58.50 | tellus. Phasellus | Sibelius | T695G73P | Ibuprofen (Rx) | Yes | 591 |
70 | ut, | 11/16/2006 | 46.64 | Sed molestie. | Microsoft | T589M93D | Gianvi | True | -5 |
71 | odio. | 12/09/2011 | 51.19 | montes, nascetur ridiculus | Chami | J311Q19L | Gabapentin | True | 517 |
72 | tortor. | 03/21/2017 | 7.11 | Morbi neque | Finale | W293Z75X | Loestrin 24 Fe | Yes | 242 |
73 | penatibus | 12/02/2015 | 81.51 | ipsum ac mi | Borland | U565B49H | Loestrin 24 Fe | False | 220 |
74 | et, | 10/11/2013 | 56.41 | ut nisi a | G623M74Q | Triamterene/Hydrochlorothiazide | True | 98 | |
75 | ut, | 11/17/2007 | 74.85 | consequat purus. | Sibelius | Q247W03U | Tramadol HCl | Yes | 484 |
76 | luctus | 09/30/2016 | 23.87 | euismod | Lavasoft | T838L77W | Lisinopril | Yes | 295 |
77 | gravida | 12/04/2010 | 80.12 | a neque. | Sibelius | U542S63O | Vytorin | 0 | 188 |
78 | hymenaeos. | 01/16/2015 | 13.19 | In scelerisque scelerisque | Sibelius | V375P80B | Zyprexa | False | 255 |
79 | mi | 06/07/2010 | 17.75 | libero. Proin | I728A71W | APAP/Codeine | False | 435 | |
80 | a, | 12/19/2006 | 12.35 | montes, | Lavasoft | X885A67N | Metformin HCl | True | 333 |
81 | ornare | 09/09/2015 | 34.13 | taciti | Lavasoft | Q602X92G | Lyrica | Yes | 447 |
82 | tellus, | 09/05/2007 | 92.17 | lorem, | Microsoft | D008R07S | Vyvanse | 0 | 256 |
83 | eget | 07/10/2008 | 5.71 | a odio semper | Altavista | L996D22J | Triamcinolone Acetonide | 1 | 89 |
84 | sodales | 01/26/2017 | 67.43 | at, | Microsoft | B922B33B | Glipizide | False | 406 |
85 | amet, | 09/19/2011 | 5.34 | Cum sociis natoque | Yahoo | C735B01G | Amoxicillin | No | 85 |
86 | tempus | 02/14/2017 | 19.18 | felis | Macromedia | P379N42S | Simvastatin | False | 427 |
87 | laoreet | 06/25/2017 | 73.61 | Sed | Apple Systems | N838F62B | Alendronate Sodium | No | 405 |
88 | laoreet | 03/28/2015 | 40.48 | fames ac | Cakewalk | A503X28X | Ibuprofen (Rx) | 0 | 430 |
89 | sit | 09/08/2013 | 41.23 | aliquet vel, | Sibelius | F381B10B | Nexium | No | 359 |
90 | Aenean | 06/10/2010 | 97.61 | massa | Altavista | X179G33K | Doxycycline Hyclate | 1 | 136 |
91 | non | 10/13/2013 | 46.02 | Duis | Microsoft | F567P51A | Metformin HCl | 1 | 104 |
92 | Curabitur | 02/10/2016 | 49.59 | et magnis | Borland | A902B81X | Diovan | No | 270 |
93 | risus | 06/23/2014 | 6.22 | eu, | Apple Systems | J458L03X | Crestor | 1 | 577 |
94 | sem | 04/29/2006 | 36.75 | orci luctus | Apple Systems | I390X10D | Lisinopril | False | 131 |
95 | eu, | 08/06/2013 | 96.39 | diam dictum sapien. | Microsoft | P937M90J | Lisinopril/Hydrochlorothiazide | Yes | 229 |
96 | ultricies | 01/13/2013 | 18.64 | auctor | Microsoft | Q793S72Y | Amphetamine Salts | 0 | 153 |
97 | et | 09/04/2005 | 30.87 | sagittis placerat. Cras | Microsoft | S427Q43E | Alprazolam | False | 571 |
98 | sit | 02/26/2006 | 80.53 | non justo. | Finale | Y646A59W | Omeprazole (Rx) | True | 193 |
99 | eget | 01/10/2014 | 71.57 | dolor | Borland | V101B17W | Sertraline HCl | No | 103 |
100 | a, | 06/02/2016 | 44.56 | nascetur ridiculus | Lycos | O796A98J | Alprazolam | 1 | 505 |
101 | ante, | 12/20/2013 | 46.04 | eleifend | Lycos | K375B97M | Plavix | 0 | 296 |