---
id: object/table/5108
type: object
title: Table 5108 "Sales Line Archive"
summary: Table 5108 "Sales Line Archive" in Base Application (Microsoft.Sales.Archive). 165 fields, 6 public procedures, 2 events. Present since at least BC23, still in BC30, changed in BC24-26, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 808e5abfeaaabb6e8d8efa30aa0799769bdbcc087cc37a93acbdcab5eab4df88
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Archive/SalesLineArchive.Table.al
    title: src/Layers/W1/BaseApp/Sales/Archive/SalesLineArchive.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/at
    - localization/ca
    - localization/ch
    - localization/de
    - localization/es
    - localization/it
    - localization/mx
    - localization/no
    - localization/ru
    - localization/us
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5108
name: Sales Line Archive
namespace: Microsoft.Sales.Archive
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "28"
source_major: "29"
obsolete: null
countries:
  - at
  - ca
  - ch
  - de
  - es
  - it
  - mx
  - "no"
  - ru
  - us
ms_search_form_ids: []
counts:
  fields: 165
  procedures: 9
  events: 2
  subscribers: 0
relations:
  out: 61
  referenced_by: 5
  pages: 9
  extended_by: 3
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Table 5108 "Sales Line Archive"

> Table 5108 "Sales Line Archive" in Base Application (Microsoft.Sales.Archive). 165 fields, 6 public procedures, 2 events. Present since at least BC23, still in BC30, changed in BC24-26, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Sales Line Archive |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Document Type | Enum "Sales Document Type" | Specifies the type of sales document. | enum [Enum 36 "Sales Document Type"](../enum/36.md) |
| 2 | Sell-to Customer No. | Code[20] | Specifies the number of the customer who will receive the products and be billed by default. | TableRelation [Table 18 "Customer"](../table/18.md) |
| 3 | Document No. | Code[20] | Specifies the document number. | TableRelation [Table 5107 "Sales Header Archive"](../table/5107.md) ("Sales Header Archive"."No." where("Document Type" = field("Document Type"), "Version No." = field("Version No."))) |
| 4 | Line No. | Integer | Specifies the number of the line. |  |
| 5 | Type | Enum "Sales Line Type" | Specifies the type of entity that will be posted for this sales line, such as Item, Resource, or G/L Account. | enum [Enum 37 "Sales Line Type"](../enum/37.md) |
| 6 | No. | Code[20] | Specifies the number of the involved entry or record, according to the specified number series. | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 156 "Resource"](../table/156.md), [Table 27 "Item"](../table/27.md) (if (Type = const(" ")) "Standard Text" else if (Type = const("G/L Account")) "G/L Account" else if (Type = const(Item)) Item else if (Type = const(Resource)) Resource else if (Type = const("Fixed Asset")) "Fixed Asset" else if (Type = const("Charge (Item)")) "Item Charge") |
| 7 | Location Code | Code[10] | Specifies the location from where inventory items to the customer on the sales document are to be shipped by default. | TableRelation [Table 14 "Location"](../table/14.md) (Location where("Use As In-Transit" = const(false))) |
| 8 | Posting Group | Code[20] | — | TableRelation [Table 5606 "FA Posting Group"](../table/5606.md), [Table 94 "Inventory Posting Group"](../table/94.md) (if (Type = const(Item)) "Inventory Posting Group" else if (Type = const("Fixed Asset")) "FA Posting Group") |
| 9 | Quantity Disc. Code | Code[20] | — |  |
| 10 | Shipment Date | Date | 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. |  |
| 11 | Description | Text[100] | Specifies a description of the record. |  |
| 12 | Description 2 | Text[50] | Specifies information in addition to the description. |  |
| 13 | Unit of Measure | Text[50] | Specifies the name of the item or resource's unit of measure, such as piece or hour. |  |
| 15 | Quantity | Decimal | Specifies how many units are being sold. |  |
| 16 | Outstanding Quantity | Decimal | — |  |
| 17 | Qty. to Invoice | Decimal | Specifies the quantity that remains to be invoiced. It is calculated as Quantity - Qty. Invoiced. |  |
| 18 | Qty. to Ship | Decimal | Specifies the quantity of items that remain to be shipped. |  |
| 22 | Unit Price | Decimal | Specifies the price of one unit of the item or resource. You can enter a price manually or have it entered according to the Price/Profit Calculation field on the related card. |  |
| 23 | Unit Cost (LCY) | Decimal | Specifies the cost, in LCY, of one unit of the item or resource on the line. |  |
| 25 | VAT % | Decimal | — |  |
| 26 | Quantity Disc. % | Decimal | — |  |
| 27 | Line Discount % | Decimal | Specifies the discount percentage that is granted for the item on the line. |  |
| 28 | Line Discount Amount | Decimal | Specifies the discount amount that is granted for the item on the line. |  |
| 29 | Amount | Decimal | Specifies the sum of amounts in the Line Amount field on the sales lines. |  |
| 30 | Amount Including VAT | Decimal | Specifies the net amount, including VAT, for this line. |  |
| 32 | Allow Invoice Disc. | Boolean | Specifies if the invoice line is included when the invoice discount is calculated. |  |
| 34 | Gross Weight | Decimal | Specifies the gross weight of one unit of the item. In the sales statistics window, the gross weight on the line is included in the total gross weight of all the lines for the particular sales document. |  |
| 35 | Net Weight | Decimal | Specifies the net weight of one unit of the item. In the sales statistics window, the net weight on the line is included in the total net weight of all the lines for the particular sales document. |  |
| 36 | Units per Parcel | Decimal | Specifies the number of units per parcel of the item. In the sales statistics window, the number of units per parcel on the line helps to determine the total number of units for all the lines for the particular sales document. |  |
| 37 | Unit Volume | Decimal | Specifies the volume of one unit of the item. In the sales statistics window, the volume of one unit of the item on the line is included in the total volume of all the lines for the particular sales document. |  |
| 38 | Appl.-to Item Entry | Integer | Specifies the number of the item ledger entry that the document or journal line is applied to. |  |
| 40 | Shortcut Dimension 1 Code | Code[20] | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1))) |
| 41 | Shortcut Dimension 2 Code | Code[20] | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2))) |
| 42 | Price Group Code | Code[10] | — | TableRelation [Table 6 "Customer Price Group"](../table/6.md) (Customer Price Group) |
| 43 | Allow Quantity Disc. | Boolean | — |  |
| 45 | Job No. | Code[20] | Specifies the number of the related project. | TableRelation [Table 167 "Job"](../table/167.md) |
| 52 | Work Type Code | Code[10] | — | TableRelation [Table 200 "Work Type"](../table/200.md) (Work Type) |
| 55 | Cust./Item Disc. % | Decimal | — |  |
| 57 | Outstanding Amount | Decimal | — | not editable |
| 58 | Qty. Shipped Not Invoiced | Decimal | — |  |
| 59 | Shipped Not Invoiced | Decimal | — |  |
| 60 | Quantity Shipped | Decimal | Specifies how many units of the item on the line have been posted as shipped. |  |
| 61 | Quantity Invoiced | Decimal | Specifies how many units of the item on the line have been posted as invoiced. |  |
| 63 | Shipment No. | Code[20] | — |  |
| 64 | Shipment Line No. | Integer | — |  |
| 67 | Profit % | Decimal | — |  |
| 68 | Bill-to Customer No. | Code[20] | — | TableRelation [Table 18 "Customer"](../table/18.md) |
| 69 | Inv. Discount Amount | Decimal | Specifies the total calculated invoice discount amount for the line. |  |
| 71 | Purchase Order No. | Code[20] | — | TableRelation [Table 38 "Purchase Header"](../table/38.md) (if ("Drop Shipment" = const(true)) "Purchase Header"."No." where("Document Type" = const(Order))) |
| 72 | Purch. Order Line No. | Integer | — | TableRelation [Table 39 "Purchase Line"](../table/39.md) (if ("Drop Shipment" = const(true)) "Purchase Line"."Line No." where("Document Type" = const(Order), "Document No." = field("Purchase Order No."))) |
| 73 | Drop Shipment | Boolean | Specifies if your vendor ships the items directly to your customer. |  |
| 74 | Gen. Bus. Posting Group | Code[20] | Specifies the vendor's or customer's trade type to link transactions made for this business partner with the appropriate general ledger account according to the general posting setup. | TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md) (Gen. Business Posting Group) |
| 75 | Gen. Prod. Posting Group | Code[20] | Specifies the item's product type to link transactions made for this item with the appropriate general ledger account according to the general posting setup. | TableRelation [Table 251 "Gen. Product Posting Group"](../table/251.md) (Gen. Product Posting Group) |
| 77 | VAT Calculation Type | Enum "Tax Calculation Type" | — | enum [Enum 254 "Tax Calculation Type"](../enum/254.md) |
| 78 | Transaction Type | Code[10] | — | TableRelation [Table 258 "Transaction Type"](../table/258.md) (Transaction Type) |
| 79 | Transport Method | Code[10] | — | TableRelation [Table 259 "Transport Method"](../table/259.md) (Transport Method) |
| 80 | Attached to Line No. | Integer | — | TableRelation [Table 5108 "Sales Line Archive"](../table/5108.md) ("Sales Line Archive"."Line No." where("Document Type" = field("Document Type"), "Document No." = field("Document No."), "Doc. No. Occurrence" = field("Doc. No. Occurrence"), "Version No." = field("Version No."))) |
| 81 | Exit Point | Code[10] | — | TableRelation [Table 282 "Entry/Exit Point"](../table/282.md) (Entry/Exit Point) |
| 82 | Area | Code[10] | — | TableRelation [Table 284 "Area"](../table/284.md) |
| 83 | Transaction Specification | Code[10] | — | TableRelation [Table 285 "Transaction Specification"](../table/285.md) (Transaction Specification) |
| 85 | Tax Area Code | Code[20] | Specifies the tax area that is used to calculate and post sales tax. | TableRelation [Table 318 "Tax Area"](../table/318.md) (Tax Area) |
| 86 | Tax Liable | Boolean | Specifies if the customer or vendor is liable for sales tax. |  |
| 87 | Tax Group Code | Code[20] | Specifies the tax group that is used to calculate and post sales tax. | TableRelation [Table 321 "Tax Group"](../table/321.md) (Tax Group) |
| 88 | VAT Clause Code | Code[20] | — | TableRelation [Table 560 "VAT Clause"](../table/560.md) (VAT Clause) |
| 89 | VAT Bus. Posting Group | Code[20] | Specifies the VAT specification of the involved customer or vendor to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. | TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md) (VAT Business Posting Group) |
| 90 | VAT Prod. Posting Group | Code[20] | Specifies the VAT specification of the involved item or resource to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. | TableRelation [Table 324 "VAT Product Posting Group"](../table/324.md) (VAT Product Posting Group) |
| 91 | Currency Code | Code[10] | — | TableRelation [Table 4 "Currency"](../table/4.md) |
| 92 | Outstanding Amount (LCY) | Decimal | — |  |
| 93 | Shipped Not Invoiced (LCY) | Decimal | — |  |
| 96 | Reserve | Enum "Reserve Method" | Specifies whether items will never, automatically (Always), or optionally be reserved for this customer. Optional means that you must manually reserve items for this customer. | enum [Enum 100 "Reserve Method"](../enum/100.md) |
| 97 | Blanket Order No. | Code[20] | Specifies the number of the blanket order that the record originates from. | TableRelation [Table 36 "Sales Header"](../table/36.md) ("Sales Header"."No." where("Document Type" = const("Blanket Order"))) |
| 98 | Blanket Order Line No. | Integer | Specifies the number of the blanket order line that the record originates from. | TableRelation [Table 37 "Sales Line"](../table/37.md) ("Sales Line"."Line No." where("Document Type" = const("Blanket Order"), "Document No." = field("Blanket Order No."))) |
| 99 | VAT Base Amount | Decimal | — |  |
| 100 | Unit Cost | Decimal | — |  |
| 101 | System-Created Entry | Boolean | — |  |
| 103 | Line Amount | Decimal | Specifies the net amount, excluding any invoice discount amount, that must be paid for products on the line. |  |
| 104 | VAT Difference | Decimal | — |  |
| 105 | Inv. Disc. Amount to Invoice | Decimal | — |  |
| 106 | VAT Identifier | Code[20] | — |  |
| 107 | IC Partner Ref. Type | Enum "IC Partner Reference Type" | — | enum [Enum 107 "IC Partner Reference Type"](../enum/107.md) |
| 108 | IC Partner Reference | Code[20] | — |  |
| 109 | Prepayment % | Decimal | — |  |
| 110 | Prepmt. Line Amount | Decimal | — |  |
| 111 | Prepmt. Amt. Inv. | Decimal | — | not editable |
| 112 | Prepmt. Amt. Incl. VAT | Decimal | — | not editable |
| 113 | Prepayment Amount | Decimal | — | not editable |
| 114 | Prepmt. VAT Base Amt. | Decimal | — | not editable |
| 115 | Prepayment VAT % | Decimal | — | not editable |
| 116 | Prepmt. VAT Calc. Type | Enum "Tax Calculation Type" | — | enum [Enum 254 "Tax Calculation Type"](../enum/254.md); not editable |
| 117 | Prepayment VAT Identifier | Code[20] | — | not editable |
| 118 | Prepayment Tax Area Code | Code[20] | — | TableRelation [Table 318 "Tax Area"](../table/318.md) (Tax Area) |
| 119 | Prepayment Tax Liable | Boolean | — |  |
| 120 | Prepayment Tax Group Code | Code[20] | — | TableRelation [Table 321 "Tax Group"](../table/321.md) (Tax Group) |
| 121 | Prepmt Amt to Deduct | Decimal | — |  |
| 122 | Prepmt Amt Deducted | Decimal | — | not editable |
| 123 | Prepayment Line | Boolean | — | not editable |
| 124 | Prepmt. Amount Inv. Incl. VAT | Decimal | — | not editable |
| 130 | IC Partner Code | Code[20] | — | TableRelation [Table 413 "IC Partner"](../table/413.md) (IC Partner) |
| 138 | IC Item Reference No. | Code[50] | — |  |
| 145 | Pmt. Discount Amount | Decimal | — |  |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |
| 1001 | Job Task No. | Code[20] | Specifies the number of the related project task. | TableRelation [Table 1001 "Job Task"](../table/1001.md) ("Job Task"."Job Task No." where("Job No." = field("Job No."))); not editable |
| 1002 | Job Contract Entry No. | Integer | Specifies the entry number of the project planning line that the sales line is linked to. |  |
| 1700 | Deferral Code | Code[10] | Specifies the deferral template that governs how revenue earned with this sales document is deferred to the different accounting periods when the good or service was delivered. | TableRelation [Table 1700 "Deferral Template"](../table/1700.md) ("Deferral Template"."Deferral Code") |
| 1702 | Returns Deferral Start Date | Date | Specifies the starting date of the returns deferral period. |  |
| 5047 | Version No. | Integer | — |  |
| 5048 | Doc. No. Occurrence | Integer | — |  |
| 5402 | Variant Code | Code[10] | Specifies the variant of the item on the line. | TableRelation [Table 5401 "Item Variant"](../table/5401.md) (if (Type = const(Item)) "Item Variant".Code where("Item No." = field("No."))) |
| 5403 | Bin Code | Code[20] | — | TableRelation [Table 7354 "Bin"](../table/7354.md) (Bin.Code where("Location Code" = field("Location Code"))) |
| 5404 | Qty. per Unit of Measure | Decimal | — |  |
| 5405 | Planned | Boolean | — |  |
| 5407 | Unit of Measure Code | Code[10] | Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted. | TableRelation [Table 204 "Unit of Measure"](../table/204.md), [Table 5404 "Item Unit of Measure"](../table/5404.md) (if (Type = const(Item)) "Item Unit of Measure".Code where("Item No." = field("No.")) else "Unit of Measure") |
| 5415 | Quantity (Base) | Decimal | — |  |
| 5416 | Outstanding Qty. (Base) | Decimal | — |  |
| 5417 | Qty. to Invoice (Base) | Decimal | — |  |
| 5418 | Qty. to Ship (Base) | Decimal | — |  |
| 5458 | Qty. Shipped Not Invd. (Base) | Decimal | — |  |
| 5460 | Qty. Shipped (Base) | Decimal | — |  |
| 5461 | Qty. Invoiced (Base) | Decimal | — |  |
| 5600 | FA Posting Date | Date | Specifies the posting date of the related fixed asset transaction, such as a depreciation. |  |
| 5602 | Depreciation Book Code | Code[10] | Specifies the code for the depreciation book to which the line will be posted if you have selected Fixed Asset in the Type field for this line. | TableRelation [Table 5611 "Depreciation Book"](../table/5611.md) (Depreciation Book) |
| 5605 | Depr. until FA Posting Date | Boolean | Specifies if depreciation was calculated until the FA posting date of the line. |  |
| 5612 | Duplicate in Depreciation Book | Code[10] | Specifies a depreciation book code if you want the journal line to be posted to that depreciation book, as well as to the depreciation book in the Depreciation Book Code field. | TableRelation [Table 5611 "Depreciation Book"](../table/5611.md) (Depreciation Book) |
| 5613 | Use Duplication List | Boolean | Specifies, if the type is Fixed Asset, that information on the line is to be posted to all the assets defined depreciation books. |  |
| 5700 | Responsibility Center | Code[10] | — | TableRelation [Table 5714 "Responsibility Center"](../table/5714.md) (Responsibility Center) |
| 5701 | Out-of-Stock Substitution | Boolean | — |  |
| 5702 | Substitution Available | Boolean | Specifies whether a substitute is available for the item. | FlowField: exist("Item Substitution" where(Type = const(Item), "No." = field("No."), "Substitute Type" = const(Item))); not editable |
| 5703 | Originally Ordered No. | Code[20] | — | TableRelation [Table 27 "Item"](../table/27.md) (if (Type = const(Item)) Item) |
| 5704 | Originally Ordered Var. Code | Code[10] | — | TableRelation [Table 5401 "Item Variant"](../table/5401.md) (if (Type = const(Item)) "Item Variant".Code where("Item No." = field("Originally Ordered No."))) |
| 5709 | Item Category Code | Code[20] | — | TableRelation [Table 5722 "Item Category"](../table/5722.md) (Item Category) |
| 5710 | Nonstock | Boolean | Specifies that the item on the sales line is a catalog item, which means it is not normally kept in inventory. |  |
| 5711 | Purchasing Code | Code[10] | Specifies the code for a special procurement method, such as drop shipment. | TableRelation [Table 5721 "Purchasing"](../table/5721.md) |
| 5713 | Special Order | Boolean | Specifies that the item on the sales line is a special-order item. |  |
| 5714 | Special Order Purchase No. | Code[20] | — | TableRelation [Table 38 "Purchase Header"](../table/38.md) (if ("Special Order" = const(true)) "Purchase Header"."No." where("Document Type" = const(Order))) |
| 5715 | Special Order Purch. Line No. | Integer | — | TableRelation [Table 39 "Purchase Line"](../table/39.md) (if ("Special Order" = const(true)) "Purchase Line"."Line No." where("Document Type" = const(Order), "Document No." = field("Special Order Purchase No."))) |
| 5725 | Item Reference No. | Code[50] | Specifies the referenced item number. |  |
| 5726 | Item Reference Unit of Measure | Code[10] | Reference Unit of Measure <small>caption</small> | TableRelation [Table 5404 "Item Unit of Measure"](../table/5404.md) (if (Type = const(Item)) "Item Unit of Measure".Code where("Item No." = field("No."))) |
| 5727 | Item Reference Type | Enum "Item Reference Type" | — | enum [Enum 5726 "Item Reference Type"](../enum/5726.md) |
| 5728 | Item Reference Type No. | Code[30] | — |  |
| 5752 | Completely Shipped | Boolean | — |  |
| 5790 | Requested Delivery Date | Date | Specifies the date that your customer has asked for the order to be delivered. |  |
| 5791 | Promised Delivery Date | Date | Specifies the date that you have promised to deliver the order, as a result of the Order Promising function. |  |
| 5792 | Shipping Time | DateFormula | Specifies how long it takes from when the items are shipped from the warehouse to when they are delivered. |  |
| 5793 | Outbound Whse. Handling Time | DateFormula | Specifies a date formula for the time it takes to get items ready to ship from this location. The time element is used in the calculation of the delivery date as follows: Shipment Date + Outbound Warehouse Handling Time = Planned Shipment Date + Shipping Time = Planned Delivery Date. |  |
| 5794 | Planned Delivery Date | Date | Specifies the planned date that the shipment will be delivered at the customer's address. If the customer requests a delivery date, the program calculates whether the items will be available for delivery on this date. If the items are available, the planned delivery date will be the same as the requ... |  |
| 5795 | Planned Shipment Date | Date | Specifies the date that the shipment should ship from the warehouse. If the customer requests a delivery date, the program calculates the planned shipment date by subtracting the shipping time from the requested delivery date. If the customer does not request a delivery date or the requested deliver... |  |
| 5796 | Shipping Agent Code | Code[10] | Specifies the code for the shipping agent who is transporting the items. | TableRelation [Table 291 "Shipping Agent"](../table/291.md) (Shipping Agent) |
| 5797 | Shipping Agent Service Code | Code[10] | Specifies the code for the service, such as a one-day delivery, that is offered by the shipping agent. | TableRelation [Table 5790 "Shipping Agent Services"](../table/5790.md) ("Shipping Agent Services".Code where("Shipping Agent Code" = field("Shipping Agent Code"))) |
| 5800 | Allow Item Charge Assignment | Boolean | Specifies that you can assign item charges to this line. |  |
| 5803 | Return Qty. to Receive | Decimal | — |  |
| 5804 | Return Qty. to Receive (Base) | Decimal | — |  |
| 5805 | Return Qty. Rcd. Not Invd. | Decimal | — |  |
| 5806 | Ret. Qty. Rcd. Not Invd.(Base) | Decimal | — |  |
| 5807 | Return Amt. Rcd. Not Invd. | Decimal | — |  |
| 5808 | Ret. Amt. Rcd. Not Invd. (LCY) | Decimal | — |  |
| 5809 | Return Qty. Received | Decimal | — |  |
| 5810 | Return Qty. Received (Base) | Decimal | — |  |
| 5811 | Appl.-from Item Entry | Integer | Specifies the number of the item ledger entry that the document or journal line is applied from. |  |
| 5909 | BOM Item No. | Code[20] | — | TableRelation [Table 27 "Item"](../table/27.md) |
| 6600 | Return Receipt No. | Code[20] | — |  |
| 6601 | Return Receipt Line No. | Integer | — |  |
| 6608 | Return Reason Code | Code[10] | Specifies the code explaining why the item was returned. | TableRelation [Table 6635 "Return Reason"](../table/6635.md) (Return Reason) |
| 7000 | Price Calculation Method | Enum "Price Calculation Method" | — | enum [Enum 7000 "Price Calculation Method"](../enum/7000.md) |
| 7001 | Allow Line Disc. | Boolean | — |  |
| 7002 | Customer Disc. Group | Code[20] | — | TableRelation [Table 340 "Customer Discount Group"](../table/340.md) (Customer Discount Group) |

