Page 6630 "Sales Return Order"
Base Application · Microsoft.Sales.Document
- 95controls
- 38actions
- 21procedures
- 5events
- 3Learn pages
- 2countries replace it
- 2event subscribers
- 10objects it calls
- 7objects call it
Across versions
- BC23-24present
- BC251 events added
- BC261 events changed
- BC271 events added
- BC28unchanged
- BC291 events removed
- BC30unchanged
Neighbourhood 25 connected objects and pages
Base Application · Microsoft.Sales.Document · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Caption | Sales Return Order |
| 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 associated with the sales return. | |
| Customer Name | Sell-to Customer Name | Specifies the name of the customer. | |
| 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 | |
| Sell-to | Address | Sell-to Address | Specifies the customer’s address. |
| Address 2 | Sell-to Address 2 | Specifies an additional part of the customer’s address. | |
| City | Sell-to City | Specifies the city of the customer’s address. | |
| Control170 | Sell-to County | Sell-to County | Specifies the county of the address. |
| Sell-to | Post Code | Sell-to Post Code | Specifies the postal code of the customer’s address. |
| Country/Region | 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 at the customer. | |
| 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. | |
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 contact person at the customer. |
| 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 sales document was posted. | |
| 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 | |
| Order Date | Order Date | Specifies the date when the order was created. 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 | |
| Your Reference | Your Reference | Specifies the customer’s reference. The content will be printed on sales documents. from the table field | |
| No. of Archived Versions | No. of Archived Versions | Specifies the number of archived versions for this document. 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 campaign number the document is linked to. from the table field | |
| 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 | |
| Job Queue Status | Job Queue Status | Specifies the status of a job queue entry or task that handles the posting of sales return orders. | |
| 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 | |
| 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 | |
| Content | SalesLines | part Page 6631 “Sales Return Order Subform” | — |
| Invoice Details | Currency Code | Currency Code | Specifies the currency that is used on the entry. |
| 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 | |
| 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 | |
| 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 | |
| Payment Method Code | Payment Method Code | Specifies how to make payment, such as with bank transfer, cash, or check. from the table field | |
| 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 | |
| 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 | |
| Applies-to Doc. Type | Applies-to Doc. Type | Specifies the type of the posted document that this document or journal line will be applied to when you post, for example to register payment. from the table field | |
| Applies-to Doc. No. | Applies-to Doc. No. | Specifies the number of the posted document that this document or journal line will be applied to when you post, for example to register payment. from the table field | |
| Applies-to ID | Applies-to ID | Specifies the ID of entries that will be applied to when you choose the Apply Entries action. 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 | |
| Tax Liable | Tax Liable | Specifies if the customer or vendor is liable for sales tax. from the table field | |
| Tax Area Code | Tax Area Code | Specifies the tax area code for the customer. | |
| Shipment Method | 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 | |
| Ship-to | Location | Location Code | Specifies the code for the location where the items are to be received. 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 Res… |
| 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 of the customer at the address that the items are shipped to. | |
| 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 an additional part of the shipping address. | |
| City | Ship-to City | Specifies the city of the shipping address. | |
| Control76 | Ship-to County | Ship-to County | Specifies the county of the address. |
| Ship-to | Post Code | Ship-to Post Code | Specifies the postal code of the shipping address. |
| Country/Region | Ship-to Country/Region Code | Specifies the country or region of the address. | |
| 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 shipping address. | |
| Bill-to | 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 an additional part of the billing address. | |
| City | Bill-to City | Specifies the city of the billing address. | |
| Control80 | Bill-to County | Bill-to County | Specifies the county of the address. |
| Bill-to | Post Code | Bill-to Post Code | Specifies the postal code of the billing address. |
| 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 person at the billing address. | |
| Contact | Bill-to Contact | Specifies the name of the contact person at the billing address. | |
| 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. | |
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 | |
| Rcvd-from Country/Region Code | Rcvd.-from Count./Region Code | Specifies the country or region from which the items are returned for the purpose of Intrastat reporting. from the table field | |
| FactBoxes | Document Check | part Page 9119 “Sales Doc. Check Factbox” | — |
| Documents | part Page 1178 “Doc. Attachment List Factbox” | — | |
| Control19 | 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” | — | |
| 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 |
|---|---|---|---|
| Return Order | Statistics | View statistical information, such as the value of posted entries, for the record. | Page 402 “Sales Order Statistics” |
| Customer | View or edit detailed information about the customer on the sales document. | Page 21 “Customer Card” | |
| 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” | |
| 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. | ||
| 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. | ||
| Comments | View or add comments for the record. | Page 67 “Sales Comment Sheet” | |
| Documents | Return Receipts | View a list of posted return receipts for the order. | Page 6662 “Posted Return Receipts” |
| Credit Memos | View a list of ongoing credit memos for the order. | ||
| Warehouse | Invt. Put-away/Pick Lines | View items that are inbound or outbound on inventory put-away or inventory pick documents for the sales return order. | Page 5774 “Warehouse Activity List” |
| Whse. Receipt Lines | View ongoing warehouse receipts for the document, in advanced warehouse configurations. | Page 7342 “Whse. Receipt Lines” | |
| Warehouse Put-away Lines | View ongoing warehouse put-aways for the document, in advanced warehouse configurations. | Page 5785 “Warehouse Activity Lines” | |
| 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. | ||
| Processing | Prepare to print the document. A report request window for the document opens where you can specify what to include on the print-out. | ||
| Attach as PDF | Create a PDF file and attach it to the document. | ||
| 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 | ||
| Functions | Calculate Invoice Discount | Calculate the invoice discount that applies to the sales return order. | |
| Apply Entries | Select one or more ledger entries that you want to apply this record to so that the related posted documents are closed as paid or refunded. | ||
| Create Return-Related Documents | Prepare to automatically create related documents, such as a replacement sales order, a purchase return order, or a replacement purchase order. | ||
| 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. | ||
| Post and Print | Finalize and prepare to print the document or journal. The values and quantities are posted to the related accounts. A report request window where you can specify what to include on the print-out. | ||
| Get Posted Document Lines to Reverse | Copy one or more posted sales document lines in order to reverse the original order. | ||
| Archive Document | Send the document to the archive, for example because it is too soon to delete it. Later, you delete or reprocess the archived document. | ||
| Send IC Return Order Cnfmn. | Prepare to send the return order confirmation to an intercompany partner. | ||
| Post | Finalize the document or journal by posting the amounts and quantities to the related accounts in your company books. | ||
| Preview Posting | Review the different types of entries that will be created when you post the document or journal. | ||
| Attachments | Add a file as an attachment. You can attach images as well as documents. | ||
| Warehouse | Create Whse. Receipt | Create a warehouse receipt to start a receive and put-away process according to an advanced warehouse configuration. | |
| Create Inventory Put-away/Pick | Create an inventory put-away or inventory pick to handle items on the document according to a basic warehouse configuration that does not require warehouse receipt or shipment documents. | ||
| Posting | 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. | |
| Post Batch | Post several documents at once. A report request window opens where you can specify which documents to post. | ||
| Remove From Job Queue | Remove the scheduled processing of this record from the job queue. | ||
| Request Approval | Send Approval Request | Request approval of the document. | |
| Cancel Approval Request | Cancel the approval request. |
Events published
OnAfterOnAfterGetRecord(var SalesHeader: Record "Sales Header")(integration)- subscribers: Codeunit 9070 “Document Errors Mgt.” OnAfterOnAfterGetRecordSalesReturnOrder
OnBeforeOnQueryClosePage(var SalesHeader: Record "Sales Header"; CloseAction: Action; var Result: Boolean; var IsHandled: Boolean)(integration)OnPostDocumentOnAfterCalcDocumentIsScheduledForPosting(var SalesHeader: Record "Sales Header"; var DocumentIsScheduledForPosting: Boolean; var DocumentIsPosted: Boolean)+ BC25 (integration)OnBeforeLookupBillToName(var Customer: Record Customer; SalesHeader: Record "Sales Header")+ BC27 (integration)
Trigger event subscribers
- OnModifyRecordEvent: Codeunit 9070 “Document Errors Mgt.” OnModifyRecordEventSalesReturnOrder
Procedures
CallPostDocument(PostingCodeunitID: Integer): Posts the sales return order using the specified posting codeunit.SetPostingGroupEditable(): Sets whether the posting group field is editable based on the bill-to customer’s settings.ShowPreview(): Shows a preview of the posting results for the sales return order.RunBackgroundCheck(): Runs background validation to check for errors in the sales return order.
Plus 12 local procedures.
Triggers
OnAfterGetCurrRecord, OnAfterGetRecord, OnDeleteRecord, OnInit, OnInsertRecord, OnNewRecord, OnOpenPage, OnQueryClosePage
Relations
- source table Table 36 “Sales Header”
Pages and codeunits on this table
- Page 9304 “Sales Return Order List” (card page)
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.
- Codeunit 1330 “Instruction Mgt.” (5 calls:
PostDocument → IsEnabled,PostDocument → ShowPostedConfirmationMessageCode,ShowPostedConfirmationMessage → ShowConfirm, …) - Codeunit 1535 “Approvals Mgmt.” (3 calls:
SetControlAppearance → CanCancelApprovalForRecord,SetControlAppearance → HasOpenApprovalEntries,SetControlAppearance → HasOpenApprovalEntriesForCurrentUser) - Codeunit 9070 “Document Errors Mgt.” (2 calls:
CheckShowBackgrValidationNotification → CheckShowEnableBackgrValidationNotification,SetControlAppearance → BackgroundValidationEnabled) - Codeunit 1320 “Lines Instruction Mgt.” (1 call:
PostDocument → SalesCheckAllLinesHaveQuantityAssigned) - Codeunit 1400 “DocumentNoVisibility” (1 call:
SetDocNoVisible → SalesDocumentNoIsVisible) - Codeunit 365 “Format Address” (1 call:
ActivateFields → UseCounty) - Codeunit 57 “Document Totals” (1 call:
SaveInvoiceDiscountAmount → SalesRedistributeInvoiceDiscountAmountsOnDocument) - Codeunit 5700 “User Setup Management” (1 call:
OnNewRecord → GetSalesFilter) - Codeunit 799 “VAT Reporting Date Mgt” (1 call:
OnOpenPage → IsVATDateEnabled) - Codeunit 81 “Sales-Post (Yes/No)” (1 call:
ShowPreview → Preview)
Called by
- Codeunit 5991 “Sales Warehouse Mgt.” (2 calls:
OnShowSourceDocCard → (object),OnShowSourceDocumentCard → (object)) - Codeunit 5530 “Calc. Item Availability” (1 call:
RunSalesHeaderPage → (object)) - Codeunit 6620 “Copy Document Mgt.” (1 call:
ShowSalesDoc → (object)) - Codeunit 980 “Payment Registration Mgt.” (1 call:
ShowSalesHeaderRecords → (object)) - Codeunit 99000832 “Sales Line-Reserve” (1 call:
OnLookupDocument → (object)) - Codeunit 99000850 “Sales Line-Planning” (1 call:
OrderPlanningOnBeforeShowDemandOrder → (object)) - Table 7275 “Sales Line AI Suggestions” (1 call:
RunSalesHeaderPage → (object))
Countries that replace it
Documented on Microsoft Learn
- Archive sales, purchase, project, and service documents
- Process sales returns or cancellations
- Process sales return orders
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 Return Order"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.