Improve counter app and migrate products/producttypes/refillings/sellings

This commit is contained in:
Skia committed 2016-08-18 03:04:50 +02:00
1 parent d4f87e7581
commit 84364d9018
14 files changed
+337 -50

No files matched your search

+1 -1
View File
@@ -291,7 +291,7 @@ class ClickTokenForm(forms.BaseForm):
t.borrow_date = datetime.now().replace(tzinfo=pytz.UTC)
t.save()
price = settings.SITH_LAUNDERETTE_PRICES[t.type]
s = Selling(label="Jeton "+t.get_type_display()+" N°"+t.name, product=None, counter=counter, unit_price=price,
s = Selling(label="Jeton "+t.get_type_display()+" N°"+t.name, club=counter.club, product=None, counter=counter, unit_price=price,
quantity=1, seller=operator, customer=customer)
s.save()
total += price