TimeTrex/interface/html5/dist/payroll-remittance_wizard-PayrollRemittanceAgencyEventWizardStepHome.bundle.js

1 line
42 KiB
JavaScript

"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["payroll-remittance_wizard-PayrollRemittanceAgencyEventWizardStepHome","wizard-WizardStep"],{8880:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"WizardStep\": () => (/* binding */ WizardStep)\n/* harmony export */ });\n/* harmony import */ var _views_TTBackboneView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6739);\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\n\n\nclass WizardStep extends _views_TTBackboneView__WEBPACK_IMPORTED_MODULE_0__.TTBackboneView {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tprevious_step_name: null,\n\t\t\tnext_step_name: null,\n\t\t\tbuttons: null,\n\t\t\twizard_obj: null, //rename to wizard_obj\n\n\t\t\tclicked_buttons: {},\n\t\t\treload: false,\n\n\t\t\tapi: null,\n\n\t\t\t//override in children\n\t\t\tname: 'undefined',\n\t\t\ttitle: $.i18n._( 'Undefined Step' ),\n\t\t\tinstructions: $.i18n._( 'Undefined step data' )\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinitialize( wizard_obj ) {\n\t\tsuper.initialize( wizard_obj );\n\n\t\tthis.buttons = {};\n\t\tthis.clicked_buttons = {}; //Clear clicked buttons on each step so checking that all buttons are clicked doesn't carry state from one step to the next. (ie: They click a required button on Step 2, but not Step 3, the count for required buttons would still match as 1)\n\t\tthis.reload = false;\n\t\tthis.setWizardObject( wizard_obj );\n\t\tvar $this = this;\n\t\tthis.init();\n\t}\n\n\t//Children must always call render()\n\tinit() {\n\t\tthis.render();\n\t}\n\n\tinitCardsBlock() {\n\t\t$( this.wizard_obj.el ).find( '#cards' ).html( '' );\n\t}\n\n\tsetTitle( title ) {\n\t\t$( this.wizard_obj.el ).find( '.title-1' ).html( title );\n\t}\n\n\tsetInstructions( instructions, callback ) {\n\n\t\tif ( $( this.el ).find( '.instructions' ).length == 0 ) {\n\t\t\t$( this.el ).find( '.progress-bar' ).append( '<p class=\"instructions\"></p>' );\n\t\t}\n\n\t\t$( this.el ).find( '.progress-bar .instructions' ).html( instructions );\n\n\t\tif ( typeof callback == 'function' ) {\n\t\t\tcallback();\n\t\t}\n\t}\n\n\tsetWizardObject( val ) {\n\t\tthis.wizard_obj = val;\n\t\tthis.el = this.wizard_obj.el;\n\t}\n\n\tgetWizardObject() {\n\t\treturn this.wizard_obj;\n\t}\n\n\tsetNextStepName( val ) {\n\t\tthis.next_step_name = val;\n\t}\n\n\tgetNextStepName() {\n\t\treturn false;\n\t}\n\n\tsetPreviousStepName( val ) {\n\t\tthis.previous_step_name = val;\n\t}\n\n\tgetPreviousStepName() {\n\t\treturn false;\n\t}\n\n\trender() {\n\t\tthis.initCardsBlock();\n\t\treturn this._render();\n\t}\n\n\t_render() {\n\t\treturn;\n\t\t//always overrirde\n\t}\n\n\tappend( content ) {\n\t\t$( this.wizard_obj.el ).find( '.content' ).append( content );\n\t}\n\n\tappendButton( button ) {\n\t\t$( this.wizard_obj.el ).find( '#cards' ).append( button );\n\t}\n\n\tsetGrid( gridId, grid_div, allMultipleSelection ) {\n\n\t\tif ( !allMultipleSelection ) {\n\t\t\tallMultipleSelection = false;\n\t\t}\n\n\t\t$( '#' + gridId ).remove(); //Remove the grid to prevent JS Exception: Uncaught TypeError: Failed to execute 'replaceChild' on 'Node': parameter 2 is not of type 'Node'.\n\n\t\tthis.append( grid_div );\n\n\t\tvar grid = $( '#' + gridId );\n\n\t\tvar grid_columns = this.getGridColumns( gridId );\n\n\t\tvar $this = this;\n\n\t\tgrid = new TTGrid( gridId, {\n\t\t\tonSelectRow: function( e ) {\n\t\t\t\t$this.onGridSelectRow( e );\n\t\t\t},\n\t\t\tonSelectAll: function( e ) {\n\t\t\t\tfor ( var n in e ) {\n\t\t\t\t\t$this.onGridSelectRow( e[n] );\n\t\t\t\t}\n\t\t\t},\n\t\t\tondblClickRow: function() {\n\t\t\t\t$this.onGridDblClickRow();\n\t\t\t},\n\t\t\tmultiselect: false,\n\t\t\twinMultiSelect: false\n\t\t}, grid_columns );\n\n\t\tthis.setGridSize( grid );\n\t\tthis.setGridGroupColumns( gridId );\n\n\t\treturn grid; //allowing chaining off this method.\n\t}\n\n\tgetGridColumns( gridId, callBack ) {\n\t\t//override if step object needs a grid.\n\t}\n\n\tsetGridAutoHeight( grid, length ) {\n\t\tif ( length > 0 && length < 10 ) {\n\t\t\tgrid.grid.setGridHeight( length * 23 );\n\t\t} else if ( length > 10 ) {\n\t\t\tgrid.grid.setGridHeight( 400 );\n\t\t}\n\t}\n\n\tsetGridSize( grid ) {\n\t\tgrid.grid.setGridWidth( $( this.wizard_obj.el ).find( '.content .grid-div' ).width() - 11 );\n\t\tgrid.grid.setGridHeight( $( this.wizard_obj.el ).find( '.content' ).height() - 150 ); //During merge, this wasn't in MASTER branch.\n\t}\n\n\tgetRibbonButtonBox() {\n\t\tvar div = $( '<div class=\"menu ribbon-button-bar\"></div>' );\n\t\tvar ul = $( '<ul></ul>' );\n\n\t\tdiv.append( ul );\n\n\t\treturn div;\n\t}\n\n\t/**\n\t * to get old-style icons, don't provide desc\n\t * to get card-style icons, provide desc\n\t * to get card-style icons without a description, send a blank string ('') as desc\n\t *\n\t * @param id\n\t * @param icon\n\t * @param label\n\t * @param desc\n\t * @returns {*|jQuery|HTMLElement}\n\t */\n\tgetRibbonButton( id, icon, label, desc ) {\n\t\t//prelaod imgages to reduce the appearance of phantom flashing\n\t\t$( '<img></img>' )[0].src = icon;\n\n\t\tif ( typeof desc == 'undefined' ) {\n\t\t\tvar button = $( '<li><div class=\"ribbon-sub-menu-icon\" id=\"' + id + '\"><img src=\"' + icon + '\" >' + label + '</div></li>' );\n\t\t\treturn button;\n\t\t}\n\n\t\tvar container = $( '<div class=\"wizard_icon_card\" id=\"' + id + '\"></div>' );\n\n\t\tvar img = $( '<img src=\"' + icon + '\"></img>' );\n\n\t\tvar right_container = $( '<div class=\"right_container\"></div>' );\n\n\t\tvar title = $( '<h3 class=\"button_title\"></h3>' );\n\t\ttitle.html( label ? label : '' );\n\n\t\tvar description = $( '<div class=\"description\"></div>' );\n\t\tdescription.html( desc ? desc : '' );\n\n\t\tcontainer.append( img );\n\t\tright_container.append( title );\n\t\tright_container.append( description );\n\t\tcontainer.append( right_container );\n\n\t\treturn container;\n\t}\n\n\t//\n\t//stubs that should be overrideen\n\t//\n\n\tonGridSelectRow( selected_id ) {\n\t\t//\n\t}\n\n\tonGridDblClickRow( selected_id ) {\n\t\t//\n\t}\n\n\tonNavigationClick( e, icon ) {\n\t\tif ( e ) {\n\t\t\tthis.addButtonClick( e, icon );\n\t\t}\n\n\t\t//Prevent double clicking on tax wizard buttons.\n\t\tProgressBar.showOverlay();\n\n\t\t//this flag is turned off in ProgressBarManager::closeOverlay, or 2s whichever happens first\n\t\tif ( window.clickProcessing == true ) {\n\t\t\treturn;\n\t\t} else {\n\t\t\twindow.clickProcessing = true;\n\t\t\twindow.clickProcessingHandle = window.setTimeout( function() {\n\t\t\t\tif ( window.clickProcessing == true ) {\n\t\t\t\t\twindow.clickProcessing = false;\n\t\t\t\t\tProgressBar.closeOverlay();\n\t\t\t\t}\n\t\t\t}, 1000 );\n\t\t}\n\n\t\tvar api_payroll_remittance_agency_event = TTAPI.APIPayrollRemittanceAgencyEvent;\n\t\tapi_payroll_remittance_agency_event.doLogWizardEvent( this.getWizardObject().selected_remittance_agency_event_id, 'step_action', this.current_step, icon, false, true, {\n\t\t\tonResult: function( result ) {\n\t\t\t}\n\t\t} );\n\t\tthis._onNavigationClick( icon );\n\t}\n\n\t//Overridden in each Wizard step.\n\t_onNavigationClick( icon ) {\n\t}\n\n\t//Overridden in each Wizard step that needs to determine if required buttons are clicked or not.\n\tisRequiredButtonsClicked() {\n\t\treturn true;\n\t}\n\n\taddButtonClick( e, icon ) {\n\t\t// $(e.target).addClass('clicked_wizard_icon');\n\t\t// $(e.target).find('img').addClass('disable-image');\n\t\tvar element = $( e.target );\n\t\tif ( !element.hasClass( 'wizard_icon_card' ) ) {\n\t\t\telement = $( e.target ).parents( '.wizard_icon_card' );\n\t\t}\n\t\telement.addClass( 'clicked_wizard_icon' );\n\t\telement.addClass( 'disable-image' );\n\n\t\tthis.clicked_buttons[icon] = true;\n\t}\n\n\tisButtonClicked( icon ) {\n\t\tif ( this.clicked_buttons.hasOwnProperty( icon ) && typeof this.clicked_buttons[icon] != 'undefined' ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\taddButton( context_name, icon_name, title, description, button_name ) {\n\t\tif ( typeof button_name == 'undefined' ) {\n\t\t\tbutton_name = context_name;\n\t\t}\n\n\t\tvar button = this.getRibbonButton( context_name, Global.getRibbonIconRealPath( icon_name ), title, description );\n\n\t\tvar $this = this;\n\t\tbutton.unbind( 'click' ).bind( 'click', function( e ) {\n\t\t\t$this.onNavigationClick( e, button_name );\n\t\t} );\n\t\t//ribbon_button_box.find('ul').append(button);\n\n\t\tif ( this.isButtonClicked( button_name ) ) {\n\t\t\tbutton.addClass( 'clicked_wizard_icon' );\n\t\t\tbutton.addClass( 'disable-image' );\n\t\t}\n\n\t\tthis.buttons[icon_name] = button;\n\t\tthis.appendButton( button );\n\n\t\treturn button;\n\t}\n\n\tsetGridGroupColumns( gridId ) {\n\n\t}\n\n\turlClick( action_id ) {\n\t\tthis.api.getMakePaymentData( this.getWizardObject().selected_remittance_agency_event_id, action_id, {\n\t\t\tonResult: function( result ) {\n\t\t\t\tvar url = result.getResult();\n\t\t\t\tDebug.Text( 'Redirecting to external site: ' + url, 'WizardStep.js', 'WizardStep', 'urlClick', 10 );\n\t\t\t\twindow.open( url );\n\t\t\t}\n\t\t} );\n\t}\n\n\tpaymentServicesClick( action_id ) {\n\t\tthis.api.getFileAndPayWithPaymentServicesData( this.getWizardObject().selected_remittance_agency_event_id, action_id, {\n\t\t\tonResult: function( result ) {\n\t\t\t\tvar retval = result.getResult();\n\n\t\t\t\tif ( retval['user_message'] && retval['user_message'] != '' ) {\n\t\t\t\t\tTAlertManager.showAlert( retval['user_message'] );\n\t\t\t\t} else {\n\t\t\t\t\tif ( retval == false ) {\n\t\t\t\t\t\tTAlertManager.showAlert( $.i18n._( 'ERROR! Something went wrong, please contact customer service immediately!' ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\n\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODg4MC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQXdEOztBQUVqRCx5QkFBeUIsaUVBQWM7QUFDOUMsMkJBQTJCO0FBQzNCLEVBQUUsQ0FBQztBQUNIO0FBQ0E7QUFDQTtBQUNBOztBQUVBLHNCQUFzQjtBQUN0Qjs7QUFFQTs7QUFFQTtBQUNBO0FBQ0EsVUFBVSxDQUFDO0FBQ1gsaUJBQWlCLENBQUM7QUFDbEIsSUFBSTs7QUFFSjtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQSw2QkFBNkI7QUFDN0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBLEVBQUUsQ0FBQztBQUNIOztBQUVBO0FBQ0EsRUFBRSxDQUFDO0FBQ0g7O0FBRUE7O0FBRUEsT0FBTyxDQUFDO0FBQ1IsR0FBRyxDQUFDO0FBQ0o7O0FBRUEsRUFBRSxDQUFDOztBQUVIO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQ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lc3NhZ2UnXSApO1xuXHRcdFx0XHR9IGVsc2Uge1xuXHRcdFx0XHRcdGlmICggcmV0dmFsID09IGZhbHNlICkge1xuXHRcdFx0XHRcdFx0VEFsZXJ0TWFuYWdlci5zaG93QWxlcnQoICQuaTE4bi5fKCAnRVJST1IhIFNvbWV0aGluZyB3ZW50IHdyb25nLCBwbGVhc2UgY29udGFjdCBjdXN0b21lciBzZXJ2aWNlIGltbWVkaWF0ZWx5IScgKSApO1xuXHRcdFx0XHRcdH1cblx0XHRcdFx0fVxuXHRcdFx0fVxuXHRcdH0gKTtcblx0fVxuXG59Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///8880\n")},9468:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"PayrollRemittanceAgencyEventWizardStepHome\": () => (/* binding */ PayrollRemittanceAgencyEventWizardStepHome)\n/* harmony export */ });\n/* harmony import */ var _global_widgets_wizard_WizardStep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8880);\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\n\n\nclass PayrollRemittanceAgencyEventWizardStepHome extends _global_widgets_wizard_WizardStep__WEBPACK_IMPORTED_MODULE_0__.WizardStep {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tname: 'home',\n\n\t\t\tprae_grid_source_data: null,\n\t\t\tgrid: null,\n\n\t\t\tel: $( '.wizard.process_transactions_wizard' )\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit() {\n\t\tvar filter_data = {\n\t\t\tfilter_data: {\n\t\t\t\t'status_id': [10, 15], //10=Enabled (Self Service) 15=Enabled (Full Service)\n\t\t\t\t'payroll_remittance_agency_status_id': 10, //Enabled\n\t\t\t\t'start_date': ( ( new Date() / 1000 ) + ( 86400 * 14 ) ) //Move start date into the future by 14 days so per Pay Period frequencies will still appear well in advance.\n\t\t\t},\n\t\t\tfilter_columns: {\n\t\t\t\t'id': true,\n\t\t\t\t'payroll_remittance_agency_id': true,\n\t\t\t\t'legal_entity_legal_name': true,\n\t\t\t\t'payroll_remittance_agency_name': true,\n\t\t\t\t'type': true,\n\t\t\t\t'type_id': true,\n\t\t\t\t'start_date_display': true,\n\t\t\t\t'end_date_display': true,\n\t\t\t\t'due_date_display': true,\n\t\t\t\t'in_time_period': true,\n\t\t\t\t'is_split_time_period': true,\n\t\t\t},\n\t\t\t'filter_sort': {\n\t\t\t\t'status_id': 'desc',\n\t\t\t\t'due_date': 'asc',\n\t\t\t\t'legal_entity_id': 'asc',\n\t\t\t\t'payroll_remittance_agency_id': 'asc',\n\t\t\t\t'type_id': 'asc'\n\t\t\t}\n\t\t};\n\n\t\tvar $this = this;\n\n\t\tvar api_payroll_remittance_agency_event = TTAPI.APIPayrollRemittanceAgencyEvent;\n\n\t\tapi_payroll_remittance_agency_event.getPayrollRemittanceAgencyEvent( filter_data, {\n\t\t\tonResult: function( result ) {\n\t\t\t\t$this.prae_grid_source_data = result.getResult();\n\t\t\t\t$this.render();\n\t\t\t}\n\t\t} );\n\t}\n\n\tgetNextStepName() {\n\t\t//Must have a selected row in home step grid to enable the next button.\n\t\tif ( TTUUID.isUUID( this.getWizardObject().selected_remittance_agency_event_id ) ) {\n\t\t\treturn 'review';\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\t_render() {\n\t\tthis.setTitle( this.getWizardObject().wizard_name );\n\t\tif ( this.prae_grid_source_data.length > 0 ) {\n\t\t\tvar $this = this;\n\t\t\tthis.setInstructions( $.i18n._( 'Select one of the event(s) below to process' ) + ': ', function() {\n\t\t\t\tvar grid_id = 'payroll_remittance_agency_events';\n\t\t\t\tvar grid_div = $( '<div class=\\'grid-div wizard-grid-div\\'></div>' );\n\t\t\t\tvar grid_table = $( '<table id=\\'' + grid_id + '\\'></table>' );\n\t\t\t\tgrid_div.append( grid_table );\n\n\t\t\t\tif ( !$this.grid ) {\n\t\t\t\t\t$this.grid = $this.setGrid( grid_id, grid_div );\n\t\t\t\t\t$this.grid.setData( $this.prae_grid_source_data );\n\t\t\t\t}\n\t\t\t\t$this.colorGrid();\n\n\t\t\t\t$this.setGridAutoHeight( $this.grid, $this.prae_grid_source_data.length );\n\n\t\t\t\tif ( TTUUID.isUUID( $this.getWizardObject().selected_remittance_agency_event_id ) ) {\n\t\t\t\t\t$this.grid.grid.setSelection( $this.getWizardObject().selected_remittance_agency_event_id );\n\t\t\t\t} else {\n\t\t\t\t\t//select the first row on load.\n\t\t\t\t\t$this.grid.grid.setSelection( $this.grid.grid.find( 'tbody:first-child tr:nth-child(2)' ).attr( 'id' ) );\n\t\t\t\t\t$this.getWizardObject().selected_remittance_agency_event_id = $this.grid.grid.find( 'tbody:first-child tr:nth-child(2)' ).attr( 'id' );\n\t\t\t\t}\n\n\t\t\t\t$this.addButton( 'PayrollRemittanceAgency',\n\t\t\t\t\t'view_detail-35x35.png',\n\t\t\t\t\t$.i18n._( 'Edit Remittance Agency' ),\n\t\t\t\t\t$.i18n._( 'In the event of incorrect dates, edit the selected remittance agency and its events to make corrections.' )\n\t\t\t\t);\n\t\t\t} );\n\n\t\t} else {\n\t\t\tvar message = $( '<div></div>' );\n\t\t\tmessage.html( $.i18n._( 'There are no outstanding tax events at this time.' ) );\n\t\t\tthis.append( message );\n\t\t}\n\n\t\t//If the wizard is closed, it reopens to the home step and must be told what the current step is.\n\t\tthis.getWizardObject().setCurrentStepName( 'home' );\n\t}\n\n\tcolorGrid() {\n\t\tvar data = this.grid.getData();\n\t\t//Error: TypeError: data is undefined in /interface/html5/framework/jquery.min.js?v=7.4.6-20141027-074127 line 2 > eval line 70\n\t\tif ( !data ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar len = data.length;\n\n\t\tfor ( var i = 0; i < len; i++ ) {\n\t\t\tvar item = data[i];\n\n\t\t\tif ( item.in_time_period == true ) {\n\t\t\t\t$( '#' + this.grid.ui_id ).find( 'tr[id=\\'' + item.id + '\\']' ).css( 'color', '#ccc' );\n\t\t\t}\n\n\t\t}\n\t}\n\n\t_onNavigationClick( icon ) {\n\t\tswitch ( icon ) {\n\t\t\tcase 'PayrollRemittanceAgency':\n\t\t\t\tthis.getWizardObject().minimize();\n\n\t\t\t\tvar grid_data = this.grid.getData();\n\t\t\t\tvar grid_indecies = this.grid.grid.jqGrid( 'getGridParam', '_index' );\n\t\t\t\tvar remittance_agency_event = grid_data[grid_indecies [this.getWizardObject().selected_remittance_agency_event_id]];\n\n\t\t\t\tIndexViewController.openEditView( LocalCacheData.current_open_primary_controller, 'PayrollRemittanceAgency', remittance_agency_event.payroll_remittance_agency_id );\n\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tgetGridColumns( gridId, callBack ) {\n\t\tvar column_info_array = [\n\t\t\t{\n\t\t\t\tname: 'legal_entity_legal_name',\n\t\t\t\tindex: 'legal_entity_legal_name',\n\t\t\t\tlabel: $.i18n._( 'Legal Entity' ),\n\t\t\t\twidth: 90,\n\t\t\t\tsortable: true,\n\t\t\t\ttitle: false\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'payroll_remittance_agency_name',\n\t\t\t\tindex: 'payroll_remittance_agency_name',\n\t\t\t\tlabel: $.i18n._( 'Agency' ),\n\t\t\t\twidth: 200,\n\t\t\t\tsortable: true,\n\t\t\t\ttitle: false\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'type',\n\t\t\t\tindex: 'type',\n\t\t\t\tlabel: $.i18n._( 'Event' ),\n\t\t\t\twidth: 100,\n\t\t\t\tsortable: true,\n\t\t\t\ttitle: false\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'start_date_display',\n\t\t\t\tindex: 'start_date_display',\n\t\t\t\tlabel: $.i18n._( 'Start Date' ),\n\t\t\t\twidth: 60,\n\t\t\t\tsortable: true,\n\t\t\t\ttitle: false\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'end_date_display',\n\t\t\t\tindex: 'end_date_display',\n\t\t\t\tlabel: $.i18n._( 'End Date' ),\n\t\t\t\twidth: 60,\n\t\t\t\tsortable: true,\n\t\t\t\ttitle: false\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'due_date_display',\n\t\t\t\tindex: 'due_date_display',\n\t\t\t\tlabel: $.i18n._( 'Due Date' ),\n\t\t\t\twidth: 60,\n\t\t\t\tsortable: true,\n\t\t\t\ttitle: false\n\t\t\t}\n\t\t];\n\n\t\treturn column_info_array;\n\t}\n\n\tonGridSelectRow( selected_id ) {\n\t\tif ( this.getWizardObject().selected_remittance_agency_event_id != selected_id ) {\n\t\t\tthis.getWizardObject().selected_remittance_agency_event_id = selected_id;\n\n\t\t\tthis.getWizardObject().reload();\n\t\t\tthis.getWizardObject().payroll_remittance_agency_event_block = null;\n\n\t\t}\n\t\tthis.getWizardObject().enableButtons();\n\t}\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTQ2OC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQWdFOztBQUV6RCx5REFBeUQseUVBQVU7QUFDMUUsMkJBQTJCO0FBQzNCLEVBQUUsQ0FBQztBQUNIOztBQUVBO0FBQ0E7O0FBRUEsT0FBTyxDQUFDO0FBQ1IsSUFBSTs7QUFFSjtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLElBQUk7QUFDSjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxJQUFJO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsSUFBSTtBQUNKOztBQ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