Subversion Repositories SmartDukaan

Rev

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

Rev 12916 Rev 12917
Line 214... Line 214...
214
            continue
214
            continue
215
        if autoIncrementItem.proposedSp >=10000 and autoIncrementItem.promoPrice<10000:
215
        if autoIncrementItem.proposedSp >=10000 and autoIncrementItem.promoPrice<10000:
216
            markReasonForItem(autoIncrementItem,'Proposed SP is greater than 10,000 and current sp is less than 10,000',Decision.AUTO_INCREMENT_FAILED)
216
            markReasonForItem(autoIncrementItem,'Proposed SP is greater than 10,000 and current sp is less than 10,000',Decision.AUTO_INCREMENT_FAILED)
217
            continue
217
            continue
218
        
218
        
219
        if autoIncrementItem.isPromotion and (min(math.ceil(autoIncrementItem.promoPrice+max(10,.01*autoIncrementItem.promoPrice),autoIncrementItem.proposedSp)) > (amazonLongTermActivePromotions.get(sku)).promoPrice):
219
        if autoIncrementItem.isPromotion and (min(math.ceil(autoIncrementItem.promoPrice+max(10,.01*autoIncrementItem.promoPrice)),autoIncrementItem.proposedSp) > (amazonLongTermActivePromotions.get(sku)).promoPrice):
220
            markReasonForItem(autoIncrementItem,'Proposed SP cant be greater than promo price',Decision.AUTO_INCREMENT_FAILED)
220
            markReasonForItem(autoIncrementItem,'Proposed SP cant be greater than promo price',Decision.AUTO_INCREMENT_FAILED)
221
            continue
221
            continue
-
 
222
            
222
        
223
        
223
        if autoIncrementItem.avgSale==0:
224
        if autoIncrementItem.avgSale==0:
224
            markReasonForItem(autoIncrementItem,'Avg sale is 0',Decision.AUTO_INCREMENT_FAILED)
225
            markReasonForItem(autoIncrementItem,'Avg sale is 0',Decision.AUTO_INCREMENT_FAILED)
225
            continue
226
            continue
226
        
227