Subversion Repositories SmartDukaan

Rev

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

Rev 9404 Rev 9456
Line 1248... Line 1248...
1248
        return 0
1248
        return 0
1249
    vendoritempricing = VendorItemPricing.query.filter_by(item_id=itemid, vendor_id=warehouse.vendor_id).first()
1249
    vendoritempricing = VendorItemPricing.query.filter_by(item_id=itemid, vendor_id=warehouse.vendor_id).first()
1250
    '''vendoritempricing = VendorItemPricing.get_by(id=warehouse.vendor_id,item_id=itemid)'''
1250
    '''vendoritempricing = VendorItemPricing.get_by(id=warehouse.vendor_id,item_id=itemid)'''
1251
    if vendoritempricing is None:
1251
    if vendoritempricing is None:
1252
        return 0
1252
        return 0
1253
    return vendoritempricing.nlc
-
 
1254
1253
    return vendoritempricing.nlc
-
 
1254
 
-
 
1255
def get_lastupdatedtime_for_snapdealinventory():
-
 
1256
    snapdealinventorysnapshot = session.query(func.max(SnapdealInventorySnapshot.lastUpdatedOnSnapdeal)).one()
-
 
1257
    if to_java_date(snapdealinventorysnapshot[0]) is None:
-
 
1258
        return 0
-
 
1259
    else:
-
 
1260
        return to_java_date(snapdealinventorysnapshot[0]) 
-
 
1261