| Line 31... |
Line 31... |
| 31 |
CentralGstMaster, CategoryHsnCodes, Tag_Listing, StateGstRate
|
31 |
CentralGstMaster, CategoryHsnCodes, Tag_Listing, StateGstRate
|
| 32 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status, ItemShippingInfo, \
|
32 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status, ItemShippingInfo, \
|
| 33 |
ItemType, PremiumType, FreebieItem as t_FreebieItem, \
|
33 |
ItemType, PremiumType, FreebieItem as t_FreebieItem, \
|
| 34 |
StorePricing as tStorePricing, CatalogServiceException, BannerType, InsurerType, \
|
34 |
StorePricing as tStorePricing, CatalogServiceException, BannerType, InsurerType, \
|
| 35 |
Banner as t_banner, CompetitorPricing as TCompetitorPricing, AmazonPromotionType, \
|
35 |
Banner as t_banner, CompetitorPricing as TCompetitorPricing, AmazonPromotionType, \
|
| 36 |
ItemCondition, StateGstRates, GstRate, StateGstRate as TStateGstRate
|
36 |
ItemCondition, StateGstRates, GstRate, StateGstRate as TStateGstRate, CategoryHsnCode as TCategoryHsnCode
|
| 37 |
from shop2020.thriftpy.model.v1.inventory.ttypes import VatType, \
|
37 |
from shop2020.thriftpy.model.v1.inventory.ttypes import VatType, \
|
| 38 |
InventoryServiceException, IgnoredInventoryUpdateItems, SnapdealInventoryItem
|
38 |
InventoryServiceException, IgnoredInventoryUpdateItems, SnapdealInventoryItem
|
| 39 |
from shop2020.thriftpy.model.v1.order.ttypes import OrderSource
|
39 |
from shop2020.thriftpy.model.v1.order.ttypes import OrderSource
|
| 40 |
from shop2020.thriftpy.utils.ttypes import UserSmsInfo, SmsType
|
40 |
from shop2020.thriftpy.utils.ttypes import UserSmsInfo, SmsType
|
| 41 |
from shop2020.utils import EmailAttachmentSender
|
41 |
from shop2020.utils import EmailAttachmentSender
|
| Line 3561... |
Line 3561... |
| 3561 |
|
3561 |
|
| 3562 |
return centralGstMap
|
3562 |
return centralGstMap
|
| 3563 |
|
3563 |
|
| 3564 |
|
3564 |
|
| 3565 |
def get_hsn_codes_by_category(categoryId):
|
3565 |
def get_hsn_codes_by_category(categoryId):
|
| 3566 |
return [to_t_categoryHsnCode(categoryHsnCode) for categoryHsnCode in session.query(CategoryHsnCodes).filter(CategoryHsnCodes.categoryId==categoryId).all()]
|
3566 |
codes = [to_t_categoryHsnCode(categoryHsnCode) for categoryHsnCode in session.query(CategoryHsnCodes).filter(CategoryHsnCodes.categoryId==categoryId).all()]
|
| - |
|
3567 |
code = TCategoryHsnCode()
|
| - |
|
3568 |
code.categoryId = categoryId
|
| - |
|
3569 |
code.description = "NON Billable"
|
| - |
|
3570 |
code.hsnCode = "NOGST"
|
| - |
|
3571 |
codes.insert(0, code)
|
| - |
|
3572 |
return codes
|
| 3567 |
|
3573 |
|
| 3568 |
def get_warranty_info_for_item(itemId, itemCondition):
|
3574 |
def get_warranty_info_for_item(itemId, itemCondition):
|
| 3569 |
itemWarrantyInfo = ItemWarrantyInfo.query.filter(and_(ItemWarrantyInfo.catalogItemId ==itemId, ItemWarrantyInfo.itemCondition==itemCondition)).first()
|
3575 |
itemWarrantyInfo = ItemWarrantyInfo.query.filter(and_(ItemWarrantyInfo.catalogItemId ==itemId, ItemWarrantyInfo.itemCondition==itemCondition)).first()
|
| 3570 |
itemwarrantyinfoMap = {}
|
3576 |
itemwarrantyinfoMap = {}
|
| 3571 |
if itemWarrantyInfo is None:
|
3577 |
if itemWarrantyInfo is None:
|