|
|
|
@ -18,6 +18,7 @@ interface IProps { |
|
|
|
|
NombreCliente: string |
|
|
|
|
closeTabulador: (arg: boolean) => void |
|
|
|
|
cambiaPrecuenta: (IDPrecuenta: number) => void |
|
|
|
|
Depto: string |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
interface IselectedRows { |
|
|
|
@ -56,7 +57,7 @@ export const Tabulador: FC<IProps> = (props) => { |
|
|
|
|
name: 'Costo', |
|
|
|
|
width: '15%', |
|
|
|
|
cell: (row: ITabuladorConceptos) => { |
|
|
|
|
return <ControlledInput id={row.id} value={row.costo} disabled={true} postCost={(id, value) => {}} /> |
|
|
|
|
return <ControlledInput id={row.id} value={row.costo.toFixed(2)} disabled={true} postCost={(id, value) => {}} /> |
|
|
|
|
/*return row.activo === 1 ? ( |
|
|
|
|
<ControlledInput id={row.id} value={row.costo} disabled={true} postCost={(id, value) => {}} /> |
|
|
|
|
) : ( |
|
|
|
@ -77,6 +78,7 @@ export const Tabulador: FC<IProps> = (props) => { |
|
|
|
|
onChange={() => { |
|
|
|
|
switchConcept(row.id, row.activo ? 0 : 1) |
|
|
|
|
}} |
|
|
|
|
disabled={props.Depto !== 'Corresponsalias'} |
|
|
|
|
/> |
|
|
|
|
</Form.Group> |
|
|
|
|
) |
|
|
|
@ -229,6 +231,7 @@ export const Tabulador: FC<IProps> = (props) => { |
|
|
|
|
onChange={(e) => setIDTabulador(parseInt(e.target.value))} |
|
|
|
|
className='form-select form-select-sm' |
|
|
|
|
style={{ fontSize: '15px' }} |
|
|
|
|
disabled={props.Depto !== 'Corresponsalias'} |
|
|
|
|
> |
|
|
|
|
<option value='0'>- No tiene tabulador asignado -</option> |
|
|
|
|
{Tabuladores |
|
|
|
@ -239,14 +242,18 @@ export const Tabulador: FC<IProps> = (props) => { |
|
|
|
|
</Form.Control> |
|
|
|
|
</Col> |
|
|
|
|
<Col xs={1}> |
|
|
|
|
<Button |
|
|
|
|
variant='primary' |
|
|
|
|
size='sm' |
|
|
|
|
style={{ paddingLeft: '10px', paddingRight: '10px' }} |
|
|
|
|
onClick={() => saveForm()} |
|
|
|
|
> |
|
|
|
|
Guardar |
|
|
|
|
</Button> |
|
|
|
|
{ |
|
|
|
|
(props.Depto === 'Corresponsalias') |
|
|
|
|
? <Button |
|
|
|
|
variant='primary' |
|
|
|
|
size='sm' |
|
|
|
|
style={{ paddingLeft: '10px', paddingRight: '10px' }} |
|
|
|
|
onClick={() => saveForm()} |
|
|
|
|
> |
|
|
|
|
Guardar |
|
|
|
|
</Button> |
|
|
|
|
: '' |
|
|
|
|
} |
|
|
|
|
</Col> |
|
|
|
|
</Row> |
|
|
|
|
</Alert> |
|
|
|
|