mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Contributed by CURABIS ApS, generalized from patterns observed across real AppSource/PTE development. Each article follows the knowledge file format (frontmatter, Description/Best Practice/Anti Pattern, sibling .good.al/.bad.al samples).
24 lines
602 B
AL
24 lines
602 B
AL
page 50100 "Item Availability API"
|
|
{
|
|
PageType = API;
|
|
APIPublisher = 'contoso';
|
|
APIGroup = 'inventory';
|
|
APIVersion = 'v1.0';
|
|
EntityName = 'itemAvailability';
|
|
EntitySetName = 'itemAvailabilities';
|
|
SourceTable = Item;
|
|
|
|
layout
|
|
{
|
|
area(content)
|
|
{
|
|
repeater(General)
|
|
{
|
|
field(itemNo; Rec."No.") { }
|
|
field(quantityOnHand; Rec.Inventory) { }
|
|
// No OnAfterGetRecord CalcFields — Inventory is a FlowField
|
|
// and returns 0 to every consumer.
|
|
}
|
|
}
|
|
}
|
|
}
|