## Keys

- Key1: Document Type, Document No., Doc. No. Occurrence, Version No., Line No. (clustered)
- Key2: Document Type, Document No., Line No., Doc. No. Occurrence, Version No.
- Key3: Sell-to Customer No.
- Key4: Bill-to Customer No.
- Key5: Type, No.
- Key6: Document No., Document Type, Doc. No. Occurrence, Version No.

## Events published

- `OnCopyTempLinesOnAfterSalesLineArchiveSetFilters(var SalesLineArchive: Record "Sales Line Archive"; SalesHeaderArchive: Record "Sales Header Archive")` (integration): Raises an event after setting filters on the sales line archive record for copying lines.
- `OnBeforeShowDeferrals(var SalesLineArchive: Record "Sales Line Archive"; var IsHandled: Boolean)` (integration): Raises an event before displaying the deferral schedule for the archived sales line.

## Procedures

- `GetCaptionClass(FieldNumber: Integer): Text[80]`: Returns the caption class string for the specified field number based on whether prices include VAT.
- `IsExtendedText(): Boolean`: Determines whether this line is an extended text line attached to another document line.
- `ShowDimensions()`: Opens the Dimension Set Entries page to display the dimensions associated with this archived sales line.
- `ShowLineComments()`: Opens the Sales Archive Comment Sheet page to display comments associated with this archived sales line.
- `ShowDeferrals()`: Opens the Deferral Schedule Archive page to display the deferral schedule for this archived sales line.
- `CopyTempLines(SalesHeaderArchive: Record "Sales Header Archive"; var TempSalesLine: Record "Sales Line" temporary)`: Copies archived sales lines to a temporary sales line record set for use in document restoration.

