Table 36 Sales Header

Base Application, Microsoft.Sales.Document

37 obsolete

Fields 7

field(169; "Last Email Notif Cleared"; Boolean)gone after 23
Pending, tag 21.0, obsolete since 21: Microsoft Invoicing has been discontinued.
field(175; "Payment Instructions Id"; Integer)gone after 25
Removed, tag 21.0, obsolete since 18: Microsoft Invoicing is not supported in Business Central
field(180; "Rcvd-from Country/Region Code"; Code[10])22 to 25
Removed, tag 23.0, obsolete since 22: Use new field on range 181
field(720; "Coupled to CRM"; Boolean)new in 21
Removed, tag 26.0, obsolete since 22: Replaced by flow field Coupled to Dataverse
field(5051; "Sell-to Customer Template Code"; Code[10])gone after 25
Removed, tag 21.0, obsolete since 18: Will be removed with other functionality related to "old" templates. Replaced by "Sell-to Customer Templ. Code".
field(5054; "Bill-to Customer Template Code"; Code[10])gone after 25
Removed, tag 21.0, obsolete since 18: Will be removed with other functionality related to "old" templates. Replaced by "Bill-to Customer Templ. Code".
field(8000; Id; Guid)gone after 25
Removed, tag 22.0, obsolete since 17: This functionality will be replaced by the systemID field

Procedures 17

CreateDim(Type1: Integer; No1: Code[20]; Type2: Integer; No2: Code[20]; Type3: Integer; No3: Code[20]; Type4: Integer; No4: Code[20]; Type5: Integer; No5: Code[20])gone after 22
Pending, tag 20.0, obsolete since 20: Replaced by CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
GetCustomerGlobalLocationNumber(): Textgone after 27
Pending, tag 25.0, obsolete since 25: The procedure is not used and will be obsoleted.
GetCustomerGlobalLocationNumberLbl(): Textgone after 27
Pending, tag 25.0, obsolete since 25: The procedure is not used and will be obsoleted.
GetPstdDocLinesToRevere()gone after 17
Pending, tag 15.1, obsolete since 17: Typo in the function name, use GetPstdDocLinesToReverse instead
WhseShpmntConflict(DocType: Option Quote,Order,Invoice,"Credit Memo","Blanket Order","Return Order"; DocNo: Code[20]; ShippingAdvice: Option Partial,Complete): Booleangone after 19
Pending, tag 17.0, obsolete since 17: Replaced by WhseShipmentConflict().
OpenSalesOrderStatistics()gone after 28
Pending, tag 26.0, obsolete since 26: The statistics action will be replaced with the SalesOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
GetCardpageID(): Integergone after 21
Pending, tag 19.0, obsolete since 19: Use PageManagement.GetPageID() instead.
BatchConfirmUpdateDeferralDate(var BatchConfirm: Option " ",Skip,Update; ReplacePostingDate: Boolean; PostingDateReq: Date)gone after 24
Pending, tag 22.0, obsolete since 21: Replaced by BatchConfirmUpdateDeferralDate with VAT Date parameters.
SelectSalesHeaderCustomerTemplate(): Code[10]gone after 20
Pending, tag 18.0, obsolete since 18: Will be removed with other functionality related to "old" templates. Replaced by SelectSalesHeaderNewCustomerTemplate()
LookupSellToCustomerName(): Booleangone after 21
Pending, tag 19.0, obsolete since 18: Replaced with LookupSellToCustomerName(var CustomerName: Text[100]): Boolean
OpenDocumentStatistics()18 to 28
Pending, tag 26.0, obsolete since 26: The statistics action will be replaced with the SalesOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
ShowDocumentStatisticsPage(): Integer18 to 28changed in 19
Pending, tag 26.0, obsolete since 26: The statistics action will be replaced with the SalesOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
RecreateReqLine(OldSalesLine: Record "Sales Line"; NewSourceRefNo: Integer; ToTemp: Boolean)22 to 27
Pending, tag 25.0, obsolete since 25: Use RecreateReqLine with TempReqLine parameter instead.
internal SetTrackInfoForCancellation()22 to 26
Pending, tag 24.0, obsolete since 24: SetTrackInfoForCancellation procedure is planned to be removed.
UpdateShipToSalespersonCode()24 to 28
Pending, tag 26.0, obsolete since 26: Use UpdateShipToSalespersonCode(FieldNo: Integer) instead.
SkipStatisticsPreparation(): Boolean26 to 28
Pending, tag 26.0, obsolete since 26: The statistics action will be replaced with the SalesOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
ResetSkipStatisticsPreparationFlag()26 to 28
Pending, tag 26.0, obsolete since 26: The statistics action will be replaced with the SalesOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.

