Mon commit initial
This commit is contained in:
0
gestion_produit/__init__.py
Normal file
0
gestion_produit/__init__.py
Normal file
BIN
gestion_produit/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
gestion_produit/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/__init__.cpython-313.pyc
Normal file
BIN
gestion_produit/__pycache__/__init__.cpython-313.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/admin.cpython-310.pyc
Normal file
BIN
gestion_produit/__pycache__/admin.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/admin.cpython-313.pyc
Normal file
BIN
gestion_produit/__pycache__/admin.cpython-313.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/apps.cpython-310.pyc
Normal file
BIN
gestion_produit/__pycache__/apps.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/apps.cpython-313.pyc
Normal file
BIN
gestion_produit/__pycache__/apps.cpython-313.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/forms.cpython-310.pyc
Normal file
BIN
gestion_produit/__pycache__/forms.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/forms.cpython-313.pyc
Normal file
BIN
gestion_produit/__pycache__/forms.cpython-313.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/models.cpython-310.pyc
Normal file
BIN
gestion_produit/__pycache__/models.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/models.cpython-313.pyc
Normal file
BIN
gestion_produit/__pycache__/models.cpython-313.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/tests.cpython-313.pyc
Normal file
BIN
gestion_produit/__pycache__/tests.cpython-313.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/urls.cpython-310.pyc
Normal file
BIN
gestion_produit/__pycache__/urls.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/urls.cpython-313.pyc
Normal file
BIN
gestion_produit/__pycache__/urls.cpython-313.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/views.cpython-310.pyc
Normal file
BIN
gestion_produit/__pycache__/views.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestion_produit/__pycache__/views.cpython-313.pyc
Normal file
BIN
gestion_produit/__pycache__/views.cpython-313.pyc
Normal file
Binary file not shown.
3
gestion_produit/admin.py
Normal file
3
gestion_produit/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin # noqa: F401
|
||||
|
||||
# Register your models here.
|
||||
6
gestion_produit/apps.py
Normal file
6
gestion_produit/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class GestionProduitConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "gestion_produit"
|
||||
104
gestion_produit/forms.py
Normal file
104
gestion_produit/forms.py
Normal file
@@ -0,0 +1,104 @@
|
||||
"""Génération des formulaires pour la gestion des produits."""
|
||||
|
||||
from django import forms
|
||||
from .models import Produit, Categorie, Commander, Demander
|
||||
|
||||
|
||||
class EnregistrementProduit(forms.ModelForm):
|
||||
"""Formulaire pour l'enregistrement d'un produit."""
|
||||
|
||||
class Meta:
|
||||
"""Métadonnées du formulaire."""
|
||||
|
||||
model = Produit
|
||||
fields = (
|
||||
"image",
|
||||
"libelle",
|
||||
"quantite_stock",
|
||||
"conditionnement",
|
||||
"seuil_pre_rupture",
|
||||
"categorie",
|
||||
)
|
||||
widgets = {
|
||||
"libelle": forms.TextInput(attrs={"class": "form-control"}),
|
||||
"quantite_stock": forms.NumberInput(
|
||||
attrs={"class": "form-control"}
|
||||
),
|
||||
"conditionnement": forms.Select(attrs={"class": "form-select"}),
|
||||
"seuil_pre_rupture": forms.NumberInput(
|
||||
attrs={"class": "form-control"}
|
||||
),
|
||||
"categorie": forms.Select(attrs={"class": "form-select"}),
|
||||
}
|
||||
|
||||
|
||||
class EnregistrementCategorie(forms.ModelForm):
|
||||
"""Formulaire pour l'enregistrement d'une catégorie de produit."""
|
||||
|
||||
class Meta:
|
||||
"""Métadonnées du formulaire."""
|
||||
|
||||
model = Categorie
|
||||
fields = ("categorie", )
|
||||
widgets = {
|
||||
"categorie": forms.TextInput(attrs={"class": "form-control"})
|
||||
}
|
||||
|
||||
class CommanderProduit(forms.ModelForm):
|
||||
"""Formulaire pour l'enregistrement d'une commande de produit."""
|
||||
|
||||
class Meta:
|
||||
"""Métadonnées du formulaire."""
|
||||
|
||||
model = Commander
|
||||
fields = (
|
||||
"produit",
|
||||
"fournisseur",
|
||||
"quantite_commander",
|
||||
"prix_achat",
|
||||
"date_commande",
|
||||
"date_livraison",
|
||||
)
|
||||
widgets = {
|
||||
"produit": forms.Select(attrs={"class": "form-select"}),
|
||||
"fournisseur": forms.Select(attrs={"class": "form-select"}),
|
||||
"quantite_commander": forms.NumberInput(
|
||||
attrs={"class": "form-control"}
|
||||
),
|
||||
"prix_achat": forms.NumberInput(attrs={"class": "form-control"}),
|
||||
"date_commande": forms.DateInput(
|
||||
attrs={"class": "form-control", "type": "date"}
|
||||
),
|
||||
"date_livraison": forms.DateInput(
|
||||
attrs={"class": "form-control", "type": "date"}
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
class DemanderProduit(forms.ModelForm):
|
||||
"""Formulaire pour l'enregistrement d'une demande de produit."""
|
||||
|
||||
class Meta:
|
||||
"""Métadonnées du formulaire."""
|
||||
|
||||
model = Demander
|
||||
fields = (
|
||||
"produit",
|
||||
"quantite",
|
||||
"motifs",
|
||||
"date_de_mise_a_dispo_souhaite",
|
||||
"a_rendre",
|
||||
)
|
||||
widgets = {
|
||||
"produit": forms.Select(attrs={"class": "form-select"}),
|
||||
"quantite": forms.NumberInput(attrs={"class": "form-control"}),
|
||||
"motifs": forms.Textarea(
|
||||
attrs={"class": "form-control", "rows": 4}
|
||||
),
|
||||
"date_de_mise_a_dispo_souhaite": forms.DateInput(
|
||||
attrs={"class": "form-control", "type": "date"}
|
||||
),
|
||||
"a_rendre": forms.CheckboxInput(
|
||||
attrs={"class": "form-check-input"}
|
||||
),
|
||||
}
|
||||
78
gestion_produit/migrations/0001_initial.py
Normal file
78
gestion_produit/migrations/0001_initial.py
Normal file
@@ -0,0 +1,78 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-02 12:47
|
||||
|
||||
import datetime
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Categorie',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('categorie', models.CharField(max_length=255, unique=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Fournisseur',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('nom_entreprise', models.CharField(max_length=100, verbose_name="Nom de l'entreprise")),
|
||||
('nom_prenom_representant', models.CharField(max_length=255, verbose_name='Nom et prénom du representant')),
|
||||
('fonction', models.CharField(max_length=20, verbose_name='Fonction du représentant')),
|
||||
('telephone', models.CharField(max_length=25, verbose_name='Téléphone du représentant')),
|
||||
('email', models.EmailField(max_length=254, verbose_name='Adresse e-mail')),
|
||||
('note', models.IntegerField(default=0)),
|
||||
('categorie', models.ManyToManyField(to='gestion_produit.categorie', verbose_name='Catégorie de produit fourni')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Produit',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('libelle', models.CharField(max_length=255, verbose_name='Libellé')),
|
||||
('quantite_stock', models.IntegerField(verbose_name='Quantité actuellement en stock')),
|
||||
('conditionnement', models.CharField(choices=[('boite', 'Boite'), ('paquet', 'Paquet'), ('piece', 'Pièce'), ('rouleau', 'Rouleau'), ('carton', 'Carton')], max_length=255, verbose_name='Conditionnement du produit')),
|
||||
('seuil_pre_rupture', models.IntegerField(verbose_name='Seuil de pré-rupture')),
|
||||
('seuil_rupture', models.IntegerField(verbose_name='Seuil de rupture')),
|
||||
('image', models.ImageField(blank=True, null=True, upload_to='produit_image/')),
|
||||
('categorie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gestion_produit.categorie')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Demander',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('quantite', models.IntegerField(default=1, verbose_name='Quantité demandée')),
|
||||
('motifs', models.TextField(blank=True, null=True, verbose_name='Motif (Facultatif)')),
|
||||
('dateDemande', models.DateField()),
|
||||
('a_rendre', models.BooleanField(default=False)),
|
||||
('rendu', models.BooleanField(default=False)),
|
||||
('date_rendu', models.DateField(blank=True, null=True)),
|
||||
('valider_par_chef', models.BooleanField(default=None, null=True)),
|
||||
('valider_par_logisticien', models.BooleanField(default=None, null=True)),
|
||||
('motif_refus', models.TextField(default=None, null=True)),
|
||||
('livrer', models.BooleanField(default=False)),
|
||||
('produit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gestion_produit.produit')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Commander',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('quantite_commander', models.IntegerField(verbose_name='Quantité à commander')),
|
||||
('date_commande', models.DateField(default=datetime.datetime(2025, 11, 2, 12, 47, 28, 185297, tzinfo=datetime.timezone.utc))),
|
||||
('date_livraison', models.DateField(default=datetime.datetime(2025, 11, 2, 12, 47, 28, 185309, tzinfo=datetime.timezone.utc))),
|
||||
('livrer', models.BooleanField(default=False)),
|
||||
('fournisseur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gestion_produit.fournisseur')),
|
||||
('produit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gestion_produit.produit')),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-06 12:10
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 6, 12, 10, 31, 469244, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 6, 12, 10, 31, 469258, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='demander',
|
||||
name='rendu',
|
||||
field=models.BooleanField(default=None),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-06 12:56
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0002_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 6, 12, 56, 11, 53959, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 6, 12, 56, 11, 53973, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-06 12:57
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0003_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 6, 12, 57, 18, 682229, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 6, 12, 57, 18, 682244, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-06 18:37
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0004_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 6, 18, 37, 57, 520334, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 6, 18, 37, 57, 520350, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-07 09:25
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0005_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 7, 9, 25, 25, 195406, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 7, 9, 25, 25, 195419, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-07 09:25
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0006_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 7, 9, 25, 53, 810991, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 7, 9, 25, 53, 811005, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-07 09:29
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0007_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 7, 9, 29, 48, 732636, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 7, 9, 29, 48, 732652, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-07 17:11
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0008_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 7, 17, 11, 25, 877850, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 7, 17, 11, 25, 877865, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-10 15:17
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0009_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 10, 15, 17, 2, 22479, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 10, 15, 17, 2, 22493, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-11 07:12
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0010_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 11, 7, 12, 38, 131014, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 11, 7, 12, 38, 131028, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-11 20:05
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0011_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 11, 20, 5, 28, 333864, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 11, 20, 5, 28, 333879, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='demander',
|
||||
name='rendu',
|
||||
field=models.BooleanField(blank=True, default=None, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-12 12:03
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0012_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 12, 12, 3, 36, 708709, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 12, 12, 3, 36, 708742, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,36 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-18 09:59
|
||||
|
||||
import datetime
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentification', '0001_initial'),
|
||||
('gestion_produit', '0013_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='demander',
|
||||
name='user',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='authentification.profile'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 18, 9, 58, 56, 150274, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 18, 9, 58, 56, 150300, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='demander',
|
||||
name='motifs',
|
||||
field=models.TextField(verbose_name='Motif'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-21 11:49
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0014_demander_user_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='produit',
|
||||
name='seuil_rupture',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 21, 11, 49, 7, 470405, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 21, 11, 49, 7, 470419, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='demander',
|
||||
name='dateDemande',
|
||||
field=models.DateField(verbose_name='Date de la demande'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-23 10:56
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0015_remove_produit_seuil_rupture_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 10, 56, 56, 731087, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 10, 56, 56, 731101, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-23 13:11
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0016_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 13, 11, 5, 285244, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 13, 11, 5, 285259, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-23 13:12
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0017_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 13, 12, 3, 530224, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 13, 12, 3, 530238, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-23 13:13
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0018_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 13, 12, 59, 980820, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 13, 12, 59, 980834, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-23 13:26
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0019_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 13, 26, 54, 601389, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 13, 26, 54, 601404, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,34 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-23 14:16
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0020_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='commander',
|
||||
name='prix_achat',
|
||||
field=models.IntegerField(default=0, verbose_name="Prix d'achat unitaire :"),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 14, 16, 9, 450472, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 14, 16, 9, 450488, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='quantite_commander',
|
||||
field=models.IntegerField(default=0, verbose_name='Quantité à commander'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,34 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-23 15:07
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0021_commander_prix_achat_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='fournisseur',
|
||||
name='nifp',
|
||||
field=models.FileField(blank=True, null=True, upload_to='fournisseur/nifp/', verbose_name='Le NIFp du fournisseur :'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='fournisseur',
|
||||
name='rccm',
|
||||
field=models.FileField(blank=True, null=True, upload_to='fournisseur/rccm/', verbose_name='Le RCCM du fournisseur :'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 15, 7, 4, 171371, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 23, 15, 7, 4, 171386, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-24 09:27
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0022_fournisseur_nifp_fournisseur_rccm_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 24, 9, 27, 40, 858764, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 24, 9, 27, 40, 858784, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='demander',
|
||||
name='rendu',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,54 @@
|
||||
# Generated by Django 5.2.7 on 2025-11-24 11:17
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0023_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 24, 11, 17, 14, 847774, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 11, 24, 11, 17, 14, 847789, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='prix_achat',
|
||||
field=models.PositiveIntegerField(default=0, verbose_name="Prix d'achat unitaire :"),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='quantite_commander',
|
||||
field=models.PositiveIntegerField(default=1, verbose_name='Quantité à commander'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='demander',
|
||||
name='quantite',
|
||||
field=models.PositiveIntegerField(default=1, verbose_name='Quantité demandée'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='fournisseur',
|
||||
name='note',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='produit',
|
||||
name='quantite_stock',
|
||||
field=models.PositiveIntegerField(verbose_name='Quantité actuellement en stock'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='produit',
|
||||
name='seuil_pre_rupture',
|
||||
field=models.PositiveIntegerField(verbose_name='Seuil de pré-rupture'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.7 on 2025-12-09 11:08
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0024_alter_commander_date_commande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='demander',
|
||||
name='dateDemande',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='demander',
|
||||
name='dateDeMiseADispoSouhaite',
|
||||
field=models.DateField(default=datetime.datetime(2025, 12, 9, 11, 8, 12, 53828, tzinfo=datetime.timezone.utc), verbose_name='Date de mise à disposition souhaitée'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 12, 9, 11, 8, 12, 54763, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 12, 9, 11, 8, 12, 54774, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,38 @@
|
||||
# Generated by Django 5.2.7 on 2025-12-10 15:28
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0025_remove_demander_datedemande_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='demander',
|
||||
name='dateDeMiseADispoSouhaite',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='demander',
|
||||
name='date_de_mise_a_dispo_souhaite',
|
||||
field=models.DateField(default=datetime.datetime(2025, 12, 10, 15, 28, 12, 902256, tzinfo=datetime.timezone.utc), verbose_name='Date de mise à disposition souhaitée'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=datetime.datetime(2025, 12, 10, 15, 28, 12, 903193, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=datetime.datetime(2025, 12, 10, 15, 28, 12, 903203, tzinfo=datetime.timezone.utc)),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='demander',
|
||||
name='motif_refus',
|
||||
field=models.TextField(blank=True, default=''),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 5.2.8 on 2025-12-19 09:39
|
||||
|
||||
import django.utils.timezone
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gestion_produit', '0026_remove_demander_datedemiseadisposouhaite_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_commande',
|
||||
field=models.DateField(default=django.utils.timezone.now),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='commander',
|
||||
name='date_livraison',
|
||||
field=models.DateField(default=django.utils.timezone.now),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='demander',
|
||||
name='date_de_mise_a_dispo_souhaite',
|
||||
field=models.DateField(default=django.utils.timezone.now, verbose_name='Date de mise à disposition souhaitée'),
|
||||
),
|
||||
]
|
||||
0
gestion_produit/migrations/__init__.py
Normal file
0
gestion_produit/migrations/__init__.py
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user