Subversion Repositories SmartDukaan

Rev

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

Rev 15661 Rev 15664
Line 513... Line 513...
513
            continue
513
            continue
514
 
514
 
515
 
515
 
516
def computeCourierCost(weight):
516
def computeCourierCost(weight):
517
    try:
517
    try:
518
        cCost = 10.0;
518
        cCost = 20.0;
519
        slabs = int((weight*1000)/500-.001)
519
        slabs = int((weight*1000)/500-.001)
520
        for slab in range(0,slabs):
520
        for slab in range(0,slabs):
521
            cCost = cCost + 10.0;
521
            cCost = cCost + 35.0;
522
        return cCost;
522
        return cCost;
523
    except:
523
    except:
524
        return 10.0
524
        return 10.0
525
 
525
 
526
        
526