Add real BD fee

This commit is contained in:
Jean-Baptiste Doderlein 2022-08-30 07:54:39 +00:00
parent 8a03defc37
commit 121c49a5b6
11 changed files with 188 additions and 28 deletions

View file

@ -29,7 +29,7 @@ class InvoiceForm(forms.ModelForm):
class Meta:
model = Invoice
exclude = ('bde', 'date', 'tex', )
exclude = ('date', 'tex', )
class ProductForm(forms.ModelForm):

View file

@ -0,0 +1,18 @@
# Generated by Django 2.2.28 on 2022-08-24 17:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('treasury', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='invoice',
name='bde',
field=models.CharField(choices=[('BDE', 'BDE'), ('BDA', 'BDA'), ('BDS', 'BDS')], default='BDE', max_length=32, verbose_name='BD?'),
),
]

View file

@ -31,8 +31,10 @@ class Invoice(models.Model):
default='BDE',
choices=(
('BDE', 'BDE'),
('BDA', 'BDA'),
('BDS', 'BDS'),
),
verbose_name=_("BDE"),
verbose_name=_("BD?"),
)
object = models.CharField(
@ -89,10 +91,10 @@ class Invoice(models.Model):
products = self.products.all()
self.place = "Gif-sur-Yvette"
self.my_name = "BDE ENS Cachan"
self.my_address_street = "4 avenue des Sciences"
self.my_city = "91190 Gif-sur-Yvette"
self.place = "Bruz"
self.my_name = f"{self.bde} ENS Rennes"
self.my_address_street = "14 avenue Robert Schumann"
self.my_city = "35170 Bruz"
self.bank_code = 30003
self.desk_code = 3894
self.account_number = 37280662

View file

@ -47,18 +47,6 @@
{% endfor %}
}
% Logo du BDE
\AddToShipoutPicture*{
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\textwidth]{../../apps/treasury/static/img/{{ obj.bde }}_bg.jpg}
\vfill
}
}
}
%%%%%%%%%%%%%%%%%%%%% A MODIFIER DANS LA FACTURE %%%%%%%%%%%%%%%%%%%%%
% Infos Association
@ -105,8 +93,8 @@
\renewcommand{\headrulewidth}{0pt}
\cfoot{
\small{\MonNom ~--~ \MonAdresseRue ~ \MonAdresseVille ~--~ Téléphone : +33(0)6 89 88 56 50\newline
Site web : bde.ens-cachan.fr ~--~ E-mail : tresorerie.bde@lists.crans.org \newline Numéro SIRET : 399 485 838 00011
\small{\MonNom ~--~ \MonAdresseRue ~ \MonAdresseVille ~--~ Téléphone : +33(0)6 00 00 00 00\newline
Site web : TODO ~--~ E-mail : TODO \newline Numéro SIRET : 000 000 000 00000
}
}