Subversion Repositories SmartDukaan

Rev

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

Rev 12492 Rev 12493
Line 625... Line 625...
625
        if amazonLongTermActivePromotions.has_key(val.sku):
625
        if amazonLongTermActivePromotions.has_key(val.sku):
626
            subsidy = (amazonLongTermActivePromotions.get(val.sku)).subsidy
626
            subsidy = (amazonLongTermActivePromotions.get(val.sku)).subsidy
627
        else:
627
        else:
628
            subsidy = (amazonShortTermActivePromotions.get(val.sku)).subsidy
628
            subsidy = (amazonShortTermActivePromotions.get(val.sku)).subsidy
629
        lowestPossibleSp = lowestPossibleSp - subsidy
629
        lowestPossibleSp = lowestPossibleSp - subsidy
-
 
630
    print subsidy
630
    return round(lowestPossibleSp,2)
631
    return round(lowestPossibleSp,2)
631
 
632
 
632
def getNewLowestPossibleSp(item,serviceTax,newVatRate):
633
def getNewLowestPossibleSp(item,serviceTax,newVatRate):
633
    lowestPossibleSp = (item.wanlc+(item.courierCost)*(1+(serviceTax/100))*(1+(newVatRate/100))+(15+item.otherCost)*(1+(newVatRate)/100))/(1-(item.commission/100)*(1+(serviceTax/100))*(1+(newVatRate)/100)-(item.returnProvision/100)*(1+(newVatRate)/100));
634
    lowestPossibleSp = (item.wanlc+(item.courierCost)*(1+(serviceTax/100))*(1+(newVatRate/100))+(15+item.otherCost)*(1+(newVatRate)/100))/(1-(item.commission/100)*(1+(serviceTax/100))*(1+(newVatRate)/100)-(item.returnProvision/100)*(1+(newVatRate)/100));
634
    if item.isPromotion:
635
    if item.isPromotion: