| Line 1753... |
Line 1753... |
| 1753 |
vatRate = itemVatMaster.vatPercentage
|
1753 |
vatRate = itemVatMaster.vatPercentage
|
| 1754 |
return vatRate
|
1754 |
return vatRate
|
| 1755 |
|
1755 |
|
| 1756 |
def sendAutoPricingMail(successfulAutoDecrease,successfulAutoIncrease):
|
1756 |
def sendAutoPricingMail(successfulAutoDecrease,successfulAutoIncrease):
|
| 1757 |
if len(successfulAutoDecrease)==0 and len(successfulAutoIncrease)==0 :
|
1757 |
if len(successfulAutoDecrease)==0 and len(successfulAutoIncrease)==0 :
|
| - |
|
1758 |
print "returning"
|
| 1758 |
return
|
1759 |
return
|
| 1759 |
xstr = lambda s: s or ""
|
1760 |
xstr = lambda s: s or ""
|
| 1760 |
message="""<html>
|
1761 |
message="""<html>
|
| 1761 |
<h3 style="color:red;">Test Run.Please validate with costing sheet before taking any decision></h3>
|
1762 |
<h3 style="color:red;">Test Run.Please validate with costing sheet before taking any decision></h3>
|
| 1762 |
<body>
|
1763 |
<body>
|
| Line 1935... |
Line 1936... |
| 1935 |
exceptionList[:], negativeMargin[:], cheapest[:], amongCheapestAndCanCompete[:], canCompete[:], almostCompete[:], cantCompete[:] =[],[],[],[],[],[],[]
|
1936 |
exceptionList[:], negativeMargin[:], cheapest[:], amongCheapestAndCanCompete[:], canCompete[:], almostCompete[:], cantCompete[:] =[],[],[],[],[],[],[]
|
| 1936 |
autoDecreaseItems = fetchItemsForAutoDecrease(timestamp)
|
1937 |
autoDecreaseItems = fetchItemsForAutoDecrease(timestamp)
|
| 1937 |
autoIncreaseItems = fetchItemsForAutoIncrease(timestamp)
|
1938 |
autoIncreaseItems = fetchItemsForAutoIncrease(timestamp)
|
| 1938 |
previousAutoFav, nowAutoFav = markAutoFavourites(timestamp)
|
1939 |
previousAutoFav, nowAutoFav = markAutoFavourites(timestamp)
|
| 1939 |
writeReport(timestamp,autoDecreaseItems,autoIncreaseItems,previousAutoFav,nowAutoFav,options.runType)
|
1940 |
writeReport(timestamp,autoDecreaseItems,autoIncreaseItems,previousAutoFav,nowAutoFav,options.runType)
|
| - |
|
1941 |
print "send auto pricing email"
|
| 1940 |
sendAutoPricingMail(autoDecreaseItems,autoIncreaseItems)
|
1942 |
sendAutoPricingMail(autoDecreaseItems,autoIncreaseItems)
|
| 1941 |
if __name__=='__main__':
|
1943 |
if __name__=='__main__':
|
| 1942 |
main()
|
1944 |
main()
|
| 1943 |
|
1945 |
|