Exemplo n.º 1
0
 def addMoneyTransfer(self, fromaccount, toaccount, happentime, money, currency, description, user):
     moneytransfer = MoneyTransfer(fromaccount = fromaccount,
                                   toaccount = toaccount,
                                   happentime = happentime,
                                   money = money,
                                   currency = currency,
                                   description = description,
                                   user = user)
     
     moneytransfer.put()
     AccountService().updateAccountMoney(fromaccount, money, -1)
     AccountService().updateAccountMoney(toaccount, money, 1)
Exemplo n.º 2
0
    def addMoneyTransfer(self, fromaccount, toaccount, happentime, money,
                         currency, description, user):
        moneytransfer = MoneyTransfer(fromaccount=fromaccount,
                                      toaccount=toaccount,
                                      happentime=happentime,
                                      money=money,
                                      currency=currency,
                                      description=description,
                                      user=user)

        moneytransfer.put()
        AccountService().updateAccountMoney(fromaccount, money, -1)
        AccountService().updateAccountMoney(toaccount, money, 1)