forked from brmlab/brmbar-github
Moar transfer logging.
This commit is contained in:
parent
afb5476c2d
commit
ff68817129
2 changed files with 8 additions and 3 deletions
|
@ -150,11 +150,16 @@ class ShopAdapter(QtCore.QObject):
|
|||
|
||||
@QtCore.Slot('QVariant', 'QVariant', 'QVariant', result='QVariant')
|
||||
def newTransfer(self, uidfrom, uidto, amount):
|
||||
logger.debug("newTransfer %s %s %s", uidfrom, uidto, amount)
|
||||
ufrom = brmbar.Account.load(db, id=uidfrom)
|
||||
logger.debug(" ufrom = %s", ufrom)
|
||||
uto = brmbar.Account.load(db, id=uidto)
|
||||
logger.debug(" uto = %s", uto)
|
||||
shop.transfer_credit(ufrom, uto, amount = amount)
|
||||
db.commit()
|
||||
return currency.str(float(amount))
|
||||
csfa = currency.str(float(amount))
|
||||
logger.debug(" csfa = '%s'", csfa)
|
||||
return csfa
|
||||
|
||||
@QtCore.Slot('QVariant', result='QVariant')
|
||||
def balance_user(self, userid):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue