Subversion Repositories SmartDukaan

Rev

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

Rev 7272 Rev 7274
Line 252... Line 252...
252
 
252
 
253
    ds_item.isWarehousePreferenceSticky = item.isWarehousePreferenceSticky
253
    ds_item.isWarehousePreferenceSticky = item.isWarehousePreferenceSticky
254
    
254
    
255
    ds_item.updatedOn = datetime.datetime.now()
255
    ds_item.updatedOn = datetime.datetime.now()
256
    
256
    
257
    if item.activeOnStore and  not ds_item.activeOnStore:
257
#    if item.activeOnStore and  not ds_item.activeOnStore:
258
        add_store_pricing(ds_item)
258
#        add_store_pricing(ds_item)
259
    ds_item.activeOnStore = item.activeOnStore
259
    ds_item.activeOnStore = item.activeOnStore
260
    
260
    
261
    session.commit();
261
    session.commit();
262
    subject = "Item '{0}' is updated in Catalog. Id is {1}".format(__get_product_name(ds_item),ds_item.id)
262
    subject = "Item '{0}' is updated in Catalog. Id is {1}".format(__get_product_name(ds_item),ds_item.id)
263
    if message:
263
    if message:
Line 1487... Line 1487...
1487
        sp = StorePricing()
1487
        sp = StorePricing()
1488
    sp.recommendedPrice = tsp.recommendedPrice
1488
    sp.recommendedPrice = tsp.recommendedPrice
1489
    sp.minPrice = tsp.minPrice
1489
    sp.minPrice = tsp.minPrice
1490
    sp.minAdvancePrice = tsp.minAdvancePrice
1490
    sp.minAdvancePrice = tsp.minAdvancePrice
1491
    sp.maxPrice = tsp.maxPrice
1491
    sp.maxPrice = tsp.maxPrice
1492
    sp.itemId = tsp.itemId
1492
    sp.item_id = tsp.itemId
1493
    session.commit()
1493
    session.commit()
1494
    
1494
    
1495
    
1495
    
1496
def add_store_pricing(item):
1496
def add_store_pricing(item):
1497
    inventoryClient = InventoryClient().get_client()
1497
    inventoryClient = InventoryClient().get_client()