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:
parent
696b2d60c7
commit
2f92899f09
@ -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
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user