Class SO_Invoice_Ui

Known SubClasses

SO_InvoiceInquiry_ui

Properties

LOCAL cBT_PrintTask$="SO_InvoicePrinting_ui"  
LOCAL cDetailObj$="SO_InvoiceDetail_bus"  
LOCAL cDeleted=isFALSE  
LOCAL cFirstScreenID=InvoiceNo.Ctl  
LOCAL cFirstTime=isTRUE  
LOCAL cForm$="SO_INVOICE"  
LOCAL cFormGrid$="GD_LINES"  
LOCAL cGridViewPanel$="pLines"  
LOCAL cGridViewPanelExpand$="pLinesW"  
LOCAL cGridViewPanelNormal$="pLines"  
LOCAL cInquiryProgram  
LOCAL cListingClass$="SO_InvoicePrinting_rpt"  
LOCAL cRateMask$="###, ###, ###.00"  
LOCAL cResetFolder$="pHeader"  
LOCAL cResetFolderID=FLDR.PHEADER.CTL  
LOCAL cQtyMask$="###, ###, ###.0000000-"  
LOCAL cDistBusObj$="SO_InvoiceTierDistribution_bus"  
LOCAL cDistRefDate$="ShipDate$"  
LOCAL cDistRefDateDesc$="TBL(POS(DB_InvoiceType$="+QUO+"C"+QUO+"), "+QUO+"Ship"+QUO+", "+QUO+"Invoice"+QUO+")"  
LOCAL cDistWarehouseCode$="WarehouseCode$"  
LOCAL cDistUIObj$="SO_InvoiceTierDistribution_ui"  
LOCAL cDistQtyVar$="QuantityShipped"  
LOCAL cEntityName$  
LOCAL cForceDistBalance=isFALSE  

Methods

FUNCTION CheckOrderLineKey()  
FUNCTION LOCAL AssignTotalsPanelVars()  
FUNCTION LOCAL BT_Accept()  
FUNCTION LOCAL BT_ApplySO()  

Button press logic to display Apply Sales Orders To Invoice dialog

Returns [boolean] True = success
FUNCTION LOCAL BT_Batch()  
FUNCTION LOCAL BT_BatchTransfer()  

Transfer current document from this batch to another batch

Returns [boolean] True = success
FUNCTION LOCAL BT_Cancel()  
FUNCTION LOCAL BT_CustPoNos()  

Logic to display the customer PO numbers from Sales Order drill down dialog

Returns [boolean] True = success
FUNCTION LOCAL BT_Defaults()  
FUNCTION LOCAL BT_Delete()  
FUNCTION LOCAL BT_Deposits()  

Logic to display the Deposits from Sales Order drill down dialog

Returns [boolean] True = success
FUNCTION LOCAL BT_Distribute()  
FUNCTION LOCAL BT_InvHistoryDetails()  
FUNCTION LOCAL BT_NextNum()  
FUNCTION LOCAL BT_QuickPrint()  
FUNCTION LOCAL BT_RowReset()  
FUNCTION LOCAL BT_RowResetAll()  
FUNCTION LOCAL BT_SalesOrderMemo()  

Override of the base class memo logic for the Sales Order Memo button

Returns [boolean] True = success, False = failure.
FUNCTION LOCAL BT_TaxDetail()  
FUNCTION LOCAL BT_Track()  
FUNCTION LOCAL Cancel()  
FUNCTION LOCAL ChangeApplyToInvoiceNo()  
FUNCTION LOCAL ChangeCB_PayBalance()  

Change Pay Balance check box

Returns [boolean] True = success, False = failure.
FUNCTION LOCAL ChangeCheckNoForDeposit()  
FUNCTION LOCAL ChangeCreditCardAuthorizationNo()  

Change Authorization Number for payment on credit card panel

Returns [boolean] True = success, False = failure.
FUNCTION LOCAL ChangeDB_GLAccount()  

Empty function so that variable is changed by NOMADs for DB_GLAccount choice in the Apply Defaults to Copy from on Credit Memos.

Returns [Boolean] Always returns retSUCCESS(1)
FUNCTION LOCAL ChangeDB_InvoiceType()  
FUNCTION LOCAL ChangeDB_ItemCost()  

Empty function so that variable is changed by NOMADs for DB_ItemCost choice in the Apply Defaults to Copy from on Credit Memos.

