| Line 207... |
Line 207... |
| 207 |
Attempt = 1
|
207 |
Attempt = 1
|
| 208 |
while not Connected:
|
208 |
while not Connected:
|
| 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.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,\
|
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,\
|
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),\
|
216 |
0.0,line.total_price,order.customer_name,insurance.guardianName,dateOfBirth,str(order.id),\
|
| 217 |
order.customer_mobilenumber,'')
|
217 |
order.customer_mobilenumber,'')
|
| 218 |
print "Response : ",response
|
218 |
print "Response : ",response
|
| 219 |
Connected=True
|
219 |
Connected=True
|
| 220 |
except:
|
220 |
except:
|
| 221 |
print "Unable to insert sale record.Attempting again...."
|
221 |
print "Unable to insert sale record.Attempting again...."
|