2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/reports/BankReconciliation/viewConfig.js
thefalconx33 ed357ecb46 - Chart of accounts action buttons
- Report Export with current filters
2019-07-24 15:02:53 +05:30

86 lines
1.6 KiB
JavaScript

const title = 'Bank Reconciliation';
module.exports = {
title: title,
method: 'bank-reconciliation',
filterFields: [
{
fieldtype: 'Link',
target: 'Account',
label: 'Payement Account',
fieldname: 'paymentAccount',
getFilters: () => {
return {
accountType: 'Bank',
isGroup: 0
};
}
},
{
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: 'Posting Date',
fieldtype: 'Date',
fieldname: 'date'
},
{
label: 'Payment Account',
fieldtype: 'Link'
},
{
label: 'Debit',
fieldtype: 'Currency'
},
{
label: 'Credit',
fieldtype: 'Currency'
},
{
label: 'Balance',
fieldtype: 'Currency'
},
{
label: 'Clearance Date',
fieldtype: 'Date',
fieldname: 'clearanceDate'
},
{
label: 'Ref. Type',
fieldtype: 'Data',
fieldname: 'referenceType'
},
{
label: 'Ref. Name',
fieldtype: 'Data',
fieldname: 'referenceName'
},
{
label: 'Ref. Date',
fieldtype: 'Date',
fieldname: 'referenceDate'
},
{
label: 'Party',
fieldtype: 'Link'
}
];
}
};