Subversion Repositories SmartDukaan

Rev

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

Rev 8550 Rev 8552
Line 209... Line 209...
209
            try:
209
            try:
210
                response = client.service.InsertSalesRecord('SAHOLIC',line.serial_number,getValidDateFormat(order.billing_timestamp.date()),order.invoice_number,\
210
                response = client.service.InsertSalesRecord('SAHOLIC',line.serial_number,getValidDateFormat(order.billing_timestamp.date()),order.invoice_number,\
211
                                         'Mobile Phones',line.brand,xstr(line.model_name) + " " + xstr(line.model_number),line.unit_price,\
211
                                         'Mobile Phones',line.brand,xstr(line.model_name) + " " + xstr(line.model_number),line.unit_price,\
212
                                         '0',line.total_price,order.customer_name,insurance.guardianName,dateOfBirth,str(order.id),\
212
                                         '0',line.total_price,order.customer_name,insurance.guardianName,dateOfBirth,str(order.id),\
213
                                         order.customer_mobilenumber,'')
213
                                         order.customer_mobilenumber,'')
-
 
214
                print ('SAHOLIC',line.serial_number,getValidDateFormat(order.billing_timestamp.date()),order.invoice_number,\
-
 
215
                                         'Mobile Phones',line.brand,xstr(line.model_name) + " " + xstr(line.model_number),line.unit_price,\
-
 
216
                                         '0',line.total_price,order.customer_name,insurance.guardianName,dateOfBirth,str(order.id),\
-
 
217
                                         order.customer_mobilenumber,'')
-
 
218
                print "Response : ",response
214
                Connected=True
219
                Connected=True
215
            except:
220
            except:
216
                print "Unable to insert sale record.Attempting again...."
221
                print "Unable to insert sale record.Attempting again...."
217
                Attempt = Attempt+1
222
                Attempt = Attempt+1
218
                if Attempt ==3:
223
                if Attempt ==3: