Subversion Repositories SmartDukaan

Rev

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

Rev 22396 Rev 22566
Line 85... Line 85...
85
    get_bulk_pricing_for_items, add_bulk_pricing_for_item, \
85
    get_bulk_pricing_for_items, add_bulk_pricing_for_item, \
86
    get_bulk_pricing_by_item_id, delete_bulk_pricing_for_item_by_id, \
86
    get_bulk_pricing_by_item_id, delete_bulk_pricing_for_item_by_id, \
87
    delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
87
    delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
88
    get_cart_by_value, update_item_pricing, bulk_update_catalog, \
88
    get_cart_by_value, update_item_pricing, bulk_update_catalog, \
89
    get_warranty_info_for_item, get_warranty_info_for_item_list, \
89
    get_warranty_info_for_item, get_warranty_info_for_item_list, \
90
    get_gst_rates_by_state, get_interstate_gst_rates, get_hsn_codes_by_category
90
    get_gst_rates_by_state, get_interstate_gst_rates, get_hsn_codes_by_category, \
-
 
91
    get_all_fofo_deals
91
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
92
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
92
    CatalogServiceException
93
    CatalogServiceException
93
from shop2020.utils.Utils import log_entry, to_py_date
94
from shop2020.utils.Utils import log_entry, to_py_date
94
import datetime
95
import datetime
95
 
96
 
Line 1891... Line 1892...
1891
    def getHsnCodesByCategory(self, categoryId):
1892
    def getHsnCodesByCategory(self, categoryId):
1892
        try:
1893
        try:
1893
            return get_hsn_codes_by_category(categoryId)
1894
            return get_hsn_codes_by_category(categoryId)
1894
        finally:
1895
        finally:
1895
            close_session()
1896
            close_session()
-
 
1897
            
-
 
1898
    def getAllFofoDeals(self, itemIds, tagIds):
-
 
1899
        try:
-
 
1900
            return get_all_fofo_deals(itemIds, tagIds)
-
 
1901
        finally:
-
 
1902
            close_session()
1896
        
1903
        
1897
        
1904
        
1898
        
1905
        
1899
    
1906
    
1900
if __name__ == '__main__':
1907
if __name__ == '__main__':