Verified Commit 712e7c89 authored by Alexandre | L'Sacienne's avatar Alexandre | L'Sacienne
Browse files

Add of verification on the counter

parent 713cd921
Pipeline #2582 failed with stage
in 26 minutes and 32 seconds
......@@ -22,7 +22,7 @@
from sith.settings import SITH_MAIN_CLUB
from sith.settings import SITH_COUNTER_OFFICES, SITH_MAIN_CLUB
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils import timezone
......@@ -344,6 +344,15 @@ class Counter(models.Model):
return [ for b in self.get_barmen_list()]
def can_refill(self):
Show if the counter authorize the refilling with physic money
): # If the counter is the counters 'AE' or 'BdF', the refiling are authorized
return True
is_ae_member = False
ae = Club.objects.get(unix_name=SITH_MAIN_CLUB["unix_name"])
for barman in self.get_barmen_list():
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment