2011-06-08 14:37:15 +05:30
report . customize _filters = function ( ) {
2011-06-22 14:29:25 +05:30
this . hide _all _filters ( ) ;
2011-06-08 14:37:15 +05:30
2011-06-22 14:29:25 +05:30
this . add _filter ( { fieldname : 'show_group_balance' , label : 'Show Group Balance' , fieldtype : 'Select' , options : 'Yes' + NEWLINE + 'No' , ignore : 1 , parent : 'Account' , 'report_default' : 'No' , 'in_first_page' : 1 } ) ;
this . add _filter ( { fieldname : 'transaction_date' , label : 'Date' , fieldtype : 'Date' , options : '' , ignore : 1 , parent : 'Account' , 'in_first_page' : 1 } ) ;
2011-06-08 14:37:15 +05:30
2011-06-22 14:29:25 +05:30
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'Company' ] . df . filter _hide = 0 ;
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'From Date' ] . df . filter _hide = 0 ;
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'To Date' ] . df . filter _hide = 0 ;
2011-06-08 14:37:15 +05:30
2011-06-22 14:29:25 +05:30
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'From Date' ] . df [ 'report_default' ] = sys _defaults . year _start _date ;
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'To Date' ] . df [ 'report_default' ] = dateutil . obj _to _str ( new Date ( ) ) ;
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'Company' ] . df [ 'report_default' ] = sys _defaults . company ;
2011-06-08 14:37:15 +05:30
2011-06-22 14:29:25 +05:30
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'From Date' ] . df . in _first _page = 1 ;
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'To Date' ] . df . in _first _page = 1 ;
this . filter _fields _dict [ 'Account' + FILTER _SEP + 'Company' ] . df . in _first _page = 1 ;
2011-06-08 14:37:15 +05:30
2011-06-22 14:29:25 +05:30
this . dt . set _no _limit ( 1 ) ;
2011-06-08 14:37:15 +05:30
}
report . aftertableprint = function ( t ) {
2011-06-22 14:29:25 +05:30
$yt ( t , '*' , 1 , { whiteSpace : 'pre' } ) ;
2011-06-08 14:37:15 +05:30
}
2011-06-22 14:29:25 +05:30
if ( window . location . href . search ( '/v170/' ) != - 1 ) {
this . mytabs . items [ 'More Filters' ] . hide ( ) ;
this . mytabs . items [ 'Select Columns' ] . hide ( ) ;
} else {
$dh ( this . mytabs . tabs [ 'More Filters' ] ) ;
$dh ( this . mytabs . tabs [ 'Select Columns' ] ) ;
2011-06-08 14:37:15 +05:30
}