Events 13

[IntegrationEvent] OnAfterCreateDimTableIDs(var SalesHeader: Record "Sales Header"; CallingFieldNo: Integer; var TableID: array[10] of Integer; var No: array[10] of Code[20])gone after 22
Pending, tag 20.0, obsolete since 20: Replaced by OnAfterInitDefaultDimensionSources() event
[IntegrationEvent] OnAfterCopyFromSellToCustTemplate(var SalesHeader: Record "Sales Header"; SellToCustTemplate: Record "Customer Template")gone after 20
Pending, tag 18.0, obsolete since 18: Will be removed with other functionality related to "old" templates. Replaced by OnAfterCopyFromNewSellToCustTemplate().
[IntegrationEvent] OnBeforeOpenSalesOrderStatistics(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)gone after 28
Pending, tag 26.0, obsolete since 26: The statistics action will be replaced with the SalesOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[IntegrationEvent] OnValidateBilltoCustomerTemplateCodeBeforeRecreateSalesLines(var SalesHeader: Record "Sales Header"; CallingFieldNo: Integer)gone after 20
Pending, tag 18.0, obsolete since 18: Will be removed with other functionality related to "old" templates. Replaced by OnValidateBilltoCustomerTemplCodeOnBeforeRecreateSalesLines()
[IntegrationEvent] OnBeforeOpenDocumentStatistics(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)18 to 28
Pending, tag 26.0, obsolete since 26: The statistics action will be replaced with the SalesOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[IntegrationEvent] OnGetStatisticsPageID(var PageID: Integer; SalesHeader: Record "Sales Header")18 to 28
Pending, tag 26.0, obsolete since 26: The statistics action will be replaced with the SalesOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[IntegrationEvent] OnLookupSellToCustomerNameOnAfterSuccessfulLookup(var SalesHeader: Record "Sales Header")18 to 21
Pending, tag 19.0, obsolete since 19: Replaced with LookupSellToCustomerName(var CustomerName: Text[100]): Boolean
[IntegrationEvent] OnBeforeRunEventOnAfterCreateDimTableIDs(var SalesHeader: Record "Sales Header"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; var IsHandled: Boolean)20 to 22
Pending, tag 20.0, obsolete since 20: Temporary event for compatibility
[IntegrationEvent] OnBeforeValidateBillToName(var SalesHeader: Record "Sales Header"; var Customer: Record Customer; var IsHandled: Boolean; xSalesHeader: Record "Sales Header")new in 20
Pending, tag 27.0, obsolete since 27: This event is never raised.
[IntegrationEvent] OnSetTrackInfoForCancellationOnBeforeInsertCancelledDocument(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean)22 to 26
Pending, tag 24.0, obsolete since 24: This event is obsolete. SetTrackInfoForCancellation procedure is planned to be removed.
[IntegrationEvent] OnUpdateShiptoSalespersonCodeNotAssigned(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)24 to 28
Pending, tag 26.0, obsolete since 26: This event is obsolete. Use OnBeforeUpdateShipToSalespersonCode instead.
[IntegrationEvent] OnBeforeIsNotFullyCancelled(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var Result: Boolean; var IsHandled: Boolean)new in 25
Pending, tag 27.0, obsolete since 27: Removed Not used anymore.
[IntegrationEvent] OnCalcOutstandingQuantityBaseOnAfterSalesLineSetFilters(var SalesLine: Record "Sales Line")new in 26
Pending, tag 27.0, obsolete since 27: Not used anymore due to new implementation that uses Query. Replaced by OnBeforeCalculateReservableOutstandingQuantityBase.