Subversion Repositories SmartDukaan

Rev

Rev 4373 | Rev 4400 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4373 Rev 4374
Line 507... Line 507...
507
    availability = __get_item_availability(item)
507
    availability = __get_item_availability(item)
508
    if availability <= 0:
508
    if availability <= 0:
509
        if item.status == status.ACTIVE:
509
        if item.status == status.ACTIVE:
510
            change_item_status(item.id, status.PAUSED_BY_RISK)
510
            change_item_status(item.id, status.PAUSED_BY_RISK)
511
            try:
511
            try:
512
                mail("cnc.center@shop2020.in", "5h0p2o2o", "chaitnaya.vats@shop2020.in", "Item is out of stock. " + item.brand +  " " + item.model_name + " " + item.model_number, "", [])
512
                mail("cnc.center@shop2020.in", "5h0p2o2o", ["chaitnaya.vats@shop2020.in", "abhishek.mathur@shop2020.in"], "Item is out of stock. ID: " + str(item.id)  + " " + item.brand +  " " + item.model_name + " " + item.model_number, " ", [])
513
            except:
513
            except:
514
                print "Unable to send the report"
514
                print "Unable to send the report"
515
    else:
515
    else:
516
        if item.status == status.PAUSED_BY_RISK:
516
        if item.status == status.PAUSED_BY_RISK:
517
            change_item_status(item.id, status.ACTIVE)
517
            change_item_status(item.id, status.ACTIVE)