Subversion Repositories SmartDukaan

Rev

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

Rev 18414 Rev 18600
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
86
    delete_bulk_pricing_for_item_by_id , delete_bulk_pricing_for_item, update_bulk_prices_on_production
87
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
87
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
88
    CatalogServiceException
88
    CatalogServiceException
89
from shop2020.utils.Utils import log_entry, to_py_date
89
from shop2020.utils.Utils import log_entry, to_py_date
90
import datetime
90
import datetime
91
 
91
 
Line 1830... Line 1830...
1830
        except:
1830
        except:
1831
            return False
1831
            return False
1832
        finally:
1832
        finally:
1833
            close_session()
1833
            close_session()
1834
    
1834
    
-
 
1835
    def updateBulkPricesOnProduction(self,itemId, bulkItemPricingList):
-
 
1836
        try:
-
 
1837
            return update_bulk_prices_on_production(itemId, bulkItemPricingList)
-
 
1838
        except:
-
 
1839
            return False
-
 
1840
        finally:
-
 
1841
            close_session()
-
 
1842
            
-
 
1843
    
1835
        
1844
        
1836
    
1845
    
1837
if __name__ == '__main__':
1846
if __name__ == '__main__':
1838
    c = CatalogServiceHandler()
1847
    c = CatalogServiceHandler()
1839
    bulk_items= c.getBulkPricingForItems([21053,1000])
1848
    bulk_items= c.getBulkPricingForItems([21053,1000])