How to make a field Mandatory only when user Submits a DocType?

Hello,

In Purchase Receipt Items I want to set that if the selected Item belongs to Raw Material group then when user submits the Purchase Receipt I want to force user to performer Quality Inspection.

It should not be mandatory when user save a Purchase Receipt and while it is in Draft state.

3 options,

  1. follow standard qualify control procedure, i.e check incoming quality inspection required in item master to force quality inspection submitted before goods receipt submit.

  2. client script

  3. server script

2 Likes