Returns [Boolean] Always returns retSUCCESS(1)
FUNCTION LOCAL ChangeDB_PaymentType()  
FUNCTION LOCAL ChangeDB_SalesOrder(gridCtl)  

Change Applied Sales Order Drop Box grid cell (Shown on grid when multiple SO's applied on invoice, only enabled on detail lines added)

ParameterDescription
gridCtl [input, numeric] Control ID for the grid being modified
Returns [boolean] True = success, False = failure.
FUNCTION LOCAL ChangeDepositAmt()  
FUNCTION LOCAL ChangeInvoiceDate()  

Function to change the invoice date value

Returns [boolean]
ValueDescription
retSUCCESS(1) If date value is valid
retFAILURE(0) If invalid date
FUNCTION LOCAL ChangeInvoiceNo()  
FUNCTION LOCAL ChangeItemCode(gridCtl)  
FUNCTION LOCAL ChangeJobNo()  

Overload of SO_CommonEntry_ui ChangeJobNo()

Returns [boolean] True = success, False = failure.
FUNCTION LOCAL ChangeML_BillToCustomerNo()  
FUNCTION LOCAL ChangeML_Customer()  
FUNCTION LOCAL ChangeML_CustomerPONo(gridCtl)  

Change Applied Customer PO No grid cell (Shown on grid when multiple SO's applied on invoice, only enabled when added detail line has not been assigned to an applied SO)

ParameterDescription
gridCtl [input, numeric] Control ID for the grid being modified
Returns [boolean] True = success, False = failure.
FUNCTION LOCAL ChangeNumberofCODLabels()  
FUNCTION LOCAL ChangeOtherPaymentTypeRefNo()  
FUNCTION LOCAL ChangeQuantityBackordered(gridCtl)  

Overload of SO_CommonEntry_ui ChangeQuantityBackordered()

ParameterDescription
gridCtl [input, numeric] Control ID for the grid being modified
Returns [boolean] True = success, False = failure.
FUNCTION LOCAL ChangeQuantityOrdered(gridCtl)  

Overload of SO_CommonEntry_ui ChangeQuantityOrdered()

ParameterDescription
gridCtl [input, numeric] Control ID for the grid being modified
Returns [boolean] True = success, False = failure.
FUNCTION LOCAL ChangeQuantityShipped(gridCtl)  
FUNCTION LOCAL ChangeRetentionAmt()  
FUNCTION LOCAL ChangeSalesOrderNo()  
FUNCTION LOCAL ChangeShipDate()  

Function to change the ship date value

Returns [boolean]
ValueDescription
retSUCCESS(1) If date value is valid
retFAILURE(0) If invalid date
FUNCTION LOCAL CheckForCustomerPONoRefresh(gridCtl)  

Common method to properly display applied customer PO number

ParameterDescription
gridCtl [input, numeric] Control ID for the grid being modified
Returns [boolean] True = success, False = failure.
FUNCTION LOCAL PERFORM CheckForEnableDistribution()  
FUNCTION LOCAL CheckForJobCost()  

Enable/Diable JobNo.ctl based on conditions

Returns [boolean] True = success
FUNCTION LOCAL CheckForPercentComplete()  

Hide/Show/Enable/Diable ActualPercentComplete.ctl based on conditions

Returns [boolean] True = success
FUNCTION LOCAL CheckForRMA()  

Hide/Show RMA.GRP$ controls based RMANo$(If RMANo$ is empty then hide otherwise Show)

Returns [boolean] True = success
FUNCTION LOCAL CheckPayments()  

Check for adjustments needed to payments drop box loac, hide / show deposit related controls on totals folder

Returns [boolean] True = success
FUNCTION LOCAL ClassChangeCustomer(ctlNum)  
FUNCTION LOCAL ClassChangeGrid(gridCtl)  
FUNCTION LOCAL ClassOnfocusGrid(gridCtl)  
FUNCTION LOCAL CRMCheckforIntegrated()  
FUNCTION LOCAL CRMCustomerCheck()  
FUNCTION LOCAL CRMCustomerContact()  
FUNCTION LOCAL PERFORM CRMGetRecord()  
FUNCTION LOCAL PERFORM CRMOpportunityCheck()  
FUNCTION LOCAL PERFORM CRMPostReadCheck()  
FUNCTION LOCAL DisplayPrice()  
FUNCTION LOCAL DoCancel()  
FUNCTION LOCAL EnableOtherControls(gridCtl, row)  
FUNCTION LOCAL EnablepCreditCardControls()  

Enable/Disable controls on the credit card panel

Returns [numeric] Always returns success.
FUNCTION LOCAL EnablepHeaderControls()  
FUNCTION LOCAL EnablepTotalsControls()  
FUNCTION LOCAL GetLineRecord(gridCtl, row)  
FUNCTION LOCAL LoadGrid(gridCtl)  

Overload of base class LoadGrid(), required for loading grid for multiple SO on Invoice

ParameterDescription
gridCtl [input, numeric] Control ID for the grid to be loaded
Returns [boolean] True = success, False = failure
FUNCTION LOCAL LoadGridDropBoxes(gridCtl, row)  

Overload of SO_CommonEntry_UI'LoadGridDropBoxes(), required for loading aplied SO drop box when multiple SO on Invoice

ParameterDescription
gridCtl [input, numeric] Control ID for the grid being loaded
row [input, numeric] row number on the grid being loaded
Returns [boolean] True = success, False = failure
FUNCTION LOCAL OnExit()  

Logic to execute when dialog closes

Returns [boolean] True = success, False = failure.
FUNCTION LOCAL OnExitpHeader()  

Function performs logic after the exit of the header panel.

Returns [integer] will return the return value from the call to OnExitpHeader() in SO_CommonEntry_ui
FUNCTION LOCAL OnExitpHeaderW()  

Function performs logic after the exit of the header panel.

Returns [integer] will return the return value from the call to OnExitpHeaderW() in SO_CommonEntry_ui
FUNCTION LOCAL OnFocusBT_Accept()  
FUNCTION LOCAL OnFocusBT_QuickPrint()  
FUNCTION LOCAL PostLoad()  
FUNCTION LOCAL PostLoadpAddress()  
FUNCTION LOCAL PostLoadpAddressW()  
FUNCTION LOCAL PostLoadpHeader()  
FUNCTION LOCAL PostLoadpHeaderW()  
FUNCTION LOCAL PostLoadpLines()  
FUNCTION LOCAL PostLoadpLinesW()  
FUNCTION LOCAL PostLoadpTotals()  
FUNCTION LOCAL PostLoadpTotalsW()  
FUNCTION LOCAL PostReadRec()  
FUNCTION LOCAL QPCODLabelsSub(invoice$)  
FUNCTION LOCAL QuantityExceedsAvailable(opt$)  
FUNCTION LOCAL SaveRow(gridCtl, currentRow)  
FUNCTION LOCAL SetDBInvoiceType()  

Set DB_InvoiceType.ctl based on InvoiceType$ value

Returns [boolean] True = success
FUNCTION LOCAL SetFormState(action)  
FUNCTION LOCAL SetGridColumns(gridCtl, row)  
FUNCTION LOCAL SetOrderStatus()  

Set ML_OrderStatus$.ctl based on OrderStatus$ value

Returns [boolean] True = success
FUNCTION LOCAL SetSalesOrderControls()  

Enable/Disable sales order controls based on conditions

Returns [boolean] True = success
FUNCTION LOCAL SetupGrid(mainGrid, form$, grid$, option, secGrid)  

Overload of SO_CommonEntry_UI'SetupGrid(), required for setting length of ML_CustomerPONo custom cell length

ParameterDescription
mainGrid [input, integer] control ID for the main grid being setup
form$ [input, string] name of SY_GridDefintion form (Nomads lib) containing grid beng setup
grid$ [input, string] name of grid control being setup
option [input, integer] grid maintenance option for grid being setup
secGrid [input, integer] control ID for the secondary grid being setup
Returns [boolean] True = success, False = failure
FUNCTION LOCAL ShowAlternateItem()  
FUNCTION LOCAL VoidCCTrans(whatToVoid$)  

Prompt user to void credit card transactions already processed through Paya Exchange

ParameterDescription
whatToVoid$ [input, string] "OLD" (void transactions already saved) or "NEW" (void unsaved transactions)
Returns [boolean] True = success, False = failure
FUNCTION LOCAL VoidCompletedTransaction()  

Prompt user to void post authorization and credit transaction already processed through Paya Exchange if invoice total has changed

Returns [boolean] True = success, False = failure

Properties inherited from: SO_CommonEntry_Ui

cCompositeSPCtl, cFromExtDescButton, cGridViewPanel$, cJobNoLookup$, cItemLookup$, cKitPostExplode, cMissingJob, cMissingCostCode, cMissingCostCodes$, cResetFolder$, cResetFolderID, cShipViaQuery$, cUpdateExtDesc, billCATEGORYNUM, cBillOptionIOL$, cAllowVendOTF, cAutoDisplayExtendedDescription, cNewRecordFolderNames$, cOTFSecurityEvent$, isCredit$, isDebit$

Methods inherited from: SO_CommonEntry_Ui

MessagePrompt(), SecurityOverride(), AccumulateTotals(), AdjustLineTotals(), AllLinesComplete(), AssignCreditCardPanelVars(), AssignTotalsPanelVars(), BT_Accept(), BT_AcceptClose(), BT_Alias(), BT_Cancel(), BT_CancelClose(), BT_CCP_Level3(), BT_Clear(), BT_CopyShip(), BT_Credit(), BT_CreditCard(), BT_Customer(), BT_Delete(), BT_Distribute(), BT_Fix(), BT_ItemInquiry(), BT_ItemPrice(), BT_KitItems(), BT_LastPurchaseHist(), BT_OKClose(), BT_OKView(), BT_Options(), BT_RecalcTax(), BT_Reset_Corp_Sales_Tax(), BT_Reset_Dep_Corp_Sales_Tax(), BT_RowDel(), BT_RowDown(), BT_RowReset(), BT_RowUp(), BT_SplitComm(), BT_TaxDetail(), BuildCostTypeList$(), CalculateCreditCardBalanceAmt(), CalculateTaxAndFreight(), ChangeAuthorizationDate(), ChangeAuthorizationTime(), ChangeAVSAddressLine1(), ChangeAVSAddressLine2(), ChangeAVSAddressLine3(), ChangeAVSCity(), ChangeAVSCountryCode(), ChangeAVSState(), ChangeAVSZipCode(), ChangeBankName(), ChangeCardHolderName(), ChangeCB_PayBalance(), ChangeCB_QuickPrintWithoutPrintWindow(), ChangeCB_Swipe_Card(), ChangeCheckNoForDeposit(), ChangeCM_Commissionable(), ChangeCM_Discount(), ChangeCM_DropShip(), ChangeCM_NetGrossIndicator(), ChangeCM_SubjectToExemption(), ChangeCommissionRate(), ChangeCorporateCustIDPurchOrder(), ChangeCorporateSalesTax(), ChangeCostCode(), ChangeCreditCardAuthorizationNo(), ChangeCreditCardComment(), ChangeCreditCardEmailAddress(), ChangeCreditCardID(), ChangeCreditCardTransactionID(), ChangeCustomerPONo(), ChangeDB_CostType(), ChangeDB_DebitCreditIndicator(), ChangeDB_PaymentType(), ChangeDB_PaymentTypeCategory(), ChangeDepositAmt(), ChangeDepositField(), ChangeDiscountAmt(), ChangeDiscountRate(), ChangeDutyAmt(), ChangeExpirationDateMonth(), ChangeExpirationDateYear(), ChangeExtensionAmt(), ChangeFaxNo(), ChangeFreightAmt(), ChangeItemCode(), ChangeJobNo(), ChangeLast4UnencryptedCreditCardNos(), ChangeLineDiscountPercent(), ChangeML_AuthorizationDate_Dep(), ChangeML_AuthorizationTime_Dep(), ChangeML_BillToCustomerNo(), ChangeML_CorporateSalesTax_Dep(), ChangeML_CreditCardAuthorizationNo_Dep(), ChangeML_CreditCardTransactionID_Dep(), ChangeML_Options(), ChangeML_SalesPersonNo2(), ChangeML_SalesPersonNo3(), ChangeML_SalesPersonNo4(), ChangeML_SalesPersonNo5(), ChangeML_TransactionAmt_Dep(), ChangeML_WarehouseCode(), ChangeNationalTaxAmt(), ChangeOtherPaymentTypeRefNo(), ChangePaymentField(), ChangePaymentType(), ChangePr.QuantityOrdered(), ChangePriceLevel(), ChangeQuantityBackordered(), ChangeQuantityOrdered(), ChangeRB_Choice(), ChangeSaveCreditCard(), ChangeShipToState(), ChangeShipToZipCode(), ChangeShipWeight(), ChangeShipZone(), ChangeSplitCommissions(), ChangeSplitCommRate2(), ChangeSplitCommRate3(), ChangeSplitCommRate4(), ChangeSplitCommRate5(), ChangeTaxSchedule(), ChangeTermsCode(), ChangeTransactionAmt(), ChangeUnitCost(), ChangeUnitOfMeasure(), ChangeUnitPrice(), ChangeValueAddedTaxInvoiceNo(), ChangeValueAddedTaxNo(), ChangeValueAddedTaxTaxAmt(), ChangeValueAddedTaxTaxRate(), ChangeWarehouseCode(), CheckCreditCardRequiredFields(), CheckForAlternateWarehouse(), CheckForEnableBT_CreditCard(), CheckForEnableBT_Fix(), CheckForEnableCB_Swipe_Card(), CheckForEnableCorporate(), CheckForHistorySeqNo(), CheckForMultipleWarehouse(), CheckForRetainOrderQuoteHistory(), CheckLinesAndTotals(), CheckTaxSchedule(), CheckWarehouse(), ClassChangeCustomer(), ClassChangeShipTo(), ClassDragGridClassDropGrid$(), ClassOnFocusAddlGrid(), ClassOnFocusGrid(), ClassPushMemoBtn(), ClearTotals(), ConfirmDelete(), DeleteDepositRecord(), DepositRecordCreated(), DisplayUnitCostWarning(), DistributionStatus(), DRBT_AlternateItem(), DRBT_AlternateWarehouse(), DRBT_ItemStatus(), DRBT_PriceLevelInquiry(), EnableCCControlsForAddlTrans(), EnableControls(), EnableOtherControls(), EnablepAddressControls(), EnablepCreditCardControls(), EnablepHeaderControls(), EnablepTotalsControls(), EnableSalespersons(), GenerateFormatMask$(), GetAliasDesc(), GetControlID(), GetCurrentBillOptions$(), GetCurrentPaymentTypeMethod(), GetGroupPropLists(), GetLineRecord(), GetPaymentTypeList(), HideShowGridGroup(), InitDefaultRowState(), KeyChangeAdditional(), LoadGridDropBoxes(), LoadKitLines(), LoadKitRow(), LocalizeIOLIST(), ModifySearchVar(), OnExit(), OnExitpAddress(), OnExitpAddressW(), OnExitpCreditCard(), OnExitpCreditCardW(), OnExitpHeader(), OnExitpHeaderW(), OnExitpLines(), OnExitpLinesW(), OnExitpTotals(), OnExitpTotalsW(), OnFocusBT_Accept(), OnFocusCreditCardID(), OnFocusDB_PaymentType(), OnFocusDepositAmt(), OnFocusExtensionAmt(), OnFocusItemCode(), OnFocusJobNo(), OnFocusLineDiscountPercent(), OnFocusML_Customer(), OnFocusPriceLevel(), OnFocusQuantityBackordered(), OnFocusSplitCommissions(), OnFocusUnitOfMeasure(), OnFocusUnitPrice(), PostCreditCardProcessing(), PostLoad(), PostLoadpAddress(), PostLoadpAddressW(), PostLoadpCreditCard(), PostLoadpCreditCardW(), PostLoadpHeader(), PostLoadpHeaderW(), PostLoadpLines(), PostLoadpLinesW(), PostLoadpTotals(), PostLoadpTotalsW(), PostPaymentTypeCategoryChange(), PostPaymentTypeChange(), PostReadRec(), PreLoad(), ProcessCCTransaction(), ProcessCCVault(), PromptForItemPriceByTotQty(), QuantityExceedsAvailable(), QuickConfirmWrite(), RedisplayStatus(), ResetCorporateSalesTax(), RowMods(), SaveRow(), SetAUCFilterItem(), SetCostCellMask(), SetCostCodeDefaults(), SetFormState(), SetGridColumns(), SetGridPresets(), SetLotSerial(), SetQtyMarker(), SetupGrid(), ShowDepositGroup(), ShowPayBalance(), ShowPriceLevelInquiry(), ShowRow(), TranslateColumns(), VoidCCTrans()