'Raise Material Request if projected qty is less than qty required
Requested qty should be shortage qty considering minimum order qty'

def raise_material_requests(self):

    self.validate_data()
    if (not self.purchase_request_for_warehouse):
        frappe.throw(_(u'Please    enter    Warehouse    for    which    Material    Request    will    be    raised'))
    bom_dict = self.get_so_wise_planned_qty()
    self.get_raw_materials(bom_dict, self.create_material_requests_non_stock_request)
    if self.item_dict:
        self.create_material_request()
