TimeTrex/interface/html5/dist/reports-general_ledger_summary-GeneralLedgerSummaryReportViewController.bundle.js

1 line
5.8 KiB
JavaScript

"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["reports-general_ledger_summary-GeneralLedgerSummaryReportViewController"],{852:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"GeneralLedgerSummaryReportViewController\": () => (/* binding */ GeneralLedgerSummaryReportViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass GeneralLedgerSummaryReportViewController extends ReportBaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinitReport( options ) {\n\t\tthis.script_name = 'GeneralLedgerSummaryReport';\n\t\tthis.viewId = 'GeneralLedgerSummaryReport';\n\t\tthis.context_menu_name = $.i18n._( 'General Ledger Summary' );\n\t\tthis.navigation_label = $.i18n._( 'Saved Report' );\n\t\tthis.view_file = 'GeneralLedgerSummaryReportView.html';\n\t\tthis.api = TTAPI.APIGeneralLedgerSummaryReport;\n\t}\n\n\tonCustomContextClick( id, context_btn ) {\n\t\tswitch ( id ) {\n\t\t\tcase 'export_csv':\n\t\t\tcase 'export_csv_flat':\n\t\t\tcase 'quickbooks':\n\t\t\tcase 'simply':\n\t\t\tcase 'sage300':\n\t\t\tcase 'xero':\n\t\t\t\tthis.onReportMenuClick( id );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tonReportMenuClick( id ) {\n\t\tthis.onViewClick( id );\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\texclude: [],\n\t\t\tinclude: [\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Export' ),\n\t\t\t\t\tid: 'print_checks',\n\t\t\t\t\taction_group_header: true,\n\t\t\t\t\taction_group: 'export',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\tpermission_result: true,\n\t\t\t\t\tpermission: true\n\t\t\t\t}\n\t\t\t]\n\t\t};\n\n\t\tvar export_general_ledger_result = TTAPI.APIPayStub.getOptions( 'export_general_ledger', { async: false } ).getResult();\n\n\t\texport_general_ledger_result = Global.buildRecordArray( export_general_ledger_result );\n\n\t\tfor ( var i = 0; i < export_general_ledger_result.length; i++ ) {\n\t\t\tvar item = export_general_ledger_result[i];\n\t\t\tcontext_menu_model.include.push( {\n\t\t\t\tlabel: item.label,\n\t\t\t\tid: item.value,\n\t\t\t\taction_group: 'export',\n\t\t\t\tmenu_align: 'right'\n\t\t\t} );\n\t\t}\n\n\t\treturn context_menu_model;\n\t}\n\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODUyLmpzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFPO0FBQ1AsMkJBQTJCO0FBQzNCLEVBQUUsQ0FBQzs7QUFFSCxJQUFJOztBQUVKO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0EsMkJBQTJCLENBQUM7QUFDNUIsMEJBQTBCLENBQUM7QUFDM0I7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFlBQVksQ0FBQztBQUNiO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQSw2RkFBNkYsZUFBZTs7QUFFNUc7O0FBRUEsbUJBQW1CLHlDQUF5QztBQUM1RDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7O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