From 432f14d9d18f386e82dfbfc7e8555e51f3e3316b Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 24 Mar 2020 22:01:02 +0100 Subject: [PATCH] Product's amounts can be negative, in case of discounts (treasurers are free to generate what invoice they want) --- apps/treasury/models.py | 2 +- templates/treasury/invoice_form.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/treasury/models.py b/apps/treasury/models.py index a342eeb1..bcd89db9 100644 --- a/apps/treasury/models.py +++ b/apps/treasury/models.py @@ -79,7 +79,7 @@ class Product(models.Model): verbose_name=_("Quantity") ) - amount = models.PositiveIntegerField( + amount = models.IntegerField( verbose_name=_("Unit price") ) diff --git a/templates/treasury/invoice_form.html b/templates/treasury/invoice_form.html index de43af22..0edcbdcd 100644 --- a/templates/treasury/invoice_form.html +++ b/templates/treasury/invoice_form.html @@ -30,7 +30,7 @@ {# Use custom input for amount, with the € symbol #}
-
@@ -66,7 +66,7 @@ {{ formset.empty_form.quantity }}
-