| Line 30... |
Line 30... |
| 30 |
mismatch_file = "PickupMismatch.csv"
|
30 |
mismatch_file = "PickupMismatch.csv"
|
| 31 |
print "Some of our orders were not picked up. Printing report to:" + mismatch_file
|
31 |
print "Some of our orders were not picked up. Printing report to:" + mismatch_file
|
| 32 |
print_pickup_mismatch_report(mismatch_file, orders_not_picked_up)
|
32 |
print_pickup_mismatch_report(mismatch_file, orders_not_picked_up)
|
| 33 |
pickup_mismatch_part = get_attachment_part(mismatch_file)
|
33 |
pickup_mismatch_part = get_attachment_part(mismatch_file)
|
| 34 |
mail(from_user, from_pwd, to,\
|
34 |
mail(from_user, from_pwd, to,\
|
| 35 |
"Pickup Mismatch Report for " + provider.name,\
|
35 |
"Pickup Mismatch for " + provider.name,\
|
| 36 |
"This is a system generated email.Please don't reply to it.",\
|
36 |
"This is a system generated email.Please don't reply to it.",\
|
| 37 |
pickup_mismatch_part)
|
37 |
pickup_mismatch_part)
|
| 38 |
|
38 |
|
| 39 |
def process_delivery_report(provider):
|
39 |
def process_delivery_report(provider):
|
| 40 |
filename = fetch_report(provider.name.upper() + ' DELIVERED AND RTO REPORT')
|
40 |
filename = fetch_report(provider.name.upper() + ' DELIVERED AND RTO REPORT')
|