Subversion Repositories SmartDukaan

Rev

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

Rev 16106 Rev 16107
Line 109... Line 109...
109
        
109
        
110
        for val in orderObj['0']['items'].values():
110
        for val in orderObj['0']['items'].values():
111
            newCount = 0
111
            newCount = 0
112
            for key in jsonSubOrdersMap.keys():
112
            for key in jsonSubOrdersMap.keys():
113
                splitKey = key.split('-')
113
                splitKey = key.split('-')
114
                if str(val['order_id']) == splitKey[0]:
114
                if str(val['child']) == splitKey[0]:
115
                    newCount = int(splitKey[1])
115
                    newCount = int(splitKey[1])
116
                    break
116
                    break
117
            if newCount >0 :
117
            if newCount >0 :
118
                count = newCount +1
118
                count = newCount +1
119
                jsonSubOrdersMap[str(val['order_id'])+'-'+str(count)] = val
119
                jsonSubOrdersMap[str(val['child'])+'-'+str(count)] = val
120
            else:
120
            else:
121
                jsonSubOrdersMap[str(val['order_id'])+'-'+str(count)] = val
121
                jsonSubOrdersMap[str(val['child'])+'-'+str(count)] = val
122
            
122
            
123
            count= count+1
123
            count= count+1
124
            
124
            
125
        print jsonSubOrdersMap.items()
125
        print jsonSubOrdersMap.items()
126
            
126