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

1 line
5.8 KiB
JavaScript
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
"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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODUyLmpzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFPO0FBQ1AsMkJBQTJCO0FBQzNCLEVBQUUsQ0FBQzs7QUFFSCxJQUFJOztBQUVKO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0EsMkJBQTJCLENBQUM7QUFDNUIsMEJBQTBCLENBQUM7QUFDM0I7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFlBQVksQ0FBQztBQUNiO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQSw2RkFBNkYsZUFBZTs7QUFFNUc7O0FBRUEsbUJBQW1CLHlDQUF5QztBQUM1RDtBQUNBO0FBQ0E7QUFDQTtBQUNB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