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:
parent
bfa1aa4b99
commit
9d64907ada
@ -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);
|
||||
|
@ -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'
|
||||
}
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user