Subversion Repositories SmartDukaan

Rev

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

Rev 12494 Rev 12495
Line 626... Line 626...
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
    print subsidy
-
 
631
    print (val.nlc+(val.courierCost)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15+val.otherCost)*(1+(val.vatRate)/100))
-
 
632
    print (1-(spm.commission/100+spm.emiFee/100)*(1+(spm.serviceTax/100))*(1+(val.vatRate)/100)-(spm.returnProvision/100)*(1+(val.vatRate)/100))
631
    return round(lowestPossibleSp,2)
633
    return round(lowestPossibleSp,2)
632
 
634
 
633
def getNewLowestPossibleSp(item,serviceTax,newVatRate):
635
def getNewLowestPossibleSp(item,serviceTax,newVatRate):
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));
636
    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));
635
    if item.isPromotion:
637
    if item.isPromotion: