Subversion Repositories SmartDukaan

Rev

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

Rev 6674 Rev 6675
Line 439... Line 439...
439
    #TODO: This list should be cached after the first call.
439
    #TODO: This list should be cached after the first call.
440
    #Calling logistics server is also unnecessary.
440
    #Calling logistics server is also unnecessary.
441
    holidays = logistics_client.getHolidays(to_java_date(start_time), to_java_date(end_time))
441
    holidays = logistics_client.getHolidays(to_java_date(start_time), to_java_date(end_time))
442
    non_business_days = len(holidays)
442
    non_business_days = len(holidays)
443
    for holiday in holidays:
443
    for holiday in holidays:
-
 
444
        pyholiday = to_py_date(holiday).date()
444
        if holiday.weekday() == 6:
445
        if pyholiday.weekday() == 6:
445
            sundays = sundays - 1
446
            sundays = sundays - 1
446
    return diff - (non_business_days + sundays)
447
    return diff - (non_business_days + sundays)
447
            
448
            
448
 
449
 
449
def enqueue_transaction_info_email(transaction_id):
450
def enqueue_transaction_info_email(transaction_id):
Line 3363... Line 3364...
3363
        We are pleased to inform that we have shipped the order: $order_id for your product $product_name on $shipping_datetime. 
3364
        We are pleased to inform that we have shipped the order: $order_id for your product $product_name on $shipping_datetime. 
3364
        The shipment will be delivered to you via $courier_name Courier Service vide AWB# $awb.
3365
        The shipment will be delivered to you via $courier_name Courier Service vide AWB# $awb.
3365
    </p>
3366
    </p>
3366
    <p>
3367
    <p>
3367
        Expected delivery date for your order is $expected_delivery_date.
3368
        Expected delivery date for your order is $expected_delivery_date.
-
 
3369
        <br/>
3368
        $otg_text 
3370
        $otg_text
-
 
3371
        <br/> 
3369
        The product can be delivered to you between business hours of 10am to 6pm. 
3372
        The product can be delivered to you between business hours of 10am to 6pm. 
3370
        You can login to your account on our site and under "Open Orders", please click the AWB and check the current shipment updates for your product.
3373
        You can login to your account on our site and under "Open Orders", please click the AWB and check the current shipment updates for your product.
3371
    </p>
3374
    </p>
3372
    <p>
3375
    <p>
3373
        For scheduling the delivery of your product at some specific timings, we recommend you to contact the helpline for $courier_name with your complete AWB#.
3376
        For scheduling the delivery of your product at some specific timings, we recommend you to contact the helpline for $courier_name with your complete AWB#.