| Line 587... |
Line 587... |
| 587 |
print "Created category..."
|
587 |
print "Created category..."
|
| 588 |
|
588 |
|
| 589 |
return exceptionList, negativeMargin, cheapest, amongCheapestAndCanCompete, canCompete, almostCompete, cantCompete
|
589 |
return exceptionList, negativeMargin, cheapest, amongCheapestAndCanCompete, canCompete, almostCompete, cantCompete
|
| 590 |
|
590 |
|
| 591 |
def getOurTp(amazonDetails,val,spm):
|
591 |
def getOurTp(amazonDetails,val,spm):
|
| - |
|
592 |
print type(amazonDetails.ourSp)
|
| 592 |
ourTp = amazonDetails.ourSp- amazonDetails.ourSp*(spm.commission/100+spm.emiFee/100)*(1+(spm.serviceTax/100))-(val.courierCost)*(1+(spm.serviceTax/100))*(1+(spm.serviceTax/100));
|
593 |
ourTp = amazonDetails.ourSp- amazonDetails.ourSp*(spm.commission/100+spm.emiFee/100)*(1+(spm.serviceTax/100));
|
| - |
|
594 |
print ourTp
|
| - |
|
595 |
print type(ourTp)
|
| - |
|
596 |
ourTp = ourTp -(val.courierCost)*(1+(spm.serviceTax/100))*(1+(spm.serviceTax/100))
|
| 593 |
return round(ourTp,2)
|
597 |
return round(ourTp,2)
|
| 594 |
|
598 |
|
| 595 |
def getLowestPossibleTp(amazonDetails,val,spm):
|
599 |
def getLowestPossibleTp(amazonDetails,val,spm):
|
| 596 |
vat = (amazonDetails.ourSp/(1+(val.vatRate/100))-(val.nlc/(1+(val.vatRate/100))))*(val.vatRate/100)
|
600 |
vat = (amazonDetails.ourSp/(1+(val.vatRate/100))-(val.nlc/(1+(val.vatRate/100))))*(val.vatRate/100)
|
| 597 |
inHouseCost = 15+vat+(spm.returnProvision/100)*amazonDetails.ourSp
|
601 |
inHouseCost = 15+vat+(spm.returnProvision/100)*amazonDetails.ourSp
|