Subversion Repositories SmartDukaan

Rev

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

Rev 18719 Rev 18764
Line 81... Line 81...
81
    update_item_state_vat, mark_partially_active, get_ex_affiliate_item_info, \
81
    update_item_state_vat, mark_partially_active, get_ex_affiliate_item_info, \
82
    get_all_items_to_list_on_fbg, get_all_fbg_listed_items, check_services, \
82
    get_all_items_to_list_on_fbg, get_all_fbg_listed_items, check_services, \
83
    get_items, add_hs_item, get_hs_item, update_hs_item, get_pricing_for_dtr, \
83
    get_items, add_hs_item, get_hs_item, update_hs_item, get_pricing_for_dtr, \
84
    get_all_items_to_list_on_fbd, get_all_fbd_listed_items, \
84
    get_all_items_to_list_on_fbd, get_all_fbd_listed_items, \
85
    get_bulk_pricing_for_items, add_bulk_pricing_for_item, get_bulk_pricing_by_item_id, \
85
    get_bulk_pricing_for_items, add_bulk_pricing_for_item, get_bulk_pricing_by_item_id, \
86
    delete_bulk_pricing_for_item_by_id , delete_bulk_pricing_for_item, update_bulk_prices_on_production
86
    delete_bulk_pricing_for_item_by_id , delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
-
 
87
    get_cart_by_value
87
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
88
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
88
    CatalogServiceException
89
    CatalogServiceException
89
from shop2020.utils.Utils import log_entry, to_py_date
90
from shop2020.utils.Utils import log_entry, to_py_date
90
import datetime
91
import datetime
91
 
92
 
Line 1837... Line 1838...
1837
            return update_bulk_prices_on_production(itemId, bulkItemPricingList)
1838
            return update_bulk_prices_on_production(itemId, bulkItemPricingList)
1838
        except:
1839
        except:
1839
            return False
1840
            return False
1840
        finally:
1841
        finally:
1841
            close_session()
1842
            close_session()
1842
            
-
 
1843
    
1843
    
-
 
1844
    def getCartByValue(self,cartIds):
-
 
1845
        try:
-
 
1846
            return get_cart_by_value(cartIds)
-
 
1847
        finally:
-
 
1848
            close_session()
1844
        
1849
        
1845
    
1850
    
1846
if __name__ == '__main__':
1851
if __name__ == '__main__':
1847
    c = CatalogServiceHandler()
1852
    c = CatalogServiceHandler()
1848
    bulk_items= c.getBulkPricingForItems([21053,1000])
1853
    bulk_items= c.getBulkPricingForItems([21053,1000])