Table "Sales Invoice Header"
Stores header information for posted sales invoices including customer details, amounts, and payment terms.
Properties
| Name | Value |
|---|---|
| Caption | Sales Invoice Header |
| DataCaptionFields | 3,79 |
| DrillDownPageID | Page Microsoft.Sales.History."Posted Sales Invoices" |
| LookupPageID | Page Microsoft.Sales.History."Posted Sales Invoices" |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Sell-to Customer No." | Code[20] | Specifies the customer number who received the shipped items on this invoice. |
| "No." | Code[20] | Specifies the unique document number of the posted sales invoice. |
| "Bill-to Customer No." | Code[20] | Specifies the customer number to whom the invoice was sent for payment. |
| "Bill-to Name" | Text[100] | Specifies the name of the customer receiving the invoice for payment. |
| "Bill-to Name 2" | Text[50] | Specifies additional name information for the bill-to customer. |
| "Bill-to Address" | Text[100] | Specifies the street address of the customer receiving the invoice. |
| "Bill-to Address 2" | Text[50] | Specifies additional street address information for the bill-to customer. |
| "Bill-to City" | Text[30] | Specifies the city of the customer receiving the invoice. |
| "Bill-to Contact" | Text[100] | Specifies the name of the contact person at the bill-to customer's address. |
| "Your Reference" | Text[35] | Specifies the customer's own reference number for this document. |
| "Ship-to Code" | Code[10] | Specifies the code for an alternate ship-to address. |
| "Ship-to Name" | Text[100] | Specifies the name of the recipient at the ship-to address. |
| "Ship-to Name 2" | Text[50] | Specifies additional name information for the ship-to address. |
| "Ship-to Address" | Text[100] | Specifies the street address where items were shipped. |
| "Ship-to Address 2" | Text[50] | Specifies additional street address information for the ship-to address. |
| "Ship-to City" | Text[30] | Specifies the city of the ship-to address. |
| "Ship-to Contact" | Text[100] | Specifies the name of the contact person at the ship-to address. |
| "Order Date" | Date | Specifies the date when the sales order was created. |
| "Posting Date" | Date | Specifies the date when the invoice was posted to the ledger. |
| "Shipment Date" | Date | Specifies the date when the items were shipped to the customer. |
| "Posting Description" | Text[100] | Specifies a description of the posting that appears in the general ledger. |
| "Payment Terms Code" | Code[10] | Specifies the code for payment terms used for this invoice. |
| "Due Date" | Date | Specifies the date by which payment for this invoice is due. |
| "Payment Discount %" | Decimal | Specifies the percentage of payment discount given if payment is made within the discount period. |
| "Pmt. Discount Date" | Date | Specifies the last date for taking the payment discount. |
| "Shipment Method Code" | Code[10] | Specifies the shipment method used for delivering the items. |
| "Location Code" | Code[10] | Specifies the warehouse location from which items were shipped. |
| "Shortcut Dimension 1 Code" | Code[20] | Specifies the first global dimension code used for analysis. |
| "Shortcut Dimension 2 Code" | Code[20] | Specifies the second global dimension code used for analysis. |
| "Customer Posting Group" | Code[20] | Specifies the customer posting group that determines the G/L accounts for posting. |
| "Currency Code" | Code[10] | Specifies the currency code for amounts on the invoice. |
| "Currency Factor" | Decimal | Specifies the exchange rate between the document currency and the local currency. |
| "Customer Price Group" | Code[10] | Specifies the customer price group for determining sales prices. |
| "Prices Including VAT" | Boolean | Indicates whether the unit prices on the invoice include VAT. |
| "Invoice Disc. Code" | Code[20] | Specifies the code used to determine invoice discount terms. |
| "Customer Disc. Group" | Code[20] | Specifies the customer discount group for determining line discounts. |
| "Language Code" | Code[10] | Specifies the language code used for printing documents. |
| "Format Region" | Text[80] | Specifies the regional format for dates, numbers, and other data on printed documents. |
| "Salesperson Code" | Code[20] | Specifies the salesperson responsible for this sale. |
| "Order No." | Code[20] | Specifies the sales order number from which this invoice was created. |
| Comment | Boolean | Indicates whether comments exist for this invoice. |
| "No. Printed" | Integer | Specifies how many times the invoice has been printed. |
| "On Hold" | Code[3] | Specifies a code indicating that processing of the invoice is on hold. |
| "Applies-to Doc. Type" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type" | Specifies the type of document this invoice applies to for payment application. |
| "Applies-to Doc. No." | Code[20] | Specifies the document number this invoice applies to for payment application. |
| "Bal. Account No." | Code[20] | Specifies the balancing account number used for posting. |
| Amount | Decimal | Contains the total invoice amount excluding VAT. |
| "Amount Including VAT" | Decimal | Contains the total invoice amount including VAT. |
| "VAT Registration No." | Text[20] | Specifies the customer's VAT registration number. |
| "Registration Number" | Text[50] | Specifies the customer's company registration number. |
| "Reason Code" | Code[10] | Specifies the reason code for the transaction. |
| "Gen. Bus. Posting Group" | Code[20] | Specifies the general business posting group for determining G/L accounts. |
| "EU 3-Party Trade" | Boolean | Indicates whether the transaction is part of a three-party trade within the EU. |
| "Transaction Type" | Code[10] | Specifies the transaction type for Intrastat reporting. |
| "Transport Method" | Code[10] | Specifies the transport method for Intrastat reporting. |
| "VAT Country/Region Code" | Code[10] | Specifies the country or region code for VAT purposes. |
| "Sell-to Customer Name" | Text[100] | Specifies the name of the sell-to customer. |
| "Sell-to Customer Name 2" | Text[50] | Specifies additional name information for the sell-to customer. |
| "Sell-to Address" | Text[100] | Specifies the street address of the sell-to customer. |
| "Sell-to Address 2" | Text[50] | Specifies additional street address information for the sell-to customer. |
| "Sell-to City" | Text[30] | Specifies the city of the sell-to customer. |
| "Sell-to Contact" | Text[100] | Specifies the name of the contact person at the sell-to customer. |
| "Bill-to Post Code" | Code[20] | Specifies the postal code of the bill-to customer. |
| "Bill-to County" | Text[30] | Specifies the county or state of the bill-to customer. |
| "Bill-to Country/Region Code" | Code[10] | Specifies the country or region of the bill-to customer. |
| "Sell-to Post Code" | Code[20] | Specifies the postal code of the sell-to customer. |
| "Sell-to County" | Text[30] | Specifies the county or state of the sell-to customer. |
| "Sell-to Country/Region Code" | Code[10] | Specifies the country or region of the sell-to customer. |
| "Ship-to Post Code" | Code[20] | Specifies the postal code of the ship-to address. |
| "Ship-to County" | Text[30] | Specifies the county or state of the ship-to address. |
| "Ship-to Country/Region Code" | Code[10] | Specifies the country or region of the ship-to address. |
| "Bal. Account Type" | Enum Microsoft.Bank.Payment."Payment Balance Account Type" | Specifies the type of balancing account used for posting. |
| "Exit Point" | Code[10] | Specifies the exit point for goods leaving the country for Intrastat reporting. |
| Correction | Boolean | Indicates whether this invoice is a correction entry. |
| "Document Date" | Date | Specifies the date when the document was created. |
| "External Document No." | Code[35] | Specifies an external document number such as the customer's purchase order number. |
| "Area" | Code[10] | Specifies the geographic area for Intrastat reporting. |
| "Transaction Specification" | Code[10] | Specifies additional transaction details for Intrastat reporting. |
| "Payment Method Code" | Code[10] | Specifies the method of payment for the invoice. |
| "Shipping Agent Code" | Code[10] | Specifies the shipping agent used for delivery. |
| "Package Tracking No." | Text[50] | Specifies the tracking number for tracking shipped packages. |
| "Pre-Assigned No. Series" | Code[20] | Specifies the number series used before the invoice was posted. |
| "No. Series" | Code[20] | Specifies the number series used for the posted invoice. |
| "Order No. Series" | Code[20] | Specifies the number series of the original sales order. |
| "Pre-Assigned No." | Code[20] | Specifies the document number that was assigned before posting. |
| "User ID" | Code[50] | Specifies the user who posted the invoice. |
| "Source Code" | Code[10] | Specifies the source code that identifies where the entry was created. |
| "Tax Area Code" | Code[20] | Specifies the tax area code for sales tax calculation. |
| "Tax Liable" | Boolean | Indicates whether the customer is liable for sales tax. |
| "VAT Bus. Posting Group" | Code[20] | Specifies the VAT business posting group for VAT calculation. |
| "VAT Base Discount %" | Decimal | Specifies the percentage of the payment discount that is deducted from the VAT base. |
| "Invoice Discount Calculation" | Option | Specifies the method used to calculate the invoice discount. |
| "Invoice Discount Value" | Decimal | Specifies the invoice discount value as a percentage or amount. |
| "Prepayment No. Series" | Code[20] | Specifies the number series for prepayment invoices. |
| "Prepayment Invoice" | Boolean | Indicates whether this invoice is a prepayment invoice. |
| "Prepayment Order No." | Code[20] | Specifies the order number associated with the prepayment. |
| "Quote No." | Code[20] | Specifies the quote number from which the invoice originated. |
| "Company Bank Account Code" | Code[20] | Specifies the company bank account for receiving payment. |
| "Alt. VAT Registration No." | Boolean | Indicates whether an alternative VAT registration number was used. |
| "Alt. Gen. Bus Posting Group" | Boolean | Indicates whether an alternative general business posting group was used. |
| "Alt. VAT Bus Posting Group" | Boolean | Indicates whether an alternative VAT business posting group was used. |
| "Sell-to Phone No." | Text[30] | Specifies the phone number of the sell-to customer. |
| "Sell-to E-Mail" | Text[80] | Specifies the email address of the sell-to customer. |
| "VAT Reporting Date" | Date | Specifies the date used for VAT reporting purposes. |
| "Payment Reference" | Code[50] | Specifies a reference number for customer payments. |
| "Last Email Sent Time" | DateTime | Contains the timestamp of when the last email was sent for this invoice. |
| "Last Email Sent Message Id" | Guid | |
| "Work Description" | Blob | Contains the work or job description for the invoice. |
| "Ship-to Phone No." | Text[30] | Specifies the phone number at the ship-to address. |
| "Dimension Set ID" | Integer | Specifies the unique identifier for the dimension set applied to this document. |
| "Payment Service Set ID" | Integer | Specifies the ID of the payment service set used for online payments. |
| "Document Exchange Identifier" | Text[50] | Specifies the identifier for the document in the document exchange service. |
| "Document Exchange Status" | Enum Microsoft.Sales.History."Sales Document Exchange Status" | Specifies the status of the document exchange process. |
| "Doc. Exch. Original Identifier" | Text[50] | Specifies the original identifier of the document in the exchange service. |
| "Coupled to CRM" | Boolean | |
| "Coupled to Dataverse" | Boolean | Indicates whether this invoice is coupled to Dynamics 365 Sales. |
| "Direct Debit Mandate ID" | Code[35] | Specifies the direct debit mandate ID for collecting payment. |
| Closed | Boolean | Indicates whether the invoice has been fully paid and closed. |
| "Remaining Amount" | Decimal | Contains the remaining unpaid amount on the invoice. |
| "Cust. Ledger Entry No." | Integer | Specifies the entry number in the customer ledger. |
| "Invoice Discount Amount" | Decimal | Contains the total invoice discount amount. |
| Cancelled | Boolean | Indicates whether this invoice has been cancelled by a credit memo. |
| Corrective | Boolean | Indicates whether this invoice was created to correct a cancelled credit memo. |
| Reversed | Boolean | Indicates whether the associated ledger entry has been reversed. |
| "Dispute Status" | Code[10] | Specifies the dispute status code if the invoice is under dispute. |
| "Promised Pay Date" | Date | Specifies the date when the customer promised to pay the invoice. |
| "Campaign No." | Code[20] | Specifies the marketing campaign associated with this invoice. |
| "Sell-to Contact No." | Code[20] | Specifies the contact number for the sell-to customer. |
| "Bill-to Contact No." | Code[20] | Specifies the contact number for the bill-to customer. |
| "Opportunity No." | Code[20] | Specifies the sales opportunity associated with this invoice. |
| "Responsibility Center" | Code[10] | Specifies the responsibility center for this invoice. |
| "Shipping Agent Service Code" | Code[10] | Specifies the shipping agent service level used for delivery. |
| "Price Calculation Method" | Enum Microsoft.Pricing.Calculation."Price Calculation Method" | Specifies the method used for calculating prices on this invoice. |
| "Allow Line Disc." | Boolean | Indicates whether line discounts are allowed on this invoice. |
| "Get Shipment Used" | Boolean | Indicates whether the Get Shipment Lines function was used. |
| "Draft Invoice SystemId" | Guid | Stores the system ID of the draft invoice before posting. |
| "Dispute Status Id" | Guid | Stores the unique identifier for the dispute status record. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemCreatedByUserName | Text[50] | |
| SystemCreatedByFullName | Text[80] | |
| SystemModifiedByUserName | Text[50] | |
| SystemModifiedByFullName | Text[80] | |
| SystemRowVersion | BigInteger |
Methods
IsFullyOpen
Checks if the invoice is fully open (no payments applied).
procedure IsFullyOpen(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the remaining amount equals the amount including VAT. |
CheckNoPrinted
Validates that the invoice has been printed at least once.
procedure CheckNoPrinted()
SendRecords
Sends the invoice records using the customer's document sending profile.
procedure SendRecords()
SendProfile
Sends the invoice using a specific document sending profile.
procedure SendProfile(var DocumentSendingProfile: Record "Document Sending Profile")
Parameters
| Name | Type | Description |
|---|---|---|
| DocumentSendingProfile | Table Microsoft.Foundation.Reporting."Document Sending Profile" |
The document sending profile to use. |
PrintRecords
Prints the selected invoice records.
procedure PrintRecords(ShowRequestPage: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShowRequestPage | Boolean |
Whether to show the report request page. |
UpdateDisputeStatus
Updates the Dispute Status field from the Dispute Status Id.
procedure UpdateDisputeStatus()
UpdateDisputeStatusId
Updates the Dispute Status Id from the Dispute Status code.
procedure UpdateDisputeStatusId()
PrintToDocumentAttachment
Prints the invoices and saves them as document attachments.
procedure PrintToDocumentAttachment(var SalesInvoiceHeader: Record "Sales Invoice Header")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The invoice records to print and attach. |
EmailRecords
Sends the invoice records by email.
procedure EmailRecords(ShowDialog: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShowDialog | Boolean |
Whether to show the email dialog. |
GetDocTypeTxt
Gets the full document type text for the invoice.
procedure GetDocTypeTxt(): Text[50]
Returns
| Type | Description |
|---|---|
| Text[50] |
The document type text. |
Navigate
Opens the Navigate page to show related entries for this invoice.
procedure Navigate()
LookupAdjmtValueEntries
Opens a page showing value entries with adjustments for this invoice.
procedure LookupAdjmtValueEntries()
GetCustomerVATRegistrationNumber
Gets the customer's VAT registration number.
procedure GetCustomerVATRegistrationNumber(): Text
Returns
| Type | Description |
|---|---|
| Text |
The VAT registration number. |
GetCustomerVATRegistrationNumberLbl
Gets the label for the VAT registration number field.
procedure GetCustomerVATRegistrationNumberLbl(): Text
Returns
| Type | Description |
|---|---|
| Text |
The field caption if VAT registration number exists, otherwise empty. |
GetCustomerGlobalLocationNumber
Gets the customer's global location number (GLN).
procedure GetCustomerGlobalLocationNumber(): Text
Returns
| Type | Description |
|---|---|
| Text |
The GLN if customer exists, otherwise empty. |
GetCustomerGlobalLocationNumberLbl
Gets the label for the GLN field.
procedure GetCustomerGlobalLocationNumberLbl(): Text
Returns
| Type | Description |
|---|---|
| Text |
The field caption if customer exists, otherwise empty. |
GetSellToCustomerFaxNo
Gets the sell-to customer's fax number.
procedure GetSellToCustomerFaxNo(): Text
Returns
| Type | Description |
|---|---|
| Text |
The fax number if customer exists. |
GetPaymentReference
Gets the payment reference for the invoice.
procedure GetPaymentReference(): Text
Returns
| Type | Description |
|---|---|
| Text |
The payment reference text. |
GetPaymentReferenceLbl
Gets the label for the payment reference field.
procedure GetPaymentReferenceLbl(): Text
Returns
| Type | Description |
|---|---|
| Text |
The payment reference label text. |
GetLegalStatement
Gets the legal statement from sales setup for printing on invoices.
procedure GetLegalStatement(): Text
Returns
| Type | Description |
|---|---|
| Text |
The legal statement text. |
GetRemainingAmount
Gets the remaining amount from the associated customer ledger entry.
procedure GetRemainingAmount(): Decimal
Returns
| Type | Description |
|---|---|
| Decimal |
The remaining amount. |
ShowDimensions
Shows the dimension set entries for this invoice.
procedure ShowDimensions()
SetSecurityFilterOnRespCenter
Sets a security filter based on the user's responsibility center.
procedure SetSecurityFilterOnRespCenter()
GetDocExchStatusStyle
Gets the style class for displaying the document exchange status.
procedure GetDocExchStatusStyle(): Text
Returns
| Type | Description |
|---|---|
| Text |
A style name for UI display. |
ShowActivityLog
Shows the activity log entries for this invoice.
procedure ShowActivityLog()
StartTrackingSite
Opens the shipping agent's tracking website for this shipment.
procedure StartTrackingSite()
GetSelectedPaymentsText
Gets the text describing the selected payment services for this invoice.
procedure GetSelectedPaymentsText(): Text
Returns
| Type | Description |
|---|---|
| Text |
The payment services text. |
GetWorkDescription
Gets the work description text from the blob field.
procedure GetWorkDescription(): Text
Returns
| Type | Description |
|---|---|
| Text |
The work description text. |
GetCurrencySymbol
Gets the currency symbol for display purposes.
procedure GetCurrencySymbol(): Text[10]
Returns
| Type | Description |
|---|---|
| Text[10] |
The currency symbol or code. |
DocExchangeStatusIsSent
Checks if the invoice has been sent via document exchange.
procedure DocExchangeStatusIsSent(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the document has been sent. |
ShowCanceledOrCorrCrMemo
Shows the credit memo that canceled or corrected this invoice.
procedure ShowCanceledOrCorrCrMemo()
ShowCorrectiveCreditMemo
Opens the credit memo that corrected this cancelled invoice.
procedure ShowCorrectiveCreditMemo()
ShowCancelledCreditMemo
Opens the credit memo that was cancelled by this corrective invoice.
procedure ShowCancelledCreditMemo()
GetDefaultEmailDocumentName
Gets the default document name for email purposes.
procedure GetDefaultEmailDocumentName(): Text[150]
Returns
| Type | Description |
|---|---|
| Text[150] |
The default email document name. |
Events
OnBeforeCheckNoPrinted
Raised before checking if the invoice has been printed.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoPrinted(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header being checked. |
| IsHandled | Boolean |
Set to true to skip default print status check. |
OnBeforeEmailRecords
Raised before emailing sales invoice records to customers.
[IntegrationEvent(False,False)]
local procedure OnBeforeEmailRecords(var ReportSelections: Record "Report Selections"; var SalesInvoiceHeader: Record "Sales Invoice Header"; DocTxt: Text; var ShowDialog: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReportSelections | Table Microsoft.Foundation.Reporting."Report Selections" |
The report selections to use. |
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header to email. |
| DocTxt | Text |
The document type text. |
| ShowDialog | Boolean |
Indicates whether to show the email dialog. |
| IsHandled | Boolean |
Set to true to skip default email processing. |
OnBeforePrintRecords
Raised before printing sales invoice records.
[IntegrationEvent(False,False)]
local procedure OnBeforePrintRecords(var ReportSelections: Record "Report Selections"; var SalesInvoiceHeader: Record "Sales Invoice Header"; ShowRequestPage: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReportSelections | Table Microsoft.Foundation.Reporting."Report Selections" |
The report selections to use. |
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header to print. |
| ShowRequestPage | Boolean |
Indicates whether to show the report request page. |
| IsHandled | Boolean |
Set to true to skip default print processing. |
OnBeforeDoPrintToDocumentAttachment
Raised before printing to document attachment for the sales invoice.
[IntegrationEvent(False,False)]
local procedure OnBeforeDoPrintToDocumentAttachment(var SalesInvoiceHeader: Record "Sales Invoice Header"; var ShowNotificationAction: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header to print. |
| ShowNotificationAction | Boolean |
Indicates whether to show notification action. |
| IsHandled | Boolean |
Set to true to skip default document attachment processing. |
OnBeforeSendProfile
Raised before sending the sales invoice using the document sending profile.
[IntegrationEvent(False,False)]
local procedure OnBeforeSendProfile(var ReportSelections: Record "Report Selections"; var SalesInvoiceHeader: Record "Sales Invoice Header"; DocTxt: Text; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile")
Parameters
| Name | Type | Description |
|---|---|---|
| ReportSelections | Table Microsoft.Foundation.Reporting."Report Selections" |
The report selections to use. |
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header to send. |
| DocTxt | Text |
The document type text. |
| IsHandled | Boolean |
Set to true to skip default sending profile processing. |
| DocumentSendingProfile | Table Microsoft.Foundation.Reporting."Document Sending Profile" |
The document sending profile to use. |
OnBeforeSendRecords
Raised before sending sales invoice records.
[IntegrationEvent(False,False)]
local procedure OnBeforeSendRecords(var ReportSelections: Record "Report Selections"; var SalesInvoiceHeader: Record "Sales Invoice Header"; DocTxt: Text; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReportSelections | Table Microsoft.Foundation.Reporting."Report Selections" |
The report selections to use. |
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header to send. |
| DocTxt | Text |
The document type text. |
| IsHandled | Boolean |
Set to true to skip default sending processing. |
OnBeforeShowCanceledOrCorrCrMemo
Raised before showing the cancelled or corrective credit memo related to this invoice.
[IntegrationEvent(False,False)]
local procedure OnBeforeShowCanceledOrCorrCrMemo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header. |
| IsHandled | Boolean |
Set to true to skip default credit memo display. |
OnBeforeShowCorrectiveCreditMemo
Raised before showing the corrective credit memo that cancelled this invoice.
[IntegrationEvent(False,False)]
local procedure OnBeforeShowCorrectiveCreditMemo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The cancelled sales invoice header. |
| IsHandled | Boolean |
Set to true to skip default corrective credit memo display. |
OnBeforeShowCancelledCreditMemo
Raised before showing the cancelled credit memo when this invoice is a corrective invoice.
[IntegrationEvent(False,False)]
local procedure OnBeforeShowCancelledCreditMemo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The corrective sales invoice header. |
| IsHandled | Boolean |
Set to true to skip default cancelled credit memo display. |
OnBeforeSetSecurityFilterOnRespCenter
Raised before setting security filter on responsibility center for the sales invoice.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetSecurityFilterOnRespCenter(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header to filter. |
| IsHandled | Boolean |
Set to true to skip default security filter application. |
OnGetPaymentReference
Raised to retrieve the payment reference for the sales invoice.
[IntegrationEvent(True,False)]
local procedure OnGetPaymentReference(var PaymentReference: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| PaymentReference | Text |
Returns the payment reference text. |
OnGetPaymentReferenceLbl
Raised to retrieve the payment reference label for display.
[IntegrationEvent(False,False)]
local procedure OnGetPaymentReferenceLbl(var PaymentReferenceLbl: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| PaymentReferenceLbl | Text |
Returns the payment reference label text. |
OnLookupAppliesToDocNoOnAfterSetFilters
Raised after setting filters when looking up the applies-to document number.
[IntegrationEvent(False,False)]
local procedure OnLookupAppliesToDocNoOnAfterSetFilters(var CustLedgEntry: Record "Cust. Ledger Entry"; SalesInvoiceHeader: Record "Sales Invoice Header")
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry with applied filters. |
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header being processed. |
OnPostedSalesInvoiceFullyOpen
Raised to determine whether the posted sales invoice is fully open.
[IntegrationEvent(False,False)]
local procedure OnPostedSalesInvoiceFullyOpen(var SalesInvoiceHeader: Record "Sales Invoice Header"; var FullyOpen: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header being checked. |
| FullyOpen | Boolean |
Returns whether the invoice is fully open. |
| IsHandled | Boolean |
Set to true to skip default open status check. |
OnBeforeGetWorkDescription
Raised before retrieving the work description text for the sales invoice.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetWorkDescription(var SalesInvoiceHeader: Record "Sales Invoice Header")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesInvoiceHeader | Table Microsoft.Sales.History."Sales Invoice Header" |
The sales invoice header. |