2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00

used app coding conventions

This commit is contained in:
Piyush Singhania 2021-10-27 21:32:40 +05:30
parent bfa1aa4b99
commit 9d64907ada
2 changed files with 6 additions and 4 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 === 'Hide Audits') filters.reverted = 0;
if (params.reverted) filters.reverted = params.reverted;
if (params.toDate || params.fromDate) {
filters.date = [];
if (params.toDate) filters.date.push('<=', params.toDate);

View File

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