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:
parent
cb190eed94
commit
89bc652571
@ -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 },
|
||||||
|
@ -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 },
|
||||||
|
@ -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 },
|
||||||
|
Loading…
Reference in New Issue
Block a user