Accounting.Support.DeleteStartingCheckInUse

From GAB Help
Jump to: navigation, search

Remove InUse record for Starting Check Number

-Use after starting check number has been updated, which is done in UpdateStartingCheckNumber.
-Check Prefix use and Check Number size is based on option System Support > Administration > Company Options (Standard) > Accounts Payable > Use Extended Check Numbers

Required Passed Properties

Company

  • Type - String
  • Size - 3

IsoCurrencyCode

  • Type - String
  • Size - 3

AccountNumber

  • Type - String
  • Size - 15

CashAccountType

  • Enum
    • 0 - AccountsPayableOrAccountsReceivable
    • 1 - Payroll

CheckType

  • Enum
    • 0 - CheckRegister
    • 1 - Manual
    • 2 - Quick
    • 3 - Refund
    • 4 - Payroll

StartingCheckPrefix

  • Optional Property
  • Prefix only used when option 'Use Extended Check Numbers' is on.
  • Type - String
  • Size - 5

StartingCheckNumber

  • Type - String
  • Size (option based)
    • 'Use Extended Check Numbers' is ON: 15
    • 'Use Extended Check Numbers' is OFF: 6


Returned Properties

Status

  • Always returns Successful due to how core program is designed.
  • Enum
    • Success
    • CheckInuse
    • DuplicateCheck
    • UpdateFailedForNextCheckNumber
    • Failed
    • MultipleRecords
    • CheckRecordLocked
    • MissingParameters
    • Failed


Example

F.Global.Callwrapper.New("TEST","Accounting.Support.DeleteStartingCheckInUse")
F.Global.Callwrapper.SetProperty("TEST","Company","10T")
F.Global.Callwrapper.SetProperty("TEST","CallingProgram","CheckTest")
F.Global.Callwrapper.SetProperty("TEST","IsoCurrencyCode", "USD")
F.Global.Callwrapper.SetProperty("TEST","AccountNumber","100")
F.Global.Callwrapper.SetProperty("TEST","CashAccountType",0)
F.Global.Callwrapper.SetProperty("TEST","CheckType",1)
F.Global.Callwrapper.SetProperty("TEST","StartingCheckPrefix",1)
F.Global.Callwrapper.SetProperty("TEST","StartingCheckNumber",100)
F.Global.CallWrapper.Run("TEST")

F.Global.Callwrapper.GetProperty("TEST","Status",V.Local.tstatus)

Technical Information

  • Core program: CK0800. Mode 5