Subversion Repositories SmartDukaan

Rev

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

Rev 12994 Rev 12995
Line 905... Line 905...
905
    email_footer = Template(html_footer).substitute(dict(total_amount = "%.2f" % total_amount, emi_amount = "%.2f" % emi_amount, advance_amount = "%.2f" % advance_amount, net_amount = "%.2f" % (total_amount-order.gvAmount), secret_code = random_text, store_address = store_address, store_delivery_date = store_delivery_date, source_url = source_url, source_name = source_name, amount_string = amount_string))
905
    email_footer = Template(html_footer).substitute(dict(total_amount = "%.2f" % total_amount, emi_amount = "%.2f" % emi_amount, advance_amount = "%.2f" % advance_amount, net_amount = "%.2f" % (total_amount-order.gvAmount), secret_code = random_text, store_address = store_address, store_delivery_date = store_delivery_date, source_url = source_url, source_name = source_name, amount_string = amount_string))
906
 
906
 
907
    try:
907
    try:
908
        helper_client = HelperClient().get_client()
908
        helper_client = HelperClient().get_client()
909
        helper_client.saveUserEmailForSending([user_email], "", subject, email_header + html_table + email_footer, str(transaction_id), "TransactionInfo", [], bcc, orders[0].source)
909
        helper_client.saveUserEmailForSending([user_email], "", subject, email_header + html_table + email_footer, str(transaction_id), "TransactionInfo", [], bcc, orders[0].source)
-
 
910
        '''
910
        if sendSms:
911
        if sendSms:
911
            send_transaction_sms(customerId, mobileNo, smsText, SmsType.TRANSACTIONAL)
912
            send_transaction_sms(customerId, mobileNo, smsText, SmsType.TRANSACTIONAL)
-
 
913
        '''
912
        return True
914
        return True
913
    except Exception as e:
915
    except Exception as e:
914
        print e
916
        print e
915
        return False
917
        return False
916
    
918