Subversion Repositories SmartDukaan

Rev

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

Rev 9488 Rev 9491
Line 260... Line 260...
260
        else:
260
        else:
261
            lowestTp = supc_data.lowestSp*0.9497-courierCost
261
            lowestTp = supc_data.lowestSp*0.9497-courierCost
262
        
262
        
263
        lowest_possible_tp = one_line.our_nlc/0.988+15+6
263
        lowest_possible_tp = one_line.our_nlc/0.988+15+6
264
        
264
        
265
        if (supc_data.ourSp*0.9597-courierCost < lowest_possible_tp):
265
        if (supc_data.ourSp*0.9597-courierCost < lowest_possible_tp and supc_data.ourSp > 0 and round((supc_data.ourSp*0.9597-courierCost) - lowest_possible_tp) < 0):
266
            temp=[]
266
            temp=[]
267
            temp.append(supc_data)
267
            temp.append(supc_data)
268
            temp.append(one_line)
268
            temp.append(one_line)
269
            negativeMargin.append(temp)
269
            negativeMargin.append(temp)
270
            i+=1
270
            i+=1