2
0
mirror of https://github.com/frappe/books.git synced 2025-01-05 08:02:15 +00:00

feat: add Export to P&L, BS and TB

This commit is contained in:
18alantom 2021-12-21 14:51:13 +05:30 committed by Alan
parent cb190eed94
commit 89bc652571
3 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import frappe from 'frappejs'; import frappe from 'frappejs';
import getCommonExportActions from '../commonExporter';
export default { export default {
title: 'Balance Sheet', title: 'Balance Sheet',
@ -25,6 +26,7 @@ export default {
default: 'Monthly', default: 'Monthly',
}, },
], ],
actions: getCommonExportActions('balance-sheet'),
getColumns(data) { getColumns(data) {
const columns = [ const columns = [
{ label: 'Account', fieldtype: 'Data', fieldname: 'account', width: 2 }, { label: 'Account', fieldtype: 'Data', fieldname: 'account', width: 2 },

View File

@ -1,4 +1,5 @@
import frappe from 'frappejs'; import frappe from 'frappejs';
import getCommonExportActions from '../commonExporter';
const title = 'Profit and Loss'; const title = 'Profit and Loss';
@ -39,6 +40,7 @@ export default {
fieldname: 'periodicity', fieldname: 'periodicity',
}, },
], ],
actions: getCommonExportActions('profit-and-loss'),
getColumns(data) { getColumns(data) {
const columns = [ const columns = [
{ label: 'Account', fieldtype: 'Data', fieldname: 'account', width: 2 }, { label: 'Account', fieldtype: 'Data', fieldname: 'account', width: 2 },

View File

@ -1,4 +1,5 @@
import frappe from 'frappejs'; import frappe from 'frappejs';
import getCommonExportActions from '../commonExporter';
const title = 'Trial Balance'; const title = 'Trial Balance';
@ -30,7 +31,7 @@ export default {
}, },
}, },
], ],
actions: [], actions: getCommonExportActions('trial-balance'),
getColumns(data) { getColumns(data) {
const columns = [ const columns = [
{ label: 'Account', fieldtype: 'Data', fieldname: 'account', width: 2 }, { label: 'Account', fieldtype: 'Data', fieldname: 'account', width: 2 },