mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Update general ledger link in Util
This commit is contained in:
parent
696b2d60c7
commit
2f92899f09
@ -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}`
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user