2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

update -> used app conventions for better readability

This commit is contained in:
Piyush Singhania 2021-10-26 01:20:35 +05:30
parent e9b3d2ca03
commit bfa1aa4b99
2 changed files with 5 additions and 8 deletions

View File

@ -7,7 +7,7 @@ class GeneralLedger {
if (params.party) filters.party = params.party; if (params.party) filters.party = params.party;
if (params.referenceType) filters.referenceType = params.referenceType; if (params.referenceType) filters.referenceType = params.referenceType;
if (params.referenceName) filters.referenceName = params.referenceName; if (params.referenceName) filters.referenceName = params.referenceName;
if (params.reverted) filters.reverted = !params.reverted; if (params.reverted === 'Hide Audits') filters.reverted = 0;
if (params.toDate || params.fromDate) { if (params.toDate || params.fromDate) {
filters.date = []; filters.date = [];
if (params.toDate) filters.date.push('<=', params.toDate); if (params.toDate) filters.date.push('<=', params.toDate);

View File

@ -59,14 +59,11 @@ const viewConfig = {
}, },
{ {
fieldtype: 'Select', fieldtype: 'Select',
options: [ options: ['Show Audits', 'Hide Audits'],
{ label: 'Hide Audits', value: '1' },
{ label: 'Show Audits', value: '' }
],
size: 'small', size: 'small',
label: 'Audits', default: 'Hide Audits',
placeholder: 'Show Audits', label: 'Reverted',
default: 1, placeholder: 'Reverted',
fieldname: 'reverted' fieldname: 'reverted'
} }
], ],