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',
|
2019-02-17 17:46:50 +00:00
|
|
|
filterFields: [
|
|
|
|
{
|
2018-07-14 14:26:18 +00:00
|
|
|
fieldtype: 'Select',
|
|
|
|
options: ['', 'Invoice', 'Payment'],
|
|
|
|
label: 'Reference Type',
|
|
|
|
fieldname: 'referenceType'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
fieldtype: 'DynamicLink',
|
|
|
|
references: 'referenceType',
|
|
|
|
label: 'Reference Name',
|
|
|
|
fieldname: 'referenceName'
|
|
|
|
},
|
2019-02-17 17:46:50 +00:00
|
|
|
{ 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' }
|
2018-07-14 14:26:18 +00:00
|
|
|
],
|
|
|
|
getColumns() {
|
2019-02-17 17:46:50 +00:00
|
|
|
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' }
|
2018-07-14 14:26:18 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
};
|