Developer forum

Forum » Development » Order editor using 'Ribbon Extensobility'

Order editor using 'Ribbon Extensobility'

Nikolai Rasmussen
Reply
Hi

I'am writting an order editor, and can figure out how to make DW recalculate the total price, when i change the quantity on the orderline object. Any suggestions?

Iam using the 'Ribbon Extensobility' approach :)


  Order order = new Order(OrderEdit.OrderID);
       
           
            OrderLineCollection col = order.OrderLines;
            

            foreach(OrderLine line in col)
            {
                line.Quantity = 2;
          
                

                line.Save();

                
            }


            
          
            order.Save();


Replies

 
Nikolai Rasmussen
Reply

Solved the problem. Set the IsCart property on the Order object to 'true', and the price is recalculated :)

 

You must be logged in to post in the forum