2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +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 getCommonExportActions from '../commonExporter';
export default {
title: 'Balance Sheet',
@ -25,6 +26,7 @@ export default {
default: 'Monthly',
},
],
actions: getCommonExportActions('balance-sheet'),
getColumns(data) {
const columns = [
{ label: 'Account', fieldtype: 'Data', fieldname: 'account', width: 2 },

View File

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

View File

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