So I work in a 1 to 1 laptop deployment and sometimes we need to mass order parts. The vendor will send us a text file and we have to manually input serial numbers. Well I have a full blown web based inventory system which I can pull serial number reports from.
I then have to input the part number, CompTIA code, and so forth. I was thinking to myself there has got to be a better way of automating this process.
here is an example of the text:
//RECORD NO. RECORD TYPE REPAIR TYPE SERIAL NO UNIT RECEIVED DATE SHIP TO DIAGNOSED BY(TECH ID) SYMPTOM DIAGNOSIS NOTES COMPONENT REQUEST REVIEW BY APPLE(Y/N) CUSTOMER LAST NAME CUSTOMER FIRST NAME CUSTOMER ADDRESS LINE 1 CUSTOMER ADDRESS LINE 2 CUSTOMER ADDRESS LINE 3 COMPANY COUNTY/SUBURB CITY STATE EMAIL PRIMARY PHONE SECONDARY PHONE COUNTRY CODE ZIP CODE ALTERNATE CONTACT PO NUMBER CUSTOMER TYPE CUSTOMER PRIMARY PHONE COMPTIA CODE COMPTIA MODIFIER SP REFERENCE OSVERSION RAM HARDDRIVE PASSWORD UPLOADED PROOF OF PURCHASE DATA TRANSFER REQUESTED(Y/N) ADDRESS COSMETIC DAMAGE(Y/N) BOX SHIPMENT SHIP UNIT TO CUSTOMER SERVICE PROVIDER CONTACT SERVICE PROVIDER CONTACT PHONE NUMBER FAXED PROOF OF PURCHASE UNIT ABUSED FLAG LEG 2 CARRIER CODE LEG 2 TRACKING NO. IS ACCIDENTAL DAMAGE (Y/N) Check If OOW COVERAGE(Y/1/X/N) IS NON RPLENISHMENT DIAGNOSTIC CODE OVER RIDE DIAGNOSTIC CODE CHECK DISPATCH ID ERROR MESSAGE
//RECORD NO. RECORD TYPE ITEM NO PART NO ABUSED COMPTIA COMPTIA MOD Repairable Damage DIAGNOSTIC CODE
1 H CA W8738625Z5V 8/17/10 47660 USA075WB case splinters bezel cracked case splinters bezel cracked Mark Hughes 625 Minnesota Ave USD500 KCKPS Kansas City KS mahughe@kckps.org 913.449.7791 US 66101 7122010
1 D 922-9592 N Z07 A N
2 H CA W87384YYZ5V 8/17/10 47660 USA075WB case splinters bezel cracked case splinters bezel cracked Mark Hughes 625 Minnesota Ave USD500 KCKPS Kansas City KS mahughe@kckps.org 913.449.7791 US 66101 7122010
2 D 922-9592 N Z07 A N
3 H CA W87382D5Z5V 8/17/10 47660 USA075WB case splinters bezel cracked case splinters bezel cracked Mark Hughes 625 Minnesota Ave USD500 KCKPS Kansas City KS mahughe@kckps.org 913.449.7791 US 66101 7122010
3 D 922-9592 N Z07 A N
4 H CA W87393D8Z5V 8/17/10 47660 USA075WB case splinters bezel cracked case splinters bezel cracked Mark Hughes 625 Minnesota Ave USD500 KCKPS Kansas City KS mahughe@kckps.org 913.449.7791 US 66101 7122010
4 D 922-9592 N Z07 A N
5 H CA W8737B6TZ5V 8/17/10 47660 USA075WB case splinters bezel cracked case splinters bezel cracked Mark Hughes 625 Minnesota Ave USD500 KCKPS Kansas City KS mahughe@kckps.org 913.449.7791 US 66101 7122010
5 D 922-9592 N Z07 A N
6 H CA W87393U9Z5V 8/17/10 47660 USA075WB case splinters bezel cracked case splinters bezel cracked Mark Hughes 625 Minnesota Ave USD500 KCKPS Kansas City KS mahughe@kckps.org 913.449.7791 US 66101 7122010
6 D 922-9592 N Z07 A N
7 H CA W8739B7ZZ5V 8/17/10 47660 USA075WB case splinters bezel cracked case splinters bezel cracked Mark Hughes 625 Minnesota Ave USD500 KCKPS Kansas City KS mahughe@kckps.org 913.449.7791 US 66101 7122010
7 D 922-9592 N Z07 A N
8 H CA W87379M3Z5V 8/17/10 47660 USA075WB case splinters bezel cracked case splinters bezel cracked Mark Hughes 625 Minnesota Ave USD500 KCKPS Kansas City KS mahughe@kckps.org 913.449.7791 US 66101 7122010
If I can get all the proper data/strings in a list, how would I got about inserting the data in the proper area? I figure I could hard code a script where I can just plug in variables. Like part number, list of serials, failure code, etc and then let it generate the long report for me.
To give you an idea we ordered 1200 of the same part over the summer and due to lack of time of trying to figure this out we just did it manually.
Any ideas?
Thanks