Subversion Repositories SmartDukaan

Rev

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

Rev 7303 Rev 7304
Line 4710... Line 4710...
4710
    rechargeTransaction.ipAddress = t_recharge.ipAddress
4710
    rechargeTransaction.ipAddress = t_recharge.ipAddress
4711
    rechargeTransaction.paymentAmount = t_recharge.paymentAmount
4711
    rechargeTransaction.paymentAmount = t_recharge.paymentAmount
4712
    rechargeTransaction.payMethod = t_recharge.payMethod
4712
    rechargeTransaction.payMethod = t_recharge.payMethod
4713
    
4713
    
4714
    store = HotspotStore.get_by(id=rechargeTransaction.storeId)
4714
    store = HotspotStore.get_by(id=rechargeTransaction.storeId)
-
 
4715
    if not rechargeTransaction.circleId:
-
 
4716
        rechargeTransaction.circleId = store.circleId
-
 
4717
 
4715
    wallet = WalletForCompany.get_by(companyId=store.companyId)
4718
    wallet = WalletForCompany.get_by(companyId=store.companyId)
4716
    if store.availableLimit < rechargeTransaction.amount or wallet.amount < rechargeTransaction.amount:
4719
    if store.availableLimit < rechargeTransaction.amount or wallet.amount < rechargeTransaction.amount:
4717
        raise TransactionServiceException(898, "Either wallet amount for company or available limit for store is less than recharge amount.")
4720
        raise TransactionServiceException(898, "Either wallet amount for company or available limit for store is less than recharge amount.")
4718
    
4721
    
4719
    wh = WalletHistoryForCompany()
4722
    wh = WalletHistoryForCompany()