{"version":3,"sources":["webpack:///./src/router/views/reports/Tax.vue","webpack:///src/router/views/reports/Tax.vue","webpack:///./src/router/views/reports/Tax.vue?7c34","webpack:///./src/router/views/reports/Tax.vue?4396","webpack:///./src/router/views/reports/Tax.vue?6fed"],"names":["render","_vm","this","_c","_self","attrs","modelName","on","$event","show_filters","scopedSlots","_u","key","fn","staticClass","exportToCSV","_v","_s","singular","proxy","model","value","query_params","search","callback","$$v","$set","expression","ref","report_types","report_type","date_start","date_end","customer","location","register","status","user","report","fields","page","page_size","ordering","staticRenderFns","extends","BaseListView","title","computed","label","concat","sortable","data","plural","methods","_objectSpread","mapActions","query","_this","fetchSalesReport","organisation","getCurrentOrganisation","id","then","res","export_CSV","blob","Blob","type","url","URL","createObjectURL","link","document","createElement","href","download","click","revokeObjectURL","mounted","watch","component"],"mappings":"iJAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,aAAa,CAACE,MAAM,CAAC,UAAYJ,EAAIK,WAAWC,GAAG,CAAC,YAAc,SAASC,GAAQP,EAAIQ,aAAeD,IAASE,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,iBAAiBC,GAAG,WAAW,MAAO,CAACV,EAAG,WAAW,CAACW,YAAY,OAAOT,MAAM,CAAC,QAAU,WAAWE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOP,EAAIc,iBAAiB,CAACZ,EAAG,IAAI,CAACW,YAAY,sBAAsBb,EAAIe,GAAG,WAAWf,EAAIgB,GAAGhB,EAAIK,UAAUY,UAAU,SAASC,OAAM,KAAQC,MAAM,CAACC,MAAOpB,EAAIqB,aAAaC,OAAQC,SAAS,SAAUC,GAAMxB,EAAIyB,KAAKzB,EAAIqB,aAAc,SAAUG,IAAME,WAAW,yBAAyBxB,EAAG,MAAM,CAACyB,IAAI,UAAUd,YAAY,YAAYT,MAAM,CAAC,QAAUJ,EAAIQ,eAAe,CAACN,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AtC,IAAA,QAAAsC,UAAA,MAIAC,KAAA,WACA,OACA7C,UAAA,CAAAY,SAAA,aAAAkC,OAAA,cACAtB,YAAA,WACAD,aAAA,aAEAS,OAAA,KAGAe,QAAAC,8BAAA,GACAC,eAAA,qCACAC,MAAA,eAAAC,EAAA,KACA,KAAAC,iBAAAJ,eAAA,CACAK,aAAA,KAAAC,uBAAAC,GACA/B,YAAA,KAAAA,aACA,KAAAR,eACAwC,MAAA,SAAAC,GACAN,EAAAnB,OAAAyB,EAAAZ,SAGApC,YAAA,WACA,KAAA2C,iBAAAJ,eAAA,CACAK,aAAA,KAAAC,uBAAAC,GACA/B,YAAA,KAAAA,YACAkC,YAAA,GACA,KAAA1C,eACAwC,MAAA,SAAAC,GACA,IAAAzB,EAAAyB,EAAAZ,KAEAc,EAAA,IAAAC,KAAA,CAAA5B,GAAA,CAAA6B,KAAA,2BACAC,EAAAC,IAAAC,gBAAAL,GAEAM,EAAAC,SAAAC,cAAA,KACAF,EAAAG,KAAAN,EACAG,EAAAI,SAAA,iBACAJ,EAAAK,QAEAP,IAAAQ,gBAAAT,SAIAU,QAAA,WACA,KAAAtB,SAEAuB,MAAA,CACAjD,YAAA,WACA,KAAA0B,WCnE4Z,I,wBCQxZwB,EAAY,eACd,EACAhF,EACA2C,GACA,EACA,KACA,KACA,MAIa,aAAAqC,E,2CCnBf,W","file":"js/chunk-d452fbac.ff0e67fd.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('PageHeader',{attrs:{\"modelName\":_vm.modelName},on:{\"showfilters\":function($event){_vm.show_filters = $event}},scopedSlots:_vm._u([{key:\"custom-buttons\",fn:function(){return [_c('b-button',{staticClass:\"ms-1\",attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.exportToCSV()}}},[_c('i',{staticClass:\"bx bx-export me-2\"}),_vm._v(\" Export \"+_vm._s(_vm.modelName.singular)+\" \")])]},proxy:true}]),model:{value:(_vm.query_params.search),callback:function ($$v) {_vm.$set(_vm.query_params, \"search\", $$v)},expression:\"query_params.search\"}}),_c('div',{ref:\"filters\",staticClass:\"mx-1 mb-2\",attrs:{\"hidden\":!_vm.show_filters}},[_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-3\"},[_c('label',{attrs:{\"for\":\"report_type\"}},[_vm._v(\"Report Type\")]),_c('multiselect',{attrs:{\"id\":\"report_type\",\"options\":_vm.report_types},model:{value:(_vm.report_type),callback:function ($$v) {_vm.report_type=$$v},expression:\"report_type\"}})],1),_c('div',{staticClass:\"col-3\"},[_c('base-input',{attrs:{\"label\":\"Start Date\",\"type\":\"date\"},model:{value:(_vm.query_params.date_start),callback:function ($$v) {_vm.$set(_vm.query_params, \"date_start\", $$v)},expression:\"query_params.date_start\"}})],1),_c('div',{staticClass:\"col-3\"},[_c('base-input',{attrs:{\"label\":\"End Date\",\"type\":\"date\"},model:{value:(_vm.query_params.date_end),callback:function ($$v) {_vm.$set(_vm.query_params, \"date_end\", $$v)},expression:\"query_params.date_end\"}})],1),_c('div',{staticClass:\"col-3\"},[_c('base-customer-selector',{model:{value:(_vm.query_params.customer),callback:function ($$v) {_vm.$set(_vm.query_params, \"customer\", $$v)},expression:\"query_params.customer\"}})],1)]),_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-3\"},[_c('base-location-selector',{model:{value:(_vm.query_params.location),callback:function ($$v) {_vm.$set(_vm.query_params, \"location\", $$v)},expression:\"query_params.location\"}})],1),_c('div',{staticClass:\"col-3\"},[_c('base-register-selector',{model:{value:(_vm.query_params.register),callback:function ($$v) {_vm.$set(_vm.query_params, \"register\", $$v)},expression:\"query_params.register\"}})],1),_c('div',{staticClass:\"col-3\"},[_c('label',{attrs:{\"for\":\"status\"}},[_vm._v(\"Status\")]),_c('multiselect',{attrs:{\"id\":\"status\",\"options\":['Draft', 'Confirmed']},model:{value:(_vm.query_params.status),callback:function ($$v) {_vm.$set(_vm.query_params, \"status\", $$v)},expression:\"query_params.status\"}})],1),_c('div',{staticClass:\"col-3\"},[_c('base-user-selector',{model:{value:(_vm.query_params.user),callback:function ($$v) {_vm.$set(_vm.query_params, \"user\", $$v)},expression:\"query_params.user\"}})],1)]),_c('el-divider',{staticClass:\"my-4\"})],1),_c('base-card',[_c('base-table',{ref:\"table\",attrs:{\"data_\":_vm.report,\"fields\":_vm.fields},on:{\"page_change\":function($event){_vm.query_params.page = $event},\"page_size_change\":function($event){_vm.query_params.page_size = $event},\"ordering_change\":function($event){_vm.query_params.ordering = $event}}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??ref--12-1!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Tax.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??ref--12-1!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Tax.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Tax.vue?vue&type=template&id=d354799a\"\nimport script from \"./Tax.vue?vue&type=script&lang=js\"\nexport * from \"./Tax.vue?vue&type=script&lang=js\"\nimport style0 from \"./Tax.vue?vue&type=style&index=0&id=d354799a&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Tax.vue?vue&type=style&index=0&id=d354799a&prod&lang=css\""],"sourceRoot":""}