Subversion Repositories SmartDukaan

Rev

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

Rev 22045 Rev 22061
Line 11566... Line 11566...
11566
    ap.cash_back_type = "PERCENTAGE"
11566
    ap.cash_back_type = "PERCENTAGE"
11567
    ap.cash_back_amount = int(math.floor(amount * (cash_back/100)))
11567
    ap.cash_back_amount = int(math.floor(amount * (cash_back/100)))
11568
    session.commit()
11568
    session.commit()
11569
    if not shortDesc:
11569
    if not shortDesc:
11570
        shortDesc = "Paid in advance"
11570
        shortDesc = "Paid in advance"
11571
    add_amount_in_wallet(userId, ap.amount + ap.cash_back_amount, ap.id, WalletReferenceType.ADVANCE_AMOUNT, shortDesc, True, commit_session=True)
11571
    add_amount_in_wallet(userId, ap.amount + ap.cash_back_amount, ap.id, WalletReferenceType.ADVANCE_AMOUNT, True, shortDesc, commit_session=True)
11572
    return True    
11572
    return True    
11573
 
11573
 
11574
#refund complete shipping if type is list else as per map
11574
#refund complete shipping if type is list else as per map
11575
def __refund_shipping(orders, commit=True):
11575
def __refund_shipping(orders, commit=True):
11576
    if type(orders) is list:
11576
    if type(orders) is list: