---
id: object/codeunit/1320
type: object
title: Codeunit 1320 "Lines Instruction Mgt."
summary: Codeunit 1320 "Lines Instruction Mgt." in Base Application (Microsoft.Utilities). 2 public procedures, 4 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  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: ff4fe6ce93a23b608b5fd7c1b15c2aae7f8eba91d157c717f3a690e8f0d468aa
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Utilities/LinesInstructionMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Utilities/LinesInstructionMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1320
name: Lines Instruction Mgt.
namespace: Microsoft.Utilities
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 6
  events: 4
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 27
  implements: 0
---

# Codeunit 1320 "Lines Instruction Mgt."

> Codeunit 1320 "Lines Instruction Mgt." in Base Application (Microsoft.Utilities). 2 public procedures, 4 events. Present since at least BC23, still in BC30.

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

## Events published

- `OnAfterSetSalesLineFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header")` (integration)
- `OnAfterSetPurchaseLineFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header")` (integration)
- `OnBeforePurchaseCheckAllLinesHaveQuantityAssigned(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)` (integration)
- `OnBeforeSalesCheckAllLinesHaveQuantityAssigned(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)` (integration)

## Procedures

- `SalesCheckAllLinesHaveQuantityAssigned(SalesHeader: Record "Sales Header")`
- `PurchaseCheckAllLinesHaveQuantityAssigned(PurchaseHeader: Record "Purchase Header")`

## Triggers

OnRun

## Called by

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.

- [Page 20012 "APIV1 - Sales Invoices"](../page/20012.md) (2 calls: `PostInvoice → SalesCheckAllLinesHaveQuantityAssigned`, `SendDraftInvoice → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 30012 "APIV2 - Sales Invoices"](../page/30012.md) (2 calls: `PostInvoice → SalesCheckAllLinesHaveQuantityAssigned`, `SendDraftInvoice → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 9302 "Sales Credit Memos"](../page/9302.md) (2 calls: `CheckSalesCheckAllLinesHaveQuantityAssigned → SalesCheckAllLinesHaveQuantityAssigned`, `PostDocument → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 9309 "Purchase Credit Memos"](../page/9309.md) (2 calls: `CheckPurchaseCheckAllLinesHaveQuantityAssigned → PurchaseCheckAllLinesHaveQuantityAssigned`, `PostDocument → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Codeunit 20038 "APIV1 - Send Sales Document"](../codeunit/20038.md) (1 call: `SendDocument → SalesCheckAllLinesHaveQuantityAssigned`)
- [Codeunit 30038 "APIV2 - Send Sales Document"](../codeunit/30038.md) (1 call: `SendDocument → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 20028 "APIV1 - Sales Orders"](../page/20028.md) (1 call: `PostWithShipAndInvoice → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 20038 "APIV1 - Sales Credit Memos"](../page/20038.md) (1 call: `PostCreditMemo → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 20042 "APIV1 - Purchase Invoices"](../page/20042.md) (1 call: `PostInvoice → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Page 30028 "APIV2 - Sales Orders"](../page/30028.md) (1 call: `PostWithShipAndInvoice → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 30038 "APIV2 - Sales Credit Memos"](../page/30038.md) (1 call: `PostCreditMemo → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 30042 "APIV2 - Purchase Invoices"](../page/30042.md) (1 call: `PostInvoice → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Page 30066 "APIV2 - Purchase Orders"](../page/30066.md) (1 call: `PostInvoice → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Page 30083 "APIV2 - Purchase Credit Memos"](../page/30083.md) (1 call: `PostCreditMemo → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Page 41 "Sales Quote"](../page/41.md) (1 call: `CheckSalesCheckAllLinesHaveQuantityAssigned → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 42 "Sales Order"](../page/42.md) (1 call: `PostSalesOrder → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 43 "Sales Invoice"](../page/43.md) (1 call: `PostDocument → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 44 "Sales Credit Memo"](../page/44.md) (1 call: `CheckSalesCheckAllLinesHaveQuantityAssigned → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 50 "Purchase Order"](../page/50.md) (1 call: `PostDocument → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Page 51 "Purchase Invoice"](../page/51.md) (1 call: `PostDocument → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Page 52 "Purchase Credit Memo"](../page/52.md) (1 call: `PostDocument → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Page 6630 "Sales Return Order"](../page/6630.md) (1 call: `PostDocument → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 6640 "Purchase Return Order"](../page/6640.md) (1 call: `PostDocument → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Page 9300 "Sales Quotes"](../page/9300.md) (1 call: `CheckSalesCheckAllLinesHaveQuantityAssigned → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 9301 "Sales Invoice List"](../page/9301.md) (1 call: `PostDocument → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 9305 "Sales Order List"](../page/9305.md) (1 call: `PostDocument → SalesCheckAllLinesHaveQuantityAssigned`)
- [Page 9308 "Purchase Invoices"](../page/9308.md) (1 call: `Post → PurchaseCheckAllLinesHaveQuantityAssigned`)

## Across versions

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

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: "codeunit", object_name: "Lines Instruction Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
