mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
cc6c7883a8
- Specify column width in Row - Horizontal and Vertical scroll (wip)
86 lines
1.7 KiB
JavaScript
86 lines
1.7 KiB
JavaScript
const ReportPage = require('frappejs/client/desk/reportpage');
|
|
const frappe = require('frappejs');
|
|
|
|
module.exports = class GeneralLedgerView extends ReportPage {
|
|
constructor() {
|
|
super({
|
|
title: frappe._('General Ledger'),
|
|
filterFields: [
|
|
{
|
|
fieldtype: 'Select',
|
|
options: ['', 'SalesInvoice', 'Payment'],
|
|
label: 'Reference Type',
|
|
fieldname: 'referenceType'
|
|
},
|
|
{
|
|
fieldtype: 'DynamicLink',
|
|
references: 'referenceType',
|
|
label: 'Reference Name',
|
|
fieldname: 'referenceName'
|
|
},
|
|
{
|
|
fieldtype: 'Link',
|
|
target: 'Account',
|
|
label: 'Account'
|
|
},
|
|
{
|
|
fieldtype: 'Link',
|
|
target: 'Party',
|
|
label: 'Party'
|
|
},
|
|
{
|
|
fieldtype: 'Date',
|
|
label: 'From Date'
|
|
},
|
|
{
|
|
fieldtype: 'Date',
|
|
label: 'To Date'
|
|
}
|
|
]
|
|
});
|
|
|
|
this.method = 'general-ledger';
|
|
}
|
|
|
|
getColumns() {
|
|
return [
|
|
{
|
|
label: 'Account',
|
|
fieldtype: 'Link'
|
|
},
|
|
{
|
|
label: 'Date',
|
|
fieldtype: 'Date'
|
|
},
|
|
{
|
|
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'
|
|
}
|
|
];
|
|
}
|
|
};
|