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