2
0
mirror of https://github.com/frappe/books.git synced 2025-01-11 02:36:14 +00:00

Update general ledger link in Util

This commit is contained in:
Suraj Shetty 2018-07-14 19:53:16 +05:30
parent 696b2d60c7
commit 2f92899f09

View File

@ -1,15 +1,11 @@
module.exports = { module.exports = {
ledgerLink: { ledgerLink: {
label: 'Ledger Entries', label: 'Ledger Entries',
condition: form => form.doc.submitted, condition: form => form.doc.submitted,
action: form => { action: form => {
return { form.$router.push({
route: ['report', 'general-ledger'], path: `/report/general-ledger?referenceType=${form.doc.doctype}&referenceName=${form.doc.name}`
params: { });
referenceType: form.doc.doctype,
referenceName: form.doc.name
}
};
}
} }
} }
};