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.referenceType) filters.referenceType = params.referenceType;
|
||||
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) {
|
||||
filters.date = [];
|
||||
if (params.toDate) filters.date.push('<=', params.toDate);
|
||||
|
@ -59,14 +59,11 @@ const viewConfig = {
|
||||
},
|
||||
{
|
||||
fieldtype: 'Select',
|
||||
options: [
|
||||
{ label: 'Hide Audits', value: '1' },
|
||||
{ label: 'Show Audits', value: '' }
|
||||
],
|
||||
options: ['Show Audits', 'Hide Audits'],
|
||||
size: 'small',
|
||||
label: 'Audits',
|
||||
placeholder: 'Show Audits',
|
||||
default: 1,
|
||||
default: 'Hide Audits',
|
||||
label: 'Reverted',
|
||||
placeholder: 'Reverted',
|
||||
fieldname: 'reverted'
|
||||
}
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user