Subversion Repositories SmartDukaan

Rev

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

Rev 12377 Rev 12378
Line 190... Line 190...
190
            sale = sale+obj.num_orders
190
            sale = sale+obj.num_orders
191
    avgSalePerDay=0 if count==0 else (float(sale)/count)
191
    avgSalePerDay=0 if count==0 else (float(sale)/count)
192
    return round(avgSalePerDay,2)
192
    return round(avgSalePerDay,2)
193
    
193
    
194
def computeCourierCost(weight):
194
def computeCourierCost(weight):
-
 
195
    try:
195
    cCost = 10.0;
196
        cCost = 10.0;
196
    slabs = int((weight*1000)/500-.001)
197
        slabs = int((weight*1000)/500-.001)
197
    for slab in range(0,slabs):
198
        for slab in range(0,slabs):
198
        cCost = cCost + 10.0;
199
            cCost = cCost + 10.0;
199
    return cCost;
200
        return cCost;
-
 
201
    except:
-
 
202
        return 10.0
200
 
203
 
201
        
204
        
202
def populateStuff(time,runType):
205
def populateStuff(time,runType):
203
    global amazonLongTermActivePromotions
206
    global amazonLongTermActivePromotions
204
    itemInfo = []
207
    itemInfo = []