Crear referencias sin pedimento para generar cargos tipo OT

feature/Creacion_Referencias_Sin_Pedimento_20240229
Felix Morales 7 months ago
parent 4516a632da
commit b506b818bb
  1. 9
      src/Classes/Corresponsales/CCorresponsalesTrafico.ts
  2. 30
      src/Components/Clientes/Traficos/TraficoCliente.tsx
  3. 522
      src/Components/Corresponsales/TraficoCorresponsales.tsx
  4. 2
      src/DTO/Corresponsales/DTOTraficoCompleto.ts
  5. 1
      src/Interfaces/Corresponsales/ICorresponsalTrafico.ts
  6. 3
      src/store/features/Corresponsales/CorresponsalesTraficoSlice.ts

@ -48,7 +48,7 @@ export default class CCorresponsalesTrafico implements ICorresponsalTrafico {
totalHonorariosAA: number;
totalGastosTerceros: number;
tieneSolicitud: number;
pedimentoObligatorio: number;
constructor() {
this.id=0
this.folioGemco=''
@ -97,6 +97,7 @@ export default class CCorresponsalesTrafico implements ICorresponsalTrafico {
this.totalHonorariosAA = 0
this.totalGastosTerceros = 0
this.tieneSolicitud = 0
this.pedimentoObligatorio = 1
}
public getEmptyObject(): ICorresponsalTrafico {
@ -147,7 +148,8 @@ export default class CCorresponsalesTrafico implements ICorresponsalTrafico {
causaRectificacion: '',
totalHonorariosAA: 0,
totalGastosTerceros: 0,
tieneSolicitud: 0
tieneSolicitud: 0,
pedimentoObligatorio: 1
}
}
@ -199,7 +201,8 @@ export default class CCorresponsalesTrafico implements ICorresponsalTrafico {
causaRectificacion: data.causaRectificacion,
totalHonorariosAA: data.totalHonorariosAA,
totalGastosTerceros: data.totalGastosTerceros,
tieneSolicitud: data.tieneSolicitud
tieneSolicitud: data.tieneSolicitud,
pedimentoObligatorio: data.pedimentoObligatorio
}
}
}

@ -1151,36 +1151,6 @@ export default function TraficoCliente(props:IProps){
//}
}
const cerrarTrafico = () => {
if(TotalHonorariosAA == 0){
setHeader('Error')
setMsg('Para cerrar la cuenta debe capturar el total de horarios')
setShowMsg(true)
return;
}
saveForm();
FileManagerServices.GetClientesZip(IDTrafico)
.then(response => {
CTrafDataService.ValidateComplete({id: IDTrafico, idUsuario:UserId, estatus: 4, comentarios:'Todo Correcto'})
.then(resp => {
setProceso(4);
setHeader('Informativo')
setMsg('Cuenta cerrada con éxito.')
setShowMsg(true)
}).catch(e => {
setHeader('Error')
setMsg('Ocurrio un error al cerrar la cuenta. Favor de intentarlo nuevamente')
setShowMsg(true)
});
}).catch(error => {
setHeader('Error')
setMsg('No se han encontrado uno o más de los archivos obligatorios para cerrar la cuenta.')
setShowMsg(true)
return
})
}
const GetClientesZip = () => {
FileManagerServices.GetClientesZip(IDTrafico)
.then(response => {

@ -349,8 +349,6 @@ export default function TraficoCorresponsales (props:IProps) {
const [EncabezadoPedimento1, setEncabezadoPedimento1] = useState("Pedimentos");
const [CentroCostos, setCentroCostos] = useState<string>('');
const [ClaveClienteFacturacion, setClaveClienteFacturacion] = useState(0);
const [NombreClienteFacturacion, setNombreClienteFacturacion] = useState('')
const [RfcClienteFacturacion, setRfcClienteFacturacion] = useState('')
const [ClavesPedimentos, setClavesPedimentos] = useState<ICatClavesPedimentos[]>([])
const [FechaRegistro, setFechaRegistro] = useState(currentDate());
const msgColor = 'primary'
@ -366,6 +364,7 @@ export default function TraficoCorresponsales (props:IProps) {
fechaSolicita: '',
estado: 0
})
const [PedimentoObligatorio, setPedimentoObligatorio] = useState(1)
var txtContenedores: ICorresponsalContenedores[] = [];
var txtFacturas: ICorresponsalFacturas[] = [];
const itemsTrafico = [
@ -462,6 +461,7 @@ export default function TraficoCorresponsales (props:IProps) {
data.causaRectificacion = CausaRectificacion
data.totalHonorariosAA = TotalHonorariosAA
data.totalGastosTerceros = TotalGastosTerceros
data.pedimentoObligatorio = PedimentoObligatorio
CTrafDataService.Append(data)
.then((response) => {
if (response.data.estatusCode === 0) {
@ -625,90 +625,9 @@ export default function TraficoCorresponsales (props:IProps) {
}
const LoadEverything = async () => {
let clientes: IClientes[] = [];
await GetSolicitudes();
await ClavesPedimentosService.getAllClavesPedimentos()
.then(response => setClavesPedimentos(response.data))
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CorresponsalesDataService.getAll()
.then((response) => {
dispatch(populateCatCorresponsales(response.data))
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CTrafDataService.GetCorresponsalesTraficoEstatus()
.then((response) => {
setDataCatEstatus(response.data)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await TiposMercanciaService.GetAll()
.then((response) => {
setTiposMercancia(response.data);
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
});
await CFacDataService.getAll(IDTrafico)
.then((response) => {
dispatch(InitCorresponsalesFacturas(IDTrafico))
response.data.forEach((element) => {
dispatch(addCorresponsalesFacturas(element))
})
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CFac3erDataService.getAll(IDTrafico)
.then((response) => {
dispatch(InitCorresponsalesFacturasTerceros(IDTrafico))
response.data.forEach((element) => {
dispatch(addCorresponsalesFacturasTerceros(element))
})
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CContDataService.getAll(IDTrafico)
.then((response) => {
dispatch(InitCorresponsalesContenedores(IDTrafico))
response.data.forEach((element) => {
dispatch(addCorresponsalesContenedores(element))
})
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
//Cargar Clientes
await ClientesDataService.getAllClientes(0)
.then((response) => {
clientes = response.data;
setClientes(response.data)
})
.catch((e: Error) => {
@ -717,107 +636,10 @@ export default function TraficoCorresponsales (props:IProps) {
setShowMsg(true)
return
})
await CAntDataService.getAll(IDTrafico)
.then((response) => {
dispatch(populateCorresponsalesAnticipos(response.data))
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CGuiasDataService.getAll(IDTrafico)
.then((response) => {
dispatch(populateCorresponsalesGuias(response.data))
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await ProvDataService.getAll(0)
.then((response) => {
dispatch(populateCatProveedores(response.data))
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CCatTiposDocumentos.getAll(2206, 1)
.then((response) => {
setCatTiposDocumentos(response.data)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CCatTiposDocumentos.getAll(2206, 2)
.then((response) => {
setCatTiposDocumentosInfoCorresponsal(response.data)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CCueCompService.GetAllEstatus()
.then((response) => {
dispatch(
populateCorresponsalesCuentasComplementariasEstatus(response.data)
)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CTrafDataService.GetAll(IDTrafico)
//Cargar Corresponsales
await CorresponsalesDataService.getAll()
.then((response) => {
setFolioTrafico(response.data.folioGemco)
setProceso(response.data.proceso)
setIDCliente(response.data.idCliente)
getCentroCostos(response.data.idCliente, clientes);
setIDTabulador(response.data.idTabulador)
setTipoOperacion(response.data.tipoOperacion)
setOpEntrada(response.data.opEntrada)
setOpSalida(response.data.opSalida)
setIDCorresponsal(response.data.idCorresponsal)
setBultos(response.data.bultos)
setKilos(response.data.kilos)
setEstatus(response.data.estatus ? response.data.estatus : 0)
setTrafico(response.data.trafico)
setPedimento(response.data.pedimento)
setClavePedimento(response.data.clave ? response.data.clave : '')
setFechaPago(setDate(response.data.fechaPago))
setTipoCambio(response.data.tipoCambio)
setValorAduanaMN(response.data.valorAduanaMN)
setTotalPagado(response.data.totalPagado)
setValorFacturaMN(response.data.valorFacturaMN)
setCantidadFracciones(response.data.cantidadFracciones)
setBuque(response.data.buque)
setValorFacturasDls(response.data.valorFacturaDls)
setDescripcionMercancia(response.data.descripcionMercancia)
setObservaciones(
response.data.observaciones ? response.data.observaciones : ''
)
setFechaDesaduanamiento(StrtoDate(response.data.fechaDesaduanamiento))
setSemaforoFiscal(response.data.semaforoFiscal)
setNoCuenta(response.data.noCuenta)
setFechaCuenta(setDate(response.data.fechaCuenta))
setIDTipoMercancia(response.data.idTipoMercancia);
setCargoPara(response.data.cargoA)
setCausaRectificacion(response.data.causaRectificacion)
setTotalHonorariosAA(response.data.totalHonorariosAA)
setTotalGastosTerceros(response.data.totalGastosTerceros)
setFechaRegistro(setDate(response.data.fechaRegistro))
dispatch(populateCatCorresponsales(response.data))
})
.catch((e: Error) => {
setHeader('Error')
@ -825,33 +647,212 @@ export default function TraficoCorresponsales (props:IProps) {
setShowMsg(true)
return
})
await CContaDataService.Get(IDTrafico, 2, 1)
.then((response) => {
setRechazosTrafico(response.data)
})
if(IDTrafico > 0){
await GetSolicitudes();
await ClavesPedimentosService.getAllClavesPedimentos()
.then(response => setClavesPedimentos(response.data))
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CContaDataService.GetHistorial(IDTrafico)
await CTrafDataService.GetCorresponsalesTraficoEstatus()
.then((response) => {
setDataCatEstatus(response.data)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await TiposMercanciaService.GetAll()
.then((response) => {
setRechazosContabilidad(response.data)
setTiposMercancia(response.data);
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await PedimentosConsolidadosService.GetAll(IDTrafico)
.then((resp) => {
dispatch(populatePedimentos(resp.data))
})
.catch(() => {})
});
await CFacDataService.getAll(IDTrafico)
.then((response) => {
dispatch(InitCorresponsalesFacturas(IDTrafico))
response.data.forEach((element) => {
dispatch(addCorresponsalesFacturas(element))
})
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CFac3erDataService.getAll(IDTrafico)
.then((response) => {
dispatch(InitCorresponsalesFacturasTerceros(IDTrafico))
response.data.forEach((element) => {
dispatch(addCorresponsalesFacturasTerceros(element))
})
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CContDataService.getAll(IDTrafico)
.then((response) => {
dispatch(InitCorresponsalesContenedores(IDTrafico))
response.data.forEach((element) => {
dispatch(addCorresponsalesContenedores(element))
})
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CAntDataService.getAll(IDTrafico)
.then((response) => {
dispatch(populateCorresponsalesAnticipos(response.data))
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CGuiasDataService.getAll(IDTrafico)
.then((response) => {
dispatch(populateCorresponsalesGuias(response.data))
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await ProvDataService.getAll(0)
.then((response) => {
dispatch(populateCatProveedores(response.data))
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CCatTiposDocumentos.getAll(2206, 1)
.then((response) => {
setCatTiposDocumentos(response.data)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CCatTiposDocumentos.getAll(2206, 2)
.then((response) => {
setCatTiposDocumentosInfoCorresponsal(response.data)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CCueCompService.GetAllEstatus()
.then((response) => {
dispatch(
populateCorresponsalesCuentasComplementariasEstatus(response.data)
)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CTrafDataService.GetAll(IDTrafico)
.then((response) => {
setFolioTrafico(response.data.folioGemco)
setProceso(response.data.proceso)
setIDCliente(response.data.idCliente)
//getCentroCostos(response.data.idCliente, clientes);
setIDTabulador(response.data.idTabulador)
setTipoOperacion(response.data.tipoOperacion)
setOpEntrada(response.data.opEntrada)
setOpSalida(response.data.opSalida)
setIDCorresponsal(response.data.idCorresponsal)
setBultos(response.data.bultos)
setKilos(response.data.kilos)
setEstatus(response.data.estatus ? response.data.estatus : 0)
setTrafico(response.data.trafico)
setPedimento(response.data.pedimento)
setClavePedimento(response.data.clave ? response.data.clave : '')
setFechaPago(setDate(response.data.fechaPago))
setTipoCambio(response.data.tipoCambio)
setValorAduanaMN(response.data.valorAduanaMN)
setTotalPagado(response.data.totalPagado)
setValorFacturaMN(response.data.valorFacturaMN)
setCantidadFracciones(response.data.cantidadFracciones)
setBuque(response.data.buque)
setValorFacturasDls(response.data.valorFacturaDls)
setDescripcionMercancia(response.data.descripcionMercancia)
setObservaciones(
response.data.observaciones ? response.data.observaciones : ''
)
setFechaDesaduanamiento(StrtoDate(response.data.fechaDesaduanamiento))
setSemaforoFiscal(response.data.semaforoFiscal)
setNoCuenta(response.data.noCuenta)
setFechaCuenta(setDate(response.data.fechaCuenta))
setIDTipoMercancia(response.data.idTipoMercancia);
setCargoPara(response.data.cargoA)
setCausaRectificacion(response.data.causaRectificacion)
setTotalHonorariosAA(response.data.totalHonorariosAA)
setTotalGastosTerceros(response.data.totalGastosTerceros)
setFechaRegistro(setDate(response.data.fechaRegistro))
setPedimentoObligatorio(response.data.pedimentoObligatorio)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CContaDataService.Get(IDTrafico, 2, 1)
.then((response) => {
setRechazosTrafico(response.data)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await CContaDataService.GetHistorial(IDTrafico)
.then((response) => {
setRechazosContabilidad(response.data)
})
.catch((e: Error) => {
setHeader('Error')
setMsg('Ocurrio un error: ' + e)
setShowMsg(true)
return
})
await PedimentosConsolidadosService.GetAll(IDTrafico)
.then((resp) => {
dispatch(populatePedimentos(resp.data))
})
.catch(() => {})
loadRectificacionHistorico()
DoesThe2ZipFileExists()
DoesThe2ZipFileExists()
}
}
const loadRectificacionHistorico = () => {
@ -987,32 +988,52 @@ export default function TraficoCorresponsales (props:IProps) {
}, [IDTrafico])
useEffect(() => {
if (
IDCorresponsal !== 0 &&
Aduana !== 0 &&
Patente !== 0 &&
Pedimento !== 0 &&
FechaPago !== '' &&
FechaDesaduanamiento !== null &&
NoCuenta !== null &&
TieneArchivoZIPGEMCO &&
TieneArchivoZIPCorresponsal &&
DescripcionMercancia !== '' && DescripcionMercancia !== undefined && DescripcionMercancia !== null && DescripcionMercancia !== " " &&
CentroCostos !== '' && IDTipoMercancia
) {
let tmp = Pedimento?.toString()
if (tmp?.length === 7) {
if(PedimentoObligatorio){
if (
IDCorresponsal !== 0 &&
Aduana !== 0 &&
Patente !== 0 &&
Pedimento !== 0 &&
FechaPago !== '' &&
FechaDesaduanamiento !== null &&
NoCuenta !== null &&
TieneArchivoZIPGEMCO &&
TieneArchivoZIPCorresponsal &&
DescripcionMercancia !== '' && DescripcionMercancia !== undefined && DescripcionMercancia !== null && DescripcionMercancia !== " " &&
CentroCostos !== '' && IDTipoMercancia
) {
let tmp = Pedimento?.toString()
if (tmp?.length === 7) {
setStatusTrafico(2)
setTerminaProceso(0)
setStatusColor('readyColor')
setReady4NextProcess(true)
} else {
setStatusColor('pendingColor')
setReady4NextProcess(false)
}
} else {
setStatusColor('pendingColor')
setReady4NextProcess(false)
}
}else{
if (
IDCorresponsal !== 0 &&
Aduana !== 0 &&
Patente !== 0 &&
NoCuenta !== null &&
TieneArchivoZIPCorresponsal &&
DescripcionMercancia !== '' && DescripcionMercancia !== undefined && DescripcionMercancia !== null && DescripcionMercancia !== " " &&
CentroCostos !== ''
){
setStatusTrafico(2)
setTerminaProceso(0)
setStatusColor('readyColor')
setReady4NextProcess(true)
} else {
}else{
setStatusColor('pendingColor')
setReady4NextProcess(false)
}
} else {
setStatusColor('pendingColor')
setReady4NextProcess(false)
}
}, [
IDCorresponsal,
@ -1026,7 +1047,8 @@ export default function TraficoCorresponsales (props:IProps) {
TieneArchivoZIPCorresponsal,
DescripcionMercancia,
CentroCostos,
IDTipoMercancia
IDTipoMercancia,
PedimentoObligatorio
])
useEffect(() => {
@ -1079,6 +1101,19 @@ export default function TraficoCorresponsales (props:IProps) {
setShowMsg(true)
return
})
CentrosCostosService.get(IDCliente)
.then(response => {
setCentroCostos(response.data.centroCostos)
setClaveClienteFacturacion(response.data.clienteFacturacion);
return
})
.catch((e: Error) => {
setCentroCostos(''); setClaveClienteFacturacion(0);
setHeader('Error')
setMsg('Centro de costos no asignado. Solicitar a servicios administrativos la asignacion del centro de costos del cliente.')
setShowMsg(true)
return
});
}
if (Clientes) {
let tmpArray: ItemList[] = []
@ -1221,7 +1256,7 @@ export default function TraficoCorresponsales (props:IProps) {
let data: DTOTraficoCompleto = {
id: IDTrafico,
idUsuario: UserId,
estatus: TerminaProceso,
pedimentoObligatorio: PedimentoObligatorio,
comentarios: 'Todo Correcto'
}
updateProceso(data)
@ -1403,7 +1438,7 @@ export default function TraficoCorresponsales (props:IProps) {
let data: DTOTraficoCompleto = {
id: IDTrafico,
idUsuario: UserId,
estatus: 3,
pedimentoObligatorio: PedimentoObligatorio,
comentarios: comentarios
}
updateProceso(data)
@ -1430,33 +1465,6 @@ export default function TraficoCorresponsales (props:IProps) {
return pedidos;
}
const getCentroCostos = (idCliente: number, clientes: IClientes[]) => {
//if(Perfil === "Corresponsales"){
if(idCliente > 0){
CentrosCostosService.get(idCliente)
.then(response => {
setCentroCostos(response.data.centroCostos)
setClaveClienteFacturacion(response.data.clienteFacturacion);
if(response.data.clienteFacturacion !== 0 && response.data.clienteFacturacion !== idCliente){
let cliente = clientes!.filter(x => x.sClave === response.data.clienteFacturacion)[0];
let nombreCliente = cliente.sRazonSocial.split('|')[0].trim()
setNombreClienteFacturacion(nombreCliente);
setRfcClienteFacturacion(cliente.sRFC);
}
return
})
.catch((e: Error) => {
setCentroCostos(''); setClaveClienteFacturacion(0); setNombreClienteFacturacion(''); setRfcClienteFacturacion('');
setHeader('Error')
setMsg('Centro de costos no asignado. Solicitar a servicios administrativos la asignacion del centro de costos del cliente.')
setShowMsg(true)
return
});
}
//}
}
const cerrarTrafico = () => {
if(TotalHonorariosAA == 0){
setHeader('Error')
@ -1468,7 +1476,7 @@ export default function TraficoCorresponsales (props:IProps) {
saveForm();
FileManagerServices.GetClientesZip(IDTrafico)
.then(response => {
updateProceso({id: IDTrafico, idUsuario:UserId, estatus: 4, comentarios:'Todo Correcto'})
updateProceso({id: IDTrafico, idUsuario:UserId, pedimentoObligatorio: PedimentoObligatorio, comentarios:'Todo Correcto'})
/* CTrafDataService.ValidateComplete({id: IDTrafico, idUsuario:UserId, estatus: 4, comentarios:'Todo Correcto'})
.then(resp => {
setProceso(4);
@ -1521,6 +1529,13 @@ export default function TraficoCorresponsales (props:IProps) {
})
}
const PrepararOT = () => {
setPedimentoObligatorio(PedimentoObligatorio === 0 ? 1 : 0)
setPedimento(0)
setClavePedimento('')
setFechaPago('')
}
return (
<div style={{height:'100%', overflowY:'scroll'}}>
<Card className="labelSize13px" style={{borderStyle:'none', height:'100%'}}>
@ -1626,7 +1641,6 @@ export default function TraficoCorresponsales (props:IProps) {
disabled={(Depto !== 'Corresponsalias' && Depto !== 'Sistemas')}
onChange={(e) => {
setIDCliente(parseInt(e.target.value))
getCentroCostos(+e.target.value, Clientes!);
}}
value={IDCliente}
className="form-select form-select-sm"
@ -2020,6 +2034,18 @@ export default function TraficoCorresponsales (props:IProps) {
<Col sm={12} md={12} lg={6}>
<fieldset className='border p-2'>
<legend className='w-auto' style={{float:'none', fontSize:'1rem'}}>{EncabezadoPedimento1}</legend>
<Row className="justify-content-end">
<Col xs={4}>
<Form.Check
type='checkbox'
id='check-isOT'
label='¿Referencia sin pedimento?'
checked={!PedimentoObligatorio}
onChange={() => PrepararOT()}
disabled={Depto !== 'Corresponsalias'}
/>
</Col>
</Row>
<Row className='justify-content-between' style={{alignItems:'center'}}>
<Col sm={5} md={5} lg={5}>
<Button variant="success"

@ -1,6 +1,6 @@
export default interface DTOTraficoCompleto {
id: number,
idUsuario: number,
estatus: number,
pedimentoObligatorio: number,
comentarios: string
}

@ -46,4 +46,5 @@ export default interface ICorresponsalTrafico {
totalHonorariosAA: number;
totalGastosTerceros: number;
tieneSolicitud: number;
pedimentoObligatorio: number;
}

@ -47,7 +47,8 @@ const CorresponsalesTrafico: ICorresponsalTrafico[] = [{
causaRectificacion: '',
totalHonorariosAA: 0,
totalGastosTerceros: 0,
tieneSolicitud: 0
tieneSolicitud: 0,
pedimentoObligatorio: 1
}]
const initialState = { CorresponsalesTrafico }

Loading…
Cancel
Save