Item quantity not updating from woocommerce to nexterp

When I place an order from WooCommerce, the order is created in ERPNext. However, while the item quantity is updated in WooCommerce, it is not reflected in NextERP.

For example, if I have a stock quantity of 50 in both WooCommerce and ERPNext, and I make a purchase/order, the order is created in WooCommerce and the quantity decreases by one to 49. However, the quantity in NextERP remains unchanged at 50.

i am using default erpnext integration setting

You import the order from woocommerce to erpnext as an order or sales invoice.
The stock in erpnext is reduced only when you import as a sales invoice.