-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLiquidQuotation.bas
More file actions
1279 lines (1015 loc) · 31.4 KB
/
LiquidQuotation.bas
File metadata and controls
1279 lines (1015 loc) · 31.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Attribute VB_Name = "LiquidQuotation"
Public BPrice As Double
Public PSize As Integer ' Part Number Array Size
Public userSelect As String
Public labour As Double
Public labFlag As Boolean
Public laberr As String
Function LabPrice(ByVal Repair As String)
Dim ws As Worksheet
Dim lRow As Long
Set ws = Worksheets("Countries")
lRow = ws.Range("J3").End(xlDown).Row
On Error GoTo errhandler
LabPrice = Application.WorksheetFunction.VLookup(Repair, ws.Range("J3:K" & lRow), 2, 0)
If Application.WorksheetFunction.VLookup(Repair, ws.Range("J3:K" & lRow), 2, 0) = "" Then
GoTo handler
End If
Exit Function
errhandler:
If labFlag = False Then
laberr = laberr & Repair & ", "
End If
Exit Function
handler:
If labFlag = False Then
laberr = laberr & Repair & " "
End If
End Function
' Author: Brandon Bwanakocha
' Purpose: Calculates Selling Price from given Cost price
' Parameters: CPrice - Cost Price of Terminal
' Return Type: Double
Function SPrice(ByVal CPrice)
Dim Shipping As Double
Dim Duty As Double
Dim PSD As Double ' Price with Shipping and Duty included
Dim Country As String
Dim mySelect As Range
Dim Margin As Double
Dim lRow As Long
lRow = Worksheets("Countries").Range("A3").End(xlDown).Row
Set mySelect = Worksheets("Countries").Range("A3:E" & lRow)
Country = Worksheets("Quote").Range("E5")
Shipping = Application.WorksheetFunction.VLookup(Country, mySelect, 3, 0)
Duty = Application.WorksheetFunction.VLookup(Country, mySelect, 4, 0)
Margin = Application.WorksheetFunction.VLookup(Country, mySelect, 5, 0)
Shipping = (Shipping) * CPrice
Duty = (Duty) * (Shipping + CPrice)
PSD = CPrice + Shipping + Duty
SPrice = PSD / (1 - Margin)
End Function
' Author: Brandon Bwanakocha
' Purpose: Fetches the buying price for the given terminal type from the "Countries' Column
' Parameters: Void
'Return Type : Void
Function BuyingPrice()
Dim ModelNo As String
Dim lRow As Long
Dim ws As Worksheet
Set ws = Worksheets("Countries")
lRow = ws.Range("M3").End(xlDown).Row
ModelNo = ActiveCell.Offset(0, -1).Value
On Error GoTo errhandler
BPrice = Application.WorksheetFunction.VLookup(ModelNo, ws.Range("M3:N" & lRow), 2, 0)
If Application.WorksheetFunction.VLookup(ModelNo, ws.Range("M3:N" & lRow), 2, 0) = "" Then
BPrice = 450
End If
Exit Function
errhandler:
BPrice = 450
End Function
' Author: Brandon Bwanakocha
' Purpose: Looks for multiple matches of a string in the second column of the master sheet
' Parameters: str - string we are looking for
' Return type: str - a string with row indexes of occurances of matches
Function look(str As String)
Dim rng As Range
Dim temp As String
Dim temp1 As String
Dim rows() As String
Dim size As Integer
Dim i As Integer
Dim PNumbers As String
Dim parts() As String
Dim s As String
Dim mystart As String
Dim myend As String
Dim lRow As Long
Dim ws As Worksheet
labour = 0
labFlag = False
Set ws = Worksheets("Master")
mystart = "B5"
PSize = 0
temp = ""
temp1 = ""
lRow = ws.Range("B6").End(xlDown).Row
myend = "B" & lRow
For Each cell In Worksheets("Master").Range(mystart & ":" & myend)
If InStr(cell.Value, " - ") Then
parts = Split(Trim(cell.Value), " - ")
If UBound(parts()) > 1 Then
If LCase(parts(1)) = LCase(ActiveCell.Offset(0, -1).Value) Then
If LCase(parts(2)) = LCase(str) Then
temp = temp & CStr(cell.Row) & " "
labour = LabPrice(parts(2))
labFlag = True
End If
End If
End If
End If
cont:
Next cell
Do
temp1 = temp
temp = Replace(temp, " ", " ") 'remove multiple white spaces
Loop Until temp1 = temp
rows = Split(Trim(temp), " ")
size = UBound(rows()) + 1
For i = 0 To size - 1
PNumbers = PNumbers & Application.WorksheetFunction.Index(Worksheets("Master").Range("A1:A" & lRow), CInt(rows(i))) & " "
Next i
PSize = size
look = PNumbers
End Function
' Author: Brandon Bwanakocha
' Purpose: Prepares our popup window which we use to select in case of multiple occurances of the same description
' Parameters: str - string containing all part numbers that correspond to the same description
' cap - Whatever is going to display on the label
' Return type: void
Function popupConfig(ByVal str As String, ByVal cap As String)
Dim OptionList(0 To 50) As String
Dim btn As CommandButton
Set btn = LiquidForm1.CommandButton1
Dim opt As Control
Dim s As Variant
Dim i As Integer
Dim PlaceHolder
Dim PartNumbers() As String
PartNumbers = Split(Trim(str), " ")
i = 0
For i = 0 To PSize - 1
OptionList(i) = Trim(PartNumbers(i))
Next i
i = 0
For Each s In OptionList
If i < PSize Then
Set opt = LiquidForm1.Controls.Add("Forms.OptionButton.1", "radioBtn" & i, True)
opt.Caption = s
opt.FontSize = 8
opt.Height = 20
opt.Top = opt.Height * i + 20
opt.GroupName = "Options"
opt.Left = 10
LiquidForm1.Height = opt.Height * (i + 2) + 20
opt.SpecialEffect = 0
End If
i = i + 1
Next
LiquidForm1.Width = opt.Width
LiquidForm1.Label1.BackColor = RGB(231, 245, 251)
LiquidForm1.Label1.BorderColor = RGB(134, 191, 160)
LiquidForm1.Label1.Caption = Trim(cap)
btn.Caption = "Submit"
btn.Top = LiquidForm1.Height - btn.Height + (0.5 * opt.Height)
btn.Left = (LiquidForm1.Width * 0.5) - (btn.Width * 0.5) - 3
LiquidForm1.Height = LiquidForm1.Height + btn.Height + (1.2 * opt.Height)
End Function
'Author: Brandon Bwanakocha
'Purpose: Adds an extension to the terminal type name
'Parameters: Void
'Return type: String
Function TerminalType()
Dim str As String
Dim ModelNo As String
ModelNo = ActiveCell.Offset(0, -1).Value
Select Case ModelNo
Case "S900"
str = "PAX - " & ModelNo & " - "
Case "S920"
str = "PAX - " & ModelNo & " - "
Case "S300"
str = "PAX - " & ModelNo & " - "
Case "D200"
str = "PAX - " & ModelNo & " - "
Case "D180"
str = "PAX - " & ModelNo & " - "
End Select
TerminalType = str
End Function
'Author: Brandon Bwanakocha
'Purpose: Finds Second Column on table
'Parameters: void
'Return Type: Void
Function FindSecondColumn()
On Error Resume Next
If Not (ActiveSheet.ListObjects(1).ListColumns = 2) Then
On Error Resume Next
ActiveSheet.ListObjects(1).DataBodyRange(1, 2).Select
End If
End Function
'Author: Brandon Bwanakocha
'Purpose: Runs down the current Column until it finds empty Cell
'Parameters: Void
'Return type: Void
Function GoDownRows()
Do While Not (ActiveCell.Offset(i, 0).Value = "")
i = i + 1
Loop
ActiveCell.Offset(i, 0).Select
' Check whether current row is outside the table and add a row if so
On Error Resume Next
If Intersect(ActiveCell, ActiveSheet.ListObjects(1).DataBodyRange) Is Nothing Then
ActiveSheet.ListObjects(1).ListRows.Add
ActiveCell.Offset(0, -1).Value = ActiveCell.Offset(-1, -1).Value
End If
End Function
' Author: Brandon Bwanakocha
' Title: Liquid Parts - LParts When Referencing
' Purpose: Looks Up Part Numbers depending on Name of part (Yikes)
' Parameters: CellRef - The cell containing repair parts
' : mySelect - Selected range of cells with Key words and Numbers
Function LParts(CellRef As Range)
Dim PartName As String
Dim Result() As String
Dim str As String
Dim errstr As String
Dim size As Integer
Dim count As Integer
Dim temp As String
Dim PlaceHolder
PartName = CellRef
Result = Split(Trim(PartName), ",") ' Split the part name on commas
size = UBound(Result()) + 1
str = ""
errstr = ""
laberr = ""
For count = 0 To size - 1
On Error GoTo errhandler ' In case of error, catch the error!
temp = look(Trim(Result(count)))
If temp = "" Then
GoTo handler
End If
If PSize > 1 Then
PlaceHolder = popupConfig(Trim(temp), Trim(Result(count)))
LiquidForm1.Show
str = str & Trim(CStr(userSelect)) & Chr(10)
Else
str = str & temp & Chr(10)
End If
PSize = 0
counter:
Next count
If Right(str, 1) = vbLf Then str = Left(str, Len(str) - 1) ' Remove the last new line character
LParts = Trim(str)
If Not (errstr = "") Then
MsgBox "No Part Number found for: " & errstr, vbExclamation, "Liquid Form"
End If
If Not (laberr = "") Then
MsgBox "No Labour price found for: " & laberr, vbCritical
End If
Exit Function
' Error Handler which exercutes when we encounter an error with our lookup methods
handler:
' Try using a different extension like "S900/S920" amd of that doesn't work then quit lmao
str = str + "NPN" + Chr(10)
errstr = errstr + Trim(Result(count)) + ", "
GoTo counter ' Go back to the loop
errhandler:
str = str + "NPN" + Chr(10)
errstr = errstr + Trim(Result(count)) + ", "
Resume counter ' Go back to the loop
End Function
' Author: Brandon Bwanakocha
' Title: Liquid Price, LPrice (When referencing)
' Date: 27/06/2019
' Purpose: Calculates the charge for a repair based on extra materials added
' Parameters: CellRef - Cell containing Part Numbers
' mySelect: Table Array containing prices per part Number
Function LPrice(CellRef As Range)
Dim Result() As String
Dim PartNumber As String
Dim count As Integer
Dim size As Integer
Dim Charge As Double
Dim lookupval As Long
Dim temp As String
Dim errstr As String
Dim lRow As Long
lRow = Worksheets("Master").Range("B5").End(xlDown).Row
errstr = ""
PartNumber = CellRef
' Remove all the extra blank spaces that may be entered by user
PartNumber = Replace(PartNumber, vbLf, " ")
PartNumber = Replace(PartNumber, "NPN", "")
PartNumber = Trim(PartNumber)
Do
temp = PartNumber
PartNumber = Replace(PartNumber, " ", " ") 'remove multiple white spaces
Loop Until temp = PartNumber
Result = Split(Trim(PartNumber), " ") ' Trim to remove begining and rear spaces
size = UBound(Result()) + 1
Charge = 0
'Iterate through single cell checking all part numbers
For count = 0 To size - 1
On Error GoTo handler
Charge = Charge + SPrice(Application.WorksheetFunction.VLookup(Trim(Result(count)), Worksheets("Master").Range("A5:I" & lRow), 9, 0)) + labour ' Lookup spare part price and add that to total charge on customer
If Application.WorksheetFunction.VLookup(Trim(Result(count)), Worksheets("Master").Range("A5:I" & lRow), 9, 0) = "" Then
errstr = Result(count)
End If
counter:
Next count
If size < 3 Then
LPrice = 12.5 + Charge ' If we used less than 3 extra parts then charge Labour
Else
LPrice = Charge ' Charge for just the extra parts if we used more than three spare parts
End If
If Not (errstr = "") Then
MsgBox "No price found for: " & errstr, vbInformation, "Liquid Form"
End If
Exit Function
handler:
errstr = errstr + Result(count) + ","
' Charge = IIf(size > 3, Charge, Charge + 12.5)
Resume counter
End Function
'Author: Unknown
'Source: Stack Overflow
'Purpose: Checks if User form is still open
'Private Function IsLoaded(ByVal formName As String) As Boolean
' Dim frm As Object
' For Each frm In VBA.UserForms
' If frm.Name = formName Then
' IsLoaded = True
' Exit Function
' End If
'Nex 't frm
'IsLoaded = False
'End Function
' Author: Brandon Bwanakocha
' Title: getStr
'Purpose: To get the strings that are contained in the text boxes and combo boxes
'Parameters: str - string
' str_1 - string
' trig - Boolean boolean flag
' trig_1 - Boolean flag
Function getStr()
Dim str As String
Dim str_1 As String
Dim trig As Boolean
Dim trig_1 As Boolean
Dim boxstr As String
Dim box2str As String
Dim box3str As String
str = ""
str_1 = ""
trig = True
trig_1 = True
box2str = ""
box3str = ""
Dim Result(2) As String
For Each cCont In LiquidForm.Controls
If TypeName(cCont) = "ComboBox" Then
If cCont.Text = "" Then
' Do nothing if the ComboBox contains nothing
Else
If trig = False Then ' Make sure you ommit the first comma
Select Case cCont.Name
Case "ComboBox1"
str = str + ", " + Trim(CStr(cCont.Value))
Case "ComboBox2"
str = str + ", " + Trim(CStr(cCont.Value))
Case "ComboBox3"
str = str + ", " + Trim(CStr(cCont.Value))
Case "ComboBox4"
str = str + ", " + Trim(CStr(cCont.Value))
Case "ComboBox5"
str = str + ", " + Trim(CStr(cCont.Value))
End Select
Else
Select Case cCont.Name
Case "ComboBox1"
str = str + Trim(CStr(cCont.Value))
Case "ComboBox2"
str = str + Trim(CStr(cCont.Value))
Case "ComboBox3"
str = str + Trim(CStr(cCont.Value))
Case "ComboBox4"
str = str + Trim(CStr(cCont.Value))
Case "ComboBox5"
str = str + Trim(CStr(cCont.Value))
End Select
trig = False
End If
If trig_1 = False Then
Select Case cCont.Name
Case "ComboBox6"
str_1 = str_1 + ", " + Trim(CStr(cCont.Value))
Case "ComboBox7"
str_1 = str_1 + ", " + Trim(CStr(cCont.Value))
Case "ComboBox8"
str_1 = str_1 + ", " + Trim(CStr(cCont.Value))
Case "ComboBox9"
str_1 = str_1 + ", " + Trim(CStr(cCont.Value))
Case "ComboBox10"
str_1 = str_1 + ", " + Trim(CStr(cCont.Value))
End Select
Else
Select Case cCont.Name
Case "ComboBox6"
trig_1 = False
str_1 = str_1 + Trim(CStr(cCont.Value))
Case "ComboBox7"
trig_1 = False
str_1 = str_1 + Trim(CStr(cCont.Value))
trig_1 = False
Case "ComboBox8"
str_1 = str_1 + Trim(CStr(cCont.Value))
trig_1 = False
Case "ComboBox9"
trig_1 = False
str_1 = str_1 + Trim(CStr(cCont.Value))
Case "ComboBox10"
trig_1 = False
str_1 = str_1 + Trim(CStr(cCont.Value))
End Select
End If
End If
End If
Next cCont
' Fetch contents from the Other text boxes
If Not (LiquidForm.TextBox2.Value = "") Then
Select Case trig
Case False
box2str = ", " + LiquidForm.TextBox2.Value
Case True
box2str = LiquidForm.TextBox2.Value
End Select
End If
If Not (LiquidForm.TextBox3.Value = "") Then
Select Case trig_1
Case False
box3str = ", " + LiquidForm.TextBox3.Value
Case True
box3str = LiquidForm.TextBox3.Value
End Select
End If
' -------------------------------------------------------------------------------
str = str + Trim(box2str)
str_1 = str_1 + Trim(box3str)
Result(0) = str
Result(1) = str_1
getStr = Result
End Function
' Author: Brandon Bwanakocha
' Purpose: This function initializes the combo boxes when the quotation Macro is summoned
' Parameters: Void
' Return Type: Void
Sub Quotation()
Dim OpenForms
Dim PlaceHolder
BPrice = 450
' Add items to the combo boxes which are the drop down menus.
With LiquidForm.ComboBox1
.AddItem "Battery cover damaged"
.AddItem "Battery cover missing"
.AddItem "Battery faulty"
.AddItem "Battery missing"
.AddItem "Battery swollen"
.AddItem "Charging port damaged"
.AddItem "Charging port faulty"
.AddItem "Chip card reader damaged"
.AddItem "Chip card reader faulty"
.AddItem "CMOS battery low"
.AddItem "Bottom Case damaged"
.AddItem "Top Case damaged"
.AddItem "I/O board damaged"
.AddItem "I/O board faulty"
.AddItem "Keypad display damaged"
.AddItem "Keypad display unresponsive"
.AddItem "Keypad main damaged"
.AddItem "Keypad main unresponsive"
.AddItem "LCD damaged"
.AddItem "LCD faulty"
.AddItem "LCD no display"
.AddItem "Lens damaged"
.AddItem "Mag card reader damaged"
.AddItem "Mag card reader faulty"
.AddItem "Mainboard damaged"
.AddItem "Mainboard faulty"
.AddItem "Network failure"
.AddItem "NFC board damaged"
.AddItem "NFC board faulty"
.AddItem "NFC light on "
.AddItem "No fault found"
.AddItem "Not charging"
.AddItem "Not powering on"
.AddItem "Power adapter damaged"
.AddItem "Power adapter missing"
.AddItem "Printer cover damaged"
.AddItem "Printer cover missing"
.AddItem "Printer handle damaged"
.AddItem "Printer handle missing"
.AddItem "Printer roller damaged"
.AddItem "Printer roller missing"
.AddItem "Printer unit damaged"
.AddItem "Printer unit faulty"
.AddItem "SIM card holder damaged"
.AddItem "SIM card holder missing"
.AddItem "Software call customer service"
.AddItem "Software fault"
.AddItem "Software no go variable"
.AddItem "Substance damaged "
.AddItem "Tamper hard"
.AddItem "Tamper soft"
End With
With LiquidForm.ComboBox2
.AddItem "Battery cover damaged"
.AddItem "Battery cover missing"
.AddItem "Battery faulty"
.AddItem "Battery missing"
.AddItem "Battery swollen"
.AddItem "Charging port damaged"
.AddItem "Charging port faulty"
.AddItem "Chip card reader damaged"
.AddItem "Chip card reader faulty"
.AddItem "CMOS battery low"
.AddItem "Bottom Case damaged"
.AddItem "Mainboard faulty"
.AddItem "Network failure"
.AddItem "NFC board damaged"
.AddItem "NFC board faulty"
.AddItem "NFC light on "
.AddItem "No fault found"
.AddItem "Not charging"
.AddItem "Not powering on"
.AddItem "Power adapter damaged"
.AddItem "Power adapter missing"
.AddItem "Printer cover damaged"
.AddItem "Printer cover missing"
.AddItem "Printer handle damaged"
.AddItem "Printer handle missing"
.AddItem "Printer roller damaged"
.AddItem "Printer roller missing"
.AddItem "Printer unit damaged"
.AddItem "Printer unit faulty"
.AddItem "SIM card holder damaged"
.AddItem "SIM card holder missing"
.AddItem "Software call customer service"
.AddItem "Software fault"
.AddItem "Software no go variable"
.AddItem "Substance damaged "
.AddItem "Tamper hard"
.AddItem "Tamper soft"
End With
With LiquidForm.ComboBox3
.AddItem "Battery cover damaged"
.AddItem "Battery cover missing"
.AddItem "Battery faulty"
.AddItem "Battery missing"
.AddItem "Battery swollen"
.AddItem "Charging port damaged"
.AddItem "Charging port faulty"
.AddItem "Chip card reader damaged"
.AddItem "Chip card reader faulty"
.AddItem "CMOS battery low"
.AddItem "Bottom Case damaged"
.AddItem "Top Case damaged"
.AddItem "I/O board damaged"
.AddItem "I/O board faulty"
.AddItem "Keypad display damaged"
.AddItem "Keypad display unresponsive"
.AddItem "Keypad main damaged"
.AddItem "Keypad main unresponsive"
.AddItem "LCD damaged"
.AddItem "LCD faulty"
.AddItem "LCD no display"
.AddItem "Lens damaged"
.AddItem "Mag card reader damaged"
.AddItem "Mag card reader faulty"
.AddItem "Mainboard damaged"
.AddItem "Mainboard faulty"
.AddItem "Network failure"
.AddItem "NFC board damaged"
.AddItem "NFC board faulty"
.AddItem "NFC light on "
.AddItem "No fault found"
.AddItem "Not charging"
.AddItem "Not powering on"
.AddItem "Power adapter damaged"
.AddItem "Power adapter missing"
.AddItem "Printer cover damaged"
.AddItem "Printer cover missing"
.AddItem "Printer handle damaged"
.AddItem "Printer handle missing"
.AddItem "Printer roller damaged"
.AddItem "Printer roller missing"
.AddItem "Printer unit damaged"
.AddItem "Printer unit faulty"
.AddItem "SIM card holder damaged"
.AddItem "SIM card holder missing"
.AddItem "Software call customer service"
.AddItem "Software fault"
.AddItem "Software no go variable"
.AddItem "Substance damaged "
.AddItem "Tamper hard"
.AddItem "Tamper soft"
End With
With LiquidForm.ComboBox4
.AddItem "Battery cover damaged"
.AddItem "Battery cover missing"
.AddItem "Battery faulty"
.AddItem "Battery missing"
.AddItem "Battery swollen"
.AddItem "Charging port damaged"
.AddItem "Charging port faulty"
.AddItem "Chip card reader damaged"
.AddItem "Chip card reader faulty"
.AddItem "CMOS battery low"
.AddItem "Bottom Case damaged"
.AddItem "Top Case damaged"
.AddItem "I/O board damaged"
.AddItem "I/O board faulty"
.AddItem "Keypad display damaged"
.AddItem "Keypad display unresponsive"
.AddItem "Keypad main damaged"
.AddItem "Keypad main unresponsive"
.AddItem "LCD damaged"
.AddItem "LCD faulty"
.AddItem "LCD no display"
.AddItem "Lens damaged"
.AddItem "Mag card reader damaged"
.AddItem "Mag card reader faulty"
.AddItem "Mainboard damaged"
.AddItem "Mainboard faulty"
.AddItem "Network failure"
.AddItem "NFC board damaged"
.AddItem "NFC board faulty"
.AddItem "NFC light on "
.AddItem "No fault found"
.AddItem "Not charging"
.AddItem "Not powering on"
.AddItem "Power adapter damaged"
.AddItem "Power adapter missing"
.AddItem "Printer cover damaged"
.AddItem "Printer cover missing"
.AddItem "Printer handle damaged"
.AddItem "Printer handle missing"
.AddItem "Printer roller damaged"
.AddItem "Printer roller missing"
.AddItem "Printer unit damaged"
.AddItem "Printer unit faulty"
.AddItem "SIM card holder damaged"
.AddItem "SIM card holder missing"
.AddItem "Software call customer service"
.AddItem "Software fault"
.AddItem "Software no go variable"
.AddItem "Substance damaged "
.AddItem "Tamper hard"
.AddItem "Tamper soft"
End With
With LiquidForm.ComboBox5
.AddItem "Battery cover damaged"
.AddItem "Battery cover missing"
.AddItem "Battery faulty"
.AddItem "Battery missing"
.AddItem "Battery swollen"
.AddItem "Charging port damaged"
.AddItem "Charging port faulty"
.AddItem "Chip card reader damaged"
.AddItem "Chip card reader faulty"
.AddItem "CMOS battery low"
.AddItem "Bottom Case damaged"
.AddItem "Top Case damaged"
.AddItem "I/O board damaged"
.AddItem "I/O board faulty"
.AddItem "Keypad display damaged"
.AddItem "Keypad display unresponsive"
.AddItem "Keypad main damaged"
.AddItem "Keypad main unresponsive"
.AddItem "LCD damaged"
.AddItem "LCD faulty"
.AddItem "LCD no display"
.AddItem "Lens damaged"
.AddItem "Mag card reader damaged"
.AddItem "Mag card reader faulty"
.AddItem "Mainboard damaged"
.AddItem "Mainboard faulty"
.AddItem "Network failure"
.AddItem "NFC board damaged"
.AddItem "NFC board faulty"
.AddItem "NFC light on "
.AddItem "No fault found"
.AddItem "Not charging"
.AddItem "Not powering on"
.AddItem "Power adapter damaged"
.AddItem "Power adapter missing"
.AddItem "Printer cover damaged"
.AddItem "Printer cover missing"
.AddItem "Printer handle damaged"
.AddItem "Printer handle missing"
.AddItem "Printer roller damaged"
.AddItem "Printer roller missing"
.AddItem "Printer unit damaged"
.AddItem "Printer unit faulty"
.AddItem "SIM card holder damaged"
.AddItem "SIM card holder missing"
.AddItem "Software call customer service"
.AddItem "Software fault"
.AddItem "Software no go variable"
.AddItem "Substance damaged "
.AddItem "Tamper hard"
.AddItem "Tamper soft"
End With
With LiquidForm.ComboBox6
.AddItem "Antenna"
.AddItem "Battery coin"
.AddItem "Battery connector"
.AddItem "Battery cover"
.AddItem "Battery rechargeable"
.AddItem "Board I/O"
.AddItem "Board main"
.AddItem "Board NFC"
.AddItem "Bottom Case"
.AddItem "Bottom Cover Rubber Feet"
.AddItem "Carbon"
.AddItem "Card reader chip"
.AddItem "Charge Connecter"
.AddItem "Dome Pack"
.AddItem "ESD Shield"
.AddItem "Flat"
.AddItem "Keymesh"
.AddItem "Keypad display"
.AddItem "Keypad main"
.AddItem "Labour 15 mins"
.AddItem "Labour 30 mins"
.AddItem "Labour 45 mins"
.AddItem "Labour reload software"
.AddItem "Labour repair"
.AddItem "Labour strip and clean"
.AddItem "Labour tamper reset"
.AddItem "LCD"
.AddItem "Lens standard"
.AddItem "Lens touch"
.AddItem "MAG Bracket"
.AddItem "Magnetic Card Reader"
.AddItem "Metal paper cutter"
.AddItem "Phillips"
.AddItem "Power adapter"
.AddItem "Power cable"
.AddItem "Power connector"
.AddItem "Printer assembly"
.AddItem "Printer bracket"
.AddItem "Printer Cover Screw Set"
.AddItem "Printer cover"
.AddItem "Printer handle"
.AddItem "Printer roller"
.AddItem "Printer unit"
.AddItem "Printer"