{"version":3,"sources":["webpack:///./src/views/reports/Allowance.vue?ed22","webpack:///./src/components/ui/Dialog.vue","webpack:///src/components/ui/Dialog.vue","webpack:///./src/components/ui/Dialog.vue?031d","webpack:///./src/components/ui/Dialog.vue?85af","webpack:///./src/utils/helper.js","webpack:///./src/views/reports/Allowance.vue","webpack:///src/views/reports/Allowance.vue","webpack:///./src/views/reports/Allowance.vue?d877","webpack:///./src/views/reports/Allowance.vue?8e0a"],"names":["render","_vm","this","_c","_self","attrs","persistent","width","model","value","showModal","callback","$$v","expression","staticClass","_v","_s","title","_t","staticRenderFns","props","type","String","default","subTitle","Number","Boolean","data","methods","closeModal","openModal","toggleModal","component","convertToCSV","objectArray","JsonData","_typeof","JSON","parse","csvString","i","length","line","index","ExportToCSVFile","headers","items","fileTitle","unshift","jsonObject","stringify","csvData","exportedFilename","concat","blob","Blob","navigator","msSaveBlob","link","document","createElement","undefined","download","url","URL","createObjectURL","setAttribute","style","visibility","body","appendChild","click","removeChild","class","alertType","alert","alertMessage","salaryPeriods","on","changeSalaryPeriod","formData","salaryPeriod","$set","paymentStatus","changePaymentStatus","payment","refPayment","isSubmit","onSubmit","contractEmployers","contractEmployerChange","contractEmployerId","downloadFormat","onSelectedFormat","selectedFormat","isDownloading","onDownload","loadingData","_e","filteredAllowanceRecords","_l","item","key","requestId","employeeName","cai","email","employer","allowance","salaryPeriodDescription","frequency","total","paymentBatchNumber","ref","scopedSlots","_u","fn","deleteJobtitle","$event","cancel","proxy","components","SelectField","Button","Dialog","TextField","search","name","id","valid","isSavingUser","allowanceRecords","text","computed","addNew","showAlertMessage","message","_this","setTimeout","openDeleteModal","$refs","deleteModal","modal","_this2","SalaryPeriodId","PaymentStatus","PaymentReference","requestService","getApprovedAllowance","then","result","forEach","requestItems","requestInfo","requestDetails","request","isNaN","requestDate","moment","format","push","contractEmployerName","employerId","summary","catch","error","finally","time","doc","JSPDF","autoTable","theme","headStyles","fillColor","textColor","alternateRowStyles","html","align","save","allowanceSheet","XLSX","json_to_sheet","allowanceWorkBook","book_new","book_append_sheet","formattedData","fileHeaders","approvalStatus","replace","formatAmount","toString","salaryPeriodId","paymentStatusId","_this3","comment","isLoading","searchRecords","filter","mounted","_this4","salaryPeriodService","getAllSalaryPeriod","contractEmployerService","getAllContractEmployers"],"mappings":"kHAAA,W,kCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,QAAQ,CAACE,MAAM,CAAC,QAAU,WAAW,CAACF,EAAG,WAAW,CAACE,MAAM,CAAC,WAAaJ,EAAIK,WAAW,YAAYL,EAAIM,OAAOC,MAAM,CAACC,MAAOR,EAAIS,UAAWC,SAAS,SAAUC,GAAMX,EAAIS,UAAUE,GAAKC,WAAW,cAAc,CAACV,EAAG,SAAS,CAACA,EAAG,eAAe,CAACW,YAAY,wBAAwB,CAACX,EAAG,KAAK,CAACW,YAAY,aAAa,CAACb,EAAIc,GAAGd,EAAIe,GAAGf,EAAIgB,YAAYd,EAAG,aAAaA,EAAG,cAAc,CAACA,EAAG,cAAc,CAACF,EAAIiB,GAAG,YAAY,GAAGf,EAAG,iBAAiB,CAACW,YAAY,8BAA8B,CAACX,EAAG,YAAYF,EAAIiB,GAAG,WAAW,IAAI,IAAI,IAAI,IAAI,IAErlBC,EAAkB,GCsBP,G,UAAA,CACfC,MAAA,CACAH,MAAA,CACAI,KAAAC,OACAC,QAAA,IAEAC,SAAA,CACAH,KAAAC,OACAC,QAAA,IAEAhB,MAAA,CACAc,KAAAI,OACAF,QAAA,KAEAjB,WAAA,CACAe,KAAAK,QACAH,SAAA,IAGAI,KAAA,WACA,OACAjB,WAAA,IAGAkB,QAAA,CACAC,WAAA,WACA,KAAAnB,WAAA,GAEAoB,UAAA,WACA,KAAApB,WAAA,GAEAqB,YAAA,WACA,KAAArB,WAAA,KAAAA,cCxD8V,I,YCO1VsB,EAAY,eACd,EACAhC,EACAmB,GACA,EACA,KACA,KACA,MAIa,OAAA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AAAyE,EAAA3H,QAEAyI,OAAA,eAEAsC,OAAAC,0BAAAtD,MAAA,SAAAC,GACAiD,EAAA9G,kBAAA6D,EAAA3H,KAAAmB,MACAwG,EAAA3H,KAAAmB,MAAAL,OAAA,GACA8J,EAAA9G,kBAAAzC,QAAA,0BCxfiW,I,wBCQ7VhB,EAAY,eACd,EACAhC,EACAmB,GACA,EACA,KACA,WACA,MAIa,aAAAa,E","file":"js/chunk-88f8083e.a1d5d336.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Allowance.vue?vue&type=style&index=0&id=62b7b618&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-dialog',{attrs:{\"persistent\":_vm.persistent,\"max-width\":_vm.width},model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v},expression:\"showModal\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline text-center\"},[_c('h3',{staticClass:\"mt-2 mb-0\"},[_vm._v(_vm._s(_vm.title))])]),_c('v-divider'),_c('v-container',[_c('v-card-text',[_vm._t(\"default\")],2),_c('v-card-actions',{staticClass:\"d-flex justify-content-end\"},[_c('v-spacer'),_vm._t(\"footer\")],2)],1)],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Dialog.vue?vue&type=template&id=3c4325c8\"\nimport script from \"./Dialog.vue?vue&type=script&lang=js\"\nexport * from \"./Dialog.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../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","const convertToCSV = (objectArray) => {\r\n const JsonData = typeof objectArray !== 'object' ? JSON.parse(objectArray) : objectArray\r\n let csvString = ''\r\n\r\n for (var i = 0; i < JsonData.length; i++) {\r\n let line = ''\r\n for (var index in JsonData[i]) {\r\n if (line !== '') line += ','\r\n\r\n line += JsonData[i][index]\r\n }\r\n\r\n csvString += line + '\\r\\n'\r\n }\r\n\r\n return csvString\r\n}\r\n\r\nconst ExportToCSVFile = (headers, items, fileTitle) => {\r\n if (headers) {\r\n items.unshift(headers)\r\n\r\n const jsonObject = JSON.stringify(items)\r\n const csvData = convertToCSV(jsonObject)\r\n const exportedFilename = `${fileTitle}.csv`\r\n const blob = new Blob([csvData], { type: 'text/csv;charset=utf-8' })\r\n if (navigator.msSaveBlob) {\r\n navigator.msSaveBlob(blob, exportedFilename)\r\n } else {\r\n const link = document.createElement('a')\r\n if (link.download !== undefined) {\r\n const url = URL.createObjectURL(blob)\r\n link.setAttribute('href', url)\r\n link.setAttribute('download', exportedFilename)\r\n link.style.visibility = 'hidden'\r\n document.body.appendChild(link)\r\n link.click()\r\n document.body.removeChild(link)\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport default ExportToCSVFile\r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-app',{},[_c('div',[_c('v-alert',{staticClass:\"alert\",class:{'alert-error':_vm.alertType=='error', 'alert-success':_vm.alertType=='success'},attrs:{\"border\":\"left\",\"dark\":\"\",\"dismissible\":\"\"},model:{value:(_vm.alert),callback:function ($$v) {_vm.alert=$$v},expression:\"alert\"}},[_vm._v(\" \"+_vm._s(_vm.alertMessage)+\" \")])],1),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 ml-auto mr-auto\"},[_c('v-container',[_c('div',{staticClass:\"mb-8 mt-8 text-center\"},[_c('h1',[_vm._v(\"Allowances\")])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 d-flex justify-start\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-3\"},[_c('SelectField',{attrs:{\"items\":_vm.salaryPeriods,\"label\":'Salary Cycle',\"itemText\":'description',\"itemValue\":'id',\"returnObject\":true},on:{\"onChange\":_vm.changeSalaryPeriod},model:{value:(_vm.formData.salaryPeriod),callback:function ($$v) {_vm.$set(_vm.formData, \"salaryPeriod\", $$v)},expression:\"formData.salaryPeriod\"}})],1),_c('div',{staticClass:\"col-md-3\"},[_c('SelectField',{attrs:{\"items\":_vm.paymentStatus,\"label\":'Payment Status',\"itemText\":'name',\"itemValue\":'id',\"returnObject\":true},on:{\"onChange\":_vm.changePaymentStatus},model:{value:(_vm.payment),callback:function ($$v) {_vm.payment=$$v},expression:\"payment\"}})],1),_c('div',{staticClass:\"col-md-3\"},[_c('TextField',{attrs:{\"label\":'Payment Ref.'},model:{value:(_vm.refPayment),callback:function ($$v) {_vm.refPayment=$$v},expression:\"refPayment\"}})],1),_c('div',[_c('Button',{staticClass:\"col-md-3\",attrs:{\"btnType\":'Submit',\"isLoading\":_vm.isSubmit,\"label\":'Submit'},on:{\"onClick\":_vm.onSubmit}})],1)])])]),_c('div',{staticClass:\"col-md-8 d-flex justify-start\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4\"},[_c('v-autocomplete',{attrs:{\"items\":_vm.contractEmployers,\"outlined\":\"\",\"dense\":\"\",\"item-text\":\"name\",\"label\":\"Contractor Employer\",\"item-value\":\"id\"},on:{\"change\":_vm.contractEmployerChange},model:{value:(_vm.contractEmployerId),callback:function ($$v) {_vm.contractEmployerId=$$v},expression:\"contractEmployerId\"}})],1),_c('div',{staticClass:\"col-md-6 export-container\"},[_c('SelectField',{attrs:{\"items\":_vm.downloadFormat,\"label\":'Download Format',\"itemText\":'name',\"itemValue\":'id',\"returnObject\":true},on:{\"input\":_vm.onSelectedFormat},model:{value:(_vm.selectedFormat),callback:function ($$v) {_vm.selectedFormat=$$v},expression:\"selectedFormat\"}}),_c('Button',{staticClass:\"col-md-3 mr-2\",attrs:{\"btnType\":'Submit',\"isLoading\":_vm.isDownloading,\"label\":'Export'},on:{\"onClick\":_vm.onDownload}})],1)])]),(_vm.loadingData)?_c('div',{staticClass:\"text-center\"},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})],1):_vm._e(),_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.filteredAllowanceRecords}}),_c('table',{attrs:{\"hidden\":\"\",\"id\":\"allowanceTable\"}},[_c('thead',[_c('tr',[_c('th',[_vm._v(\"Personnel Name\")]),_c('th',[_vm._v(\"CAI\")]),_c('th',[_vm._v(\"Email\")]),_c('th',[_vm._v(\"Contractor Employer\")]),_c('th',[_vm._v(\"Allowance Name\")]),_c('th',[_vm._v(\"Salary Cycle\")]),_c('th',[_vm._v(\"Basis\")]),_c('th',[_vm._v(\"Total\")]),_c('th',[_vm._v(\"Reference\")])])]),_c('tbody',_vm._l((_vm.filteredAllowanceRecords),function(item){return _c('tr',{key:item.requestId},[_c('td',[_vm._v(\" \"+_vm._s(item.employeeName)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.cai)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.email)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.employer)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.allowance)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.salaryPeriodDescription)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.frequency)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.total)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.paymentBatchNumber)+\" \")])])}),0)]),_c('Dialog',{ref:\"deleteModal\",attrs:{\"title\":'Are you sure you want to delete',\"width\":400},scopedSlots:_vm._u([{key:\"footer\",fn:function(){return [_c('Button',{staticClass:\"mr-2\",attrs:{\"btnType\":'Submit',\"label\":'Yes'},on:{\"onClick\":_vm.deleteJobtitle}}),_c('Button',{attrs:{\"btnType\":'Cancel',\"label\":'No'},on:{\"onClick\":function($event){return _vm.cancel('deleteModal')}}})]},proxy:true}])})],1)],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Allowance.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Allowance.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Allowance.vue?vue&type=template&id=62b7b618&scoped=true\"\nimport script from \"./Allowance.vue?vue&type=script&lang=js\"\nexport * from \"./Allowance.vue?vue&type=script&lang=js\"\nimport style0 from \"./Allowance.vue?vue&type=style&index=0&id=62b7b618&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"62b7b618\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}