Subversion Repositories SmartDukaan

Rev

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

Rev 7770 Rev 7773
Line 199... Line 199...
199
                amazonItem.mfnPriceLastUpdatedOn = datetime.datetime.now()
199
                amazonItem.mfnPriceLastUpdatedOn = datetime.datetime.now()
200
                amazonItem.fbaPriceLastUpdatedOn = datetime.datetime.now()
200
                amazonItem.fbaPriceLastUpdatedOn = datetime.datetime.now()
201
            message += "Selling Price is changed from {0} to {1}.\n".format(ds_item.sellingPrice, item.sellingPrice)
201
            message += "Selling Price is changed from {0} to {1}.\n".format(ds_item.sellingPrice, item.sellingPrice)
202
       
202
       
203
    ds_item.sellingPrice = item.sellingPrice
203
    ds_item.sellingPrice = item.sellingPrice
204
    item_temp = get_item(item.id)
-
 
205
    print "temp",item_temp.sellingPrice
-
 
206
    print "object",item.sellingPrice
-
 
207
    if (item_temp.sellingPrice != item.sellingPrice):
-
 
208
        amazonItem = get_amazon_item_details(item.id)
-
 
209
        if amazonItem is not None:
-
 
210
            amazonItem.fbaPrice = item.sellingPrice
-
 
211
            amazonItem.sellingPrice=item.sellingPrice
-
 
212
            amazonItem.mfnPriceLastUpdatedOn = datetime.datetime.now()
-
 
213
            amazonItem.fbaPriceLastUpdatedOn = datetime.datetime.now()
-
 
214
 
-
 
215
    ds_item.weight = item.weight
204
    ds_item.weight = item.weight
216
    ds_item.showSellingPrice = item.showSellingPrice
205
    ds_item.showSellingPrice = item.showSellingPrice
217
   
206
   
218
    if item.asin:
207
    if item.asin:
219
        ds_item.asin = item.asin
208
        ds_item.asin = item.asin