Subversion Repositories SmartDukaan

Rev

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

Rev 1405 Rev 1408
Line 1... Line 1...
1
#!/usr/bin/python 
1
#!/usr/bin/python 
2
 
2
 
3
'''
-
 
4
Created on 13-Apr-2011
-
 
5
 
-
 
6
@author: ankur
-
 
7
'''
-
 
8
 
-
 
9
import os
3
import os
10
import sys
4
import sys
-
 
5
import csv
11
 
6
 
12
if __name__ == '__main__' and __package__ is None:
7
if __name__ == '__main__' and __package__ is None:
13
    sys.path.insert(0, os.getcwd())
8
    sys.path.insert(0, os.getcwd())
14
 
9
 
15
from shop2020.utils.Utils import to_py_date, to_java_date
10
from shop2020.utils.Utils import to_py_date
16
from shop2020.utils.EmailAttachmentSender import get_attachment_part, mail
11
from shop2020.utils.EmailAttachmentSender import get_attachment_part, mail
17
from shop2020.clients.TransactionClient import TransactionClient
12
from shop2020.clients.TransactionClient import TransactionClient
18
import csv
-
 
19
from shop2020.clients.LogisticsClient import LogisticsClient
13
from shop2020.clients.LogisticsClient import LogisticsClient
20
 
14
 
21
from_user = 'cnc.center@shop2020.in'
15
from_user = 'cnc.center@shop2020.in'
22
from_pwd = '5h0p2o2o'
16
from_pwd = '5h0p2o2o'
23
to = 'ankur.singhal@shop2020.in'
17
to = 'cnc.center@shop2020.in'
24
 
18
 
25
def get_undelivered_orders(providerId = -1, warehouseId = -1):
19
def get_undelivered_orders(providerId = -1, warehouseId = -1):
26
    txnClient = TransactionClient().get_client()
20
    txnClient = TransactionClient().get_client()
27
    undeliveredOrders = txnClient.getUndeliveredOrders(providerId, warehouseId)
21
    undeliveredOrders = txnClient.getUndeliveredOrders(providerId, warehouseId)
28
    return undeliveredOrders
22
    return undeliveredOrders