2
0
mirror of https://github.com/frappe/books.git synced 2025-01-12 11:04:12 +00:00

Merge pull request #14 from piyushsinghania/enhancement/added-filter-reverted-entry

update -> used app conventions for better readability
This commit is contained in:
Ankit Singhaniya 2021-10-28 09:21:38 +05:30 committed by GitHub
commit e214cb8aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 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) filters.reverted = params.reverted;
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

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