How to configure stock deduction based on job status

How to configure stock deduction based on job status