2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +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 = {
ledgerLink: {
label: 'Ledger Entries',
condition: form => form.doc.submitted,
action: form => {
return {
route: ['report', 'general-ledger'],
params: {
referenceType: form.doc.doctype,
referenceName: form.doc.name
}
};
}
ledgerLink: {
label: 'Ledger Entries',
condition: form => form.doc.submitted,
action: form => {
form.$router.push({
path: `/report/general-ledger?referenceType=${form.doc.doctype}&referenceName=${form.doc.name}`
});
}
}
}
};