-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path50207.assemblyLine.api.AL
More file actions
217 lines (215 loc) · 7.26 KB
/
Copy path50207.assemblyLine.api.AL
File metadata and controls
217 lines (215 loc) · 7.26 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
page 50207 "Assembly Line API"
{
PageType = API;
APIPublisher = 'mioneBrands';
APIGroup = 'warehouse';
APIVersion = 'v1.0';
EntityName = 'assemblyLine';
EntitySetName = 'assemblyLines';
SourceTable = "Assembly Line";
ODataKeyFields = SystemId;
DelayedInsert = true;
InsertAllowed = true;
ModifyAllowed = true;
DeleteAllowed = true;
Caption = 'Assembly Line API';
layout
{
area(content)
{
repeater(General)
{
field(id; Rec.SystemId)
{
Caption = 'Id';
}
field(documentType; Rec."Document Type")
{
Caption = 'Document Type';
}
field(documentNo; Rec."Document No.")
{
Caption = 'Document No.';
}
field(lineNo; Rec."Line No.")
{
Caption = 'Line No.';
}
field(type; Rec.Type)
{
Caption = 'Type';
}
field(no; Rec."No.")
{
Caption = 'No.';
}
field(variantCode; Rec."Variant Code")
{
Caption = 'Variant Code';
}
field(description; Rec.Description)
{
Caption = 'Description';
}
field(description2; Rec."Description 2")
{
Caption = 'Description 2';
}
field(leadTimeOffset; Rec."Lead-Time Offset")
{
Caption = 'Lead-Time Offset';
}
field(resourceUsageType; Rec."Resource Usage Type")
{
Caption = 'Resource Usage Type';
}
field(locationCode; Rec."Location Code")
{
Caption = 'Location Code';
}
field(shortcutDimension1Code; Rec."Shortcut Dimension 1 Code")
{
Caption = 'Shortcut Dimension 1 Code';
}
field(shortcutDimension2Code; Rec."Shortcut Dimension 2 Code")
{
Caption = 'Shortcut Dimension 2 Code';
}
field(binCode; Rec."Bin Code")
{
Caption = 'Bin Code';
}
field(position; Rec.Position)
{
Caption = 'Position';
}
field(position2; Rec."Position 2")
{
Caption = 'Position 2';
}
field(position3; Rec."Position 3")
{
Caption = 'Position 3';
}
field(applToItemEntry; Rec."Appl.-to Item Entry")
{
Caption = 'Appl.-to Item Entry';
}
field(applFromItemEntry; Rec."Appl.-from Item Entry")
{
Caption = 'Appl.-from Item Entry';
}
field(quantity; Rec.Quantity)
{
Caption = 'Quantity';
}
field(quantityBase; Rec."Quantity (Base)")
{
Caption = 'Quantity (Base)';
}
field(remainingQuantity; Rec."Remaining Quantity")
{
Caption = 'Remaining Quantity';
}
field(remainingQuantityBase; Rec."Remaining Quantity (Base)")
{
Caption = 'Remaining Quantity (Base)';
}
field(consumedQuantity; Rec."Consumed Quantity")
{
Caption = 'Consumed Quantity';
}
field(consumedQuantityBase; Rec."Consumed Quantity (Base)")
{
Caption = 'Consumed Quantity (Base)';
}
field(quantityToConsume; Rec."Quantity to Consume")
{
Caption = 'Quantity to Consume';
}
field(quantityToConsumeBase; Rec."Quantity to Consume (Base)")
{
Caption = 'Quantity to Consume (Base)';
}
field(availWarning; Rec."Avail. Warning")
{
Caption = 'Avail. Warning';
}
field(dueDate; Rec."Due Date")
{
Caption = 'Due Date';
}
field(reserve; Rec.Reserve)
{
Caption = 'Reserve';
}
field(quantityPer; Rec."Quantity per")
{
Caption = 'Quantity per';
}
field(qtyPerUnitOfMeasure; Rec."Qty. per Unit of Measure")
{
Caption = 'Qty. per Unit of Measure';
}
field(inventoryPostingGroup; Rec."Inventory Posting Group")
{
Caption = 'Inventory Posting Group';
}
field(genProdPostingGroup; Rec."Gen. Prod. Posting Group")
{
Caption = 'Gen. Prod. Posting Group';
}
field(genBusPostingGroup; Rec."Gen. Bus. Posting Group")
{
Caption = 'Gen. Bus. Posting Group';
}
field(unitCost; Rec."Unit Cost")
{
Caption = 'Unit Cost';
}
field(costAmount; Rec."Cost Amount")
{
Caption = 'Cost Amount';
}
field(unitOfMeasureCode; Rec."Unit of Measure Code")
{
Caption = 'Unit of Measure Code';
}
field(qtyRoundingPrecision; Rec."Qty. Rounding Precision")
{
Caption = 'Qty. Rounding Precision';
}
field(qtyRoundingPrecisionBase; Rec."Qty. Rounding Precision (Base)")
{
Caption = 'Qty. Rounding Precision (Base)';
}
field(dimensionSetId; Rec."Dimension Set ID")
{
Caption = 'Dimension Set ID';
}
field(qtyPicked; Rec."Qty. Picked")
{
Caption = 'Qty. Picked';
}
field(qtyPickedBase; Rec."Qty. Picked (Base)")
{
Caption = 'Qty. Picked (Base)';
}
field(lastModifiedDateTime; Rec.SystemModifiedAt)
{
Caption = 'Last Modified Date Time';
}
}
}
}
trigger OnModifyRecord(): Boolean
var
BinReassign: Codeunit "Assembly Line Bin Reassign";
begin
if Rec."Bin Code" <> xRec."Bin Code" then begin
BinReassign.ReassignAssemblyLineBin(Rec.SystemId, Rec."Bin Code");
exit(false);
end;
exit(true);
end;
}