2
0
mirror of https://github.com/frappe/books.git synced 2025-01-12 02:59:11 +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
reports/GeneralLedger

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

View File

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