Subversion Repositories SmartDukaan

Rev

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

Rev 16107 Rev 16108
Line 112... Line 112...
112
            for key in jsonSubOrdersMap.keys():
112
            for key in jsonSubOrdersMap.keys():
113
                splitKey = key.split('-')
113
                splitKey = key.split('-')
114
                if str(val['child']) == 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 :
-
 
118
                count = newCount +1
117
            count = newCount +1
119
                jsonSubOrdersMap[str(val['child'])+'-'+str(count)] = val
-
 
120
            else:
-
 
121
                jsonSubOrdersMap[str(val['child'])+'-'+str(count)] = val
118
            jsonSubOrdersMap[str(val['child'])+'-'+str(count)] = val
122
            
-
 
123
            count= count+1
-
 
124
            
119
            
125
        print jsonSubOrdersMap.items()
120
        print jsonSubOrdersMap.items()
126
            
121
            
127
        count = 1
122
        count = 1
128
        for orderTr in orderTable:
123
        for orderTr in orderTable: