Subversion Repositories SmartDukaan

Rev

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

Rev 22566 Rev 23142
Line 1... Line 1...
1
'''
1
'''
2
Created on 27-Apr-2010
2
Created on 27-Apr-2010
3
 
3
 
4
@author: ashish
4
@author: ashish
5
'''
5
'''
-
 
6
import datetime
-
 
7
 
6
from shop2020.config.client.ConfigClient import ConfigClient
8
from shop2020.config.client.ConfigClient import ConfigClient
7
from shop2020.model.v1.catalog.impl.Convertors import to_t_item, to_t_category, \
9
from shop2020.model.v1.catalog.impl.Convertors import to_t_item, to_t_category, \
8
    to_t_source_item_pricing, to_t_product_notification_request, to_t_banner, \
10
    to_t_source_item_pricing, to_t_product_notification_request, to_t_banner, \
9
    to_t_banner_map, to_t_product_notification_request_count, \
11
    to_t_banner_map, to_t_product_notification_request_count, \
10
    to_t_voucher_item_mapping, to_t_insurer, to_t_Amazonlisted, to_t_ebay_item, \
12
    to_t_voucher_item_mapping, to_t_insurer, to_t_Amazonlisted, to_t_ebay_item, \
Line 86... Line 88...
86
    get_bulk_pricing_by_item_id, delete_bulk_pricing_for_item_by_id, \
88
    get_bulk_pricing_by_item_id, delete_bulk_pricing_for_item_by_id, \
87
    delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
89
    delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
88
    get_cart_by_value, update_item_pricing, bulk_update_catalog, \
90
    get_cart_by_value, update_item_pricing, bulk_update_catalog, \
89
    get_warranty_info_for_item, get_warranty_info_for_item_list, \
91
    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, \
92
    get_gst_rates_by_state, get_interstate_gst_rates, get_hsn_codes_by_category, \
91
    get_all_fofo_deals
93
    get_all_fofo_deals, get_total_tax_rate
92
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
94
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
93
    CatalogServiceException
95
    CatalogServiceException
94
from shop2020.utils.Utils import log_entry, to_py_date
96
from shop2020.utils.Utils import log_entry, to_py_date
95
import datetime
97
 
96
 
98
 
97
class CatalogServiceHandler:
99
class CatalogServiceHandler:
98
    '''
100
    '''
99
    classdocs
101
    classdocs
100
    '''
102
    '''
Line 1881... Line 1883...
1881
        try:
1883
        try:
1882
            return get_gst_rates_by_state(stateId)
1884
            return get_gst_rates_by_state(stateId)
1883
        finally:
1885
        finally:
1884
            close_session()
1886
            close_session()
1885
            
1887
            
-
 
1888
    def getTotalTaxRate(self, itemIds, stateId):
-
 
1889
        try:
-
 
1890
            return get_total_tax_rate(itemIds, stateId)
-
 
1891
        finally:
-
 
1892
            close_session()  
-
 
1893
            
1886
    def getInterStateGstRates(self,):
1894
    def getInterStateGstRates(self,):
1887
        try:
1895
        try:
1888
            return get_interstate_gst_rates()
1896
            return get_interstate_gst_rates()
1889
        finally:
1897
        finally:
1890
            close_session()
1898
            close_session()