Subversion Repositories SmartDukaan

Rev

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

Rev 1264 Rev 1271
Line 93... Line 93...
93
        if dp != "":
93
        if dp != "":
94
            item.dealerPrice = dp
94
            item.dealerPrice = dp
95
            item.sellingPrice = dp
95
            item.sellingPrice = dp
96
        
96
        
97
        if mrp != "" and mop != "" and mrp <  mop:
97
        if mrp != "" and mop != "" and mrp <  mop:
98
            print "[BAD MRP and MOP:] for {0} {1} {2} {3}. MRP={4}. MOP={5}".format(product_group, brand, model_number, color, mrp, mop)
98
            raise Exception("[BAD MRP and MOP:] for {0} {1} {2} {3}. MRP={4}. MOP={5}".format(product_group, brand, model_number, color, mrp, mop))
99
 
99
 
100
        if mop != "" and xfer_price != "" and xfer_price > mop:
100
        if mop != "" and xfer_price != "" and xfer_price > mop:
101
            print "[BAD MOP and TP:] for {0} {1} {2} {3}. TP={4}. MOP={5}".format(product_group, brand, model_number, color, xfer_price, mop)
101
            raise Exception("[BAD MOP and TP:] for {0} {1} {2} {3}. TP={4}. MOP={5}".format(product_group, brand, model_number, color, xfer_price, mop))
102
        if mrp != "":
102
        if mrp != "":
103
            if item.mrp == None or item.mrp >= mrp:
103
            if item.mrp == None or item.mrp >= mrp:
104
                item.mrp = mrp
104
                item.mrp = mrp
105
            else:
105
            else:
106
                print "[NEW MRP MORE THAN old MRP:] for {0} {1} {2} {3}. Old mrp={4}. New MRP={5}".format(product_group, brand, model_number, color, item.mrp, mrp)
106
                raise Exception("[NEW MRP MORE THAN old MRP:] for {0} {1} {2} {3}. Old mrp={4}. New MRP={5}".format(product_group, brand, model_number, color, item.mrp, mrp))
107
        
107
        
108
        if mop != "":
108
        if mop != "":
109
            item.mop = mop
109
            item.mop = mop
110
            item.sellingPrice = mop
110
            item.sellingPrice = mop
111
 
111