pageSales & Receivablesofficial - Microsoftderived - from the source, no model text

Page 43 "Sales Invoice"

Base Application · Microsoft.Sales.Document

Across versions

  1. BC23-24present
  2. BC251 procedures removed
  3. BC261 events changed
  4. BC272 events added
  5. BC28unchanged
  6. BC291 events removed
  7. BC30unchanged

Neighbourhood 47 connected objects and pages

Table 36 "Sales Header" (relates to)Sales HeaderPage 9301 "Sales Invoice List" (pages and codeunits on it)Sales Invoice ListPage extension 1957 "LPP Sales Invoice" (extended by)LPP Sales InvoicePage extension 20256 "Sales Invoice Ext" (extended by)Sales Invoice ExtPage extension 30113 "Shpfy Sales Invoice" (extended by)Shpfy Sales InvoicePage extension 5021 "SD Sales Invoice" (extended by)SD Sales InvoicePage extension 5585 "Incoming Doc. Sales Inv." (extended by)Incoming Doc. Sales Inv.Codeunit 1508 "Notification Lifecycle Handler" (event subscribers, 2 links)Notification Lifecycle HandlerCodeunit 170 "Standard Codes Mgt." (event subscribers, 2 links)Standard Codes Mgt.Codeunit 9070 "Document Errors Mgt." (event subscribers, 2 links)Document Errors Mgt.Codeunit 1952 "LP Subscribers" (event subscribers)Codeunit 1330 "Instruction Mgt." (calls, 5 links)Instruction Mgt.Codeunit 1535 "Approvals Mgmt." (calls, 3 links)Approvals Mgmt.Codeunit 1630 "Office Management" (calls, 2 links)Office ManagementCodeunit 427 "ICInboxOutboxMgt" (calls, 2 links)Codeunit 9070 "Document Errors Mgt." (calls, 2 links)Document Errors Mgt.Codeunit 1002 "Job Create-Invoice" (calls)Codeunit 1302 "Customer Mgt." (calls)Codeunit 1304 "Sales-Quote to Invoice Yes/No" (calls)Codeunit 1320 "Lines Instruction Mgt." (calls)Codeunit 1322 "Correct PstdSalesInv (Yes/No)" (calls)Codeunit 1339 "Cancel Posted Sales Cr. Memo" (calls)Codeunit 1400 "DocumentNoVisibility" (calls)Codeunit 1543 "Workflow Webhook Management" (calls)Codeunit 1563 "Privacy Notice" (calls)Codeunit 365 "Format Address" (calls)Codeunit 404 "IC Feedback" (calls)Codeunit 457 "Environment Information" (calls)Codeunit 5530 "Calc. Item Availability" (calls)Codeunit 57 "Document Totals" (calls)Codeunit 5700 "User Setup Management" (calls)Codeunit 6400 "Flow Service Management" (calls)Codeunit 6620 "Copy Document Mgt." (calls)Codeunit 700 "Page Management" (calls)Codeunit 799 "VAT Reporting Date Mgt" (calls)Codeunit 81 "Sales-Post (Yes/No)" (calls)Codeunit 980 "Payment Registration Mgt." (calls)Codeunit 99000832 "Sales Line-Reserve" (calls)Deliver sales invoices with French specifics (Learn pages)Invoice sales (Learn pages)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Sales.Document · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Caption Sales Invoice
SourceTable Sales Header
PageType Document

Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control’s own, else the bound field’s (marked).

