From 442feb3e7623d596adbc31a2d99095d9743569b3 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Thu, 3 Sep 2020 00:18:53 +0200 Subject: [PATCH] remember to substract them from the balance --- src/economy/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/economy/models.py b/src/economy/models.py index 85161e08..e260438f 100644 --- a/src/economy/models.py +++ b/src/economy/models.py @@ -832,6 +832,8 @@ class PosReport(CampRelatedModel, UUIDModel): balance += self.bank_start_hax # then substract the HAX the POS sold via the izettle balance -= self.hax_sold_izettle + # then substract the HAX sold through webshop tickets + balance -= self.hax_sold_website # then add the HAX sales from the POS json balance += self.pos_json_sales[1] # finally substract the HAX received from the POS at the end of the day