---
id: object/page/499
type: object
title: Page 499 "Available - Sales Lines"
summary: Page 499 "Available - Sales Lines" in Base Application (Microsoft.Sales.Document). 4 public procedures, 4 events. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - page
  - base application
versions:
  introduced: null
  last_changed: "24"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: ba4d5b13fb6b207c8ea46cb7a9af7634e5ec3a11078e439617ba70f42a2c14cc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Document/AvailableSalesLines.Page.al
    title: src/Layers/W1/BaseApp/Sales/Document/AvailableSalesLines.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/inventory-how-availability-overview
    title: Get an availability overview
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/inventory-how-availability-overview
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/inventory
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 499
name: Available - Sales Lines
namespace: Microsoft.Sales.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-smb-docs/business-central/inventory-how-availability-overview.md
counts:
  fields: 0
  procedures: 13
  events: 4
  subscribers: 0
  controls: 9
  actions: 3
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Page 499 "Available - Sales Lines"

> Page 499 "Available - Sales Lines" in Base Application (Microsoft.Sales.Document). 4 public procedures, 4 events. Present since at least BC23, still in BC30, changed in BC24.

Base Application · Microsoft.Sales.Document · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Document/AvailableSalesLines.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Available - Sales Lines |
| SourceTable | Sales Line |
| PageType | List |
| Permissions | TableData "Sales Line" = rm |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Control1 | Document Type | [Document Type](../table/37.md#fields) | Specifies the type of document that you are about to create. <small>from the table field</small> |
|  | Document No. | [Document No.](../table/37.md#fields) | Specifies the document number. <small>from the table field</small> |
|  | Location Code | [Location Code](../table/37.md#fields) | Specifies the inventory location from which the items sold should be picked and where the inventory decrease is registered. <small>from the table field</small> |
|  | Shipment Date | [Shipment Date](../table/37.md#fields) | Specifies when items on the document are shipped or were shipped. A shipment date is usually calculated from a requested delivery date plus lead time. <small>from the table field</small> |
|  | Outstanding Qty. (Base) | [Outstanding Qty. (Base)](../table/37.md#fields) | Specifies the outstanding quantity expressed in the base units of measure. |
|  | Reserved Qty. (Base) | [Reserved Qty. (Base)](../table/37.md#fields) | Specifies the reserved quantity of the item expressed in base units of measure. |
|  | Available Quantity | `QtyToReserveBase` | Specifies the quantity of the item that is available for reservation. |
|  | Current Reserved Quantity | `GetReservedQtyInLine()` | Specifies the quantity of the item that is reserved from the sales line for the current line or entry. |
|  | Work Type Code | [Work Type Code](../table/37.md#fields) | Specifies which work type the resource applies to when the sale is related to a project. <small>from the table field</small> |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Functions | Reserve | Reserve the quantity that is required on the document line that you opened this window for. |  |
|  | Cancel Reservation | Cancel the reservation that exists for the document line that you opened this window for. |  |
|  | Show Document | Open the document that the information on the line comes from. |  |

## Events published

- `OnAfterSetFilters(var SalesLine: Record "Sales Line"; ReservationEntry: Record "Reservation Entry")` (integration)
- `OnAfterUpdateReservFrom(var ReservationEntry: Record "Reservation Entry")` (integration)
- `OnAfterUpdateReservMgt(var ReservationEntry: Record "Reservation Entry")` (integration)
- `OnBeforeCheckSalesLine(SalesLine: Record "Sales Line"; ReservationEntry: Record "Reservation Entry"; var IsHandled: Boolean)` (integration)

## Procedures

- `SetSource(CurrentSourceRecRef: RecordRef; CurrentReservEntry: Record "Reservation Entry")`: Sets the source record for reservation with outbound direction.
- `SetSource(CurrentSourceRecRef: RecordRef; CurrentReservEntry: Record "Reservation Entry"; Direction: Enum "Transfer Direction")`: Sets the source record for reservation with the specified transfer direction.
- `GetReservedQtyInLine(): Decimal` (protected)
- `SetCurrentSubType(SubType: Option)`: Sets the current document subtype for filtering sales lines.

Plus 5 local procedures.

## Triggers

OnAfterGetRecord, OnOpenPage

## Relations

- source table [Table 37 "Sales Line"](../table/37.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 99000845 "Reservation Management"](../codeunit/99000845.md) (5 calls: `CreateReservation → CreateReservation`, `GetReservedQtyInLine → MarkReservConnection`, `SetFilters → GetAvailabilityFilter`, …)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24

## Documented on Microsoft Learn

- [Get an availability overview](https://learn.microsoft.com/dynamics365/business-central/inventory-how-availability-overview)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "Available - Sales Lines")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
