Subversion Repositories SmartDukaan

Rev

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

Rev 23391 Rev 23411
Line 127... Line 127...
127
#End:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
127
#End:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
128
logging.basicConfig(level=logging.DEBUG)
128
logging.basicConfig(level=logging.DEBUG)
129
 
129
 
130
sourceId = int(ConfigClient().get_property("sourceid"))
130
sourceId = int(ConfigClient().get_property("sourceid"))
131
capitalFloatPayMethod = 456789 
131
capitalFloatPayMethod = 456789 
132
SaholicHelpEmailId = "Profitmandi <care@profitmandi.com>"
132
SaholicHelpEmailId = "SmartDukaan <care@smartdukaan.com>"
133
mail_user = 'cnc.center@shop2020.in'
133
mail_user = 'cnc.center@shop2020.in'
134
mail_password = '5h0p2o2o'
134
mail_password = '5h0p2o2o'
135
help_user = 'help@shop2020.in'
135
help_user = 'help@shop2020.in'
136
help_password = '5h0p2o2o'
136
help_password = '5h0p2o2o'
137
source_url = 'www.saholic.com'
137
source_url = 'www.saholic.com'
138
source_name = 'ProfitMandi'
138
source_name = 'SmartDukaan'
139
hotspot_store_url ='http://125.19.98.100/loaddetect/service.asmx?WSDL'
139
hotspot_store_url ='http://125.19.98.100/loaddetect/service.asmx?WSDL'
140
aclient = None
140
aclient = None
141
 
141
 
142
PREPAID_SHIPPING_CUTOFF_TIME = 15
142
PREPAID_SHIPPING_CUTOFF_TIME = 15
143
COD_SHIPPING_CUTOFF_TIME = 12
143
COD_SHIPPING_CUTOFF_TIME = 12
Line 6210... Line 6210...
6210
                print e
6210
                print e
6211
            '''
6211
            '''
6212
        elif status == "Recharge Failed" and recharge_order.description != "Invalid Device Number" :
6212
        elif status == "Recharge Failed" and recharge_order.description != "Invalid Device Number" :
6213
            smsText = "Dear Customer, We could not process your recharge due to" + failureReasonSms + " We have credited the amount to your recharge wallet. You can use wallet amount to recharge again. "
6213
            smsText = "Dear Customer, We could not process your recharge due to" + failureReasonSms + " We have credited the amount to your recharge wallet. You can use wallet amount to recharge again. "
6214
        elif status == "Recharge Successful" :
6214
        elif status == "Recharge Successful" :
6215
            smsText = "Dear Customer, Thanks for recharging your mobile for Rs. "+ str(recharge_order.totalAmount) + " from profitmandi. Order Id is "+ display_order_id + ". Any Query? please call 8826894203"
6215
            smsText = "Dear Customer, Thanks for recharging your mobile for Rs. "+ str(recharge_order.totalAmount) + " from SmartDukaan. Order Id is "+ display_order_id + ". Any Query? please call 8826894203"
6216
        elif status == "Recharge Under Process" :
6216
        elif status == "Recharge Under Process" :
6217
            smsText = "Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet."
6217
            smsText = "Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet."
6218
            #Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet.
6218
            #Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet.
6219
        elif status == "Recharge Failed, Amount Refunded" :
6219
        elif status == "Recharge Failed, Amount Refunded" :
6220
            smsText = "Dear Customer, It seems operator could not process your recharge request. We are crediting the refund amount to your recharge wallet. You can use wallet amount to recharge again."
6220
            smsText = "Dear Customer, It seems operator could not process your recharge request. We are crediting the refund amount to your recharge wallet. You can use wallet amount to recharge again."
Line 9556... Line 9556...
9556
            </p>
9556
            </p>
9557
            </div>
9557
            </div>
9558
            </body>
9558
            </body>
9559
            </html>
9559
            </html>
9560
            """
9560
            """
9561
    subject = "Your ProfitMandi Order: "+str(order.id) + " have been split"
9561
    subject = "Your Smart Dukaan Order: "+str(order.id) + " have been split"
9562
    bcc = ["backup@saholic.com"]
9562
    bcc = ["backup@saholic.com"]
9563
    try:
9563
    try:
9564
        helper_client = HelperClient(host_key = "helper_service_server_host_prod").get_client()
9564
        helper_client = HelperClient(host_key = "helper_service_server_host_prod").get_client()
9565
        helper_client.saveUserEmailForSending([order.customer_email], SaholicHelpEmailId, subject, html, str(order.id), "TransactionInfo", [], bcc, order.source)
9565
        helper_client.saveUserEmailForSending([order.customer_email], SaholicHelpEmailId, subject, html, str(order.id), "TransactionInfo", [], bcc, order.source)
9566
        if order.customer_mobilenumber is not None:
9566
        if order.customer_mobilenumber is not None: