page 60778 "API Sales Lines"
{
PageType = API;
APIVersion = 'v2.0';
APIPublisher = <Publisher>;
APIGroup = 'Automation';
EntityCaption = 'Sales Line';
EntitySetCaption = 'Sales Lines';
EntityName = 'salesLine';
EntitySetName = 'salesLines';
ODataKeyFields = SystemId;
SourceTable = "Sales Line";
Extensible = true;
DelayedInsert = true;
layout
{
area(content)
{
repeater(Group)
{
field("Id"; Rec.SystemId)
{
Caption = 'Id';
ApplicationArea = All;
Editable = false;
// ODataEDMType = 'Collection(DIMENSION)';//Collection('sales');'SalesLines';
}
field("documentType"; Rec."Document Type")
{
ApplicationArea = All;
Editable = true;
}
field("documentNo"; Rec."Document No.")
{
ApplicationArea = All;
Editable = true;
}
field("lineType"; Rec.Type)
{
ApplicationArea = All;
Editable = true;
}
field("description"; Rec.Description)
{
ApplicationArea = All;
Editable = true;
}
field("itemNumber"; Rec."No.")
{
ApplicationArea = All;
Editable = true;
}
field("discountPercent"; Rec."Line Discount %")
{
ApplicationArea = All;
Editable = true;
}
field(LocationId; LocationId)
{
ApplicationArea = All;
Editable = true;
}
field("locationCode"; Rec."Location Code")
{
ApplicationArea = All;
Editable = true;
}
field("reasonCode"; Rec."Return Reason Code")
{
ApplicationArea = All;
Editable = true;
}
field("CustomerPriceGroup"; Rec."Customer Price Group")
{
ApplicationArea = All;
Editable = true;
}
field(DateCreated; Rec.SystemCreatedAt)
{
Caption = 'Id';
ApplicationArea = All;
Editable = false;
}
field(LastModified; Rec.SystemModifiedAt)
{
Caption = 'Id';
ApplicationArea = All;
Editable = false;
}
field(SystemCreatedBy; Rec.SystemCreatedBy)
{
Caption = 'Id';
ApplicationArea = All;
Editable = false;
}
field(SystemModifiedBy; Rec.SystemModifiedBy)
{
Caption = 'Id';
ApplicationArea = All;
Editable = false;
}
field("unitPrice"; Rec."Unit Price")
{
ApplicationArea = All;
Editable = true;
}
}
}
}