mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 05:14:00 +02:00
Added Barcode for cash payment. Barcode is '_cash_'.
This commit is contained in:
parent
65741c31f0
commit
6ed53b92aa
3 changed files with 18 additions and 3 deletions
|
@ -29,6 +29,10 @@ class ShopAdapter(QtCore.QObject):
|
|||
map["price"] = str(sell)
|
||||
return map
|
||||
|
||||
def acct_cash_map(self, acct):
|
||||
map = acct.__dict__.copy()
|
||||
return map
|
||||
|
||||
def acct_map(self, acct):
|
||||
if acct is None:
|
||||
return None
|
||||
|
@ -36,6 +40,8 @@ class ShopAdapter(QtCore.QObject):
|
|||
return self.acct_debt_map(acct)
|
||||
elif acct.acctype == "inventory":
|
||||
return self.acct_inventory_map(acct)
|
||||
elif acct.acctype == "cash":
|
||||
return self.acct_cash_map(acct)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue