Environment:
iVend 6.6
Product Query:
Is there any feasibility for Sample Extensibility to cancel an iVend Special Order or not.
Resolution:
For canceling special orders, you need to use the below mentioned line.
TransactionLogic.Instance.CancelSalesOrder(originalTransaction);
Below is the sequence of statements for canceling an Order:
TransactionLogic.Instance.ChangeCustomer(originalTransaction.Customer);
TransactionLogic.Instance.CancelSalesOrder(originalTransaction);
TransactionLogic.Instance.ReCalculateTransaction();
TransactionLogic.Instance.CompleteTransaction(TransactionLogic.Instance.CurrentTransaction);
Recommendations /Suggestion:
NA