mirror of
https://github.com/ae-utbm/sith.git
synced 2025-02-27 01:47:14 +00:00
Merge pull request #1032 from ae-utbm/check_cashreg
is_check attribute refactor
This commit is contained in:
commit
21284546c4
@ -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