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