FUNCTION LOCAL BT_Cancel()    
Logic to execute when the Cancel button is pressed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL BT_CancelClose()    
Logic to execute when pressing Cancel button on Certfidied Payroll Reporting dialog
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL BT_CertifiedPayroll()    
Nomads BT_Certified Payroll button on press logic, used to provide hot key functionality when the more menu button text displayed is changed to "Cert&ified Payroll..."
 
 | 
 
    | Returns | 
    [boolean] True = success, False = failure | 
 
  
 | 
 
FUNCTION LOCAL BT_Copy()    
Logic to execute when the Copy button is pressed
 
 | 
 
    | Returns | 
    [numeric] True if successful, false if Copy fails | 
 
  
 | 
 
FUNCTION LOCAL BT_Costcode()    
Nomads BT_CostCode button on press logic, used to provide hot key functionality when the more menu button text displayed is changed to "Co&st Code..."
 
 | 
 
    | Returns | 
    [boolean] True = success, False = failure | 
 
  
 | 
 
FUNCTION LOCAL BT_Memo()    
Logic to execute when the Memo button is pressed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL BT_OK()    
Logic to execute when the OK button is pressed
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL BT_OKClose()    
Logic to execute when the OK button is pressed to close panel
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL BT_Options()    
Nomads menu button (More button) on press logic
 
 | 
 
    | Returns | 
    [boolean] True = success, False = failure | 
 
  
 | 
 
FUNCTION LOCAL BT_Paperless()    
Logic to execute when the Paperless button is pressed
 
 | 
 
    | Returns | 
    [boolean] True = success | 
 
  
 | 
 
FUNCTION LOCAL BT_Renumber()    
Logic to execute when the Renumber button is pressed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL BT_RowDel()    
Logic to execute when Delete Row button is pressed, current row in grid will be deleted
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL BT_RowReset()    
Logic to execute when Reset Row button is pressed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL BT_RowResetAll()    
Logic to execute when the Reset All Rows button is pressed
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL BT_Search()    
Logic to execute when the Search button is pressed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL BT_Zoom()    
Launches inquiry task based on document selected
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL CalcCosts()    
Logic to calculate job costs on status panel
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL CertifiedPayroll()    
Nomads menu button (More button) Certified Payroll menu choice on press logic
 
 | 
 
    | Returns | 
    [boolean] True = success, False = failure | 
 
  
 | 
 
FUNCTION LOCAL ChangeActualPercentComplete()    
Logic to execute when Actual Percent Complete is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeBillingMethod()    
Logic to execute when bill method is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeDB_FiscalYear()    
Logic to execute when Year is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeDB_Period()    
Logic to execute when Period is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeExcludeFromCertifiedPRReport()    
Logic to execute on change of esclude from certfied payroll report control
 
 | 
 
    | Returns | 
    [boolean] True = success, False = failure | 
 
  
 | 
 
FUNCTION LOCAL ChangeJobType()    
Logic to execute when Job Type is changed
 
 | 
 
    | Returns | 
    [numeric] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeLB_Transactions()    
Logic to execute when double click in the list box
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeML_Comment()    
Logic to execute when the value in the comment is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeML_CopyFrom()    
 | 
 
FUNCTION LOCAL ChangeML_CopyFrom(copyFrom$)    
Logic to copy job information from another job
 
 | 
 
| Parameter | Description |  
    | copyFrom$ | 
    {optional} [input, string] job number, if not passed in, use job number on the copy from panel | 
 
  
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeML_Customer()    
Logic to execute when customer number is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeML_Job()    
Logic to execute when the value in the job number control is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeML_Renumber()    
Logic to validate new job number
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeOriginalContractAmt()    
Logic to execute when Original Contract Amount is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeRevisedContractAmt()    
Logic to execute when Revised Contract Amount is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeTransactionDate(gridCtl)    
Logic to execute when Transaction Date is changed
 
 | 
 
| Parameter | Description |  
    | gridCtl | 
    [input, numeric] control value of the grid. | 
 
  
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ChangeUnitOfMeasureDesc()    
Logic to execute when Unit of Measure is changed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL CheckARInvoiceHistory(divNo$, custNo$, invoiceNo$, invoiceAmt, eInvoice$)    
Find AR Invoice History record for a job transaction detail record
 
 | 
 
