Accounting.Support.ValidateStartingCheckNumberLocked
From GAB Help
Check if Cash account is locked and retrieve the starting check record without Locking.
Contents
- 1 Required Passed Properties
- 2 Returned Properties
- 2.1 Status
- 2.2 ReturnIsoCurrencyCode
- 2.3 ReturnAccountNumber
- 2.4 ReturnCashAccountType
- 2.5 ReturnDescription
- 2.6 ReturnStartingCheckPrefix
- 2.7 ReturnStartingCheckNumber
- 2.8 ReturnIsDefaultAccount
- 2.9 ReturnBankAccountNumber
- 2.10 ReturnedInUseCheckPrefix
- 2.11 ReturnedInUseCheckNumber
- 2.12 ReturnedCheckType
- 3 Example
- 4 Technical Information
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
-
Returned Properties
Status
- Enum
- Success
- CheckInuse
- DuplicateCheck
- UpdateFailedForNextCheckNumber
- Failed
- MultipleRecords
- CheckRecordLocked
- MissingParameters
- Failed
ReturnIsoCurrencyCode
- Type - String
- Size - 3
ReturnAccountNumber
- Type - String
- Size - 15
ReturnCashAccountType
- Type - Enum
- CheckRegister
- Manual
- Quick
- Refund
- Payroll
ReturnDescription
- Type - String
- Size - 100
ReturnStartingCheckPrefix
- Prefix only used when option 'Use Extended Check Numbers' is on.
- Type - String
- Size - 5
ReturnStartingCheckNumber
- Type - String
- Size (option based)
- 'Use Extended Check Numbers' is ON: 15
- 'Use Extended Check Numbers' is OFF: 6
ReturnIsDefaultAccount
- Type - Boolean
ReturnBankAccountNumber
- Type - String (Encrypted)
- Size - 40
ReturnedInUseCheckPrefix
- Prefix only used when option 'Use Extended Check Numbers' is on.
- Type - String
- Size - 5
ReturnedInUseCheckNumber
- Type - String
- Size (option based)
- 'Use Extended Check Numbers' is ON: 15
- 'Use Extended Check Numbers' is OFF: 6
ReturnedCheckType
- Type - Enum
- AccountsPayableOrAccountsReceivable
- Payroll
Example
F.Global.Callwrapper.New("TEST","Accounting.Support.ValidateStartingCheckNumberLocked") 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.Run("TEST") F.Global.Callwrapper.GetProperty("TEST","Status",V.Local.tstatus) F.Global.Callwrapper.GetProperty("TEST","ReturnIsoCurrencyCode",V.Local.tCurrency) F.Global.Callwrapper.GetProperty("TEST","ReturnAccountNumber",V.Local.tCashAccountNumber) F.Global.Callwrapper.GetProperty("TEST","ReturnCashAccountType",V.Local.tCashAcctType) F.Global.Callwrapper.GetProperty("TEST","ReturnDescription",V.Local.tDesciption) F.Global.Callwrapper.GetProperty("TEST","ReturnStartingCheckPrefix",V.Local.tStartCheckPrefix) F.Global.Callwrapper.GetProperty("TEST","ReturnStartingCheckNumber",V.Local.tStartCheckNum) F.Global.Callwrapper.GetProperty("TEST","ReturnIsDefaultAccount",V.Local.bIsDefaultAccount) F.Global.Callwrapper.GetProperty("TEST","ReturnBankAccountNumber",V.Local.tBankAccountNumber) F.Global.Callwrapper.GetProperty("TEST","ReturnedInUseCheckPrefix",V.Local.tInUseCheckPrefix) F.Global.Callwrapper.GetProperty("TEST","ReturnedInUseCheckNumber",V.Local.tInUseCheckNumber) F.Global.Callwrapper.GetProperty("TEST","ReturnedCheckType",V.Local.tCheckType)
Technical Information
- Core program: CK0800. Mode 2