2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00
books/reports/TrialBalance/viewConfig.js
thefalconx33 e4c2bd3dda * New Account defaults & filters based on rootType
* Trial Balance: Parent accounts assumes child data
* Trial Balance: Tree View
2019-07-18 16:15:44 +05:30

45 lines
1.0 KiB
JavaScript

const title = 'Trial Balance';
module.exports = {
title: title,
method: 'trial-balance',
treeView: true,
filterFields: [
{
fieldtype: 'Date',
fieldname: 'fromDate',
label: 'From Date',
required: 1
},
{ fieldtype: 'Date', fieldname: 'toDate', label: 'To Date', required: 1 }
],
getColumns(data) {
const columns = [
{ label: 'Account', fieldtype: 'Data', fieldname: 'account', width: 340 },
{
label: 'Opening (Dr)',
fieldtype: 'Currency',
fieldname: 'openingDebit'
},
{
label: 'Opening (Cr)',
fieldtype: 'Currency',
fieldname: 'openingCredit'
},
{ label: 'Debit', fieldtype: 'Currency', fieldname: 'debit' },
{ label: 'Credit', fieldtype: 'Currency', fieldname: 'credit' },
{
label: 'Closing (Dr)',
fieldtype: 'Currency',
fieldname: 'closingDebit'
},
{
label: 'Closing (Cr)',
fieldtype: 'Currency',
fieldname: 'closingCredit'
}
];
return columns;
}
};