-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path50204.salesLine.api.AL
More file actions
94 lines (92 loc) · 2.66 KB
/
Copy path50204.salesLine.api.AL
File metadata and controls
94 lines (92 loc) · 2.66 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
page 50204 "Sales Line API"
{
PageType = API;
APIPublisher = 'mioneBrands';
APIGroup = 'warehouse';
APIVersion = 'v1.0';
EntityName = 'salesLine_wBin';
EntitySetName = 'salesLine_wBins';
SourceTable = "Sales Line";
ODataKeyFields = SystemId;
DelayedInsert = true;
Editable = true;
InsertAllowed = true;
ModifyAllowed = true;
DeleteAllowed = true;
Caption = 'Sales Line w/ Bin 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(description; Rec.Description)
{
Caption = 'Description';
}
field(locationCode; Rec."Location Code")
{
Caption = 'Location Code';
}
field(binCode; Rec."Bin Code")
{
Caption = 'Bin Code';
}
field(quantity; Rec.Quantity)
{
Caption = 'Quantity';
}
field(qtyToShip; Rec."Qty. to Ship")
{
Caption = 'Qty. to Ship';
}
field(unitOfMeasureCode; Rec."Unit of Measure Code")
{
Caption = 'Unit of Measure Code';
}
field(lineAmount; Rec."Line Amount")
{
Caption = 'Line Amount';
}
field(outstandingQuantity; Rec."Outstanding Quantity")
{
Caption = 'Outstanding Quantity';
}
}
}
}
trigger OnModifyRecord(): Boolean
var
BinReassign: Codeunit "Assembly Line Bin Reassign";
begin
if Rec."Bin Code" <> xRec."Bin Code" then begin
BinReassign.ReassignSalesLineBin(Rec.SystemId, Rec."Bin Code");
exit(false);
end;
exit(true);
end;
}