From 0141e811cfd7a3ff40a32a6c35b82773cfdfab96 Mon Sep 17 00:00:00 2001 From: Yann ASTIER Date: Tue, 6 May 2025 11:38:44 +0200 Subject: [PATCH] StockEntry should be removed due to the fact that it will be only modified by the movement of the stock --- MauiAppStock/Views/AddPiecePage.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MauiAppStock/Views/AddPiecePage.xaml.cs b/MauiAppStock/Views/AddPiecePage.xaml.cs index 5222abc..c6de56c 100644 --- a/MauiAppStock/Views/AddPiecePage.xaml.cs +++ b/MauiAppStock/Views/AddPiecePage.xaml.cs @@ -35,9 +35,9 @@ namespace MauiAppStock.Views Nom = NomEntry.Text, Description = DescriptionEditor.Text, Prix = prix, - Stock = stock, + Stock = 0 // Appareil = appareilPicked.Id, Exemple pour fournisseur - Fournisseur = FournisseurEntry.Text + //Fournisseur = FournisseurEntry.Text }; await Database.AddPieceAsync(piece); await Navigation.PopAsync();