forked from Eric-Guo/pl-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms_test.rb
120 lines (118 loc) · 2.33 KB
/
forms_test.rb
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
# encoding: UTF-8
# Doc#: 3712-02-00116 Out Of Box Audit Document Checklist
out_of_box_audit_document_checklist_general_fields = {
:sampled_box_of => :integer,
:po_no => :string,
:so_no_sto_no => :string,
:line_no => :integer,
:part_no => :string,
:ship_qty => :integer,
}
out_of_box_audit_document_checklist_general_detail_fields = {
:items => [
"Barcode scan",
"Packing method",
"SO# / STO# / Line#",
"SO# / STO# / Line#",
"PO#",
"PO#",
"Delivery Number",
"Device P/N",
"Ship to Address",
"Ship to Address",
"Number of Boxes",
"Number of Boxes",
"Number of Boxes",
"Number of Boxes",
"Quantity",
"Quantity",
"Quantity",
"Quantity",
"WO# & P/N",
"WO# & P/N",
"WO# & P/N",
"Document attached out Box X of X",
"Document attached out Box X of X",
"Document attached out Box X of X"],
:specs => [
"Shipping label spec",
"Packing spec",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"Invoice",
"T-Card",
"T-Card",
"T-Card",
"N/A",
"N/A",
"N/A"],
:check_items => [
"Use barcode scanner to read each barcodes on one label",
"Packing method",
"Packing list",
"Shipping label",
"Packing list",
"Shipping label",
"Packing list",
"Packing list",
"Shipping label",
"Packing list",
"Forwarder Label",
"Packing list",
"Shipping label",
"Forwarder label",
"Physical box qty",
"Packing list",
"Shipping label",
"Physical product qty",
"To partial outer box, the sum of the qty on the inner box label if match with the qty on the outer box label",
"Weight label",
"Shipping label",
"Inner box label",
"Invoice",
"Packing list",
"C of C"],
:criterias => [
"Barcode read out match with 'leading character + readable text'",
"Packaging per instructions on BOM",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Match",
"Out box X of X",
"Out box X of X",
"Out box X of X"],
:check_list_result => :boolean,
}
generate_form 'QA', 'OutOfBoxAuditChecklist',
(out_of_box_audit_document_checklist_general_fields.merge common_fields), out_of_box_audit_document_checklist_general_detail_fields