Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The TransactionReversal_Asset class extends the TransactionReversal class and contains the logic to reverse asset transactions, both value model and depreciation book, together with the associated ledger transactions.
Syntax
class TransactionReversal_Asset extends TransactionReversal
Run On
Called
Methods
Method | Description | |
---|---|---|
![]() |
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
![]() |
canGoBatch | Returns false in this class. (Inherited from RunBase.) |
![]() |
canReverse_Acq_AcqAdj | Checks whether an acquisition or acquisition adjustment transaction can be reversed. |
![]() |
canReverse_AnyTransType | Checks whether a transaction can be reversed. |
![]() |
canReverse_CapReserve | Checks whether a capital reserve transaction can be reversed. |
![]() |
canReverse_Disposal | Checks whether a disposal transaction can be reversed. |
![]() |
canReverse_PreAcq_CZ | |
![]() |
canReverse_Revaluation | Checks whether a revaluation transaction can be reversed. |
![]() |
canReverseDB_Acq_AcqAdj | Checks whether an acquisition or acquisition adjustment can be reversed. |
![]() |
canReverseDB_AnyTransType | Checks whether a transaction can be reversed. |
![]() |
canReverseDB_CapReserve | Checks whether a capital reserve transaction can be reversed. |
![]() |
canReverseDB_Disposal | Checks whether a disposal transaction can be reversed. |
![]() |
canReverseDB_PreAcq_CZ | |
![]() |
canReverseDB_Revaluation | Checks whether a revaluation transaction can be reversed. |
![]() |
canSwapBetweenCS | Controls whether a calledFrom class that is instantiated on the server should have its prompt executed on the client. (Inherited from RunBase.) |
![]() |
canTranBeReversed_DepBooks | Determines whether an asset transaction is eligible to be reversed or revoked. |
![]() |
canTranBeReversed_ValueModels | Determines whether an asset transaction is eligible to be reversed or revoked. |
![]() |
canTransactionBeReversed | Takes information about an asset transaction and determines whether it is eligible to be reversed or revoked. |
![]() |
caption | Returns the description from the current class by calling the static description method on the class if there is one. (Inherited from RunBase.) |
![]() |
checkAssetStatusApplicable | Validates all transactions for reversal or revoke based on type and status. |
![]() |
checkCloseDialog | Must be called in the CloseOk method of a RunBase dialog box. (Inherited from RunBase.) |
![]() |
checkLedgerPostingTypeApplicable | (Inherited from TransactionReversal.) |
![]() |
checkNumberSequence | Checks whether the required number sequences are set up. If the required number sequences are not set up, this method throws an error. (Inherited from TransactionReversal.) |
![]() |
checkStatusApplicable | Validates a transaction for reversal or revoke based on type and status. |
![]() |
checkVoucherPostingTypesApplicable | Checks for vendor or customer transactions for the given voucher number and transaction date. |
![]() |
cleanupDialog | Provides a way to clean up after a dialog box has been canceled. (Inherited from RunBase.) |
![]() |
createAllAssetTransactions | Creates all reversing or revoking asset transactions for the associated voucher. |
![]() |
createAllDepBookTransactions | Creates all asset depreciation book reversing or revoking transactions for the associated transactions. |
![]() |
createAssetDepBookTrans | Creates and reverses or revokes an individual asset depreciation book transaction. |
![]() |
createAssetDocumentTrans_JP | Creates AssetDocumentTrans_JP record based on reversed or revoked individual asset transaction. |
![]() |
createAssetTrans | Creates and reverses or revokes an individual asset transaction. |
![]() |
dialog | Returns a class that contains the methods that are described by the RunBaseDialogable interface. (Inherited from TransactionReversal.) |
![]() |
dialogClear | Clears the contents of the dialog box. (Inherited from RunBase.) |
![]() |
dialogInit | Initializes the dialog box. (Inherited from RunBase.) |
![]() |
dialogInternal | (Inherited from RunBase.) |
![]() |
dialogMake | Obtains the dialog from a RunBase class. (Inherited from RunBase.) |
![]() |
dialogPost | Makes it possible to add controls after the main dialog method has been run because this method is called after the dialog method is called. (Inherited from RunBase.) |
![]() |
dialogPostInit | Called right after the RunBase.dialogInit Method method. (Inherited from RunBase.) |
![]() |
dialogPostRun | Called after the Dialog.run Method class. (Inherited from RunBase.) |
![]() |
dialogReInit | Reinitializes the dialog box. (Inherited from RunBase.) |
![]() |
dialogSelectCtrl | When using the dialog class for dialog, this method is called whenever a control is selected. (Inherited from RunBase.) |
![]() |
dialogTask | When using the Dialog Class class for dialog, this method is called from the task method in the dialog form. (Inherited from RunBase.) |
![]() |
dialogUpdate | Updates the dialog, for example after reinitializing the query. (Inherited from RunBase.) |
![]() |
dialogUpdateQuery | Updates the query in the dialog box. (Inherited from RunBase.) |
![]() |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
![]() |
formatWarningMessages | Builds a string that contains warning messages that have each message on its own line. |
![]() |
getDeferementInfo_IN | Creates General journal lines for ledger journal posting type VAT. (Inherited from TransactionReversal.) |
![]() |
getFromDialog | Assigns the dialog values to the internal variables. (Inherited from TransactionReversal.) |
![]() |
getLast | Gets the last choice that is stored in the last value table. (Inherited from RunBase.) |
![]() |
getNumberOfPeriods | |
![]() |
getPayableAccount_IN | Gets payable account. (Inherited from TransactionReversal.) |
![]() |
getReference | Creates a new voucher for the reversed transactions. If the TraceNum specified in the _traceNum parameter is empty, a new TraceNum will be created. (Inherited from TransactionReversal.) |
![]() |
getRunBase | (Inherited from RunBase.) |
![]() |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
![]() |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
![]() |
inGetSaveLast | Returns true when the GetLast or SaveLast method is executed. (Inherited from RunBase.) |
![]() |
init | Gives RunBase the same profile as, for example, a FormRun class. This method is not used in the standard application. (Inherited from RunBase.) |
![]() |
initLedgerVoucher | Initializes the ledger voucher for posting. (Overrides the initLedgerVoucher Method.) |
![]() |
initParmDefault | Initializes the internal variables. (Inherited from RunBase.) |
![]() |
isBudgetCheckRequired | Determines whether the budget funds available check is required for the fixed assets transaction reversal process. (Overrides the isBudgetCheckRequired Method.) |
![]() |
isCorrection | |
![]() |
isSwappingPrompt | Checks if the program is currently swapping from server to client. (Inherited from RunBase.) |
![]() |
lastValueDataAreaId | (Inherited from RunBase.) |
![]() |
lastValueDesignName | (Inherited from RunBase.) |
![]() |
lastValueElementName | (Inherited from RunBase.) |
![]() |
lastValueType | (Inherited from RunBase.) |
![]() |
lastValueUserId | (Inherited from RunBase.) |
![]() |
mustLoadSaveQuery | Determines whether the last query must be loaded and saved when you leave the form. Called from the SysQueryForm. (Inherited from RunBase.) |
![]() |
name | Returns the name of the RunBase class. (Inherited from RunBase.) |
![]() |
new | Initializes a new instance of the TransactionReversal class. (Inherited from TransactionReversal.) |
![]() |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
![]() |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
![]() |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
![]() |
owner | Returns the instance that owns the object. (Inherited from Object.) |
![]() |
pack | Serializes the current instance of the TransactionReversal class. (Inherited from TransactionReversal.) |
![]() |
parmLedgerVoucher | Gets or sets the LedgerVoucher parameter. (Inherited from TransactionReversal.) |
![]() |
parmProgress | Gets or sets the Progress parameter. (Inherited from RunBase.) |
![]() |
parmReasonRefRecId | Gets or sets the ReasonRefRecId parameter. |
![]() |
parmReversalDate | Gets or sets the ReversalDate parameter. (Inherited from TransactionReversal.) |
![]() |
parmReversalJournalNumber | Gets or sets the ReversalJournalNumber parameter. |
![]() |
parmReversalTraceNum | Gets or sets the ReversalTraceNum parameter. (Inherited from TransactionReversal.) |
![]() |
parmReversalVoucher | Gets or sets the ReversalVoucher parameter. (Inherited from TransactionReversal.) |
![]() |
parmRevoke | Gets or sets the Revoke parameter. (Overrides the parmRevoke Method.) |
![]() |
prepareForRun | Allows subclasses to process the dialog box immediately before the dialog box.Run method. (Inherited from RunBase.) |
![]() |
progressHide | Hides the Progress form. (Inherited from RunBase.) |
![]() |
progressInit | Initializes the Progress object in RunBase. (Inherited from RunBase.) |
![]() |
progressKill | Kills the Progress object in RunBase. (Inherited from RunBase.) |
![]() |
prompt | (Inherited from RunBase.) |
![]() |
promptPack | Wraps a call to the RunBase.pack Method method when packing in the RunBase.promptPrim Method method. (Inherited from RunBase.) |
![]() |
promptUnpack | Unpacks what the promptPack method has packed. (Inherited from RunBase.) |
![]() |
putToDialog | Enables setting the fields that were just added in the RunBase.dialog Method method. This method is called from the RunBase.promptPrim Method method directly following the RunBase.dialogMake Method method. (Inherited from RunBase.) |
![]() |
queryRun | Returns the QueryRun object, which is used by the QueryPrompt class. (Inherited from RunBase.) |
![]() |
reset | Resets the class to its default state. (Inherited from RunBase.) |
![]() |
reversal | Calls the reversal routine for the value model or depreciation book. (Overrides the reversal Method.) |
![]() |
reversalBook | Validates and reverses all asset value model transaction records that are associated with the currently selected transaction. |
![]() |
reversalDepBook | Validates and reverses all asset depreciation book transaction records that are associated with the currently selected transaction. |
![]() |
run | Contains the code that does the actual job of the class. (Inherited from RunBase.) |
![]() |
runBase | Returns the RunBase itself. (Inherited from RunBase.) |
![]() |
runBaseDialogModifyType_RU | (Inherited from RunBase.) |
![]() |
saveLast | Saves the last choice by using the RunBase.pack Method method. (Inherited from RunBase.) |
![]() |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
![]() |
setTransactionTxt | Instantiates a new TransactionTxt object, with the chance of using the specified transaction date and voucher. (Inherited from TransactionReversal.) |
![]() |
showClearButton | Determines whether to add a Clear button to the dialog box. If you change the return value to true it will add the button. (Inherited from RunBase.) |
![]() |
showDefaultButton | Determines whether a Default button is to be added to the dialog box. If you change the return value to true, it will add the button. (Inherited from RunBase.) |
![]() |
showDialog | (Inherited from RunBase.) |
![]() |
showIndexFields | If this method returns true, it will look for the first enabled index when you are adding query range fields to the dialog and if a data source does not have any ranges specified. It will also show the visible fields from that index. (Inherited from RunBase.) |
![]() |
showQuerySelectButton | (Inherited from RunBase.) |
![]() |
showQueryValues | Determines whether a Select button is to be added to the dialog box. If you change the return value to true, the button will be added. (Inherited from RunBase.) |
![]() |
submitBudget | Submits the budget funds available check. (Inherited from TransactionReversal.) |
![]() |
toString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
unpack | Deserializes the _packedClass parameter value to an instance of the TransactionReversal class. (Inherited from TransactionReversal.) |
![]() |
updateAssetBookOrigReversal | Updates the lastdepreciationdate, LifeTimeRest, LastDepreciationDateExtraOrd, status, ReserveTransferDone, RevaluationDone, and RevaluedTransID value model attributes for the transaction to reverse. |
![]() |
updateAssetBookOrigRevoke | Updates value model attributes for the transaction being revoked. |
![]() |
updateAssetDepBookOrigReversal | Updates the depreciation book attributes for the transaction being reversed. |
![]() |
updateAssetDepBookOrigRevoke | Updates depreciation book attributes for the transaction to revoke. |
![]() |
updateDefermentScheduleLinesVAT_IN | Updates deferment schedule lines VAT. (Inherited from TransactionReversal.) |
![]() |
updateDepBookOriginal | Updates the original TransactionReversalTrans reversed flag for the depreciation book transaction that matches the specified voucher and transaction date or journal number and journal line number. |
![]() |
updateOriginal | Updates the original TransactionReversalTrans reversed flag for the value model transaction that matches the specified voucher and transaction date. (Overrides the updateOriginal Method.) |
![]() |
updateTaxTrans | Reverses the tax transactions in the TaxTrans, TaxPurchaseTaxTrans, and TaxReportVoucher tables with the specified voucher and transaction date. (Inherited from TransactionReversal.) |
![]() |
updateTaxWithholdTrans_IN | Updates witholding tax transaction. (Inherited from TransactionReversal.) |
![]() |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
![]() |
validate | (Inherited from TransactionReversal.) |
![]() |
validateReversal | Validates all the asset transactions to guarantee that the transaction can be reversed or revoked. |
![]() |
wait | Pauses a process. (Inherited from Object.) |
![]() |
xml | Returns an XML string that represents the current object. (Inherited from Object.) |
![]() ![]() |
::checkValidAssetTranCalendar | Validates that the new transaction date occurs in a valid asset calendar for all value model and depreciation books for the asset transactions that are related to the specified voucher and transaction date. |
![]() ![]() |
::description | Gets the description of the class. |
![]() ![]() |
::main | Reverses the current asset transaction. |
Top
Remarks
Two separate reversal routines are used, one for the value model, and the other for the reversal_book and reversal_depbook depreciation books.
Inheritance Hierarchy
Object Class
RunBase Class
TransactionReversal Class
TransactionReversal_Asset Class
TransactionReversal_AssetGroup_IN Class