estoy cansado hay que hacer el tema de las categorias y las controladoras de productospercederos y no percederos

This commit is contained in:
fedpo
2024-08-22 05:41:35 +01:00
parent 566bfe57c0
commit 670190c44b
28 changed files with 150 additions and 83 deletions

View File

@@ -4,6 +4,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using System.Threading.Tasks;
@@ -17,6 +18,15 @@ namespace Controladora
repositorioLotes = new(new Context());
}
public string AltaStock(Remito t)
{
if (t == null) return "Esta Mal Cargado";
repositorioLotes.Add(t);
return repositorioLotes.Guardar() ?
"Se Cargo Correctamente" :
"Fallo la Carga";
}
public string DisminuirStock(ReadOnlyCollection<DetalleFactura> detalleFactura)
{
var ret = false;