added sales order inventory adjustment logic