mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-20 16:59:23 +00:00
replaced check with valid attribute is_check
This commit is contained in:
@ -1056,7 +1056,7 @@ class CashRegisterSummary(models.Model):
|
|||||||
|
|
||||||
def __getattribute__(self, name):
|
def __getattribute__(self, name):
|
||||||
if name[:5] == "check":
|
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":
|
if name == "ten_cents":
|
||||||
return self.items.filter(value=0.1, is_check=False).first()
|
return self.items.filter(value=0.1, is_check=False).first()
|
||||||
elif name == "twenty_cents":
|
elif name == "twenty_cents":
|
||||||
|
Reference in New Issue
Block a user