Class RevertTransactionBase<T>
A view command that will create a task to revert a Finalized IHeaderTransactionalEntity back to InProgress
This will remove all gl posting entries (as they are only created at Committed status or greater) and will revert the transaction and all child transactional entites back to inprogress
This should only be enabled against transactions that specifically support itInheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class RevertTransactionBase<T> : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor where T : IHeaderTransactionalEntity
Type Parameters
Name | Description |
---|---|
T | The type of transaction item to revert |
Constructors
RevertTransactionBase(ModelViewController)
Creates a new RevertTransactionBase command
Declaration
public RevertTransactionBase(ModelViewController controller)
Parameters
Type | Name | Description |
---|---|---|
ModelViewController | controller | The controller that holds the IHeaderTransactionalEntity to revert |
Properties
IconID
Declaration
public override Guid IconID { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Overrides
InternalExecuteWithChanges
Can not be executed with pending changes
Declaration
protected override bool InternalExecuteWithChanges { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
GetParameters()
Returns a new RevertTransactionParameter with the id (set from SetIDToReverFromController(RevertTransactionParameter)) set to the id of the transaction to revert
Declaration
protected override Task<ServerTaskParameter> GetParameters()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServerTaskParameter> | A new RevertTransactionParameter with the id (set from SetIDToReverFromController(RevertTransactionParameter)) set to the id of the transaction to revert |
Overrides
InternalCanExecute(Object)
Returns true if there are no pending changes in this context
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | True if there are no pending changes in this context |
Overrides
InternalExecuteUserWarning()
Prmopts the user if they are certain they want to revert the selected transaction from finalized back to inprogress
Declaration
protected override Task<bool> InternalExecuteUserWarning()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | True if the user confirms the operation should proceed |
Overrides
SetIDToReverFromController(RevertTransactionParameter)
Sets the ID and ID_Label property of the param
to the IHeaderTransactionalEntity of the view for this command
Declaration
protected virtual void SetIDToReverFromController(RevertTransactionParameter param)
Parameters
Type | Name | Description |
---|---|---|
RevertTransactionParameter | param | The parameter for the LemonEdge.API.Tasks.RevertTransactionTask |