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