Subversion Repositories SmartDukaan

Rev

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

Rev 13050 Rev 13058
Line 931... Line 931...
931
    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))
931
    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))
932
 
932
 
933
    try:
933
    try:
934
        helper_client = HelperClient().get_client()
934
        helper_client = HelperClient().get_client()
935
        helper_client.saveUserEmailForSending([user_email], "", subject, email_header + html_table + email_footer, str(transaction_id), "TransactionInfo", [], bcc, orders[0].source)
935
        helper_client.saveUserEmailForSending([user_email], "", subject, email_header + html_table + email_footer, str(transaction_id), "TransactionInfo", [], bcc, orders[0].source)
936
        '''
936
        
937
        if sendSms:
937
        if sendSms:
938
            send_transaction_sms(customerId, mobileNo, smsText, SmsType.TRANSACTIONAL)
938
            send_transaction_sms(customerId, mobileNo, smsText, SmsType.TRANSACTIONAL)
939
        '''
939
        
940
        return True
940
        return True
941
    except Exception as e:
941
    except Exception as e:
942
        print e
942
        print e
943
        return False
943
        return False
944
    
944