Subversion Repositories SmartDukaan

Rev

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

Rev 19514 Rev 19528
Line 88... Line 88...
88
CREDIT_TYPE_REFUND = "Refund"
88
CREDIT_TYPE_REFUND = "Refund"
89
CREDIT_TYPE_OFFER = "Offer"
89
CREDIT_TYPE_OFFER = "Offer"
90
CREDIT_TYPE_ADJUSTMENT = "Adjustment"
90
CREDIT_TYPE_ADJUSTMENT = "Adjustment"
91
SUB_CATEGORY_MAP = {7:'Memory Card',8:'Cable',9:'USB Lights',10:"Screen Magnifier",11:"Car Charger",12:"Power Bank",13:"Pendrive",14:"Combo",15:"Charger",16:"Bluetooth Headset",17:"Speaker", \
91
SUB_CATEGORY_MAP = {7:'Memory Card',8:'Cable',9:'USB Lights',10:"Screen Magnifier",11:"Car Charger",12:"Power Bank",13:"Pendrive",14:"Combo",15:"Charger",16:"Bluetooth Headset",17:"Speaker", \
92
                    18:"Adapter",19:"Cases",20:"Screen Guard",21:"Earphone",22:"Card Reader",23:"Mobile Holder",24:"AUX Cable",25:"OTG Cable",26:"Selfie Stick",27:"Back Cover",28:"Tempered Glass",29:"Battery", \
92
                    18:"Adapter",19:"Cases",20:"Screen Guard",21:"Earphone",22:"Card Reader",23:"Mobile Holder",24:"AUX Cable",25:"OTG Cable",26:"Selfie Stick",27:"Back Cover",28:"Tempered Glass",29:"Battery", \
93
                    30:"Usb Hub",31:"Portable Music Player",32:"Smart Watch",33:'Flip Cover',34:'Connector',35:'TV Remote'}
93
                    30:"Usb Hub",31:"Portable Music Player",32:"Smart Watch",33:'Flip Cover',34:'Connector',35:'TV Remote',36:'Bumper Case'}
94
 
94
 
95
CATEGORY_MAP = {3:'Mobiles',5:'Tablets',6:'Accessories'}
95
CATEGORY_MAP = {3:'Mobiles',5:'Tablets',6:'Accessories'}
96
REFUND_ADJUSTMENT_MAP={0:'Pending',1:'Approved',2:'Cancelled',3:'Credited'}
96
REFUND_ADJUSTMENT_MAP={0:'Pending',1:'Approved',2:'Cancelled',3:'Credited'}
97
 
97
 
98
def get_mongo_connection(host='localhost', port=27017):
98
def get_mongo_connection(host='localhost', port=27017):