2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00
books/reports/GeneralLedger/viewConfig.js

37 lines
1.2 KiB
JavaScript
Raw Normal View History

2018-06-11 11:20:34 +00:00
const title = 'General Ledger';
module.exports = {
2018-07-14 14:26:18 +00:00
title: title,
method: 'general-ledger',
filterFields: [
{
fieldtype: 'Select',
options: ['', 'Invoice', 'Payment'],
label: 'Reference Type',
fieldname: 'referenceType'
},
{
fieldtype: 'DynamicLink',
references: 'referenceType',
label: 'Reference Name',
fieldname: 'referenceName'
},
{ fieldtype: 'Link', target: 'Account', label: 'Account', fieldname: 'account' },
{ fieldtype: 'Link', target: 'Party', label: 'Party', fieldname: 'party' },
{ fieldtype: 'Date', label: 'From Date', fieldname: 'fromDate' },
{ fieldtype: 'Date', label: 'To Date', fieldname: 'toDate' }
],
getColumns() {
return [
{ label: 'Date', fieldtype: 'Date' },
{ label: 'Account', fieldtype: 'Link' },
{ label: 'Debit', fieldtype: 'Currency' },
{ label: 'Credit', fieldtype: 'Currency' },
{ label: 'Balance', fieldtype: 'Currency' },
{ label: 'Reference Type', fieldtype: 'Data' },
{ label: 'Reference Name', fieldtype: 'Data' },
{ label: 'Party', fieldtype: 'Link' },
{ label: 'Description', fieldtype: 'Data' }
];
}
};