From d158941843f4016a4c252c2af27cdb323996b3f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=A9o=20Hersan?= Date: Tue, 31 Oct 2023 19:00:35 +0100 Subject: [PATCH] fixed delete article MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathéo Hersan --- app | Bin 52816 -> 52880 bytes src/app/core_logic/client.c | 87 ++++++++++----------------- src/app/core_logic/client.h | 33 +++++----- src/app/interface/interface_client.c | 78 +++++++++++++++++++----- src/app/interface/interface_client.h | 25 ++++++++ 5 files changed, 133 insertions(+), 90 deletions(-) diff --git a/app b/app index 1e4860e1386ae6643b084d4bedaf449c41a8dfc8..e0e5f5cbc0ae7e39dceac6274871cd7596809b66 100755 GIT binary patch delta 5238 zcmZ8l30zdy^}hGL8D@q>P%$iH009LwAcCME%fP5C3Zl5x2*U^?PDDVKM4}B7F;F-eR{UCN0ZM(+Me_D9E82V2szQ|zK zSm)n&Lcxad?3iMAj%Obz_Rb0HsAA`Yup^4C4P}QV+qa(dgtB)PM|~J;Lc6if)b|HC z6fueZ9xg}d=?-`hQAn#{{$zhz32P_6H9?fzH<4u_8}sXVk0-2&=Prj*(l7cFCbEnX zkRSUDjmK(ZJ?ba1>Bzl5G~^}lCu5-(*dje>93L zgV?WNT=Zn_GiO*3{TsRjx}($REC`$GPZJ?yYKTuX(nV@P6pK{sEm15SwoX03soWqU z#+MF4MobXxg*7pH`T(|~eFxr0`xbnH_EmTg|CUAG`jXMn^7TLK;OMrtw3_i}j-K!M<28cr#Y(_6~BDH15Mv?=fD6 z_U_S!{*A7-1zkFvDx*oeV>Dcf_09P$az|rIg#q2ioBHSZKsi_rIM?z;Z{BpIzF2$wN(Si(NnfH(z$!sK6=$0p2fUv&02y<0})a8ji9UesM z3J=rt@XPoR`VhLOd%^K|ZTNi`DTo;04#ymb1yv4AozRQn0q(%J@kV+SKL@(I-cxVTz^|arntUE}{{#8kthcnq8^HiA) z%ObH%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}9j; zkV8sKNu`N=th5za3;Dv`Ks&uhcsu=<1uw-Gdw#KHiKS4sSnpyju~t~kYpvy&47uJe zO5%Kv-_~_vnEP__sS6%b=mDI|NV?I$ld9`K6w17ISfu}Qc~aeiC)IuELO3zq$zmhj zcd@R+FgL5PWR>eJMP_>e`O2lTwA4EYDz=yl(3r+d&SFiP6a^OYlcH#?ZH;-YiGXq)`5BW-8ePiCaaD!ghW_j(Ye|7+ zgNfYY?;pPUSDmI#TH`UGggfUFG&fW?6f?GQjT}UrA6u7)5+U#1lwYqPTEMBD7|R_;U&O z!@cwRB^7hTRadmlhgtlri22{uJPuwd;z<(T5+UM536o_aUM^wx99VfFaKfe;;xdz# zPe^8(WZG)jcOlTbc$P?WO3O8i;WF+%hEIvOLheh;t=S^}S;CFagWJVGu6G4Yz8F}Y zyz@OCRH`vzZI~)O-YxbM{zQ_Lh z!p)N}k+PpEj`kW`Y%BjhbK|84e?C3s-OkJ@UF};(w{0?1|0{iGYmGT&%BE1f1A%gBfkw>y7Oa?of+c}JkzuCR4dhwy_=OE^8Y&u B-Bthq diff --git a/src/app/core_logic/client.c b/src/app/core_logic/client.c index 171c08b..e2ffba0 100644 --- a/src/app/core_logic/client.c +++ b/src/app/core_logic/client.c @@ -105,70 +105,47 @@ int trouver_index_client(int numeroClient, int numeros[], int nombreClients) { return -1; // Retourne -1 si le client n'est pas trouvé } - - /** - * @brief Affiche un récapitulatif du contenu du panier. - * - * Cette fonction permet d'afficher un récapitulatif détaillé du contenu du panier du client, y compris les références des articles, - * les quantités, les poids, les volumes, les prix unitaires, les totaux de poids, de volume, de prix, et la cagnotte du client. - * - * @param panier - Tableau des références des articles dans le panier. - * @param taillePanier - Taille du panier. - * @param references - Tableau des références des articles. - * @param poids - Tableau des poids des articles. - * @param volume - Tableau des volumes des articles. - * @param prixUnitaire - Tableau des prix unitaires des articles. - * @param quantites - Tableau des quantités de chaque article dans le panier. - * @param cagnottes - Tableau des cagnottes des clients. - * @param numeroClient - Numéro du client. - * @param numeros - Tableau des numéros de clients. - * @param nombreClients - Nombre de clients. - * @param volumeCoffre - Volume total du coffre. - * @param chargeMaximale - Charge maximale du coffre. + * @brief Supprime un article du panier du client. + * + * Cette fonction permet de supprimer un article du panier du client tout en metant a jour la cagnotte. + * + * @param panier + * @param quantites + * @param taillePanier + * @param reference + * @param numeroClient + * @param numeros + * @param nombreClients + * @param references + * @param prixUnitaire + * @param cagnottes */ -void affiche_recap_panier(int panier[], int taillePanier, int references[], float poids[], float volume[], - float prixUnitaire[], int quantites[], float cagnottes[], int numeroClient, - int numeros[], int nombreClients, float volumeCoffre, float chargeMaximale) { - printf("Contenu du panier : "); - for (int i = 0; i < taillePanier; i++) { - printf("%d ", panier[i]); +void supprimer_article(int panier[], int quantites[], int *taillePanier, int reference, int numeroClient, int numeros[], int nombreClients, int references[], float prixUnitaire[], float cagnottes[]) { + int articleIndex = trouver_index_article(reference, references, MAX_ARTICLES); + int quantite = 0; + for (int i = 0; i < *taillePanier; i++) { + if (panier[i] == reference) { + quantite = quantites[i]; + for (int j = i; j < *taillePanier - 1; j++) { + panier[j] = panier[j + 1]; + quantites[j] = quantites[j + 1]; + } + break; + } } - printf("\n"); - - printf("Récap :\n"); - printf("Réf Qté Poids Vol PrixU PoidsTot VolTot PrixTot\n"); - - float poidsTotal = 0, volumeTotal = 0, montantTotal = 0; - for (int i = 0; i < taillePanier; i++) { - int reference = panier[i]; - int articleIndex = trouver_index_article(reference, references, MAX_ARTICLES); - - float poidsArticle = poids[articleIndex]; - float volumeArticle = volume[articleIndex]; - float prixArticle = prixUnitaire[articleIndex]; - int quantite = quantites[i]; - - printf("%d\t %d\t %.2f\t %.2f\t %.2f\t %.2f\t %.2f\t %.2f\n", - reference, quantite, poidsArticle, volumeArticle, - prixArticle, poidsArticle * quantite, volumeArticle * quantite, prixArticle * quantite); - - poidsTotal += poidsArticle * quantite; - volumeTotal += volumeArticle * quantite; - montantTotal += prixArticle * quantite; - } + (*taillePanier)--; int clientIndex = trouver_index_client(numeroClient, numeros, nombreClients); + if (clientIndex != -1) { + float montantTotal = prixUnitaire[articleIndex] * quantite; + cagnottes[clientIndex] -= 0.1 * montantTotal; + } - printf("Prix total à payer: %.2f euros\n", montantTotal); - printf("Cagnotte totale : %.2f euros\n", cagnottes[clientIndex]); - printf("Volume utilise : %.2f litres\n", volumeTotal); - printf("Volume restant : %.2f litres\n", volumeCoffre - volumeTotal); - printf("Charge Actuelle: %.2f kg\n", poidsTotal); - printf("Charge restante: %.2f kg\n", chargeMaximale - poidsTotal); } + /** * @brief Modifie la quantité d'un article dans le panier du client. * diff --git a/src/app/core_logic/client.h b/src/app/core_logic/client.h index 20941fb..06a4448 100644 --- a/src/app/core_logic/client.h +++ b/src/app/core_logic/client.h @@ -37,28 +37,23 @@ void sauvegarde_clients(int numeros[], float cagnottes[], int suspendus[], int n /** - * @brief Affiche un récapitulatif du contenu du panier. + * @brief Supprime un article du panier du client. * - * Cette fonction permet d'afficher un récapitulatif détaillé du contenu du panier du client, y compris les références des articles, - * les quantités, les poids, les volumes, les prix unitaires, les totaux de poids, de volume, de prix, et la cagnotte du client. + * Cette fonction permet de supprimer un article du panier du client tout en metant a jour la cagnotte. * - * @param panier - Tableau des références des articles dans le panier. - * @param taillePanier - Taille du panier. - * @param references - Tableau des références des articles. - * @param poids - Tableau des poids des articles. - * @param volume - Tableau des volumes des articles. - * @param prixUnitaire - Tableau des prix unitaires des articles. - * @param quantites - Tableau des quantités de chaque article dans le panier. - * @param cagnottes - Tableau des cagnottes des clients. - * @param numeroClient - Numéro du client. - * @param numeros - Tableau des numéros de clients. - * @param nombreClients - Nombre de clients. - * @param volumeCoffre - Volume total du coffre. - * @param chargeMaximale - Charge maximale du coffre. + * @param panier + * @param quantites + * @param taillePanier + * @param reference + * @param numeroClient + * @param numeros + * @param nombreClients + * @param references + * @param prixUnitaire + * @param cagnottes */ -void affiche_recap_panier(int panier[], int taillePanier, int references[], float poids[], float volume[], - float prixUnitaire[], int quantites[], float cagnottes[], int numeroClient, - int numeros[], int nombreClients, float volumeCoffre, float chargeMaximale); +void supprimer_article(int panier[], int quantites[], int *taillePanier, int reference, int numeroClient, int numeros[], int nombreClients, int references[], float prixUnitaire[], float cagnottes[]); + /** * @brief Modifie la quantité d'un article dans le panier du client. * diff --git a/src/app/interface/interface_client.c b/src/app/interface/interface_client.c index 1097bd3..d625b34 100644 --- a/src/app/interface/interface_client.c +++ b/src/app/interface/interface_client.c @@ -183,27 +183,73 @@ void supprimer_article_du_panier(int panier[], int quantites[], int *taillePanie return; } - int quantite = 0; - for (int i = 0; i < *taillePanier; i++) { - if (panier[i] == reference) { - quantite = quantites[i]; - for (int j = i; j < *taillePanier - 1; j++) { - panier[j] = panier[j + 1]; - quantites[j] = quantites[j + 1]; - } - break; - } + supprimer_article(panier, quantites, taillePanier, reference, numeroClient, numeros, nombreClients, references, prixUnitaire, cagnottes); + + + printf("Article supprimé du panier avec succès.\n"); +} + + +/** + * @brief Affiche un récapitulatif du contenu du panier. + * + * Cette fonction permet d'afficher un récapitulatif détaillé du contenu du panier du client, y compris les références des articles, + * les quantités, les poids, les volumes, les prix unitaires, les totaux de poids, de volume, de prix, et la cagnotte du client. + * + * @param panier - Tableau des références des articles dans le panier. + * @param taillePanier - Taille du panier. + * @param references - Tableau des références des articles. + * @param poids - Tableau des poids des articles. + * @param volume - Tableau des volumes des articles. + * @param prixUnitaire - Tableau des prix unitaires des articles. + * @param quantites - Tableau des quantités de chaque article dans le panier. + * @param cagnottes - Tableau des cagnottes des clients. + * @param numeroClient - Numéro du client. + * @param numeros - Tableau des numéros de clients. + * @param nombreClients - Nombre de clients. + * @param volumeCoffre - Volume total du coffre. + * @param chargeMaximale - Charge maximale du coffre. + */ +void affiche_recap_panier(int panier[], int taillePanier, int references[], float poids[], float volume[], + float prixUnitaire[], int quantites[], float cagnottes[], int numeroClient, + int numeros[], int nombreClients, float volumeCoffre, float chargeMaximale) { + printf("Contenu du panier : "); + for (int i = 0; i < taillePanier; i++) { + printf("%d ", panier[i]); } + printf("\n"); - (*taillePanier)--; + printf("Récap :\n"); + printf("Réf Qté Poids Vol PrixU PoidsTot VolTot PrixTot\n"); - int clientIndex = trouver_index_client(numeroClient, numeros, nombreClients); - if (clientIndex != -1) { - float montantTotal = prixUnitaire[articleIndex] * quantite; - cagnottes[clientIndex] -= 0.1 * montantTotal; // Retirer 10% du montant + float poidsTotal = 0, volumeTotal = 0, montantTotal = 0; + + for (int i = 0; i < taillePanier; i++) { + int reference = panier[i]; + int articleIndex = trouver_index_article(reference, references, MAX_ARTICLES); + + float poidsArticle = poids[articleIndex]; + float volumeArticle = volume[articleIndex]; + float prixArticle = prixUnitaire[articleIndex]; + int quantite = quantites[i]; + + printf("%d\t %d\t %.2f\t %.2f\t %.2f\t %.2f\t %.2f\t %.2f\n", + reference, quantite, poidsArticle, volumeArticle, + prixArticle, poidsArticle * quantite, volumeArticle * quantite, prixArticle * quantite); + + poidsTotal += poidsArticle * quantite; + volumeTotal += volumeArticle * quantite; + montantTotal += prixArticle * quantite; } - printf("Article supprimé du panier avec succès.\n"); + int clientIndex = trouver_index_client(numeroClient, numeros, nombreClients); + + printf("Prix total à payer: %.2f euros\n", montantTotal); + printf("Cagnotte totale : %.2f euros\n", cagnottes[clientIndex]); + printf("Volume utilise : %.2f litres\n", volumeTotal); + printf("Volume restant : %.2f litres\n", volumeCoffre - volumeTotal); + printf("Charge Actuelle: %.2f kg\n", poidsTotal); + printf("Charge restante: %.2f kg\n", chargeMaximale - poidsTotal); } /** diff --git a/src/app/interface/interface_client.h b/src/app/interface/interface_client.h index 66985b2..6e15306 100644 --- a/src/app/interface/interface_client.h +++ b/src/app/interface/interface_client.h @@ -60,6 +60,31 @@ void ajouter_article_au_panier(int numeroClient, int references[], float poids[] void supprimer_article_du_panier(int panier[], int quantites[], int *taillePanier, float cagnottes[], int numeroClient, int numeros[], int nombreClients, int references[], float prixUnitaire[]); +/** + * @brief Affiche un récapitulatif du contenu du panier. + * + * Cette fonction permet d'afficher un récapitulatif détaillé du contenu du panier du client, y compris les références des articles, + * les quantités, les poids, les volumes, les prix unitaires, les totaux de poids, de volume, de prix, et la cagnotte du client. + * + * @param panier - Tableau des références des articles dans le panier. + * @param taillePanier - Taille du panier. + * @param references - Tableau des références des articles. + * @param poids - Tableau des poids des articles. + * @param volume - Tableau des volumes des articles. + * @param prixUnitaire - Tableau des prix unitaires des articles. + * @param quantites - Tableau des quantités de chaque article dans le panier. + * @param cagnottes - Tableau des cagnottes des clients. + * @param numeroClient - Numéro du client. + * @param numeros - Tableau des numéros de clients. + * @param nombreClients - Nombre de clients. + * @param volumeCoffre - Volume total du coffre. + * @param chargeMaximale - Charge maximale du coffre. + */ + +void affiche_recap_panier(int panier[], int taillePanier, int references[], float poids[], float volume[], + float prixUnitaire[], int quantites[], float cagnottes[], int numeroClient, + int numeros[], int nombreClients, float volumeCoffre, float chargeMaximale); + /** * @brief Affiche le récapitulatif du panier. *