mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
brmbar v3: Properly record payment by cash in database
This commit is contained in:
parent
e428d28e20
commit
5b63e54687
3 changed files with 22 additions and 3 deletions
|
@ -51,6 +51,10 @@ class ShopAdapter(QtCore.QObject):
|
|||
shop.sell(item = brmbar.Account.load(db, id = itemid), user = user)
|
||||
return user.negbalance_str()
|
||||
|
||||
@QtCore.Slot('QVariant', result='QVariant')
|
||||
def sellItemCash(self, itemid):
|
||||
shop.sell_for_cash(item = brmbar.Account.load(db, id = itemid))
|
||||
|
||||
@QtCore.Slot('QVariant', 'QVariant', result='QVariant')
|
||||
def chargeCredit(self, credit, userid):
|
||||
user = brmbar.Account.load(db, id = userid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue