Subversion Repositories SmartDukaan

Rev

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

Rev 18163 Rev 18384
Line 505... Line 505...
505
                print "----------------", s['suborderStatus']
505
                print "----------------", s['suborderStatus']
506
 
506
 
507
            subOrder.merchantSubOrderId = s['code']
507
            subOrder.merchantSubOrderId = s['code']
508
            subOrder.deliveryCharges = s['shippingCharges']
508
            subOrder.deliveryCharges = s['shippingCharges']
509
            subOrder.productCode = re.findall(r'\d+$', productUrl)[0]
509
            subOrder.productCode = re.findall(r'\d+$', productUrl)[0]
-
 
510
            dealRank = getDealRank(subOrder.productCode, self.store_id, merchantOrder.userId)
-
 
511
            subOrder.dealRank = dealRank.get('rank')
-
 
512
            subOrder.rankDesc = dealRank.get('description')
-
 
513
            subOrder.maxNlc = dealRank.get('maxNlc')
-
 
514
            subOrder.minNlc = dealRank.get('minNlc')
-
 
515
            subOrder.db = dealRank.get('dp')
-
 
516
            subOrder.itemStatus = dealRank.get('status')
510
            subOrder.imgUrl = map1['imgUrl']
517
            subOrder.imgUrl = map1['imgUrl']
511
            subOrder.unitPrice = s['offerPrice']  -s['internalCashbackValue'] - s['externalCashbackValue']
518
            subOrder.unitPrice = s['offerPrice']  -s['internalCashbackValue'] - s['externalCashbackValue']
512
            subOrder.amount = subOrder.unitPrice - s['offerDiscount'] - s['sdCash']
519
            subOrder.amount = subOrder.unitPrice - s['offerDiscount'] - s['sdCash']
513
            try:
520
            try:
514
                try:
521
                try: