---
id: object/interface/invoice-posting
type: object
title: Interface "Invoice Posting"
summary: Interface "Invoice Posting" in Base Application (Microsoft.Finance.ReceivablesPayables). 15 public procedures. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - interface
  - 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: eab3ef54bd583661068eb994d890a2ba0f20ca818ab9bf9453c6795b606a6e70
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/ReceivablesPayables/InvoicePosting.Interface.al
    title: src/Layers/W1/BaseApp/Finance/ReceivablesPayables/InvoicePosting.Interface.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: interface
object_id: null
name: Invoice Posting
namespace: Microsoft.Finance.ReceivablesPayables
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: 15
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
  implemented_by: 7
---

# Interface "Invoice Posting"

> Interface "Invoice Posting" in Base Application (Microsoft.Finance.ReceivablesPayables). 15 public procedures. Present since at least BC23, still in BC30.

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

## Procedures

- `Check(TableID: Integer)`
- `ClearBuffers()`: Clear temporary posting buffers in invoice posting codeunit
- `CheckCreditLine(DocumentHeaderVar: Variant; DocumentLineVar: Variant)`: Check credit limit for document customer
- `SetHideProgressWindow(NewHideProgressWindow: Boolean)`: Set HideProgressWindow variable inside the invoice posting codeunit
- `SetParameters(InvoicePostingParameters: Record "Invoice Posting Parameters")`: Set posting related parameters using temporary table
- `SetPreviewMode(NewPreviewMode: Boolean)`: Set PreviewMode variable inside the invoice posting codeunit
- `SetSuppressCommit(NewSuppressCommit: Boolean)`: Set SupressCommit variable inside the invoice posting codeunit
- `SetTotalLines(TotalDocumentLine: Variant; TotalDocumentLineLCY: Variant)`: Set SupressCommit variable inside the invoice posting codeunit
- `PrepareLine(DocumentHeaderVar: Variant; DocumentLineVar: Variant; DocumentLineACYVar: Variant)`: Prepare invoice posting buffer line from source document line
- `PrepareJobLine(DocumentHeaderVar: Variant; DocumentLineVar: Variant; DocumentLineACYVar: Variant)`: Prepare invoice posting buffer line from source document job line
- `PostLedgerEntry(DocumentHeaderVar: Variant; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")`: Process customer or vendor ledger entry.
- `PostBalancingEntry(DocumentHeaderVar: Variant; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")`: Process customer or vendor ledger entry.
- `PostLines(DocumentHeaderVar: Variant; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var Window: Dialog; var TotalAmount: Decimal)`: Process invoice posting buffer and post ledger entries for each record.
- `CalcDeferralAmounts(DocumentHeaderVar: Variant; DocumentLineVar: Variant; OriginalDeferralAmount: Decimal)`: Calculate deferral amounts for invoice posting buffer
- `CreatePostedDeferralSchedule(DocumentLineVar: Variant; NewDocumentType: Integer; NewDocumentNo: Code[20]; NewLineNo: Integer; PostingDate: Date)`: Create deferral schedule for posted documents

## Implemented by

- [Codeunit 815 "Sales Post Invoice"](../codeunit/815.md)
- [Codeunit 816 "Purch. Post Invoice"](../codeunit/816.md)
- [Codeunit 817 "Service Post Invoice"](../codeunit/817.md)
- [Codeunit 819 "Undefined Post Invoice"](../codeunit/819.md)
- [Enum 815 "Sales Invoice Posting"](../enum/815.md)
- [Enum 816 "Purchase Invoice Posting"](../enum/816.md)
- [Enum 817 "Service Invoice Posting"](../enum/817.md)

## 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: "interface", object_name: "Invoice Posting")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
