refactor(models): remove prix_unitaire_ht from line item models
This commit is contained in:
parent
1240a118e5
commit
3511b000d5
1 changed files with 0 additions and 14 deletions
14
api.py
14
api.py
|
|
@ -346,7 +346,6 @@ class ArticleResponse(BaseModel):
|
|||
class LigneDevis(BaseModel):
|
||||
article_code: str
|
||||
quantite: float
|
||||
prix_unitaire_ht: Optional[float] = None
|
||||
remise_pourcentage: Optional[float] = 0.0
|
||||
|
||||
@field_validator("article_code", mode="before")
|
||||
|
|
@ -597,7 +596,6 @@ class LigneCommande(BaseModel):
|
|||
|
||||
article_code: str
|
||||
quantite: float
|
||||
prix_unitaire_ht: Optional[float] = None
|
||||
remise_pourcentage: Optional[float] = 0.0
|
||||
|
||||
@field_validator("article_code", mode="before")
|
||||
|
|
@ -667,7 +665,6 @@ class LigneLivraison(BaseModel):
|
|||
|
||||
article_code: str
|
||||
quantite: float
|
||||
prix_unitaire_ht: Optional[float] = None
|
||||
remise_pourcentage: Optional[float] = 0.0
|
||||
|
||||
@field_validator("article_code", mode="before")
|
||||
|
|
@ -737,7 +734,6 @@ class LigneAvoir(BaseModel):
|
|||
|
||||
article_code: str
|
||||
quantite: float
|
||||
prix_unitaire_ht: Optional[float] = None
|
||||
remise_pourcentage: Optional[float] = 0.0
|
||||
|
||||
@field_validator("article_code", mode="before")
|
||||
|
|
@ -807,7 +803,6 @@ class LigneFacture(BaseModel):
|
|||
|
||||
article_code: str
|
||||
quantite: float
|
||||
prix_unitaire_ht: Optional[float] = None
|
||||
remise_pourcentage: Optional[float] = 0.0
|
||||
|
||||
@field_validator("article_code", mode="before")
|
||||
|
|
@ -1940,7 +1935,6 @@ async def modifier_devis(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in devis_update.lignes
|
||||
|
|
@ -1993,7 +1987,6 @@ async def creer_commande(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in commande.lignes
|
||||
|
|
@ -2043,7 +2036,6 @@ async def modifier_commande(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in commande_update.lignes
|
||||
|
|
@ -3159,7 +3151,6 @@ async def creer_facture(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in facture.lignes
|
||||
|
|
@ -3209,7 +3200,6 @@ async def modifier_facture(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in facture_update.lignes
|
||||
|
|
@ -3775,7 +3765,6 @@ async def creer_avoir(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in avoir.lignes
|
||||
|
|
@ -3825,7 +3814,6 @@ async def modifier_avoir(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in avoir_update.lignes
|
||||
|
|
@ -3911,7 +3899,6 @@ async def creer_livraison(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in livraison.lignes
|
||||
|
|
@ -3961,7 +3948,6 @@ async def modifier_livraison(
|
|||
{
|
||||
"article_code": l.article_code,
|
||||
"quantite": l.quantite,
|
||||
"prix_unitaire_ht": l.prix_unitaire_ht,
|
||||
"remise_pourcentage": l.remise_pourcentage,
|
||||
}
|
||||
for l in livraison_update.lignes
|
||||
|
|
|
|||
Loading…
Reference in a new issue