JmgPayStatAdjustBalance.run Method [AX 2012]
Contains the code that does the actual job of the class.
Based on the selected type of adjustment, one of the following methods is called:
-
The JmgPayStatAdjustBalance.adjustBalance or JmgPayStatBalanceAdjustmentType::Balance method.
-
The JmgPayStatAdjustBalance.adjustOpeningBalance or JmgPayStatBalanceAdjustmentType::OpeningBalance method.
-
The JmgPayStatAdjustBalance.setAdjustment or JmgPayStatBalanceAdjustmentType::Adjustment method.
The following example demonstrates the use of this method.
myRunbase myRunbase;
myRunbase = myRunbase::construct();
if (myRunbase.prompt())
{
myRunbase.run();
//...
}
public void run()
{
if (! this.validate())
{
throw Error("Error message...");
}
try
{
ttsbegin;
ttscommit;
}
catch (exception::DeadLock)
{
retry;
}
}
Community Additions
ADD
Show: