Fix If condition for BOM no. docstatus validation