Final de creación de Módulos de Reportes. Se procede a testeos y ordenamientos...
This commit is contained in:
		| @@ -0,0 +1,6 @@ | ||||
| export interface BalanceCuentaDebCredDto { | ||||
|   fecha: string; | ||||
|   referencia?: string; | ||||
|   debe: number; | ||||
|   haber: number; | ||||
| } | ||||
							
								
								
									
										10
									
								
								Frontend/src/models/dtos/Reportes/BalanceCuentaDistDto.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Frontend/src/models/dtos/Reportes/BalanceCuentaDistDto.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| export interface BalanceCuentaDistDto { | ||||
|   fecha: string; | ||||
|   publicacion: string; | ||||
|   distribuidor: string; | ||||
|   cantidad: number; | ||||
|   remito: string; | ||||
|   observacion?: string; | ||||
|   debe: number; | ||||
|   haber: number; | ||||
| } | ||||
| @@ -0,0 +1,8 @@ | ||||
| export interface BalanceCuentaPagosDto { | ||||
|   fecha: string; | ||||
|   recibo: number; | ||||
|   tipo: string; | ||||
|   debe: number; | ||||
|   haber: number; | ||||
|   detalle?: string; | ||||
| } | ||||
| @@ -0,0 +1,9 @@ | ||||
| export interface ComparativaConsumoBobinasDto { | ||||
|   tipoBobina: string; | ||||
|   bobinasUtilizadasMesA: number; | ||||
|   bobinasUtilizadasMesB: number; | ||||
|   diferenciaBobinasUtilizadas: number; | ||||
|   kilosUtilizadosMesA: number; | ||||
|   kilosUtilizadosMesB: number; | ||||
|   diferenciaKilosUtilizados: number; | ||||
| } | ||||
| @@ -0,0 +1,6 @@ | ||||
| export interface ConsumoBobinasPublicacionDto { | ||||
|   nombrePlanta: string; | ||||
|   nombrePublicacion: string; | ||||
|   totalKilos: number; | ||||
|   cantidadBobinas: number; | ||||
| } | ||||
| @@ -0,0 +1,7 @@ | ||||
| export interface ConsumoBobinasSeccionDto { | ||||
|   nombrePublicacion: string; | ||||
|   nombreSeccion: string; | ||||
|   nombreBobina: string; | ||||
|   cantidadBobinas: number; | ||||
|   totalKilos: number; | ||||
| } | ||||
| @@ -0,0 +1,10 @@ | ||||
| export interface ControlDevolucionesReporteDto { | ||||
|   ingresados: number; | ||||
|   sobrantes: number; | ||||
|   publicacion: string; | ||||
|   llevados: number; | ||||
|   devueltos: number; | ||||
|   tipo: string; // "Accionistas" o "Canillitas" | ||||
|   totalNoAccionistas: number; | ||||
|   sinCargo: number; | ||||
| } | ||||
| @@ -0,0 +1,7 @@ | ||||
| export interface DetalleDistribucionCanillaAllDto { | ||||
|   publicacion: string; | ||||
|   totalCantSalida: number; | ||||
|   totalCantEntrada: number; | ||||
|   totalRendir: number; | ||||
|   tipoVendedor: string; | ||||
| } | ||||
| @@ -0,0 +1,8 @@ | ||||
| export interface DetalleDistribucionCanillaDto { | ||||
|   publicacion: string; | ||||
|   canilla: string; | ||||
|   totalCantSalida: number; | ||||
|   totalCantEntrada: number; | ||||
|   totalRendir: number; | ||||
|   fecha?: string | null; // Opcional y nullable para adaptarse al backend | ||||
| } | ||||
| @@ -0,0 +1,3 @@ | ||||
| export interface DevueltosOtrosDiasDto { | ||||
|   devueltos: number; | ||||
| } | ||||
| @@ -0,0 +1,8 @@ | ||||
| export interface ListadoDistribucionCanillasImporteDto { | ||||
|   fecha: string; // SP devuelve FORMAT(..., 'dd/MM/yyyy') | ||||
|   llevados: number; | ||||
|   devueltos: number; | ||||
|   vendidos: number; | ||||
|   totalRendirPublicacion: number; // decimal en BD | ||||
|   totalRendirGeneral: number;     // decimal en BD | ||||
| } | ||||
| @@ -0,0 +1,3 @@ | ||||
| export interface ObtenerCtrlDevolucionesDto { | ||||
|   remito: number; | ||||
| } | ||||
| @@ -0,0 +1,14 @@ | ||||
| import type { BalanceCuentaDebCredDto } from "./BalanceCuentaDebCredDto"; | ||||
| import type { BalanceCuentaDistDto } from "./BalanceCuentaDistDto"; | ||||
| import type { BalanceCuentaPagosDto } from "./BalanceCuentaPagosDto"; | ||||
| import type { SaldoDto } from "./SaldoDto"; | ||||
|  | ||||
| export interface ReporteCuentasDistribuidorResponseDto { | ||||
|   entradasSalidas: BalanceCuentaDistDto[]; | ||||
|   debitosCreditos: BalanceCuentaDebCredDto[]; | ||||
|   pagos: BalanceCuentaPagosDto[]; | ||||
|   saldos: SaldoDto[]; // Aunque SP_BalanceCuentSaldos devuelve una lista, para un distribuidor/empresa debería ser 1 solo. | ||||
|                       // Se podría ajustar el DTO o el servicio para devolver solo el primer saldo. | ||||
|   nombreDistribuidor?: string; // Para el título del reporte | ||||
|   nombreEmpresa?: string;    // Para el título del reporte | ||||
| } | ||||
| @@ -0,0 +1,13 @@ | ||||
| import type { BalanceCuentaDebCredDto } from "./BalanceCuentaDebCredDto"; | ||||
| import type { BalanceCuentaDistDto } from "./BalanceCuentaDistDto"; | ||||
| import type { BalanceCuentaPagosDto } from "./BalanceCuentaPagosDto"; | ||||
| import type { SaldoDto } from "./SaldoDto"; | ||||
|  | ||||
| export interface ReporteCuentasDistribuidorResponseDto { | ||||
|   entradasSalidas: BalanceCuentaDistDto[]; | ||||
|   debitosCreditos: BalanceCuentaDebCredDto[]; | ||||
|   pagos: BalanceCuentaPagosDto[]; | ||||
|   saldos: SaldoDto[]; | ||||
|   nombreDistribuidor?: string; | ||||
|   nombreEmpresa?: string; | ||||
| } | ||||
| @@ -0,0 +1,17 @@ | ||||
| import type { DetalleDistribucionCanillaDto } from './DetalleDistribucionCanillaDto'; | ||||
| import type { DetalleDistribucionCanillaAllDto } from './DetalleDistribucionCanillaAllDto'; | ||||
| import type { ObtenerCtrlDevolucionesDto } from './ObtenerCtrlDevolucionesDto'; | ||||
| import type { ControlDevolucionesReporteDto } from './ControlDevolucionesReporteDto'; | ||||
| import type { DevueltosOtrosDiasDto } from './DevueltosOtrosDiasDto'; | ||||
|  | ||||
|  | ||||
| export interface ReporteDistribucionCanillasResponseDto { | ||||
|   canillas: DetalleDistribucionCanillaDto[]; | ||||
|   canillasAccionistas: DetalleDistribucionCanillaDto[]; | ||||
|   canillasTodos: DetalleDistribucionCanillaAllDto[]; | ||||
|   canillasLiquidadasOtraFecha: DetalleDistribucionCanillaDto[]; | ||||
|   canillasAccionistasLiquidadasOtraFecha: DetalleDistribucionCanillaDto[]; | ||||
|   controlDevolucionesRemitos: ObtenerCtrlDevolucionesDto[]; | ||||
|   controlDevolucionesDetalle: ControlDevolucionesReporteDto[]; | ||||
|   controlDevolucionesOtrosDias: DevueltosOtrosDiasDto[]; | ||||
| } | ||||
							
								
								
									
										3
									
								
								Frontend/src/models/dtos/Reportes/SaldoDto.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								Frontend/src/models/dtos/Reportes/SaldoDto.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| export interface SaldoDto { | ||||
|   monto: number; | ||||
| } | ||||
| @@ -0,0 +1,8 @@ | ||||
| export interface TiradasPublicacionesSeccionesDto { | ||||
|   nombreSeccion: string; | ||||
|   totalPaginasImpresas: number; | ||||
|   cantidadTiradas: number; | ||||
|   totalPaginasEjemplares: number; | ||||
|   totalEjemplares: number; | ||||
|   promedioPaginasPorEjemplar: number; | ||||
| } | ||||
| @@ -0,0 +1,9 @@ | ||||
| export interface VentaMensualSecretariaElDiaDto { | ||||
|   dia: number; | ||||
|   cantidadCanillas: number; | ||||
|   tirajes: number; | ||||
|   ventas: number; | ||||
|   accionistas: number; | ||||
|   totalCooperativa: number; | ||||
|   totalGeneral: number; | ||||
| } | ||||
| @@ -0,0 +1,9 @@ | ||||
| export interface VentaMensualSecretariaElPlataDto { | ||||
|   dia: number; | ||||
|   tiradaCoop: number; | ||||
|   devolucionCoop: number; | ||||
|   ventaCoop: number; | ||||
|   tiradaCan: number; | ||||
|   ventaCan: number; | ||||
|   total: number; | ||||
| } | ||||
| @@ -0,0 +1,16 @@ | ||||
| export interface VentaMensualSecretariaTirDevoDto { | ||||
|   dia: number; | ||||
|   tiradaCoop: number; | ||||
|   devolucionCoop: number; | ||||
|   ventaCoop: number; | ||||
|   ventaCan: number; | ||||
|   tiradaPopular: number; | ||||
|   devolucionPopular: number; | ||||
|   ventaPopular: number; | ||||
|   tiradaClarin: number; | ||||
|   devolucionClarin: number; | ||||
|   ventaClarin: number; | ||||
|   tiradaNacion: number; | ||||
|   devolucionNacion: number; | ||||
|   ventaNacion: number; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user