Dear All,
I want to make customization on Return transaction. Hence, i have taken standard ReturnTransaction class definition (code).
i created a new blank operation called return transaction and pass the current postransaction object (object from blankoperation class).
RetailTransaction has a standard method called Execute(). first line itself it is checking postransaction object is retailtransaction or not. here is the code. since my postransaction is not retailtransaction it is failing.
protected override void Execute()
{
RetailTransaction retailPosTransaction = this.posTransaction as RetailTransaction;
try
{
base.Execute();
if (retailPosTransaction == null)
{
POSFormsManager.ShowPOSMessageDialog(3680);
}
else
{
// standard statement
}
}
Kindly let me know is there any property needs to be set for postransaction object before we call execute method?
appreciate if you could help me on this. can explain in details if the question is not understandable.