Skip to content

Commit

Permalink
Merge pull request #2435 from prefeiturasp/fix/122298-credito
Browse files Browse the repository at this point in the history
fix(122298): Corrige retorno ao voltar da inclusão de crédito
  • Loading branch information
alcfernandes authored Jun 7, 2024
2 parents 172f1f8 + 4817912 commit a7c6e87
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/componentes/escolas/Receitas/Formularios/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,16 +528,23 @@ export const ReceitaForm = () => {
}

const onCancelarTrue = () => {
console.log("onCancelarTrue")
setShow(false);
setRedirectTo('');
getPath('');
};

const onCancelarEstornoTrue = () => {
setShow(false);
console.log("readOnlyEstorno", readOnlyEstorno)
console.log(despesa.uuid)
const path = `/edicao-de-despesa/${despesa.uuid}`;
history.push(path);
setShow(false);
if (readOnlyEstorno) {
const path = `/edicao-de-despesa/${despesa.uuid}`;
history.push(path);
} else {
setRedirectTo('');
getPath('');
}
}

const onHandleClose = () => {
Expand Down

0 comments on commit a7c6e87

Please sign in to comment.