mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
update -> used app conventions for better readability
This commit is contained in:
parent
e9b3d2ca03
commit
bfa1aa4b99
@ -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 === 'Hide Audits') filters.reverted = 0;
|
||||||
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);
|
||||||
|
@ -59,14 +59,11 @@ const viewConfig = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldtype: 'Select',
|
fieldtype: 'Select',
|
||||||
options: [
|
options: ['Show Audits', 'Hide Audits'],
|
||||||
{ label: 'Hide Audits', value: '1' },
|
|
||||||
{ label: 'Show Audits', value: '' }
|
|
||||||
],
|
|
||||||
size: 'small',
|
size: 'small',
|
||||||
label: 'Audits',
|
default: 'Hide Audits',
|
||||||
placeholder: 'Show Audits',
|
label: 'Reverted',
|
||||||
default: 1,
|
placeholder: 'Reverted',
|
||||||
fieldname: 'reverted'
|
fieldname: 'reverted'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user