Subversion Repositories SmartDukaan

Rev

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

Rev 12491 Rev 12492
Line 609... Line 609...
609
        
609
        
610
    return exceptionList, negativeMargin, cheapest, amongCheapestAndCanCompete, canCompete, almostCompete, cantCompete
610
    return exceptionList, negativeMargin, cheapest, amongCheapestAndCanCompete, canCompete, almostCompete, cantCompete
611
 
611
 
612
 
612
 
613
def getLowestPossibleSp(amazonDetails,val,spm):
613
def getLowestPossibleSp(amazonDetails,val,spm):
-
 
614
    print "lowest possible sp ",val.sku
-
 
615
    print val.nlc
-
 
616
    print val.courierCost
-
 
617
    print spm.serviceTax
-
 
618
    print val.vatRate
-
 
619
    print val.otherCost
-
 
620
    print spm.commission
-
 
621
    print spm.emiFee
-
 
622
    print spm.returnProvision
614
    lowestPossibleSp = (val.nlc+(val.courierCost)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15+val.otherCost)*(1+(val.vatRate)/100))/(1-(spm.commission/100+spm.emiFee/100)*(1+(spm.serviceTax/100))*(1+(val.vatRate)/100)-(spm.returnProvision/100)*(1+(val.vatRate)/100));
623
    lowestPossibleSp = (val.nlc+(val.courierCost)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15+val.otherCost)*(1+(val.vatRate)/100))/(1-(spm.commission/100+spm.emiFee/100)*(1+(spm.serviceTax/100))*(1+(val.vatRate)/100)-(spm.returnProvision/100)*(1+(val.vatRate)/100));
615
    if val.isPromo:
624
    if val.isPromo:
616
        if amazonLongTermActivePromotions.has_key(val.sku):
625
        if amazonLongTermActivePromotions.has_key(val.sku):
617
            subsidy = (amazonLongTermActivePromotions.get(val.sku)).subsidy
626
            subsidy = (amazonLongTermActivePromotions.get(val.sku)).subsidy
618
        else:
627
        else: