List of Events

The followings are the list of events and triggers available in LS Express.

 

Object Type Object ID Object Name Procedure Type Procedure Name Parameter Remark
Codeunit 70014000 "LSE Post Utilities" Local OnBeforePostPayments (var SalesHeader: Record "Sales Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesShptHdrNo: Code[20]; RetRcpHdrNo: Code[20]; SalesInvHdrNo: Code[20]; SalesCrMemoHdrNo: Code[20]; FromBackgroundPosting: Boolean; var IsHandled: Boolean)  
Codeunit 70014000 "LSE Post Utilities" Local OnAfterPostPayments (var SalesHeader: Record "Sales Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesShptHdrNo: Code[20]; RetRcpHdrNo: Code[20]; SalesInvHdrNo: Code[20]; SalesCrMemoHdrNo: Code[20]; FromBackgroundPosting: Boolean)  
Codeunit 70014000 "LSE Post Utilities" Local OnBeforeFindPaymentEntries (var SalesHeader: Record "Sales Header"; var LSExprSalesPaymentLine: Record "LSE Sales Payment Line"; var IsHandled: Boolean; var FoundRecords: Boolean; FromBackgroundPosting: Boolean)  
Codeunit 70014000 "LSE Post Utilities" Local OnAfterFindPaymentEntries (var SalesHeader: Record "Sales Header"; var LSExprSalesPaymentLine: Record "LSE Sales Payment Line"; FromBackgroundPosting: Boolean; var FoundRecords: Boolean)  
Codeunit 70014000 "LSE Post Utilities" Local OnAfterPostGenJnlLine (GLEntryNo: Integer; GenJnlLine: Record "Gen. Journal Line")  
Codeunit 70014000 "LSE Post Utilities" Local OnBeforeSetAccountsAndApplyToDocNo (var PaymentMethod: Record "Payment Method"; var SalesHeader: Record "Sales Header"; var LSExprSalesPaymentLine: Record "LSE Sales Payment Line"; var GenJnlLine: Record "Gen. Journal Line"; DocType: Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"; DocNo: Code[20]; var IsHandled: Boolean)  
Codeunit 70014000 "LSE Post Utilities" Local OnAfterSetAccountsAndApplyToDocNo (var PaymentMethod: Record "Payment Method"; var SalesHeader: Record "Sales Header"; var LSExprSalesPaymentLine: Record "LSE Sales Payment Line"; var GenJnlLine: Record "Gen. Journal Line"; DocType: Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"; DocNo: Code[20])  
Codeunit 70014000 "LSE Post Utilities" Local OnAfterPOSSalesPosted (var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header")  
Codeunit 70014001 "LSE Payment Utilities" Local OnBeforeInsertSalesPaymentLineOfInsertPaymentLine (var SalesPaymentLine: Record "LSE Sales Payment Line")  
Codeunit 70014001 "LSE Payment Utilities" Local OnBeforeInsertEFTEntryOnInsertPaymentLine (SalesHeader: Record "Sales Header"; PaymentMethod: Record "LSE Payment Method"; PaymentAmount: Decimal; var NewLSExprSalesPaymentLine: Record "LSE Sales Payment Line"; var IsHandled: Boolean)  
Codeunit 70014001 "LSE Payment Utilities" Local OnAfterCalculateSalesBalance (SalesHeader: Record "Sales Header"; var SalesTotal: Decimal; var CurrentBalance: Decimal)  
Codeunit 70014001 "LSE Payment Utilities" Local OnAfterInsertSalesPaymentLine var SalesPaymentLine: Record "LSE Sales Payment Line"  
Codeunit 70014002 "LSE Sales Utilities" Local OnBeforeValidateAndInsertSalesLine (var SalesLine: Record "Sales Line"; var IsHandled: Boolean)  
Codeunit 70014002 "LSE Sales Utilities" Local OnInitializeAddItemToSalesLine (SalesDocType: Enum Microsoft.Sales.Document."Sales Document Type"; SalesDocNo: Code[20]; SalesLineNo: Integer; StoreID: Code[20]; StaffID: Code[20]; var Item: Record Item; ItemVariantCode: Code[20]; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)  
Codeunit 70014002 "LSE Sales Utilities" Internal OnAfterItemAdded (var SalesHeader: Record "Sales Header")  
Codeunit 70014002 "LSE Sales Utilities" Local OnBeforeCreateCreditMemoFromInvoice (SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)  
Codeunit 70014002 "LSE Sales Utilities" Local OnAfterCreateCreditMemoFromInvoice (SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header")  
Codeunit 70014002 "LSE Sales Utilities" Local OnAfterInsertTransferPaymentLines (var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header"; SalesPaymentLine: Record "LSE Sales Payment Line")  
Codeunit 70014002 "LSE Sales Utilities" Internal OnBeforeAskForPriceWhenPriceIsZero (var SalesLine: Record "Sales Line"; var DefaultInput: Decimal; var IsHandled: Boolean)  
Codeunit 70014002 "LSE Sales Utilities" Local OnBeforeCreateSalesInvoiceFromOrder (SalesOrderHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Header"; var IsHandled: Boolean) Set IsHandled to true to skip the default invoice creation logic.
Codeunit 70014002 "LSE Sales Utilities" Local OnBeforeCreateSalesInvoiceLinesFromOrder (SalesOrderHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Header")  
Codeunit 70014002 "LSE Sales Utilities" Local OnAfterCreateSalesInvoiceFromOrder (SalesOrderHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Header")  
Codeunit 70014002 "LSE Sales Utilities" Local OnBeforeValidateItemInput (var SalesHeader: Record "Sales Header"; XSalesHeader: Record "Sales Header"; Inputvalue: Text; var IsHandled: Boolean)  
Codeunit 70014004 "LSE Subscribers" Local OnAfterCopyToVATAmountLine (var VATAmountLine: Record "VAT Amount Line"; ServiceInvoiceLine: Record "Service Invoice Line")  
Codeunit 70014005 "LSE Actions" Local OnBeforePaymentMethodSelected (var SalesHeader: Record "Sales Header")  
Codeunit 70014005 "LSE Actions" Local OnBeforeRunModalOnExactPaymentV2 (var CurrSalesHeader: Record "Sales Header"; PaymentMethod: Record "LSE Payment Method")  
Codeunit 70014005 "LSE Actions" Local OnBeforePickSelectedCustomer (var SalesHeader: Record "Sales Header"; Customer: Record Customer; var IsHandled: Boolean)  
Codeunit 70014005 "LSE Actions" Local OnAfterPickSelectedCustomer (var SalesHeader: Record "Sales Header")  
Codeunit 70014007 "LSE Report Utilities" Local OnBeforePrintInvoicePOSSlip (var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)  
Codeunit 70014007 "LSE Report Utilities" Local OnBeforePrintCreditMemoPOSSlip (var SalesCreditMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean)  
Codeunit 70014007 "LSE Report Utilities" Local OnBeforeEmailLastSale (var NewNotification: Notification; var LastTransactionType: Option Invoice,CRMemo,CustomerPayment,CustomerRefund; var LastTransactionRefNo: Text; var IsHandled: Boolean)  
Codeunit 70014007 "LSE Report Utilities" Local OnAfterEmailLastSale (var NewNotification: Notification; LastTransactionType: Option Invoice,CRMemo,CustomerPayment,CustomerRefund; LastTransactionRefNo: Text)  
Codeunit 70014009 "LSE Post Actions" Local OnAfterPaymentMethodSelected (Rec: Record "LSE Payment Method"; var SalesHeader: Record "Sales Header")  
Codeunit 70014009 "LSE Post Actions" Local OnBeforeGetGiftCardCode (var SalesHeader: Record "Sales Header"; var GiftCardCode: Code[20]; LSExprPaymentMethod: Record "LSE Payment Method"; Var IsHandled: Boolean)  
Codeunit 70014009 "LSE Post Actions" Local OnBeforeRunInputPage OnBeforeRunInputPage(var SalesHeader: Record "Sales Header"; Var Amount: Decimal; LSExprPaymentMethod: Record "LSE Payment Method"; Var IsHandled: Boolean; GiftBalance: Decimal; TotalBalance: Decimal) Obsolete (Replaced by 'OnBeforeRunInputPageV2')
Codeunit 70014009 "LSE Post Actions" Local OnBeforeRunInputPageV2 (var SalesHeader: Record "Sales Header"; var Amount: Decimal; var LSExprPaymentMethod: Record "LSE Payment Method"; var IsHandled: Boolean; var GiftBalance: Decimal; var TotalBalance: Decimal; var InpuPage: Page "LSE Input")  
Codeunit 70014009 "LSE Post Actions" Local LSExpressBeforePostingSale (var SalesHeader: Record "Sales Header") Obsolete (Replaced by 'LSExpressBeforePostingSaleV2', '11.0')
Codeunit 70014009 "LSE Post Actions" Local LSExpressAfterPostingSale    
Codeunit 70014009 "LSE Post Actions" Local OnBeforeNewPaymentLineOfPickThisPaymentMethod (var SalesHeader: Record "Sales Header"; var LSExprPaymentMethod: Record "LSE Payment Method"; Amount: Decimal; var ReadyToPost: Boolean; var SkipNewPaymentLine: Boolean)  
Codeunit 70014009 "LSE Post Actions" Local LSExpressBeforePostingSaleV2 (var SalesHeader: Record "Sales Header"; var ReadyToPost: Boolean; var IsHandled: Boolean)  
Codeunit 70014009 "LSE Post Actions" Local OnBeforeSetDefaultBalanceAmount (LSExprPaymentMethod: Record "LSE Payment Method"; var TotalBalance: Decimal)  
Codeunit 70014009 "LSE Post Actions" Local OnBeforeRefreshPaymentMethodOnHeader (var SalesHeader: Record "Sales Header"; PaymentMethodCode: Code[20]; var IsHandled: Boolean)  
Codeunit 70014018 "LSE PrintNode Utilities" Local OnBeforePrintJobsWSAppendPrintJobOptions (var ContentText: Text)  
Codeunit 70014039 LSECustomersPayments Local OnBeforeInvokeLSPayPaymentIntoCustAcc (var POSCustAccPayment: Record LSEPOSCustAccPayment; var IsHandled: Boolean; var ReturnValue: Boolean)  
Codeunit 70014039 LSECustomersPayments Local OnBeforeInvokeLSPayRefundIntoCustAcc (var POSCustAccPayment: Record LSEPOSCustAccPayment; var IsHandled: Boolean; var ReturnValue: Boolean)  
Codeunit 70014039 LSECustomersPayments Local OnCustPaymentServiceDetected POSCustAccPayment: Record LSEPOSCustAccPayment  
Codeunit 70014039 LSECustomersPayments Local OnBeforeRunGenJnlPostLineOnPostRefundCustPayment

(var GenJnlLine: Record "Gen. Journal Line"; var POSCustAccPayment: Record LSEPOSCustAccPayment temporary; SourceCodeSetup: Record "Source Code Setup"; PaymentMethod: Record "Payment Method")

 

 
Codeunit 70014039 LSECustomersPayments Local OnBeforeVerifyInputBeforePosting (var POSCustAccPayment: Record LSEPOSCustAccPayment; var Result: Boolean; var IsHandled: Boolean)  
Codeunit 70014039 LSECustomersPayments Local OnBeforePostCustPayment (var POSCustAccPayment: Record LSEPOSCustAccPayment temporary; var ResultText: Text; var CustLedgEntry: Record "Cust. Ledger Entry"; var IsHandled: Boolean)  
Codeunit 70014045 LSEPromotionMgt Local OnBeforeGetPromotionNo (var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var SalesPromotion: Record LSESalesPromotion)  
Codeunit 70014054 "LSE Generate SAF-T File" Local OnLoopSalesInvLineBeforeAddToXMLExportTransactionLine (var SalesInvLine: Record "Sales Invoice Line"; var ParentNodeName: Text; var DocNo: Code[20]; var NewLineNo: Integer; var Quantity: Decimal; var Amount: Decimal; var NetAmount: Decimal; var VATAmount: Decimal; var SkipExecuteVATTag: Boolean; var SAFTXMLHelper: Codeunit "LSE SAF-T XML Helper")  
Codeunit 70014054 "LSE Generate SAF-T File" Local OnLoopSalesCrMemoHeaderBeforeAddToXMLCashTransaction var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var Amount: Decimal; var NetAmount: Decimal  
Codeunit 70014054 "LSE Generate SAF-T File" Local OnLoopSalesInvHeaderBeforeAddToXMLCashTransaction var SalesInvHeader: Record "Sales Invoice Header"; var Amount: Decimal; var NetAmount: Decimal  
Codeunit 70014054 "LSE Generate SAF-T File" Local OnLoopSalesCrMemoLineBeforeAddToXMLExportTransactionLine (var SalesCrMemoLine: Record "Sales Cr.Memo Line"; var ParentNodeName: Text; var DocNo: Code[20]; var NewLineNo: Integer; var Quantity: Decimal; var Amount: Decimal; var NetAmount: Decimal; var VATAmount: Decimal; var SkipExecuteVATTag: Boolean; var SAFTXMLHelper: Codeunit "LSE SAF-T XML Helper")  
Codeunit 70014057 LSESEFiscalization Local OnAfterInsertFiscalEntry (var FiscalEntry: Record LSEInfrasecSalesTransaction; DocumentType: Enum "Gen. Journal Document Type"; DocumentNo: Code[20]; ApplyDocumentNo: Code[20]; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header")  
Codeunit 70014057 LSESEFiscalization Local OnAfterSalesCrMemoLineCalcVATAmountLines (SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary)  
Codeunit 70014057 LSESEFiscalization Local OnAfterSalesInvLineCalcVATAmountLines (SalesInvHeader: Record "Sales Invoice Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary)  
Codeunit 70014059 "LSE Transaction Signature" Local OnBeforeInsertTransactionSignatureOfHashAndSignOnAfterPostTransaction var TransSignature: Record "LSE Transaction Signature"  
Codeunit 70014063 "LSE XZ Report Management" Local OnAfterInsertItemCategoryTemp (var ItemCategoryTemp: Record "Item Category" temporary; var TotalSalesAmountByItemCategory: Decimal; var StandardFormat: Integer; PostedSummaryNo: Code[20]; SummaryNo: Integer; FromDateTime: DateTime; ToDateTime: DateTime; StoreID: Code[20]; DrawerID: Code[20]; StaffID: Code[20])  
Codeunit 70014063 "LSE XZ Report Management" Local OnAfterCalculateNoOfItems (var NoOfServicesSold: Decimal; var NoOfServicesReturned: Decimal; PostedSummaryNo: Code[20]; SummaryNo: Integer; FromDateTime: DateTime; ToDateTime: DateTime; StoreID: Code[20]; DrawerID: Code[20]; StaffID: Code[20])  
Codeunit 70014063 "LSE XZ Report Management" Local OnAfterCalculateVATAmount (var SalesInvHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; VATPct: Decimal; var TotalVATAmount: Decimal; var TotalAmountExclTax: Decimal)  
Codeunit 70014063 "LSE XZ Report Management" Local OnAfterFindSalesCrMemoLineGetTotalReturnFromSalesCrMemo (SalesCrMemoLine: Record "Sales Cr.Memo Line"; AmountType: Integer; var Amount: Decimal)  
Codeunit 70014063 "LSE XZ Report Management" Local OnAfterFindSalesInvHeaderCalculateNoOfInvoiceCopyPrintedAndAmount (DocumentNo: Code[20]; var NoOfInvoiceCopyPrinted: Integer; var TotalInvoiceAmount: Decimal)  
Codeunit 70014063 "LSE XZ Report Management" Local OnAfterFindSalesInvHeaderCalculateNoOfReceiptCopyPrintedAndAmount (DocumentNo: Code[20]; var NoOfReceiptCopyPrinted: Integer; var TotalReceiptAmount: Decimal)  
Codeunit 70014063 "LSE XZ Report Management" Local OnAfterFindSalesInvLineGetTotalSalesFromSalesInvoice (SalesInvLine: Record "Sales Invoice Line"; AmountType: Integer; var Amount: Decimal)  
Codeunit 70014082 "LSE SystemPOSNewUiUtility" Local OnAfterItemNotFoundOnBeforeMessage (Input: Text; var IsHandled: Boolean);  
Codeunit 70014083 "LSE SystemNewPOSEvtSubscribers" Local OnExecuteCustomPOSAction (POSActionID: Integer; var CurrPageUpdate: Boolean; var CurrPageClose: Boolean; var UpdateWithoutReopen: Boolean; var SalesHeader: Record "Sales Header") Moved to LSE System App
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnBeforeOnClosePageUIEvent (var Rec: Record "Sales Header"; var ShouldReopenPOS: Boolean; var PageUtility: Codeunit "LSE Page Utility"; var LSERuntimeInfoSI: Codeunit "LSE Runtime Info (SI)"; var SalesUtilities: Codeunit "LSE Sales Utilities")  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnOpenPOSNewUIPage (var IsHandled: Boolean)  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnExecutePosAction (var SalesHeader: Record "Sales Header"; var LSERuntimeInfoSI: Codeunit "LSE Runtime Info (SI)"; POSActionID: Integer; var IsHandled: Boolean)  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnBeforeAddSalesLinesJSONArr (var SalesLine: Record "Sales Line"; var SalesLinesJSONObj: JsonObject)  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnAfterFilterPOSItem (ItemFilterContains: Text; var ItemsArray: JsonArray)  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnAfterItemNotFoundOnBeforeMessage (Input: Text; var IsHandled: Boolean)  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnDeleteCurrentSale (Rec: Record "Sales Header"; var IsHandled: Boolean)  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal AddCustomFieldsOnNewUI (Rec: Record "Sales Header"; var CustomText1: Text; var CustomText2: Text; var CustomText3: Text; var ShowCustomTextOnNewUI: Boolean)  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnElseSalesLine (SalesLine: Record "Sales Line")  
Codeunit 70014086 "LSE SystemPOSNewUiUtility-P" Internal OnBeforeUpdateBalance (Rec: Record "Sales Header"; var Balance: Decimal)  
Codeunit 71557714 "LSESYS OnCustomPOSAction" Local OnCustomPOSAction (POSActionID: Integer; var ShouldUpdateCurrPage: Boolean; var ShouldCloseCurrPage: Boolean; var ShouldUpdateWithoutReopen: Boolean; var SalesHeader: Record "Sales Header")  
Page 70014003 "LSE Input" Local OnBeforeQueryClosePageInput (var DecimalInput: Decimal; IsDecimalType: Boolean; CloseAction: Action )  
Page 70014007 "LSE Start" Local OnBeforeProcessOnAfterGetCurrRecord (var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)  
Page 70014007 "LSE Start" Local OnBeforeCalculateTotals (var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var VATAmount: Decimal; var TotalDiscountAmount: Decimal; var TotalDiscountPct: Decimal; var Balance: Decimal; var IsHandled: Boolean)  
Page 70014007 "LSE Start" Local OnBeforeSearchItemFocusOnInputOnAfterGetCurrRecord (var SalesHeader: Record "Sales Header"; var SkipFocusOnInput: Boolean)  
Page 70014008 "LSE Start Subpage" Local QuantityBeforeOnDrillDown (var SalesLine: Record "Sales Line"; var IsHandled: Boolean)  
Page 70014008 "LSE Start Subpage" Local IncreaseLineDiscPercTextBeforeOnDrillDown (var SalesLine: Record "Sales Line"; var IsHandled: Boolean)  
Page 70014008 "LSE Start Subpage" Local DecreaseLineDiscPercTextBeforeOnDrillDown (var SalesLine: Record "Sales Line"; var IsHandled: Boolean)  
Page 70014008 "LSE Start Subpage" Local IncreaseLineDiscAmtTextBeforeOnDrillDown (var SalesLine: Record "Sales Line"; var IsHandled: Boolean)  
Page 70014008 "LSE Start Subpage" Local DecreaseLineDiscAmtTextBeforeOnDrillDown (var SalesLine: Record "Sales Line"; var IsHandled: Boolean)  
Page 70014008 "LSE Start Subpage" Local OnBeforeChangeQuantity (var SalesLine: Record "Sales Line"; NewQuantity: Decimal; var IsHandled: Boolean)  
Page 70014078 "LSECustPaymentInput" Local OnAfterValidateApplyToDocNo (var POSCustAccPayment: Record LSEPOSCustAccPayment)  
Page 70014082 LSEConfirmExactPayment Local OnPayWithExactCashBeforeOnQueryClosePage OnPayWithExactCashBeforeOnQueryClosePage(var SalesHeader: Record "Sales Header"; var BalanceAmount: Decimal; PaymentMethod: Record "LSE Payment Method"; var IsHandled: Boolean) Obsolete (Replaced by 'OnPayWithExactCashBeforeOnQueryClosePageV2')
Page 70014082 LSEConfirmExactPayment Local OnPayWithExactCashBeforeOnQueryClosePageV2 OnPayWithExactCashBeforeOnQueryClosePage(var SalesHeader: Record "Sales Header"; var BalanceAmount: Decimal; var PaymentMethod: Record "LSE Payment Method"; var IsHandled: Boolean)  
Page 70014139 "LSEPOSNewUI" Local OnExecuteCustomPOSAction (POSActionID: Integer; var CurrPageUpdate: Boolean; var SalesHeader: Record "Sales Header") Obsolete (Replaced by Codeunit 70014083 "LSE SystemNewPOSEvtSubscribers"). Note: Object ID 70014139 has since been reassigned to a different object, "LSE HWST Page".
Codeunit 71557688 "LSESYS OnDeleteSale" Local OnDeleteCurrentSale (Rec: Record "Sales Header"; var IsHandled: Boolean) Set IsHandled to true to skip the default delete-current-sale behavior.
Codeunit 71557688 "LSESYS OnDeleteSale" Local OnDeleteCurrentSaleUI (var Rec: Record "Sales Header") Fires after the current sale has been deleted, unless a subscriber to OnDeleteCurrentSale above already set IsHandled to true.
Report 70014010 "LSE Invoice Slip IS" Local OnBeforeGetSalesInvoiceLbl (SalesInvoiceHeader: Record "Sales Invoice Header"; var DocCaption: Text)  
Report 70014011 "LSE Credit Memo Slip IS" Local OnBeforeGetCreditMemoLbl (SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var DocCaption: Text)  
Report 70014012 LSEInvoiceSlip2 Local OnBeforeGetSalesInvoiceLbl (SalesInvoiceHeader: Record "Sales Invoice Header"; var DocCaption: Text)  
Report 70014013 LSECreditMemoSlip2 Local OnBeforeGetCreditMemoLbl (SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var DocCaption: Text)  
Report 70014040 "LSE Invoice Slip NO" Local OnBeforeGetSalesInvoiceLbl (SalesInvoiceHeader: Record "Sales Invoice Header"; var DocCaption: Text)  
Report 70014041 "LSE Credit Memo Slip NO" Local OnBeforeGetCreditMemoLbl (SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var DocCaption: Text)  
Table 70014030 "LSE Store Summary" Local OnAfterLoopSalesInvoiceLineOfCalculateAmountsAndCounters (var StoreSummary: Record "LSE Store Summary"; var SalesInvoiceLine: Record "Sales Invoice Line")  
Table 70014030 "LSE Store Summary" Local OnAfterLoopSalesCrMemoLineOfCalculateAmountsAndCounters (var StoreSummary: Record "LSE Store Summary"; var SalesCrMemoLine: Record "Sales Cr.Memo Line")  
Table 70014030 "LSE Store Summary" Local OnAfterCalcPostedToCustomersAfterCalculation (var StoreSummary: Record "LSE Store Summary"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header")  
Table 70014030 "LSE Store Summary" Local OnAfterCalculateAmountsAndCounters (var StoreSummary: Record "LSE Store Summary")  
Table 70014030 "LSE Store Summary" Local OnAfterInitializeTotals (var StoreSummary: Record "LSE Store Summary")  

 

New POS UI Action Framework

The New POS UI's action bar and menu buttons are implemented as a separate module, in the LSExpress_System app (folder POSNewUI\POSActions\), rather than as the classic POS actions listed above. Each POS action is mapped, by Codeunit 71557678 "LSESYS POSActions Enum", to one codeunit implementing interface "LSESYS IPOSAction". Every one of these codeunits follows the same shape: its Execute method does little more than raise one (occasionally two) of its own local events so that other extensions can subscribe and add real behavior, then returns a "LSESYS PageAction" enum value (None, Update, Close, or UpdateWithoutReopen) telling the POS front end what to do with the current page afterward. The common Execute signature is:

procedure Execute(var Rec: Record "Sales Header"; var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"): Enum "LSESYS PageAction"

 

Note: The "LSESYS IPOSAction" interface's own source file contains a malformed Execute declaration (present since the file was first added) that does not match any of the codeunits that implement it. The signature above is the one every implementing codeunit actually uses.

Note: One codeunit in this module, 71557714 "LSESYS OnCustomPOSAction", implements a different interface, "LSESYS ICustomPOSAction", instead — it is the default/fallback handler for any POS Action ID that is not one of the 39 built-in actions in this table (set as DefaultImplementation/UnknownValueImplementation on the enum). See its row below for its distinct signature.

Note: Every event in this module is a local procedureProcedure Type is Local throughout this section. Some events are also named slightly differently from their codeunit (for example, codeunit LSESYS OnMyCustomersLookup raises event OnMyCustomers) — always subscribe to the exact event name in the Procedure Name column, not the codeunit name.

 

Object Type Object ID Object Name Procedure Type Procedure Name Parameter Remark
Codeunit 71557683 "LSESYS OnCustomerInformation" Local OnCustomerInformation (var SalesHeader: Record "Sales Header") Raised by the Customer Information Lookup POS action.
Codeunit 71557684 "LSESYS OnChangeTotalAmount" Local OnChangeTotalAmount (var SalesHeader: Record "Sales Header"; LineAmount: Decimal) Raised by the Change Total Amount POS action; LineAmount is the sales line amount at the time of the action.
Codeunit 71557685 "LSESYS OnDiscountPercent" Local OnDiscountPercent (var SalesHeader: Record "Sales Header") Raised by the Total Discount Percent POS action.
Codeunit 71557686 "LSESYS OnDiscountTotalAmount" Local OnDiscountTotalAmount (var SalesHeader: Record "Sales Header") Raised by the Total Discount Amount POS action.
Codeunit 71557687 "LSESYS OnSalesHistory" Local OnSalesHistory (SalesHeader: Record "Sales Header") Raised by the Sales History Lookup POS action. Unlike most events in this module, SalesHeader is passed by value, not by reference.
Codeunit 71557688 "LSESYS OnDeleteSale" Local OnDeleteCurrentSale (Rec: Record "Sales Header"; var IsHandled: Boolean) Raised by the Delete Current Sale POS action, before the default deletion logic runs. Set IsHandled to true to skip the default logic entirely.
Codeunit 71557688 "LSESYS OnDeleteSale" Local OnDeleteCurrentSaleUI (var Rec: Record "Sales Header") Raised after the default sale-deletion logic runs (only reached when OnDeleteCurrentSale did not set IsHandled).
Codeunit 71557689 "LSESYS OnPay" Local OnPay (SalesHeader: Record "Sales Header") Raised by the Pay POS action. SalesHeader is passed by value.
Codeunit 71557690 "LSESYS OnTotalBalance" Local OnTotalBalance (var SalesHeader: Record "Sales Header") Raised by the Total Balance POS action.
Codeunit 71557691 "LSESYS OnRefundPayment" Local OnRefundPayment (var SalesHeader: Record "Sales Header") Raised by the Refund Payment POS action.
Codeunit 71557692 "LSESYS OnMyCustomersLookup" Local OnMyCustomers (var SalesHeader: Record "Sales Header") Raised by the My Customers Lookup POS action.
Codeunit 71557693 "LSESYS OnMyItemsLookup" Local OnMyItems (var SalesHeader: Record "Sales Header") Raised by the My Items Lookup POS action.
Codeunit 71557694 "LSESYS OnAddToDrawer" Local OnAddToDrawer () Raised by the Add to Drawer POS action.
Codeunit 71557695 "LSESYS OnRemoveFromDrawer" Local OnRemoveFromDrawer () Raised by the Remove From Drawer POS action.
Codeunit 71557696 "LSESYS OnSuspend" Local OnSuspend (var SalesHeader: Record "Sales Header"; var ShouldCloseCurrentPage: Boolean) Raised by the Suspend POS action. Set ShouldCloseCurrentPage to true to close the current POS page afterward.
Codeunit 71557697 "LSESYS OnRetrieveSale" Local OnRetrieveSales (var SalesHeader: Record "Sales Header"; var ShouldCloseCurrentPage: Boolean) Raised by the Retrieve Sale POS action. Set ShouldCloseCurrentPage to true to close the current POS page afterward.
Codeunit 71557698 "LSESYS OnGetCurrSalesProfile" Local OnGetCurrentSalesProfile () Raised by the Get Current Sales Profile POS action.
Codeunit 71557699 "LSESYS OnChangePassword" Local OnChangePassword (SalesHeader: Record "Sales Header") Raised by the Password Change POS action. SalesHeader is passed by value.
Codeunit 71557700 "LSESYS OnLSEHelp" Local OnLSEHelp () Raised by the LS Express Help POS action.
Codeunit 71557701 "LSESYS OnGiftCardList" Local OnGiftCardList () Raised by the Gift Card List POS action.
Codeunit 71557702 "LSESYS OnGiftCardEntry" Local OnGiftCardEntry () Raised by the Gift Card Entries POS action.
Codeunit 71557703 "LSESYS OnSelectPromotion" Local OnSelectPromotion (SalesHeader: Record "Sales Header") Raised by the Select Promotion POS action. SalesHeader is passed by value.
Codeunit 71557704 "LSESYS OnSalesPromotions" Local OnSalesPromotions (SalesHeader: Record "Sales Header") Raised by the Sales Promotions POS action. SalesHeader is passed by value.
Codeunit 71557705 "LSESYS OnPostToCustomer" Local OnPostToCustomer (var SalesHeader: Record "Sales Header"; var StaffID: Code[20]; var ShouldCloseCurrentPage: Boolean) Raised by the Post to Customer POS action. Set ShouldCloseCurrentPage to true to have the POS run for the given StaffID and close the current page afterward (see OnRunPOSForStaff below).
Codeunit 71557705 "LSESYS OnPostToCustomer" Local OnRunPOSForStaff (StaffID: Code[20]) Raised only when OnPostToCustomer sets ShouldCloseCurrentPage to true.
Codeunit 71557706 "LSESYS OnZReport" Local OnZReport () Raised by the ZReport POS action.
Codeunit 71557707 "LSESYS OnPrintXReport" Local OnPrintXReport (var SalesHeader: Record "Sales Header") Raised by the Print X Report POS action (from POS Sales).
Codeunit 71557708 "LSESYS OnCloseOutSummaries" Local OnCloseOutSummaries () Raised by the Close Out Summaries POS action.
Codeunit 71557709 "LSESYS OnCloseOutWizard" Local OnCloseOutWizard () Raised by the Close Out Wizard POS action.
Codeunit 71557710 "LSESYS OnPostedCloseOutSumm" Local OnPostedCloseOutSummaries () Raised by the Posted Close Out Summaries POS action.
Codeunit 71557711 "LSESYS OnOpenCashDrawer" Local OnOpenCashDrawer () Raised by the Open Drawer POS action.
Codeunit 71557712 "LSESYS OnGetLastTransaction" Local OnGetLastTransaction (var ShouldCloseCurrPage: Boolean) Raised by the Get Last Transaction POS action. Set ShouldCloseCurrPage to true to close the current POS page afterward.
Codeunit 71557712 "LSESYS OnGetLastTransaction" Local OnRunLSPayService () Raised unconditionally, right after OnGetLastTransaction. Presumed to trigger an LS Pay Service call, based on the codeunit's name — not confirmed by any code comment.
Codeunit 71557713 "LSESYS OnCustomerLookup" Local OnCustomerLookup (var SalesHeader: Record "Sales Header") Raised by the Customer Lookup POS action.
Codeunit 71557714 "LSESYS OnCustomPOSAction" Local OnCustomPOSAction (POSActionID: Integer; var ShouldUpdateCurrPage: Boolean; var ShouldCloseCurrPage: Boolean; var ShouldUpdateWithoutReopen: Boolean; var SalesHeader: Record "Sales Header") Implements "LSESYS ICustomPOSAction", not "LSESYS IPOSAction" — the default/fallback handler for any POS Action ID that isn't one of the other 39 actions in this table. Subscribers key off POSActionID themselves and set one of the three boolean out-parameters (checked in that order: Update, then Close, then UpdateWithoutReopen) to control the resulting page action.
Codeunit 71557715 "LSESYS OnExactCardPayment" Local OnExactCard (var SalesHeader: Record "Sales Header"; var ShouldCloseCurrPage: Boolean; var ShouldUpdateCurrPage: Boolean; var IsLSPayment: Boolean) Raised by the Exact Card Payment POS action. Set IsLSPayment to true if this is an LS Pay card payment — this closes the current page independently of ShouldCloseCurrPage/ShouldUpdateCurrPage.
Codeunit 71557716 "LSESYS OnRetrieveSalesOrder" Local OnRetrieveSalesOrder (var SalesHeader: Record "Sales Header"; var ShouldCloseCurrentPage: Boolean) Raised by the Retrieve Sales Order POS action. Set ShouldCloseCurrentPage to true to close the current POS page afterward.
Codeunit 71557717 "LSESYS OnExactCashPayment" Local OnExactCash (var SalesHeader: Record "Sales Header"; var ShouldCloseCurrPage: Boolean; var ShouldUpdateCurrPage: Boolean) Raised by the Exact Cash Payment POS action.
Codeunit 71557718 "LSESYS OnItemLookup" Local OnItemLookup (var SalesHeader: Record "Sales Header") Raised by the Item Lookup POS action.
Codeunit 71557719 "LSESYS OnOpenInvoices" Local OnOpenInvoices (var SalesHeader: Record "Sales Header") Raised by the Open Invoices POS action.
Codeunit 71557720 "LSESYS OnPayToCustomerAccount" Local OnPayToCustomerAccount (var Rec: Record "Sales Header") Raised by the Pay to Customer Account POS action.
Codeunit 71557721 "LSESYS OnQuickCashPayment" Local OnQuickCash (var SalesHeader: Record "Sales Header") Raised by the Quick Cash Payment POS action.
Codeunit 71557722 "LSESYS OnCustomerItemSalesHist" Local OnCustomerItemSalesHistory (var Rec: Record "Sales Header") Raised by the Customer Item Sales History Lookup POS action.

 

See also

 

Extend/Verticalize