mirror of
https://github.com/ae-utbm/sith.git
synced 2025-02-27 01:47:14 +00:00
replaced check with valid attribute is_check
This commit is contained in:
parent
1978658b9c
commit
e757fb43a1
@ -1056,7 +1056,7 @@ class CashRegisterSummary(models.Model):
|
||||
|
||||
def __getattribute__(self, name):
|
||||
if name[:5] == "check":
|
||||
checks = self.items.filter(check=True).order_by("value").all()
|
||||
checks = self.items.filter(is_check=True).order_by("value").all()
|
||||
if name == "ten_cents":
|
||||
return self.items.filter(value=0.1, is_check=False).first()
|
||||
elif name == "twenty_cents":
|
||||
|
Loading…
x
Reference in New Issue
Block a user