#4466 InvoiceInCorrective #142

Closed
jorgep wants to merge 10 commits from 4466-InvoiceInCorrective into dev
1 changed files with 0 additions and 18 deletions
Showing only changes of commit 48a947ed95 - Show all commits

View File

@ -43,24 +43,6 @@ export default {
name: 'InvoiceInCard',
path: ':id',
component: () => import('src/pages/InvoiceIn/Card/InvoiceInCard.vue'),
beforeEnter: async (to, from, next) => {
const card = to.matched.find((match) => match.name == 'InvoiceInCard');
const corrective = card.children.find(
(child) => child.name == 'InvoiceInCorrective'
);
const { data: correctings } = await axios.get('InvoiceInCorrections', {
params: {
filter: {
where: {
correctingFk: to.params.id,
},
},
},
});
corrective.meta.hidden = !correctings.length > 0;
next();
},
redirect: { name: 'InvoiceInSummary' },
children: [
{