Table "Return Receipt Header"
Stores header information for posted sales return receipts documenting received returned goods from customers.
Properties
| Name | Value |
|---|---|
| Caption | Return Receipt Header |
| DataCaptionFields | 3,79 |
| LookupPageID | Page Microsoft.Sales.History."Posted Return Receipts" |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Sell-to Customer No." | Code[20] | Specifies the customer number who returned the items. |
| "No." | Code[20] | Specifies the unique identifier for the posted return receipt. |
| "Bill-to Customer No." | Code[20] | Specifies the customer number who receives the credit memo for billing. |
| "Bill-to Name" | Text[100] | Specifies the name of the customer who receives the credit memo. |
| "Bill-to Name 2" | Text[50] | Specifies an additional part of the bill-to customer name. |
| "Bill-to Address" | Text[100] | Specifies the street address of the customer who receives the credit memo. |
| "Bill-to Address 2" | Text[50] | Specifies additional address information for the bill-to customer. |
| "Bill-to City" | Text[30] | Specifies the city of the customer who receives the credit memo. |
| "Bill-to Contact" | Text[100] | Specifies the name of the contact person at the bill-to customer. |
| "Your Reference" | Text[35] | Specifies the customer's own reference number for this transaction. |
| "Ship-to Code" | Code[10] | Specifies the code for the ship-to address on the return receipt. |
| "Ship-to Name" | Text[100] | Specifies the name of the ship-to location. |
| "Ship-to Name 2" | Text[50] | Specifies an additional part of the ship-to name. |
| "Ship-to Address" | Text[100] | Specifies the street address of the ship-to location. |
| "Ship-to Address 2" | Text[50] | Specifies additional address information for the ship-to location. |
| "Ship-to City" | Text[30] | Specifies the city of the ship-to location. |
| "Ship-to Contact" | Text[100] | Specifies the name of the contact person at the ship-to location. |
| "Order Date" | Date | Specifies the date when the return order was created. |
| "Posting Date" | Date | Specifies the date when the return receipt was posted. |
| "Shipment Date" | Date | Specifies the date when items were shipped or received. |
| "Posting Description" | Text[100] | Specifies the text that describes this posted return receipt. |
| "Payment Terms Code" | Code[10] | Specifies the code for the payment terms used on the return. |
| "Due Date" | Date | Specifies the date when payment is due. |
| "Payment Discount %" | Decimal | Specifies the payment discount percentage applicable to the return. |
| "Pmt. Discount Date" | Date | Specifies the last date for taking the payment discount. |
| "Shipment Method Code" | Code[10] | Specifies the code for the shipment method used for the return. |
| "Location Code" | Code[10] | Specifies the location where returned items were received. |
| "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 used to post receivables. |
| "Currency Code" | Code[10] | Specifies the currency code used for the return receipt amounts. |
| "Currency Factor" | Decimal | Specifies the exchange rate used to convert amounts to local currency. |
| "Customer Price Group" | Code[10] | Specifies the customer price group used for pricing on the return. |
| "Prices Including VAT" | Boolean | Indicates whether the prices include VAT. |
| "Invoice Disc. Code" | Code[20] | Specifies the code used to calculate invoice discounts for this customer. |
| "Customer Disc. Group" | Code[20] | Specifies the customer discount group used for line discounts. |
| "Language Code" | Code[10] | Specifies the language code for the return receipt document. |
| "Format Region" | Text[80] | Specifies the regional format for dates and numbers on the document. |
| "Salesperson Code" | Code[20] | Specifies the salesperson responsible for the return. |
| Comment | Boolean | Indicates whether comments exist for this posted return receipt. |
| "No. Printed" | Integer | Specifies how many times the return receipt has been printed. |
| "On Hold" | Code[3] | Specifies the on hold status to block further processing. |
| "Applies-to Doc. Type" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type" | Specifies the type of document this return applies to. |
| "Applies-to Doc. No." | Code[20] | Specifies the document number this return applies to. |
| "Bal. Account No." | Code[20] | Specifies the balancing account number for posting. |
| "VAT Registration No." | Text[20] | Specifies the customer's VAT registration number. |
| "Reason Code" | Code[10] | Specifies the reason code for the return receipt posting. |
| "Gen. Bus. Posting Group" | Code[20] | Specifies the general business posting group used for the return. |
| "EU 3-Party Trade" | Boolean | Indicates whether the transaction involves three-party trade within the EU. |
| "Transaction Type" | Code[10] | Specifies the transaction type code for Intrastat reporting. |
| "Transport Method" | Code[10] | Specifies the transport method code for Intrastat reporting. |
| "VAT Country/Region Code" | Code[10] | Specifies the country/region code for VAT purposes. |
| "Sell-to Customer Name" | Text[100] | Specifies the name of the customer who returned the items. |
| "Sell-to Customer Name 2" | Text[50] | Specifies an additional part of the sell-to customer name. |
| "Sell-to Address" | Text[100] | Specifies the street address of the sell-to customer. |
| "Sell-to Address 2" | Text[50] | Specifies additional 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 address. |
| "Bill-to County" | Text[30] | Specifies the county or state of the bill-to customer address. |
| "Bill-to Country/Region Code" | Code[10] | Specifies the country/region code of the bill-to customer address. |
| "Sell-to Post Code" | Code[20] | Specifies the postal code of the sell-to customer address. |
| "Sell-to County" | Text[30] | Specifies the county or state of the sell-to customer address. |
| "Sell-to Country/Region Code" | Code[10] | Specifies the country/region code of the sell-to customer address. |
| "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/region code 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. |
| Correction | Boolean | Indicates whether this is a correcting entry that reverses a previous posting. |
| "Document Date" | Date | Specifies the date when the return receipt document was created. |
| "External Document No." | Code[35] | Specifies the external document number provided by the customer. |
| "Area" | Code[10] | Specifies the area code for Intrastat reporting. |
| "Transaction Specification" | Code[10] | Specifies the transaction specification code for Intrastat reporting. |
| "Payment Method Code" | Code[10] | Specifies the payment method code for the return. |
| "Shipping Agent Code" | Code[10] | Specifies the shipping agent responsible for the return shipment. |
| "Package Tracking No." | Text[50] | Specifies the tracking number for the return shipment package. |
| "No. Series" | Code[20] | Specifies the number series used for the posted return receipt. |
| "User ID" | Code[50] | Specifies the user who posted the return receipt. |
| "Source Code" | Code[10] | Specifies the source code that identifies the posting origin. |
| "Tax Area Code" | Code[20] | Specifies the tax area code for sales tax calculations. |
| "Tax Liable" | Boolean | Indicates whether the return receipt is subject to sales tax. |
| "VAT Bus. Posting Group" | Code[20] | Specifies the VAT business posting group used for tax calculations. |
| "VAT Base Discount %" | Decimal | Specifies the percentage used to reduce the VAT base amount for discounts. |
| "Rcvd.-from Count./Region Code" | Code[10] | Specifies the country/region code from which the goods were received. |
| "Ship-to Phone No." | Text[30] | Specifies the phone number of the ship-to location. |
| "Dimension Set ID" | Integer | Specifies the unique identifier for the dimension set applied to this return receipt. |
| "Campaign No." | Code[20] | Specifies the marketing campaign associated with the return. |
| "Sell-to Contact No." | Code[20] | Specifies the contact number of the sell-to customer. |
| "Bill-to Contact No." | Code[20] | Specifies the contact number of the bill-to customer. |
| "Opportunity No." | Code[20] | Specifies the sales opportunity associated with this return. |
| "Responsibility Center" | Code[10] | Specifies the responsibility center that processed the return. |
| "Requested Delivery Date" | Date | Specifies the date when delivery was requested by the customer. |
| "Promised Delivery Date" | Date | Specifies the date when delivery was promised to the customer. |
| "Shipping Time" | DateFormula | Specifies the formula used to calculate shipping time. |
| "Warehouse Handling Time" | DateFormula | Specifies the formula used to calculate warehouse handling time. |
| "Late Order Shipping" | Boolean | Indicates whether the order was shipped later than planned. |
| "Return Order No." | Code[20] | Specifies the return order number that this receipt was created from. |
| "Return Order No. Series" | Code[20] | Specifies the number series used for the return order. |
| "Price Calculation Method" | Enum Microsoft.Pricing.Calculation."Price Calculation Method" | Specifies the method used to calculate prices on the return. |
| "Allow Line Disc." | Boolean | Indicates whether line discounts are allowed on the return. |
| 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
GetCustomerVATRegistrationNumber
Gets the customer's VAT registration number from this return receipt.
procedure GetCustomerVATRegistrationNumber(): Text
Returns
| Type | Description |
|---|---|
| Text |
The VAT registration number. |
GetCustomerVATRegistrationNumberLbl
Gets the label for the customer's VAT registration number field.
procedure GetCustomerVATRegistrationNumberLbl(): Text
Returns
| Type | Description |
|---|---|
| Text |
The field caption if VAT registration number is set, otherwise empty string. |
GetCustomerGlobalLocationNumber
Gets the customer's Global Location Number (GLN).
procedure GetCustomerGlobalLocationNumber(): Text
Returns
| Type | Description |
|---|---|
| Text |
The customer's GLN, or empty string if customer not found. |
GetCustomerGlobalLocationNumberLbl
Gets the label for the customer's Global Location Number field.
procedure GetCustomerGlobalLocationNumberLbl(): Text
Returns
| Type | Description |
|---|---|
| Text |
The GLN field caption, or empty string if customer not found. |
GetLegalStatement
Gets the legal statement text from the Sales and Receivables Setup.
procedure GetLegalStatement(): Text
Returns
| Type | Description |
|---|---|
| Text |
The legal statement text. |
PrintRecords
Prints the return receipt records using the configured report selection.
procedure PrintRecords(ShowDialog: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShowDialog | Boolean |
Specifies whether to show the print dialog. |
CheckNoPrinted
Validates that the return receipt has been printed at least once.
procedure CheckNoPrinted()
EmailRecords
Sends the return receipt records via email using the configured document sending profile.
procedure EmailRecords(ShowDialog: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShowDialog | Boolean |
Specifies whether to show the email dialog. |
Navigate
Opens the Navigate page to show related entries for this return receipt.
procedure Navigate()
ShowDimensions
Opens a page showing the dimension set for this return receipt.
procedure ShowDimensions()
SetSecurityFilterOnRespCenter
Sets a security filter based on the user's responsibility center.
procedure SetSecurityFilterOnRespCenter()
StartTrackingSite
Opens the shipping agent's tracking website for the package.
procedure StartTrackingSite()
SendRecords
Sends the selected return receipt records using the customer's document sending profile.
procedure SendRecords()
PrintToDocumentAttachment
Prints the return receipt and attaches it to the document.
procedure PrintToDocumentAttachment(var ReturnReceiptHeader: Record "Return Receipt Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ReturnReceiptHeader | Table Microsoft.Sales.History."Return Receipt Header" |
The return receipt header records to print. |
Events
OnBeforePrintRecords
Raised before printing return receipt records.
[IntegrationEvent(False,False)]
local procedure OnBeforePrintRecords(var ReturnRcptHeader: Record "Return Receipt Header"; ShowDialog: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReturnRcptHeader | Table Microsoft.Sales.History."Return Receipt Header" |
The return receipt header to print. |
| ShowDialog | Boolean |
Indicates whether to show the print dialog. |
| IsHandled | Boolean |
Set to true to skip default print processing. |
OnBeforeEmailRecords
Raised before emailing return receipt records.
[IntegrationEvent(False,False)]
local procedure OnBeforeEmailRecords(var ReturnRcptHeader: Record "Return Receipt Header"; var ShowDialog: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReturnRcptHeader | Table Microsoft.Sales.History."Return Receipt Header" |
The return receipt header to email. |
| ShowDialog | Boolean |
Indicates whether to show the email dialog. |
| IsHandled | Boolean |
Set to true to skip default email processing. |
OnBeforeSetSecurityFilterOnRespCenter
Raised before setting security filter on responsibility center for the return receipt.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetSecurityFilterOnRespCenter(var ReturnReceiptHeader: Record "Return Receipt Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReturnReceiptHeader | Table Microsoft.Sales.History."Return Receipt Header" |
The return receipt header to filter. |
| IsHandled | Boolean |
Set to true to skip default security filter application. |
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"; ReturnReceiptHeader: Record "Return Receipt Header")
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry with applied filters. |
| ReturnReceiptHeader | Table Microsoft.Sales.History."Return Receipt Header" |
The return receipt header being processed. |
OnBeforeCheckNoPrinted
Raised before checking the number of times the return receipt has been printed.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoPrinted(var ReturnRcptHeader: Record "Return Receipt Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReturnRcptHeader | Table Microsoft.Sales.History."Return Receipt Header" |
The return receipt header being checked. |
| IsHandled | Boolean |
Set to true to skip default print status check. |