OLMIS-4101: Added missing JSDoc and folded if statements into one
OLMIS-4101: Added missing JSDoc and folded if statements into one

OpenLMIS/openlmis-requisition-ui,OpenLMIS/openlmis-requisition-ui,OpenLMIS/openlmis-requisition-ui