Group Control Shows ToolTip
General No. No. Specifies the number of the involved entry or record, according to the specified number series.
Customer No. Sell-to Customer No. Specifies the number of the customer who will receive the products and be billed by default.
Customer Name Sell-to Customer Name Specifies the name of the customer who will receive the products and be billed by default.
Customer Name 2 Sell-to Customer Name 2 Specifies an additional part of the name of the customer who will receive the products and be billed by default. from the table field
Registration Number Registration Number Specifies the customer’s registration number. from the table field
Posting Description Posting Description Specifies additional posting information for the document. After you post the document, the description can add detail to vendor and customer ledger entries. from the table field
Sell-to Address Sell-to Address Specifies the address where the customer is located. from the table field
Address 2 Sell-to Address 2 Specifies additional address information. from the table field
City Sell-to City Specifies the city of the customer on the sales document. from the table field
Control60 Sell-to County Sell-to County Specifies the state, province or county of the address. from the table field
Sell-to Post Code Sell-to Post Code Specifies the postal code.
Country/Region Code Sell-to Country/Region Code Specifies the country or region of the address.
Contact No. Sell-to Contact No. Specifies the number of the contact person that the sales document will be sent to. from the table field
Phone No. SellToContact."Phone No." Specifies the telephone number of the contact person that the sales document will be sent to.
Mobile Phone No. SellToContact."Mobile Phone No." Specifies the mobile telephone number of the contact person that the sales document will be sent to.
Email SellToContact."E-Mail" Specifies the email address of the contact person that the sales document will be sent to.
General Contact Sell-to Contact Specifies the name of the person to contact at the customer.
Your Reference Your Reference Specifies the customer’s reference. The contents will be printed on sales documents.
Document Date Document Date Specifies the date when the related document was created. from the table field
Posting Date Posting Date Specifies the date when the posting of the sales document will be recorded. from the table field
VAT Reporting Date VAT Reporting Date Specifies the date used to include entries on VAT reports in a VAT period. This is either the date that the document was created or posted, depending on your setting on the General Ledger Setup page. from the table field
Due Date Due Date Specifies when the sales invoice must be paid. from the table field
Incoming Document Entry No. Incoming Document Entry No. Specifies the number of the incoming document that this sales document is created for. from the table field
External Document No. External Document No. Specifies a document number that refers to the customer’s or vendor’s numbering system. from the table field
Salesperson Code Salesperson Code Specifies the name of the salesperson who is assigned to the customer. from the table field
Campaign No. Campaign No. Specifies the number of the campaign that the document is linked to.
Responsibility Center Responsibility Center Specifies the code of the responsibility center, such as a distribution hub, that is associated with the involved user, company, customer, or vendor. from the table field
Assigned User ID Assigned User ID Specifies the ID of the user who is responsible for the document. from the table field
Status Status Specifies whether the document is open, waiting to be approved, has been invoiced for prepayment, or has been released to the next stage of processing. from the table field
Job Queue Status Job Queue Status Specifies the status of a job queue entry or task that handles the posting of sales invoices.
Work Description WorkDescription WorkDescription Specifies the products or service being offered
Content SalesLines part Page 47 “Sales Invoice Subform” —
Invoice Details Currency Code Currency Code Specifies the currency of amounts on the sales document. from the table field
Company Bank Account Code Company Bank Account Code Specifies the bank account to use for bank information when the document is printed. from the table field
Shipment Date Shipment 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. from the table field
Control58 Quote No. Quote No. Specifies the number of the sales quote that the sales order was created from. You can track the number to sales quote documents that you have printed, saved, or emailed. from the table field
Invoice Details Prices Including VAT Prices Including VAT Specifies if the Unit Price and Line Amount fields on document lines should be shown with or without VAT. from the table field
VAT Country/Region Code VAT Country/Region Code Specifies the country or region code for the VAT. from the table field
VAT Registration No. VAT Registration No. Specifies the customer’s VAT registration number for customers. from the table field
Gen. Bus. Posting Group Gen. Bus. Posting Group Specifies the general business posting group that the sales document is linked to. The general business posting group is used to link the sales document to the appropriate general ledger account. from the table field
VAT Bus. Posting Group VAT Bus. Posting Group 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. from the table field
Customer Posting Group Customer Posting Group Specifies the customer’s market type to link business transactions to. from the table field
Payment Terms Code Payment Terms Code Specifies a formula that calculates the payment due date, payment discount date, and payment discount amount. from the table field
Payment Method Code Payment Method Code Specifies how to make payment, such as with bank transfer, cash, or check. from the table field
Reason Code Reason Code Specifies the reason code, a supplementary source code that enables you to trace the document. from the table field
EU 3-Party Trade EU 3-Party Trade Specifies if the transaction is related to trade with a third party within the EU. from the table field
Control174 Payment Service Rec.GetSelectedPaymentServicesText() Specifies the online payment service, such as PayPal, that customers can use to pay the sales document.
Invoice Details Shortcut Dimension 1 Code Shortcut Dimension 1 Code 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. from the table field
Shortcut Dimension 2 Code Shortcut Dimension 2 Code 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. from the table field
Payment Discount % Payment Discount % Specifies the payment discount percentage granted if the customer pays on or before the date entered in the Pmt. Discount Date field.
Pmt. Discount Date Pmt. Discount Date Specifies the date on which the amount in the entry must be paid for a payment discount to be granted. from the table field
Journal Templ. Name Journal Templ. Name Specifies the name of the journal template in which the sales header is to be posted. from the table field
Direct Debit Mandate ID Direct Debit Mandate ID Specifies the direct-debit mandate that the customer has signed to allow direct debit collection of payments. from the table field
Location Code Location Code Specifies the code for the location from where the items are shipped. When you select the customer and the customer has a location assigned, the value is taken from the Customer card. If the customer has no location, but a Responsibility Center is populated, the location code is taken from the Respo… from the table field
Control200 Ship-to ShipToOptions Specifies the address that the products on the sales document are shipped to. Default (Sell-to Address): The same as the customer’s sell-to address. Alternate Ship-to Address: One of the customer’s alternate ship-to addresses. Custom Address: Any ship-to address that you specify in the fields below.
Control202 Code Ship-to Code Specifies the code for another shipment address than the customer’s own address, which is entered by default.
Name Ship-to Name Specifies the name that products on the sales document will be shipped to.
Name 2 Ship-to Name 2 Specifies an additional part of the name that products on the sales document will be shipped to. from the table field
Address Ship-to Address Specifies the address that products on the sales document will be shipped to. from the table field
Address 2 Ship-to Address 2 Specifies additional address information. from the table field
City Ship-to City Specifies the city of the customer on the sales document. from the table field
Control82 Ship-to County Ship-to County Specifies the state, province or county of the address. from the table field
Control202 Post Code Ship-to Post Code Specifies the postal code.
Country/Region Ship-to Country/Region Code Specifies the customer’s country/region.
Control200 Phone No. Ship-to Phone No. Specifies the telephone number of the company’s shipping address. from the table field
Contact Ship-to Contact Specifies the name of the contact person at the address that products on the sales document will be shipped to.
Shipment Method Code Shipment Method Code Specifies how items on the sales document are shipped to the customer.
Agent Shipping Agent Code Specifies which shipping agent is used to transport the items on the sales document to the customer.
Agent service Shipping Agent Service Code Specifies which shipping agent service is used to transport the items on the sales document to the customer.
Package Tracking No. Package Tracking No. Specifies the shipping agent’s package number. from the table field
Control203 Bill-to BillToOptions Specifies the customer that the sales invoice will be sent to. Default (Customer): The same as the customer on the sales invoice. Another Customer: Any customer that you specify in the fields below.
Control205 Name Bill-to Name Specifies the customer to whom you will send the sales invoice, when different from the customer that you are selling to.
Name 2 Bill-to Name 2 Specifies an additional part of the name of the customer that you send or sent the invoice or credit memo to. from the table field
Address Bill-to Address Specifies the address of the customer that you will send the invoice to. from the table field
Address 2 Bill-to Address 2 Specifies additional address information. from the table field
City Bill-to City Specifies the city of the customer on the sales document. from the table field
Control85 Bill-to County Bill-to County Specifies the state, province or county of the address. from the table field
Control205 Post Code Bill-to Post Code Specifies the postal code.
Country/Region Bill-to Country/Region Code Specifies the country or region of the address.
Contact No. Bill-to Contact No. Specifies the number of the contact the invoice will be sent to. from the table field
Contact Bill-to Contact Specifies the name of the person you should contact at the customer you are sending the invoice to.
Phone No. BillToContact."Phone No." Specifies the telephone number of the person you should contact at the customer you are sending the invoice to.
Mobile Phone No. BillToContact."Mobile Phone No." Specifies the mobile telephone number of the person you should contact at the customer you are sending the invoice to.
Email BillToContact."E-Mail" Specifies the email address of the person you should contact at the customer you are sending the invoice to.
Foreign Trade Transaction Specification Transaction Specification Specifies a specification of the document’s transaction, for the purpose of reporting to INTRASTAT. from the table field
Transaction Type Transaction Type Specifies the type of transaction that the document represents, for the purpose of reporting to INTRASTAT. from the table field
Transport Method Transport Method Specifies the transport method, for the purpose of reporting to INTRASTAT. from the table field
Exit Point Exit Point Specifies the point of exit through which you ship the items out of your country/region, for reporting to Intrastat. from the table field
Area Area Specifies the country or region of origin for the purpose of Intrastat reporting. from the table field
Language Code Language Code Specifies the language to be used on printouts for this document. from the table field
Format Region Format Region Specifies the format to be used on printouts for this document. from the table field
FactBoxes Document Check part Page 9119 “Sales Doc. Check Factbox” —
Documents part Page 1178 “Doc. Attachment List Factbox” —
Control31 part Page 9103 “Pending Approval FactBox” —
Control1903720907 part Page 9080 “Sales Hist. Sell-to FactBox” —
Control1907234507 part Page 9081 “Sales Hist. Bill-to FactBox” —
Control1902018507 part Page 9082 “Customer Statistics FactBox” —
Control1900316107 part Page 9084 “Customer Details FactBox” —
Control1906127307 part Page 9087 “Sales Line FactBox” —
Control1901314507 part Page 9089 “Item Invoicing FactBox” —
IncomingDocAttachFactBox part Page 193 “Incoming Doc. Attach. FactBox” —
ApprovalFactBox part Page 9092 “Approval FactBox” —
Control1907012907 part Page 9108 “Resource Details FactBox” —
WorkflowStatus part Page 1528 “Workflow Status FactBox” —

