---
id: object/table/12170-it
type: object
title: Table 12170 "Payment Lines" (IT)
summary: Table 12170 "Payment Lines" (IT) in the IT country layer (Microsoft.Foundation.PaymentTerms). 16 fields, 5 public procedures, 8 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - it layer
versions:
  introduced: "29"
  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: 9a3807f99ac6b75f016191197a67786f70f4145de6547ea09d1463b935bac2b9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/IT/BaseApp/Local/Foundation/PaymentTerms/PaymentLines.Table.al
    title: src/Layers/IT/BaseApp/Local/Foundation/PaymentTerms/PaymentLines.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/it
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 12170
name: Payment Lines
namespace: Microsoft.Foundation.PaymentTerms
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: IT
counts:
  fields: 16
  procedures: 15
  events: 8
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Table 12170 "Payment Lines" (IT)

> Table 12170 "Payment Lines" (IT) in the IT country layer (Microsoft.Foundation.PaymentTerms). 16 fields, 5 public procedures, 8 events. Introduced in BC29, still in BC30.

IT country layer · Microsoft.Foundation.PaymentTerms · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/IT/BaseApp/Local/Foundation/PaymentTerms/PaymentLines.Table.al) · facts from BC29

An object of the [IT localization](../../localizations/it.md), not part of W1.

## Properties

| Property | Value |
|---|---|
| Caption | Payment Lines |
| 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 | Type | Enum "Payment Lines Document Type" | — | enum Payment Lines Document Type |
| 2 | Code | Code[20] | — | TableRelation if (Type = const("Payment Terms")) "Payment Terms"; NotBlank |
| 3 | Line No. | Integer | — |  |
| 4 | Payment % | Decimal | — |  |
| 5 | Due Date Calculation | DateFormula | — |  |
| 6 | Discount Date Calculation | DateFormula | — |  |
| 7 | Discount % | Decimal | — |  |
| 8 | Due Date | Date | — |  |
| 9 | Pmt. Discount Date | Date | — |  |
| 10 | Sales/Purchase | Option | — | OptionCaption: ,Sales,Purchase,Service |
| 11 | Journal Template Name | Code[10] | — |  |
| 12 | Journal Line No. | Integer | — |  |
| 13 | Amount | Decimal | — |  |
| 14 | Prepmt. Due Date Calculation | DateFormula | — |  |
| 15 | Prepayment % | Decimal | — |  |
| 16 | Prepmt. Due Date | Date | — |  |

## Keys

- Key1: Sales/Purchase, Type, Code, Journal Template Name, Journal Line No., Line No. (clustered)

## Events published

- `OnCheckTotalPaymentsPercOnAfterSetFilters(var TempPaymentLines: Record "Payment Lines"; var PaymentLines: Record "Payment Lines")` (integration)
- `OnCreatePaymentLiensPurchasesOnBeforePaymentLinesInsert(var PaymentLines: Record "Payment Lines"; PurchaseHeader: Record "Purchase Header"; PaymentLinesTerms: Record "Payment Lines")` (integration)
- `OnCreatePaymentLinesSalesOnBeforePaymentLinesInsert(var PaymentLines: Record "Payment Lines"; SalesHeader: Record "Sales Header"; PaymentLinesTerms: Record "Payment Lines")` (integration)
- `OnCreatePaymentLinesSalesOnAfterSetDueDate(var PaymentLines: Record "Payment Lines"; var SalesHeader: Record "Sales Header"; DeferringDueDates: Record "Deferring Due Dates")` (integration)
- `OnCreatePaymentLiensPurchasesOnAfterPopulatePaymentLines(var PaymentLines: Record "Payment Lines"; PaymentLinesTerms: Record "Payment Lines"; PurchaseHeader: Record "Purchase Header")` (integration)
- `OnCreatePaymentLinesSalesOnAfterPopulatePaymentLines(var PaymentLines: Record "Payment Lines"; PaymentLinesTerms: Record "Payment Lines"; SalesHeader: Record "Sales Header")` (integration)
- `OnBeforeFindDocument(var PaymentLines: Record "Payment Lines"; var DocumentDate: Date)` (integration)
- `OnDeletePaymentLinesOnAfterGetDocument(RecRef: RecordRef; var SalesPurchaseType: Option ,Sales,Purchase,Service; var DocumentType: Option; var DocumentNo: Code[20]; IsBlanketOrder: Boolean)` (integration)

## Procedures

- `FindDocument()`
- `CheckTotalPaymentsPerc(NewValue: Decimal)`
- `CreatePaymentLinesSales(SalesHeader: Record "Sales Header")`
- `CreatePaymentLiensPurchases(PurchaseHeader: Record "Purchase Header")`
- `DeletePaymentLines(RecVar: Variant)`

Plus 2 local procedures.

## Triggers

OnDelete, OnInsert, OnModify

## Across versions

- Present in: BC29-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). 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: "Payment Lines")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A IT country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
