Subversion Repositories SmartDukaan

Rev

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

Rev 23142 Rev 23148
Line 88... Line 88...
88
    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, \
89
    delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
89
    delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
90
    get_cart_by_value, update_item_pricing, bulk_update_catalog, \
90
    get_cart_by_value, update_item_pricing, bulk_update_catalog, \
91
    get_warranty_info_for_item, get_warranty_info_for_item_list, \
91
    get_warranty_info_for_item, get_warranty_info_for_item_list, \
92
    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, \
93
    get_all_fofo_deals, get_total_tax_rate
93
    get_all_fofo_deals, get_state_tax_rate, \
-
 
94
    get_igst_tax_rate
94
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
95
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
95
    CatalogServiceException
96
    CatalogServiceException
96
from shop2020.utils.Utils import log_entry, to_py_date
97
from shop2020.utils.Utils import log_entry, to_py_date
97
 
98
 
98
 
99
 
Line 1883... Line 1884...
1883
        try:
1884
        try:
1884
            return get_gst_rates_by_state(stateId)
1885
            return get_gst_rates_by_state(stateId)
1885
        finally:
1886
        finally:
1886
            close_session()
1887
            close_session()
1887
            
1888
            
1888
    def getTotalTaxRate(self, itemIds, stateId):
1889
    def getStateTaxRate(self, itemIds, stateId):
1889
        try:
1890
        try:
1890
            return get_total_tax_rate(itemIds, stateId)
1891
            return get_state_tax_rate(itemIds, stateId)
-
 
1892
        finally:
-
 
1893
            close_session() 
-
 
1894
    
-
 
1895
    def getIgstTaxRate(self, itemIds):
-
 
1896
        try:
-
 
1897
            return get_igst_tax_rate(itemIds)
1891
        finally:
1898
        finally:
1892
            close_session()  
1899
            close_session()  
1893
            
1900
            
1894
    def getInterStateGstRates(self,):
1901
    def getInterStateGstRates(self,):
1895
        try:
1902
        try: