Subversion Repositories SmartDukaan

Rev

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

Rev 4014 Rev 4090
Line 1... Line 1...
1
#!/usr/bin/python
1
#!/usr/bin/python
2
 
2
 
-
 
3
'''
-
 
4
Loads the static logic of assigning provider to a particular pincode
-
 
5
into the DestinationProviderAllocation table.
-
 
6
 
-
 
7
It reads the logic from a XLS workbook containing two sheets. The first sheet is
-
 
8
for shipments worth less than Rs 5000. The second sheet is for shipments costing
-
 
9
more than Rs 5000.
-
 
10
 
-
 
11
@attention: This script may need enhancement if we want to differentiate between
-
 
12
COD and Prepaid orders.
-
 
13
 
-
 
14
@attention: This table is not being used currently. If and when this comes into 
-
 
15
use, please remember to update the logic of get_logistics_estimation 
-
 
16
in DataAccessor.py. 
-
 
17
 
-
 
18
@author: Ankur Singhal
-
 
19
'''
3
import optparse
20
import optparse
4
import xlrd
21
import xlrd
5
from elixir import *
22
from elixir import *
6
 
23
 
7
if __name__ == '__main__' and __package__ is None:
24
if __name__ == '__main__' and __package__ is None: