Developer forum

Forum » Ecommerce - Standard features » Releasing stock on order delete

Releasing stock on order delete

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

Is there a way to release stock on an order that is set to Delete (i.e. a soft delete, not actually deleting the order) through standard functionality or the APII maybe?

Thanks,

Imar


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Imar

No, there is no such API call.

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Could there be any workaround? Manually updating the quantities on the lines come to mind but I am not sure if that would release the stock.

Imar

 
Nicolai Høeg Pedersen
Reply

You can just take the amount from the orderlines and add back to the stock field on the products... My best bet.

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Got it, thanks!

Imar

 

You must be logged in to post in the forum