TimeTrex/interface/html5/dist/reports-invoice_transaction_summary-InvoiceTransactionSummaryReportViewController.bundle.js

1 line
4.4 KiB
JavaScript
Raw Normal View History

2022-12-13 07:10:06 +01:00
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["reports-invoice_transaction_summary-InvoiceTransactionSummaryReportViewController"],{2736:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"InvoiceTransactionSummaryReportViewController\": () => (/* binding */ InvoiceTransactionSummaryReportViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass InvoiceTransactionSummaryReportViewController extends ReportBaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {} );\n\n\t\tsuper( options );\n\t}\n\n\tinitReport( options ) {\n\t\tthis.script_name = 'InvoiceTransactionSummaryReport';\n\t\tthis.viewId = 'InvoiceTransactionSummaryReport';\n\t\tthis.context_menu_name = $.i18n._( 'Transaction Summary' );\n\t\tthis.navigation_label = $.i18n._( 'Saved Report' );\n\t\tthis.view_file = 'InvoiceTransactionSummaryReportView.html';\n\t\tthis.api = TTAPI.APIInvoiceTransactionSummaryReport;\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\treturn { include: ['default'] };\n\t}\n\n\t// Overriding empty ReportBaseViewController.processFilterField() called from base.openEditView to provide view specific logic.\n\tprocessFilterField() {\n\t\tfor ( var i = 0; i < this.setup_fields_array.length; i++ ) {\n\t\t\tvar item = this.setup_fields_array[i];\n\t\t\tif ( item.value === 'invoice_transaction_type_id' ) {\n\t\t\t\titem.value = 'filter';\n\t\t\t}\n\t\t}\n\t}\n\n\tonFormItemChangeProcessFilterField( target, key ) {\n\t\tvar filter = target.getValue();\n\t\tthis.visible_report_values[key] = { invoice_transaction_type_id: filter };\n\t}\n\n\tsetFilterValue( widget, value ) {\n\t\twidget.setValue( value.invoice_transaction_type_id );\n\t}\n\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjczNi5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTztBQUNQLDJCQUEyQjtBQUMzQixFQUFFLENBQUMsdUJBQXVCOztBQUUxQjtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBLDJCQUEyQixDQUFDO0FBQzVCLDBCQUEwQixDQUFDO0FBQzNCO0FBQ0E7QUFDQTs7QUFFQTtBQUNBLFdBQVc7QUFDWDs7QUFFQTtBQUNBO0FBQ0EsbUJBQW1CLG9DQUFvQztBQUN2RDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBLHNDQUFzQztBQUN0Qzs7QUFFQTtBQUNBO0FBQ0E7O0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9pbnRlcmZhY2UvaHRtbDUvdmlld3MvcmVwb3J0cy9pbnZvaWNlX3RyYW5zYWN0aW9uX3N1bW1hcnkvSW52b2ljZVRyYW5zYWN0aW9uU3VtbWFyeVJlcG9ydFZpZXdDb250cm9sbGVyLmpzPzEzNDciXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEludm9pY2VUcmFuc2FjdGlvblN1bW1hcnlSZXBvcnRWaWV3Q29udHJvbGxlciBleHRlbmRzIFJlcG9ydEJhc2VWaWV3Q29udHJvbGxlciB7XG5cdGNvbnN0cnVjdG9yKCBvcHRpb25zID0ge30gKSB7XG5cdFx0Xy5kZWZhdWx0cyggb3B0aW9ucywge30gKTtcblxuXHRcdHN1cGVyKCBvcHRpb25zICk7XG5cdH1cblxuXHRpbml0UmVwb3J0KCBvcHRpb25zICkge1xuXHRcdHRoaXMuc2NyaXB0X25hbWUgPSAnSW52b2ljZVRyYW5zYWN0aW9uU3VtbWFyeVJlcG9ydC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