API : Extensibility query regarding removing promotions from a transaction

API : Extensibility query regarding removing promotions from a transaction

Environment:  

iVend Retail 6.6 7989

Product Query:  

Extensibility query regarding removing promotions from a transaction in iVend.

Symptoms: 

Extensibility query regarding removing promotions from a transaction in iVend

Resolution/Work Around:

We can achieve below API method to remove Void Promotion items

 List<string> promotionItems = TransactionLogic.Instance.CurrentTransaction.TransactionPromotionItems.Select(x => x.PromotionKey).ToList();

            foreach (string promotionKey in promotionItems)

            {

                 TransactionPromotion promotion = TransactionLogic.Instance.CurrentTransaction.TransactionPromotionItems.FirstOrDefault(x => x.PromotionKey == promotionKey);

           TransactionLogic.Instance.VoidItem(promotion);

            }

            TransactionLogic.Instance.ReCalculateTransaction();



    • Related Articles

    • Customer unable to do refund invoices in one site due to API Url not working at this showroom

      Environment: iVend 6.6 Problem Statement: Customer unable to do refund invoices in one site and getting the error attached at below Error Screenshot: Issue steps : 1. Open POS and press transaction search 2. Search with transaction SA0222000468 3. ...
    • Query Regarding Stock transfer receiving

      Environment: iVend 6.6 Problem Statement: Query-1: When the employee enters a file containing a group of barcodes into the system for Stock transfer shipment, the system does not aggregate quantities for similar codes, but creates lines according to ...
    • Removing unnecessary Replication services from iVend

      Product version : 6.6 Problem statement : Removing unnecessary Replication services from iVend Details-In replication connection settings customer has typed the company name and pressed update, now they need to change company name. ( i.e Removing ...
    • Sample Extensibility Code to Cancel Special Order in iVend

      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. ...
    • Query about Sale Delivery Transaction

      Environment: iVend 6.6 Product Query: There is a sale that is generated at store 2 and then a fulfillment plan has been added at Store 1. After that sale transaction delivery is fulfilled at Store 1, And finally sale return transaction has been made ...