Subversion Repositories SmartDukaan

Rev

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

Rev 4318 Rev 4319
Line 486... Line 486...
486
    availability = __get_item_availability(item)
486
    availability = __get_item_availability(item)
487
    if availability <= 0:
487
    if availability <= 0:
488
        if item.status == status.ACTIVE:
488
        if item.status == status.ACTIVE:
489
            change_item_status(item.id, status.PAUSED_BY_RISK)
489
            change_item_status(item.id, status.PAUSED_BY_RISK)
490
            try:
490
            try:
491
                mail("cnc.center@shop2020.in", "5h0p2o2o", "rajveer.singh@shop2020.in", "Item is out of stock. " + item.brand +  " " + item.model_name + " " + item.model_number, "", [])
491
                mail("cnc.center@shop2020.in", "5h0p2o2o", "chaitnaya.vats@shop2020.in", "Item is out of stock. " + item.brand +  " " + item.model_name + " " + item.model_number, "", [])
492
            except:
492
            except:
493
                print "Unable to send the report"
493
                print "Unable to send the report"
494
    else:
494
    else:
495
        if item.status == status.PAUSED_BY_RISK:
495
        if item.status == status.PAUSED_BY_RISK:
496
            change_item_status(item.id, status.ACTIVE)
496
            change_item_status(item.id, status.ACTIVE)