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.referenceType) filters.referenceType = params.referenceType;
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) {
filters.date = [];
if (params.toDate) filters.date.push('<=', params.toDate);

View File

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