Subversion Repositories SmartDukaan

Rev

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

Rev 12790 Rev 13401
Line 558... Line 558...
558
        try:
558
        try:
559
            pd = PrivateDealUser()
559
            pd = PrivateDealUser()
560
            pd.id = userId
560
            pd.id = userId
561
            pd.created_on = datetime.datetime.now()
561
            pd.created_on = datetime.datetime.now()
562
            pd.isActive = True
562
            pd.isActive = True
-
 
563
            pd.bulkShipmentAmountLimit=50000
563
            session.commit()
564
            session.commit()
564
            return True
565
            return True
565
        except Exception as e:
566
        except Exception as e:
566
            print "Unable to add user to private deals",e
567
            print "Unable to add user to private deals",e
567
            return False
568
            return False
Line 588... Line 589...
588
    pDealUser.counter = counter
589
    pDealUser.counter = counter
589
    pDealUser.tin = tCounter.tin
590
    pDealUser.tin = tCounter.tin
590
    pDealUser.id = userId
591
    pDealUser.id = userId
591
    pDealUser.created_on = datetime.datetime.now()
592
    pDealUser.created_on = datetime.datetime.now()
592
    pDealUser.isActive = True
593
    pDealUser.isActive = True
-
 
594
    pDealUser.bulkShipmentAmountLimit=50000
593
    session.commit()
595
    session.commit()
594
    m = {}
596
    m = {}
595
    m['counter_code'] = counter.code
597
    m['counter_code'] = counter.code
596
    return m 
598
    return m 
597
 
599