| Parameter | Description |  
    | divNo$ | 
    [input, string] AR Division Number | 
 
    | custNo$ | 
    [input, string] Customer Number | 
 
    | invoiceNo$ | 
    [input, string] Invoice Number | 
 
    | invoiceAmt | 
    [input, numeric] Invoice Amount | 
 
    | eInvoice$ | 
    [output, string] eInvoice ID | 
 
  
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL CheckEnablepStatus()    
pStatus folder custom hide / show / enable / disable logic
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL CheckForEnablepMain()    
pMain folder custom hide / show / enable / disable logic
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL Costcode()    
Nomads menu button (More button) Costcode menu choice on press logic
 
 | 
 
    | Returns | 
    [boolean] True = success, False = failure | 
 
  
 | 
 
FUNCTION LOCAL FoundColumnInListBox(colName$, listBoxCtl)    
Find column number of specific column in list box
 
 | 
 
| Parameter | Description |  
    | colName | 
    [input, string] column heading to find | 
 
    | listBoxCtl | 
    [input, numeric] CTL value of list box control | 
 
  
 | 
 
    | Returns | 
    [numeric] column number if column is found, 0 if column is not found | 
 
  
 | 
 
FUNCTION LOCAL ImpliedWrite()    
Logic to determine if a write is needed before button logic performed
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL LoadLBTransactions()    
Logic to execute to to load transactions list box
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL LoadSummary()    
Logic to execute when loading summary panel
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL OnExit()    
Logic to execute when exiting screen
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL OnExitpChangeOrder()    
Logic to execute after the exit of pChangeOrder
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL OnFocusActualPercentComplete()    
Logic to execute on focus of Actual Percent Complete
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL OnFocusJobType()    
Logic to execute on focus of Job Type
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL OnFocusLB_Transactions()    
Logic to execute on focus of LB_Transactions
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL OnFocusML_Customer()    
Logic to execute on focus of Cutomer Number
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL OnFocusOriginalContractAmt()    
Logic to execute on focus of Original Contract Amt
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL OnFocusRevisedContractAmt()    
Logic to execute on focus of Revised Contract Amt
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL PostLoad()    
Logic to execute after the display of the dialog
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL PostLoadpChangeOrder()    
Logic to execute on post load of pChangeOrder
 
 | 
 
    | Returns | 
    [numeric] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL PostLoadpHistory()    
Logic to execute after the display of the History folder
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL PostLoadpMain()    
Loads the main panel controls
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL PostLoadpStatus()    
Logic to execute on post load of pStatus
 
 | 
 
    | Returns | 
    [numeric] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL PostReadRec()    
Logic to execute after a record is read
 
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL PreLoadpHistory()    
Logic to execute before loading history panel
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL PreLoadpStatus()    
Logic to execute before loading status panel
 
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL PrevalidateCertifiedPayroll()    
Nomads menu button (More button) Certified Payroll menu choice prevalidation logic, used to return state of menu option to display
 
 | 
 
    | Returns | 
    [boolean] True = show enabled, False = show disabled, -1 = hide menu option | 
 
  
 | 
 
FUNCTION LOCAL RestoreCertifiedPayrollValues()    
Restores original values of the fields stored in cCertifiedpayrollFields$, this will be done when cancelling or exitting from the certified payroll dialogue
 
 | 
 
    | Returns | 
    Always returns retSuccess (1) | 
 
  
 | 
 
FUNCTION LOCAL RowMods(gridCtl, currentRow)    
Logic to execute when loading a row in a grid
 
 | 
 
| Parameter | Description |  
    | gridCtl | 
    [input, numeric] grid control id | 
 
    | currentRow | 
    [input, numeric] current row value | 
 
  
 | 
 
    | Returns | 
    [boolean] Always returns success | 
 
  
 | 
 
FUNCTION LOCAL SaveRow(gridCtl, currentRow)    
Logic to execute when row is saved
 
 | 
 
| Parameter | Description |  
    | gridCtl | 
    [input, numeric] grid control value | 
 
    | currentRow | 
    [input, numeric] current row number | 
 
  
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 | 
 
FUNCTION LOCAL ShowRow(gridCtl, currentRow)    
Logic to execute to get row data
 
 | 
 
| Parameter | Description |  
    | gridCtl | 
    [input, numeric] grid control value | 
 
    | currentRow | 
    [input, numeric] current row number | 
 
  
 | 
 
    | Returns | 
    [boolean] True if successful, false if not successful | 
 
  
 |