Page 20012 "APIV1 - Sales Invoices"
APIV1 · Microsoft.API.V1
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 15 connected objects and pages
APIV1 · Microsoft.API.V1 · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Caption | ‘salesInvoices’, Locked = true |
| Extensible | false |
| SourceTable | Sales Invoice Entity Aggregate |
| PageType | API |
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 |
|---|---|---|---|
| Group | id | Id | — |
| number | No. | — | |
| externalDocumentNumber | External Document No. | — | |
| invoiceDate | Document Date | — | |
| postingDate | Posting Date | — | |
| dueDate | Due Date | — | |
| customerPurchaseOrderReference | Your Reference | — | |
| customerId | Customer Id | — | |
| contactId | Contact Graph Id | — | |
| customerNumber | Sell-to Customer No. | — | |
| customerName | Sell-to Customer Name | — | |
| billToName | Bill-to Name | — | |
| billToCustomerId | Bill-to Customer Id | — | |
| billToCustomerNumber | Bill-to Customer No. | — | |
| shipToName | Ship-to Name | — | |
| shipToContact | Ship-to Contact | — | |
| sellingPostalAddress | SellingPostalAddressJSONText |
Specifies the selling address of the Sales Invoice. | |
| billingPostalAddress | BillingPostalAddressJSONText |
Specifies the billing address of the Sales Invoice. | |
| shippingPostalAddress | ShippingPostalAddressJSONText |
Specifies the shipping address of the Sales Invoice. | |
| currencyId | Currency Id | — | |
| currencyCode | CurrencyCodeTxt |
— | |
| orderId | Order Id | — | |
| orderNumber | Order No. | — | |
| paymentTermsId | Payment Terms Id | — | |
| shipmentMethodId | Shipment Method Id | — | |
| salesperson | Salesperson Code | — | |
| pricesIncludeTax | Prices Including VAT | — | |
| remainingAmount | RemainingAmountVar |
— | |
| salesInvoiceLines | part Page 20043 “APIV1 - Sales Invoice Lines” | — | |
| pdfDocument | part Page 20057 “APIV1 - PDF Document” | — | |
| discountAmount | Invoice Discount Amount | — | |
| discountAppliedBeforeTax | Discount Applied Before Tax | — | |
| totalAmountExcludingTax | Amount | — | |
| totalTaxAmount | Total Tax Amount | Specifies the total tax amount for the sales invoice. | |
| totalAmountIncludingTax | Amount Including VAT | — | |
| status | Status | Specifies the status of the Sales Invoice (cancelled, paid, on hold, created). | |
| lastModifiedDateTime | Last Modified Date Time | — | |
| phoneNumber | Sell-to Phone No. | — | |
| Sell-to E-Mail | — |
Procedures
Post(var ActionContext: WebServiceActionContext)PostAndSend(var ActionContext: WebServiceActionContext)Send(var ActionContext: WebServiceActionContext)Cancel(var ActionContext: WebServiceActionContext)CancelAndSend(var ActionContext: WebServiceActionContext)MakeCorrectiveCreditMemo(var ActionContext: WebServiceActionContext)
Plus 27 local procedures.
Triggers
OnAfterGetRecord, OnDeleteRecord, OnInsertRecord, OnModifyRecord, OnNewRecord, OnOpenPage
Relations
- source table Table 5475 “Sales Invoice Entity Aggregate”
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.
- Codeunit 5477 “Sales Invoice Aggregator” (12 calls:
Cancel → GetSalesInvoiceHeaderId,CancelAndSend → GetSalesInvoiceHeaderId,GetPostedInvoice → GetSalesInvoiceHeaderFromId, …) - Codeunit 5475 “Graph Mgt - Sales Invoice” (7 calls:
ProcessSellingPostalAddressOnInsert → ParseSellToCustomerAddressFromJSON,ProcessSellingPostalAddressOnModify → ParseSellToCustomerAddressFromJSON,ProcessShippingPostalAddressOnInsert → ParseShipToCustomerAddressFromJSON, …) - Codeunit 1303 “Correct Posted Sales Invoice” (3 calls:
CancelInvoice → (object),CheckInvoiceCanBeCanceled → TestCorrectInvoiceIsAllowed,MakeCorrectiveCreditMemo → CreateCreditMemoCopyDocument) - Codeunit 2135 “O365 Setup Email” (3 calls:
SendCanceledInvoice → CheckMailSetup,SendDraftInvoice → CheckMailSetup,SendPostedInvoice → CheckMailSetup) - Codeunit 1320 “Lines Instruction Mgt.” (2 calls:
PostInvoice → SalesCheckAllLinesHaveQuantityAssigned,SendDraftInvoice → SalesCheckAllLinesHaveQuantityAssigned) - Codeunit 20038 “APIV1 - Send Sales Document” (2 calls:
PostInvoice → CheckDocumentIfNoItemsExists,SendDraftInvoice → CheckDocumentIfNoItemsExists) - Codeunit 453 “Job Queue - Enqueue” (1 call:
SendCanceledInvoice → (object)) - Codeunit 5465 “Graph Mgt - General Tools” (1 call:
SetCalculatedFields → TranslateNAVCurrencyCodeToCurrencyCode) - Codeunit 56 “Sales - Calc Discount By Type” (1 call:
UpdateDiscount → ApplyInvDiscBasedOnAmt)
Documented on Microsoft Learn
- (v1.0) Delete salesInvoices
- (v1.0) Get salesInvoices
- (v1.0) Get salesInvoice pdfDocument
- (v1.0) Update salesInvoices
- (v1.0) salesInvoices resource type
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: "APIV1 - Sales Invoices"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.