feat: UI completa funcional para todos los módulos
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user