feat: UI completa funcional para todos los módulos

This commit is contained in:
mono
2026-10-24 22:57:04 -05:00
parent c81ef268ff
commit 27b084dd52
21 changed files with 461 additions and 121 deletions

View File

@@ -1,5 +1,5 @@
import { db } from '@toldo/data';
import type { Ajuste, MovimientoInventario } from '@toldo/core';
import type { Ajuste } from '@toldo/core';
import { validateAjusteMotivo } from '@toldo/core';
export class AjustesService {

View File

@@ -11,7 +11,7 @@ export class InventarioService {
cantidad,
createdAt: new Date()
};
return db.movimientosInventario.add(mov.id, mov);
return db.movimientosInventario.add(mov);
}
async registrarIngresoSemana(productoId: string, cantidad: number, fecha: Date, recibidoPor: string) {
@@ -24,7 +24,7 @@ export class InventarioService {
recibidoPor,
createdAt: new Date()
};
return db.movimientosInventario.add(mov.id, mov);
return db.movimientosInventario.add(mov);
}
async calcularSaldoProducto(productoId: string): Promise<number> {