| Line 901... |
Line 901... |
| 901 |
return 0.0
|
901 |
return 0.0
|
| 902 |
else:
|
902 |
else:
|
| 903 |
return 0.0
|
903 |
return 0.0
|
| 904 |
|
904 |
|
| 905 |
def getBreakevenPrice(item,val,spm):
|
905 |
def getBreakevenPrice(item,val,spm):
|
| 906 |
breakEvenPrice = (val.nlc+(val.courierCost)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15.0+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));
|
906 |
breakEvenPrice = (val.nlc+(val.courierCost+spm.closingFee)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15.0+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));
|
| 907 |
return round(breakEvenPrice,2)
|
907 |
return round(breakEvenPrice,2)
|
| 908 |
|
908 |
|
| 909 |
def getLowestPossibleSp(amazonDetails,val,spm):
|
909 |
def getLowestPossibleSp(amazonDetails,val,spm):
|
| 910 |
if val.isPromo:
|
910 |
if val.isPromo:
|
| 911 |
if amazonLongTermActivePromotions.has_key(val.sku):
|
911 |
if amazonLongTermActivePromotions.has_key(val.sku):
|
| Line 913... |
Line 913... |
| 913 |
else:
|
913 |
else:
|
| 914 |
subsidy = (amazonShortTermActivePromotions.get(val.sku)).subsidy
|
914 |
subsidy = (amazonShortTermActivePromotions.get(val.sku)).subsidy
|
| 915 |
else:
|
915 |
else:
|
| 916 |
subsidy = 0.0
|
916 |
subsidy = 0.0
|
| 917 |
|
917 |
|
| 918 |
lowestPossibleSp = (val.nlc-subsidy+(val.courierCost)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15.0+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));
|
918 |
lowestPossibleSp = (val.nlc-subsidy+(val.courierCost+spm.closingFee)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15.0+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));
|
| 919 |
|
919 |
|
| 920 |
#print (val.nlc-subsidy+(val.courierCost)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15+val.otherCost)*(1+(val.vatRate)/100))
|
920 |
#print (val.nlc-subsidy+(val.courierCost)*(1+(spm.serviceTax/100))*(1+(val.vatRate/100))+(15+val.otherCost)*(1+(val.vatRate)/100))
|
| 921 |
#print (1-(spm.commission/100+spm.emiFee/100)*(1+(spm.serviceTax/100))*(1+(val.vatRate)/100)-(spm.returnProvision/100)*(1+(val.vatRate)/100))
|
921 |
#print (1-(spm.commission/100+spm.emiFee/100)*(1+(spm.serviceTax/100))*(1+(val.vatRate)/100)-(spm.returnProvision/100)*(1+(val.vatRate)/100))
|
| 922 |
return round(lowestPossibleSp,2)
|
922 |
return round(lowestPossibleSp,2)
|
| 923 |
|
923 |
|