Actions

Group Action ToolTip Runs
Invoice Statistics View statistical information, such as the value of posted entries, for the record. Page 160 “Sales Statistics”
Customer Statistics View statistical information, such as the value of posted entries, for the sell-to customer on the sales document. Page 151 “Customer Statistics”
Comments View or add comments for the record. Page 67 “Sales Comment Sheet”
Approvals View a list of the records that are waiting to be approved. For example, you can see who requested the record to be approved, when it was sent, and when it is due to be approved.
Customer View or edit detailed information about the customer on the sales document. Page 21 “Customer Card”
Dimensions View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history.
Attachments Add a file as an attachment. You can attach images as well as documents.
History Interaction Log Entries View a list of interaction log entries related to this document.
Approval Approve Approve the requested changes.
Reject Reject the approval request.
Delegate Delegate the approval to a substitute approver.
Comments View or add comments for the record.
Release Release Release the document to the next stage of processing. You must reopen the document before you can make changes to it.
Reopen Reopen the document to change it after it has been approved. Approved documents have the Released status and must be opened before they can be changed.
Reject IC Sales Invoice Deletes the invoice and sends the rejection to the company that created it.
Functions Create Purchase Invoice Create a new purchase invoice to buy all the items that are required by the sales document, even if some of the items are already available.
Get Recurring Sales Lines Insert sales document lines that you have set up for the customer as recurring. Recurring sales lines could be for a monthly replenishment order or a fixed freight expense.
Calculate Invoice Discount Calculate the invoice discount for the entire sales document when all sales invoice lines are entered.
Copy Document Copy document lines and header information from another sales document to this document. You can copy a posted sales invoice into a new sales invoice to quickly create a similar document.
Move Negative Lines Prepare to create a replacement sales order in a sales return process.
Incoming Document View Incoming Document View any incoming document records and file attachments that exist for the entry or document.
Select Incoming Document Select an incoming document record and file attachment that you want to link to the entry or document.
Create Incoming Document from File Create an incoming document record by selecting a file to attach, and then link the incoming document record to the entry or document.
Remove Incoming Document Remove any incoming document records and file attachments.
Request Approval Send Approval Request Request approval of the document.
Cancel Approval Request Cancel the approval request.
Power Automate Create approval flow Create a new flow in Power Automate from a list of relevant flow templates.
Posting Post Finalize the document or journal by posting the amounts and quantities to the related accounts in your company books.
Post and New Post the sales document and create a new, empty one.
Post and Send Finalize and prepare to send the document according to the customer’s sending profile, such as attached to an email. The Send document to window opens first so you can confirm or select a sending profile.
Preview Posting Review the different types of entries that will be created when you post the document or journal.
Draft Invoice View or print the sales invoice as a draft before you perform the actual posting.
Pro Forma Invoice View or print the pro forma sales invoice.
Test Report View a test report so that you can find and correct any errors before you perform the actual posting of the journal or document.
Remove From Job Queue Remove the scheduled processing of this record from the job queue.
Attach as PDF Create a PDF file and attach it to the document.

Events published

  • OnAfterOnAfterGetRecord(var SalesHeader: Record "Sales Header") (integration)
  • OnBeforeShowPreview(var SalesHeader: Record "Sales Header") (integration)
  • OnPostOnAfterSetDocumentIsPosted(SalesHeader: Record "Sales Header"; var IsScheduledPosting: Boolean; var DocumentIsPosted: Boolean) (integration)
  • OnPostOnBeforeSalesHeaderInsert(var SalesHeader: Record "Sales Header") (integration)
  • OnBeforeValidateShipToOptions(var SalesHeader: Record "Sales Header"; ShipToOptions: Option; var IsHandled: Boolean) (integration)
  • OnAfterValidateShipToOptions(var SalesHeader: Record "Sales Header"; ShipToOptions: Option) (integration)
  • OnPostDocumentBeforeNavigateAfterPosting(var SalesHeader: Record "Sales Header"; var PostingCodeunitID: Integer; var Navigate: Enum "Navigate After Posting"; DocumentIsPosted: Boolean; var IsHandled: Boolean) (integration)
  • OnBeforeOnDeleteRecord(var SalesHeader: Record "Sales Header"; var Result: Boolean; var IsHandled: Boolean) (integration)
  • OnBeforeOnQueryClosePage(var SalesHeader: Record "Sales Header"; DocumentIsPosted: Boolean; CloseAction: Action; var Result: Boolean; var IsHandled: Boolean) (integration)
  • OnBeforeLookupBillToName(var Customer: Record Customer; SalesHeader: Record "Sales Header") + BC27 (integration)
  • OnPostDocumentOnElseCaseNavigateAfterPosting(var SalesHeader: Record "Sales Header"; PostingCodeunitID: Integer; Navigate: Enum "Navigate After Posting") + BC27 (integration)

Trigger event subscribers

Procedures

  • CallPostDocument(PostingCodeunitID: Integer; Navigate: Enum "Navigate After Posting"): Calls the document posting procedure with the specified posting codeunit and navigation option.
  • RunBackgroundCheck(): Runs a background check for document errors.
  • SetSkipConfirmationDialogOnClosing(Skip: Boolean): Sets whether to skip the confirmation dialog when closing the page.
  • UpdatePaymentService() (protected)
  • SetPostingGroupEditable(): Sets whether the posting group field should be editable based on customer settings.

Plus 12 local procedures.

Triggers

OnAfterGetCurrRecord, OnAfterGetRecord, OnDeleteRecord, OnInit, OnInsertRecord, OnNewRecord, OnOpenPage, OnQueryClosePage

Relations

Pages and codeunits on this table

Extended by

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.

Called by

Countries that replace it

IT, NO

Documented on Microsoft Learn

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: "page", object_name: "Sales Invoice"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 6 sources