cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to update stocklevel after placing the order in B2B

Former Member
0 Likes
420

Hello Experts,

My requirement is after placing the order/cancel theorder i have to update the stock level in my local machine . Is there any OOTB?.Please suggest me.Please provide steps.Its helpfull.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Hey ,

To update the stock level you need to use the StockService. I suggest you get familiar with it here: https://help.hybris.com/6.0.0/hcd/8c63e4ad8669101480079df9ecbfcc6f.html

There are plenty of examples on that site. Also an example on updating Stock Level:

 //ProductModel product = ...
 //WarehouseModel warehouse = ...
 //int amount = ...
 //String comment = ...
 stockService.updateActualStockLevel(product, warehouse, amount, comment);

Hope that helps,