{"title":"Table 49 Invoice Post. Buffer, procedures","url":"https://jonas-paprotka.de/ref/table/49-invoice-post-buffer/procedures/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":49,"name":"Invoice Post. Buffer","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/table/49-invoice-post-buffer/","json":"https://jonas-paprotka.de/ref/table/49-invoice-post-buffer.json"},"aspect":"procedures","total":19,"rows":[{"name":"PrepareSales","sig":"(var Record Sales Line)","named":"(var SalesLine: Record \"Sales Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in codeunit Sales Post Invoice","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(var SalesLine: Record \"Sales Line\")","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":25,"named":"(var SalesLine: Record \"Sales Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}},{"from":26,"to":26,"named":"(var SalesLine: Record \"Sales Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in codeunit Sales Post Invoice","tag":"20.0"}}]},{"name":"CalcDiscount","sig":"(Boolean, Decimal, Decimal)","named":"(PricesInclVAT: Boolean; DiscountAmount: Decimal; DiscountAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(PricesInclVAT: Boolean; DiscountAmount: Decimal; DiscountAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(PricesInclVAT: Boolean; DiscountAmount: Decimal; DiscountAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"SetAccount","sig":"(Code[20], var Decimal, var Decimal, var Decimal, var Decimal)","named":"(AccountNo: Code[20]; var TotalVAT: Decimal; var TotalVATACY: Decimal; var TotalAmount: Decimal; var TotalAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(AccountNo: Code[20]; var TotalVAT: Decimal; var TotalVATACY: Decimal; var TotalAmount: Decimal; var TotalAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(AccountNo: Code[20]; var TotalVAT: Decimal; var TotalVATACY: Decimal; var TotalAmount: Decimal; var TotalAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"SetAmounts","sig":"(Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal)","named":"(TotalVAT: Decimal; TotalVATACY: Decimal; TotalAmount: Decimal; TotalAmountACY: Decimal; VATDifference: Decimal; TotalVATBase: Decimal; TotalVATBaseACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(TotalVAT: Decimal; TotalVATACY: Decimal; TotalAmount: Decimal; TotalAmountACY: Decimal; VATDifference: Decimal; TotalVATBase: Decimal; TotalVATBaseACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(TotalVAT: Decimal; TotalVATACY: Decimal; TotalAmount: Decimal; TotalAmountACY: Decimal; VATDifference: Decimal; TotalVATBase: Decimal; TotalVATBaseACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"PreparePurchase","sig":"(var Record Purchase Line)","named":"(var PurchLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(var PurchLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(var PurchLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"CalcDiscountNoVAT","sig":"(Decimal, Decimal)","named":"(DiscountAmount: Decimal; DiscountAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(DiscountAmount: Decimal; DiscountAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(DiscountAmount: Decimal; DiscountAmountACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"SetSalesTaxForPurchLine","sig":"(Record Purchase Line)","named":"(PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in codeunit Purch Post Invoice","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":25,"named":"(PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}},{"from":26,"to":26,"named":"(PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in codeunit Purch Post Invoice","tag":"20.0"}}]},{"name":"SetSalesTaxForSalesLine","sig":"(Record Sales Line)","named":"(SalesLine: Record \"Sales Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in codeunity Sales Post Invoice","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(SalesLine: Record \"Sales Line\")","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":25,"named":"(SalesLine: Record \"Sales Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}},{"from":26,"to":26,"named":"(SalesLine: Record \"Sales Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in codeunity Sales Post Invoice","tag":"20.0"}}]},{"name":"ReverseAmounts","sig":"()","named":"()","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"()","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"()","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"SetAmountsNoVAT","sig":"(Decimal, Decimal, Decimal)","named":"(TotalAmount: Decimal; TotalAmountACY: Decimal; VATDifference: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(TotalAmount: Decimal; TotalAmountACY: Decimal; VATDifference: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(TotalAmount: Decimal; TotalAmountACY: Decimal; VATDifference: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"PrepareService","sig":"(var Record Service Line)","named":"(var ServiceLine: Record \"Service Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in codeunit Service Post Invoice","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(var ServiceLine: Record \"Service Line\")","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":25,"named":"(var ServiceLine: Record \"Service Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}},{"from":26,"to":26,"named":"(var ServiceLine: Record \"Service Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in codeunit Service Post Invoice","tag":"20.0"}}]},{"name":"FillPrepmtAdjBuffer","sig":"(var Record Invoice Post. Buffer, Record Invoice Post. Buffer, Code[20], Decimal, Boolean)","named":"(var TempInvoicePostBuffer: Record \"Invoice Post. Buffer\" temporary; InvoicePostBuffer: Record \"Invoice Post. Buffer\"; GLAccountNo: Code[20]; AdjAmount: Decimal; RoundingEntry: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by PreparePrepmtAdjBuffer().","tag":"19.0"},"range":"17-21","first":17,"last":21,"obsoleteSince":19,"spans":[{"from":17,"to":18,"named":"(var TempInvoicePostBuffer: Record \"Invoice Post. Buffer\" temporary; InvoicePostBuffer: Record \"Invoice Post. Buffer\"; GLAccountNo: Code[20]; AdjAmount: Decimal; RoundingEntry: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":19,"to":21,"named":"(var TempInvoicePostBuffer: Record \"Invoice Post. Buffer\" temporary; InvoicePostBuffer: Record \"Invoice Post. Buffer\"; GLAccountNo: Code[20]; AdjAmount: Decimal; RoundingEntry: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by PreparePrepmtAdjBuffer().","tag":"19.0"}}]},{"name":"Update","sig":"(Record Invoice Post. Buffer, var Integer, var Integer)","named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\"; var InvDefLineNo: Integer; var DeferralLineNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\"; var InvDefLineNo: Integer; var DeferralLineNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\"; var InvDefLineNo: Integer; var DeferralLineNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"UpdateVATBase","sig":"(var Decimal, var Decimal)","named":"(var TotalVATBase: Decimal; var TotalVATBaseACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":21,"spans":[{"from":17,"to":20,"named":"(var TotalVATBase: Decimal; var TotalVATBaseACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(var TotalVATBase: Decimal; var TotalVATBaseACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"ApplyRoundingForFinalPosting","sig":"()","named":"()","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"18-25","first":18,"last":25,"obsoleteSince":null,"spans":[{"from":18,"to":25,"named":"()","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"PreparePrepmtAdjBuffer","sig":"(Record Invoice Post. Buffer, Code[20], Decimal, Boolean)","named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\"; GLAccountNo: Code[20]; AdjAmount: Decimal; RoundingEntry: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"19-26","first":19,"last":26,"obsoleteSince":21,"spans":[{"from":19,"to":20,"named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\"; GLAccountNo: Code[20]; AdjAmount: Decimal; RoundingEntry: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\"; GLAccountNo: Code[20]; AdjAmount: Decimal; RoundingEntry: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"Update","sig":"(Record Invoice Post. Buffer)","named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"19-26","first":19,"last":26,"obsoleteSince":21,"spans":[{"from":19,"to":20,"named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\")","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(InvoicePostBuffer: Record \"Invoice Post. Buffer\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"CopyToGenJnlLine","sig":"(var Record Gen. Journal Line)","named":"(var GenJnlLine: Record \"Gen. Journal Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"19-26","first":19,"last":26,"obsoleteSince":21,"spans":[{"from":19,"to":20,"named":"(var GenJnlLine: Record \"Gen. Journal Line\")","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(var GenJnlLine: Record \"Gen. Journal Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]},{"name":"CopyToGenJnlLineFA","sig":"(var Record Gen. Journal Line)","named":"(var GenJnlLine: Record \"Gen. Journal Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"},"range":"19-26","first":19,"last":26,"obsoleteSince":21,"spans":[{"from":19,"to":20,"named":"(var GenJnlLine: Record \"Gen. Journal Line\")","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":21,"to":26,"named":"(var GenJnlLine: Record \"Gen. Journal Line\")","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by procedure in table Invoice Posting Buffer","tag":"20.0"}}]}]}