Subversion Repositories SmartDukaan

Rev

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

Rev 24213 Rev 24820
Line 3572... Line 3572...
3572
    return centralGstMap
3572
    return centralGstMap
3573
             
3573
             
3574
              
3574
              
3575
def get_hsn_codes_by_category(categoryId):
3575
def get_hsn_codes_by_category(categoryId):
3576
    codes = [to_t_categoryHsnCode(categoryHsnCode) for categoryHsnCode in session.query(CategoryHsnCodes).filter(CategoryHsnCodes.categoryId==categoryId).all()]
3576
    codes = [to_t_categoryHsnCode(categoryHsnCode) for categoryHsnCode in session.query(CategoryHsnCodes).filter(CategoryHsnCodes.categoryId==categoryId).all()]
3577
    code = TCategoryHsnCode()
3577
#     code = TCategoryHsnCode()
3578
    code.categoryId = categoryId
3578
#     code.categoryId = categoryId
3579
    code.description = "NON Billable"
3579
#     code.description = "NON Billable"
3580
    code.hsnCode = "NOGST"
3580
#     code.hsnCode = "NOGST"
3581
    codes.insert(0, code)
3581
#     codes.insert(0, code)
3582
    return codes
3582
    return codes
3583
 
3583
 
3584
def get_warranty_info_for_item(itemId, itemCondition):
3584
def get_warranty_info_for_item(itemId, itemCondition):
3585
    itemWarrantyInfo = ItemWarrantyInfo.query.filter(and_(ItemWarrantyInfo.catalogItemId ==itemId, ItemWarrantyInfo.itemCondition==itemCondition)).first()
3585
    itemWarrantyInfo = ItemWarrantyInfo.query.filter(and_(ItemWarrantyInfo.catalogItemId ==itemId, ItemWarrantyInfo.itemCondition==itemCondition)).first()
3586
    itemwarrantyinfoMap = {}
3586
    itemwarrantyinfoMap = {}