Plus 1 local procedures.

## Triggers

OnDelete

## Relations

- Job Task No.: TableRelation [Table 1001 "Job Task"](../table/1001.md)
- Location Code: TableRelation [Table 14 "Location"](../table/14.md)
- No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- No.: TableRelation [Table 156 "Resource"](../table/156.md) (conditional)
- Job No.: TableRelation [Table 167 "Job"](../table/167.md)
- Deferral Code: TableRelation [Table 1700 "Deferral Template"](../table/1700.md)
- Bill-to Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Sell-to Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Work Type Code: TableRelation [Table 200 "Work Type"](../table/200.md)
- Unit of Measure Code: TableRelation [Table 204 "Unit of Measure"](../table/204.md) (conditional)
- Gen. Bus. Posting Group: TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md)
- Gen. Prod. Posting Group: TableRelation [Table 251 "Gen. Product Posting Group"](../table/251.md)
- Transaction Type: TableRelation [Table 258 "Transaction Type"](../table/258.md)
- Transport Method: TableRelation [Table 259 "Transport Method"](../table/259.md)
- BOM Item No.: TableRelation [Table 27 "Item"](../table/27.md)
- No.: TableRelation [Table 27 "Item"](../table/27.md) (conditional)
- Originally Ordered No.: TableRelation [Table 27 "Item"](../table/27.md)
- Exit Point: TableRelation [Table 282 "Entry/Exit Point"](../table/282.md)
- Area: TableRelation [Table 284 "Area"](../table/284.md)
- Transaction Specification: TableRelation [Table 285 "Transaction Specification"](../table/285.md)
- Shipping Agent Code: TableRelation [Table 291 "Shipping Agent"](../table/291.md)
- Prepayment Tax Area Code: TableRelation [Table 318 "Tax Area"](../table/318.md)
- Tax Area Code: TableRelation [Table 318 "Tax Area"](../table/318.md)
- Prepayment Tax Group Code: TableRelation [Table 321 "Tax Group"](../table/321.md)
- Tax Group Code: TableRelation [Table 321 "Tax Group"](../table/321.md)
- VAT Bus. Posting Group: TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md)
- VAT Prod. Posting Group: TableRelation [Table 324 "VAT Product Posting Group"](../table/324.md)
- Customer Disc. Group: TableRelation [Table 340 "Customer Discount Group"](../table/340.md)
- Shortcut Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Shortcut Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Blanket Order No.: TableRelation [Table 36 "Sales Header"](../table/36.md)
- Blanket Order Line No.: TableRelation [Table 37 "Sales Line"](../table/37.md)
- Purchase Order No.: TableRelation [Table 38 "Purchase Header"](../table/38.md)
- Special Order Purchase No.: TableRelation [Table 38 "Purchase Header"](../table/38.md)
- Purch. Order Line No.: TableRelation [Table 39 "Purchase Line"](../table/39.md)
- Special Order Purch. Line No.: TableRelation [Table 39 "Purchase Line"](../table/39.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- IC Partner Code: TableRelation [Table 413 "IC Partner"](../table/413.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- Document No.: TableRelation [Table 5107 "Sales Header Archive"](../table/5107.md)
- Attached to Line No.: TableRelation [Table 5108 "Sales Line Archive"](../table/5108.md)
- Originally Ordered Var. Code: TableRelation [Table 5401 "Item Variant"](../table/5401.md)
- Variant Code: TableRelation [Table 5401 "Item Variant"](../table/5401.md)
- Item Reference Unit of Measure: TableRelation [Table 5404 "Item Unit of Measure"](../table/5404.md)
- Unit of Measure Code: TableRelation [Table 5404 "Item Unit of Measure"](../table/5404.md) (conditional)
- VAT Clause Code: TableRelation [Table 560 "VAT Clause"](../table/560.md)
- No.: TableRelation [Table 5600 "Fixed Asset"](../table/5600.md) (conditional)
- Posting Group: TableRelation [Table 5606 "FA Posting Group"](../table/5606.md) (conditional)
- Depreciation Book Code: TableRelation [Table 5611 "Depreciation Book"](../table/5611.md)
- Duplicate in Depreciation Book: TableRelation [Table 5611 "Depreciation Book"](../table/5611.md)
- Responsibility Center: TableRelation [Table 5714 "Responsibility Center"](../table/5714.md)
- Substitution Available: CalcFormula [Table 5715 "Item Substitution"](../table/5715.md)
- Purchasing Code: TableRelation [Table 5721 "Purchasing"](../table/5721.md)
- Item Category Code: TableRelation [Table 5722 "Item Category"](../table/5722.md)
- Shipping Agent Service Code: TableRelation [Table 5790 "Shipping Agent Services"](../table/5790.md)
- No.: TableRelation [Table 5800 "Item Charge"](../table/5800.md) (conditional)
- Price Group Code: TableRelation [Table 6 "Customer Price Group"](../table/6.md)
- Return Reason Code: TableRelation [Table 6635 "Return Reason"](../table/6635.md)
- No.: TableRelation [Table 7 "Standard Text"](../table/7.md) (conditional)
- Bin Code: TableRelation [Table 7354 "Bin"](../table/7354.md)
- Posting Group: TableRelation [Table 94 "Inventory Posting Group"](../table/94.md) (conditional)

## Referenced by

5 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 5107 "Sales Header Archive"](../table/5107.md): Amount, Amount Including VAT, Completely Shipped, Late Order Shipping
- [Table 5108 "Sales Line Archive"](../table/5108.md): Attached to Line No.

## Pages and codeunits on this table

- [Page 30213 "APIV2 - Sales Qt. Arch. Lines"](../page/30213.md) (source table)
- [Page 30215 "APIV2 - S. Ord. Arch. Lines"](../page/30215.md) (source table)
- [Page 30221 "APIV2 - S. Ret. Ord. A. Lines"](../page/30221.md) (source table)
- [Page 30229 "APIV2 - S. Bl. O. Arch. Lines"](../page/30229.md) (source table)
- [Page 5160 "Sales Order Archive Subform"](../page/5160.md) (source table)
- [Page 5163 "Sales Quote Archive Subform"](../page/5163.md) (source table)
- [Page 6619 "Sales Line Archive List"](../page/6619.md) (source table)
- [Page 6621 "Blanket Sales Order Arch. Sub."](../page/6621.md) (source table)
- [Page 6628 "Sales Return Order Arc Subform"](../page/6628.md) (source table)

## Extended by

- [Table extension 30204 "Shpfy Sales Line Archive"](../tableextension/30204.md)
- [Table extension 6408 "Serv. Sales Line Archive"](../tableextension/6408.md)
- [Table extension 8068 "Sales Line Archive"](../tableextension/8068.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 1720 "Deferral Utilities"](../codeunit/1720.md) (1 call: `ShowDeferrals → OpenLineScheduleArchive`)
- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (1 call: `ShowDimensions → ShowDimensionSet`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-26, BC28

## Countries that replace it

[AT](../../localizations/at.md), [CA](../../localizations/ca.md), [CH](../../localizations/ch.md), [DE](../../localizations/de.md), [ES](../../localizations/es.md), [IT](../../localizations/it.md), [MX](../../localizations/mx.md), [NO](../../localizations/no.md), [RU](../../localizations/ru.md), [US](../../localizations/us.md)

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: "table", object_name: "Sales Line Archive")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
