admin.chrilantech.com
Open in
urlscan Pro
160.119.101.180
Public Scan
URL:
https://admin.chrilantech.com/js/main-debtors.aadce289.js.map
Submission: On August 22 via api from US — Scanned from US
Submission: On August 22 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
{"version":3,"file":"js/main-debtors.aadce289.js","mappings":"oJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,sBAAsB,CAACE,MAAM,CAAC,iBAAiB,QAAQ,iBAAiB,+BAA+BF,EAAG,MAAM,CAACG,YAAY,aAAaD,MAAM,CAAC,GAAK,2BAA2B,mBAAmB,SAAS,mBAAmB,QAAQ,SAAW,KAAK,kBAAkB,gCAAgC,cAAc,SAAS,CAACF,EAAG,MAAM,CAACG,YAAY,uEAAuE,CAACH,EAAG,MAAM,CAACG,YAAY,iBAAiB,CAACL,EAAIM,GAAG,GAAGJ,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,OAAO,CAACK,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBT,EAAIU,OAAOC,MAAM,KAAMC,UAAU,IAAI,CAACV,EAAG,MAAM,CAACG,YAAY,8BAA8B,CAACH,EAAG,QAAQ,CAACW,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOhB,EAAe,YAAEiB,WAAW,gBAAgBZ,YAAY,wBAAwBD,MAAM,CAAC,KAAO,SAAS,KAAO,WAAW,KAAO,mBAAmB,GAAK,cAAcc,SAAS,CAAC,QAAUC,MAAMC,QAAQpB,EAAIqB,aAAarB,EAAIsB,GAAGtB,EAAIqB,YAAY,OAAO,EAAGrB,EAAe,aAAGO,GAAG,CAAC,OAAS,SAASC,GAAQ,IAAIe,EAAIvB,EAAIqB,YAAYG,EAAKhB,EAAOiB,OAAOC,IAAIF,EAAKG,QAAuB,GAAGR,MAAMC,QAAQG,GAAK,CAAC,IAA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C,KAAO,UAET,CACEkC,MAAQ,SACRY,MAAQ,SACRW,UAAU,IAIlB,EACAlD,QAAU,CACR,cAAA0C,CAAeC,GACb,OAAOjG,KAAK8F,QAAQC,KAAK,CACvBlF,KAAO,mBACPqF,MAAS,CAAED,GAAKA,IAEpB,EACA,iBAAAb,GAEE,OADApF,KAAKuD,OAAOC,cACLxD,KAAKyD,OAAOC,SAAS,qBACvBC,MAAKQ,GAAKnE,KAAK0E,QAAUP,IACzBJ,SAAQ,IAAI/D,KAAKuD,OAAOS,eAC/B,IChG6I,I,cCO7IM,GAAY,OACd,EACAxE,EACA4C,GACA,EACA,KACA,WACA,MAIF,QAAe4B,EAAiB,O","sources":["webpack://lytsoft-backoffice/./src/components/Debtors/CreateMainDebtor.vue?a19d","webpack://lytsoft-backoffice/src/components/Debtors/CreateMainDebtor.vue","webpack://lytsoft-backoffice/./src/components/Debtors/CreateMainDebtor.vue?8efc","webpack://lytsoft-backoffice/./src/components/Debtors/CreateMainDebtor.vue","webpack://lytsoft-backoffice/./src/views/Debtors/Layby/Layby.vue?0253","webpack://lytsoft-backoffice/src/views/Debtors/Layby/Layby.vue","webpack://lytsoft-backoffice/./src/views/Debtors/Layby/Layby.vue?adde","webpack://lytsoft-backoffice/./src/views/Debtors/Layby/Layby.vue","webpack://lytsoft-backoffice/./src/views/Debtors/Layby/LaybyCustomer.vue?0d2f","webpack://lytsoft-backoffice/src/views/Debtors/Layby/LaybyCustomer.vue","webpack://lytsoft-backoffice/./src/views/Debtors/Layby/LaybyCustomer.vue?11d0","webpack://lytsoft-backoffice/./src/views/Debtors/Layby/LaybyCustomer.vue","webpack://lytsoft-backoffice/./src/views/Debtors/Loyalty/Loyalty.vue?61e4","webpack://lytsoft-backoffice/src/views/Debtors/Loyalty/Loyalty.vue","webpack://lytsoft-backoffice/./src/views/Debtors/Loyalty/Loyalty.vue?d36d","webpack://lytsoft-backoffice/./src/views/Debtors/Loyalty/Loyalty.vue","webpack://lytsoft-backoffice/./src/views/Debtors/MainDebtor/MainDebtorsView.vue?3d54","webpack://lytsoft-backoffice/src/views/Debtors/MainDebtor/MainDebtorsView.vue","webpack://lytsoft-backoffice/./src/views/Debtors/MainDebtor/MainDebtorsView.vue?164b","webpack://lytsoft-backoffice/./src/views/Debtors/MainDebtor/MainDebtorsView.vue"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('floating-add-button',{attrs:{\"data-bs-toggle\":\"modal\",\"data-bs-target\":\"#staticMainDebtorBackdrop\"}}),_c('div',{staticClass:\"modal fade\",attrs:{\"id\":\"staticMainDebtorBackdrop\",\"data-bs-backdrop\":\"static\",\"data-bs-keyboard\":\"false\",\"tabindex\":\"-1\",\"aria-labelledby\":\"staticMainDebtorBackdropLabel\",\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog modal-dialog-centered modal-dialog-scrollable modal-xl\"},[_c('div',{staticClass:\"modal-content\"},[_vm._m(0),_c('div',{staticClass:\"modal-body\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_c('div',{staticClass:\"form-switch float-end mb-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.showZraList),expression:\"showZraList\"}],staticClass:\"form-check-input mx-1\",attrs:{\"role\":\"switch\",\"type\":\"checkbox\",\"name\":\"flexRadioDefault\",\"id\":\"zra-Debtor\"},domProps:{\"checked\":Array.isArray(_vm.showZraList)?_vm._i(_vm.showZraList,null)>-1:(_vm.showZraList)},on:{\"change\":function($event){var $$a=_vm.showZraList,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.showZraList=$$a.concat([$$v]))}else{$$i>-1&&(_vm.showZraList=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.showZraList=$$c}}}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"zra-Debtor\"}},[_vm._v(\" Use Zra Details \")])]),(!_vm.showZraList)?_c('div',{staticClass:\"mb-2\"},[_c('label',{staticClass:\"fw-bold\",attrs:{\"for\":\"debtor-name\"}},[_vm._v(\"Debtor Name / Business Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.name),expression:\"form.name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Debtor Name / Business Name\",\"id\":\"debtor-name\"},domProps:{\"value\":(_vm.form.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"name\", $event.target.value)}}})]):_c('div',{staticClass:\"mb-2\"},[_c('label',{staticClass:\"fw-bold\",attrs:{\"for\":\"debtor_name_select\"}},[_vm._v(\"Debtor Name / Business Name\")]),_c('v-select',{attrs:{\"id\":\"debtor_name_select\",\"reduce\":item=>item,\"required\":!_vm.form.name,\"label\":\"taxPayerName\",\"options\":_vm.zraList},on:{\"input\":_vm.selectZraDebtor,\"search\":_vm.searchTaxPayers}},[_c('template',{slot:\"no-options\"},[_c('b',[_vm._v(\"Type to search ...\")])])],2)],1),_c('div',{staticClass:\"mb-2\"},[_c('label',{staticClass:\"fw-bold\",attrs:{\"for\":\"debtor-tpin\"}},[_vm._v(\"TPIN\")]),(_vm.form.tpin)?_c('a',{staticClass:\"btn btn-primary btn-sm mx-2\",on:{\"click\":_vm.checkZRADetails}},[_c('font-awesome-icon',{attrs:{\"icon\":\"search\"}}),_vm._v(\" Verify \")],1):_vm._e(),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.tpin),expression:\"form.tpin\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Debtor TPIN\",\"id\":\"debtor-tpin\"},domProps:{\"value\":(_vm.form.tpin)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"tpin\", $event.target.value)}}})]),_c('div',{staticClass:\"mb-2\"},[_c('label',{staticClass:\"fw-bold\",attrs:{\"for\":\"debtor-reference\"}},[_vm._v(\"Account Reference\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.accid_ref),expression:\"form.accid_ref\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Account Reference\",\"id\":\"debtor-reference\"},domProps:{\"value\":(_vm.form.accid_ref)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"accid_ref\", $event.target.value)}}})]),_c('label',{staticClass:\"fw-bold\",attrs:{\"for\":\"debtor_address\"}},[_vm._v(\"Address\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.Adress),expression:\"form.Adress\"}],staticClass:\"form-control\",attrs:{\"id\":\"debtor_address\",\"placeholder\":\"Address\",\"cols\":\"30\",\"rows\":\"3\"},domProps:{\"value\":(_vm.form.Adress)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"Adress\", $event.target.value)}}}),_vm._m(1)])])])])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"modal-header\"},[_c('h6',{staticClass:\"modal-title\",attrs:{\"id\":\"staticMainDebtorBackdropLabel\"}},[_vm._v(\"Create Franchise Customer\")]),_c('button',{staticClass:\"btn-close\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\",\"id\":\"closeMainDebtorDialog\",\"aria-label\":\"Close\"}})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mt-2 d-flex justify-content-center\"},[_c('button',{staticClass:\"btn btn-primary w-50 h-100\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Submit\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <floating-add-button data-bs-toggle=\"modal\" data-bs-target=\"#staticMainDebtorBackdrop\"/>\r\n\r\n <div class=\"modal fade\" id=\"staticMainDebtorBackdrop\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\"\r\n tabindex=\"-1\"\r\n aria-labelledby=\"staticMainDebtorBackdropLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-dialog-centered modal-dialog-scrollable modal-xl\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h6 class=\"modal-title\" id=\"staticMainDebtorBackdropLabel\">Create Franchise Customer</h6>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" id=\"closeMainDebtorDialog\"\r\n aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <form @submit.prevent=\"submit\">\r\n <div class=\"form-switch float-end mb-2\">\r\n <input class=\"form-check-input mx-1\" role=\"switch\" v-model=\"showZraList\"\r\n type=\"checkbox\"\r\n name=\"flexRadioDefault\"\r\n id=\"zra-Debtor\">\r\n <label class=\"form-check-label\" for=\"zra-Debtor\">\r\n Use Zra Details\r\n </label>\r\n </div>\r\n\r\n <div class=\"mb-2\" v-if=\"!showZraList\">\r\n <label for=\"debtor-name\" class=\"fw-bold\">Debtor Name / Business Name</label>\r\n <input type=\"text\" v-model=\"form.name\" placeholder=\"Debtor Name / Business Name\" class=\"form-control\" id=\"debtor-name\">\r\n </div>\r\n\r\n <div v-else class=\"mb-2\">\r\n <label for=\"debtor_name_select\" class=\"fw-bold\">Debtor Name / Business Name</label>\r\n <v-select id=\"debtor_name_select\" :reduce=\"item=>item\" :required=\"!form.name\" label=\"taxPayerName\"\r\n :options=\"zraList\" @input=\"selectZraDebtor\" @search=\"searchTaxPayers\">\r\n <template slot=\"no-options\">\r\n <b>Type to search ...</b>\r\n </template>\r\n </v-select>\r\n </div>\r\n\r\n\r\n\r\n <div class=\"mb-2\">\r\n <label for=\"debtor-tpin\" class=\"fw-bold\">TPIN</label>\r\n <a class=\"btn btn-primary btn-sm mx-2\" v-if=\"form.tpin\" @click=\"checkZRADetails\">\r\n <font-awesome-icon icon=\"search\" />\r\n Verify\r\n </a>\r\n <input type=\"text\" v-model=\"form.tpin\" placeholder=\"Debtor TPIN\" class=\"form-control\" id=\"debtor-tpin\">\r\n </div>\r\n\r\n <div class=\"mb-2\">\r\n <label for=\"debtor-reference\" class=\"fw-bold\">Account Reference</label>\r\n <input type=\"text\" v-model=\"form.accid_ref\" placeholder=\"Account Reference\" class=\"form-control\" id=\"debtor-reference\">\r\n </div>\r\n\r\n <label for=\"debtor_address\" class=\"fw-bold\">Address</label>\r\n <textarea v-model=\"form.Adress\" class=\"form-control\" id=\"debtor_address\" placeholder=\"Address\" cols=\"30\" rows=\"3\"></textarea>\r\n\r\n <div class=\"row mt-2 d-flex justify-content-center\">\r\n <button class=\"btn btn-primary w-50 h-100\" type=\"submit\">Submit</button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport FloatingAddButton from \"@/components/layout/utils/FloatingAddButton\";\r\n\r\nexport default {\r\n name: 'CreateMainDebtor',\r\n components: {FloatingAddButton},\r\n props: {\r\n refreshData: {\r\n type: Function,\r\n required: true\r\n },\r\n },\r\n data() {\r\n return {\r\n showZraList : false,\r\n zraList: [],\r\n form: {\r\n accid_ref: null,\r\n name: null,\r\n tpin: null,\r\n Adress: null,\r\n }\r\n }\r\n },\r\n methods: {\r\n submit() {\r\n this.$utils.showLoading();\r\n return this.$store.dispatch(`createMainDebtor`,this.form)\r\n .then(()=>{\r\n document.getElementById(`closeMainDebtorDialog`).click();\r\n return this.refreshData();\r\n }).finally(()=>this.$utils.hideLoading())\r\n },\r\n searchTaxPayers(search, loading) {\r\n loading(true)\r\n return this.$store.dispatch(`searchTaxPayers`, search)\r\n .then(res => this.zraList = res)\r\n .finally(() => loading(false))\r\n },\r\n selectZraDebtor(selected) {\r\n if (!selected) return;\r\n this.form.name = selected.taxPayerName;\r\n this.form.tpin = selected.tpin;\r\n },\r\n checkZRADetails() {\r\n this.$utils.showLoading();\r\n return this.$store.dispatch(`checkZRADetails`, this.form.tpin)\r\n .then(res => {\r\n let name = res.taxPayerName;\r\n this.form.name = name\r\n if (name) this.showZraList = false\r\n }).finally(() => this.$utils.hideLoading())\r\n },\r\n }\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.modal-backdrop {\r\n z-index: -1;\r\n}\r\n\r\n</style>","import mod from \"-!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CreateMainDebtor.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CreateMainDebtor.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CreateMainDebtor.vue?vue&type=template&id=587d22f2&scoped=true\"\nimport script from \"./CreateMainDebtor.vue?vue&type=script&lang=js\"\nexport * from \"./CreateMainDebtor.vue?vue&type=script&lang=js\"\nimport style0 from \"./CreateMainDebtor.vue?vue&type=style&index=0&id=587d22f2&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"587d22f2\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('full-page',{attrs:{\"title\":\"Layby Sales\"}},[_c('div',{staticClass:\"card m-3 p-2\"},[_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"form-row row\"},[_c('div',{staticClass:\"form-group col-md-3\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Customer Name\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group col-md-3\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Cell Number\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"Number\"}})]),_c('div',{staticClass:\"form-group col-md-3\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Sales Person\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group col-md-3\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Amount\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"Number\"}})]),_c('div',{staticClass:\"col-md-3\"},[_c('label',{attrs:{\"for\":\"startDate\"}},[_vm._v(\"Start date : \")]),_c('input',{staticClass:\"form-control\",attrs:{\"type\":\"date\",\"id\":\"startDate\"}})]),_c('div',{staticClass:\"col-md-3\"},[_c('label',{attrs:{\"for\":\"endDate\"}},[_vm._v(\"End date : \")]),_c('input',{staticClass:\"form-control\",attrs:{\"type\":\"date\",\"id\":\"endDate\"}})]),_c('button',{staticClass:\"lyt-soft-btn h-50 w-100\",attrs:{\"type\":\"submit\"}},[_vm._v(\"search\")])])]),_c('div',{staticClass:\"modal fade\",attrs:{\"id\":\"termsModal\",\"data-bs-backdrop\":\"static\",\"data-bs-keyboard\":\"false\",\"tabindex\":\"-1\",\"aria-labelledby\":\"termsModalLabel\",\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog modal-dialog-centered\"},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\",attrs:{\"id\":\"termsModalLabel\"}},[_vm._v(\"Terms\")]),_c('button',{staticClass:\"btn-close\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\",\"aria-label\":\"Close\"}})]),_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"form-group mb-2\"},[_c('label',{attrs:{\"for\":\"termInput1\"}},[_vm._v(\"Number of months:\")]),_c('input',{staticClass:\"form-control\",attrs:{\"type\":\"number\",\"id\":\"termInput1\",\"placeholder\":\"Enter Term 1\"}})]),_c('div',{staticClass:\"form-group mb-2\"},[_c('label',{attrs:{\"for\":\"termInput2\"}},[_vm._v(\"Terms:\")]),_c('textarea',{staticClass:\"form-control\",attrs:{\"id\":\"termInput2\",\"rows\":\"4\",\"placeholder\":\"Enter Term 2\"}})])]),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\"}},[_vm._v(\"Close\")]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"}},[_vm._v(\"Save Terms\")])])])])]),_c('div',{staticClass:\"modal fade\",attrs:{\"id\":\"staticBackdrop\",\"data-bs-backdrop\":\"static\",\"data-bs-keyboard\":\"false\",\"tabindex\":\"-1\",\"aria-labelledby\":\"staticBackdropLabel\",\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog modal-dialog-centered modal-dialog-scrollable\"},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\",attrs:{\"id\":\"staticBackdropLabel\"}},[_vm._v(\"Actions\")]),_c('button',{staticClass:\"btn-close\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\",\"aria-label\":\"Close\"}})]),_c('div',{staticClass:\"modal-body text-center\"},[_c('div',{staticClass:\"form-group mb-2\"},[_c('button',{staticClass:\"btn btn-primary btn-lg\",attrs:{\"type\":\"button\"}},[_vm._v(\"View Layby\")])]),_c('div',{staticClass:\"form-group mb-2\"},[_c('button',{staticClass:\"btn btn-primary btn-lg\",attrs:{\"type\":\"button\"}},[_vm._v(\"Make Payment\")])]),_c('div',{staticClass:\"form-group mb-2\"},[_c('button',{staticClass:\"btn btn-primary btn-lg\",attrs:{\"type\":\"button\"}},[_vm._v(\"Reprint\")])]),_c('div',{staticClass:\"form-group mb-2\"},[_c('button',{staticClass:\"btn btn-primary btn-lg\",attrs:{\"type\":\"button\"}},[_vm._v(\"Report\")])]),_c('div',{staticClass:\"form-group\"},[_c('button',{staticClass:\"btn btn-primary btn-lg\",attrs:{\"type\":\"button\",\"data-bs-toggle\":\"modal\",\"data-bs-target\":\"#termsModal\"}},[_vm._v(\"Terms \")])])])])])]),_c('label',{staticClass:\"card-header text-primary\"},[_c('b',{staticStyle:{\"text-underline\":\"black\"}},[_vm._v(\"Sales on Layby \")])]),_c('div',{staticClass:\"card-body\"},[_c('vue-good-table',{attrs:{\"search-options\":{ enabled : true },\"columns\":_vm.columns,\"rows\":_vm.debtors,\"pagination-options\":_vm.pageOptions,\"theme\":\"polar-bear\",\"styleClass\":\"vgt-table condensed\"},scopedSlots:_vm._u([{key:\"table-row\",fn:function(props){return [(props.column.field === 'action')?_c('div',[_c('button',{staticClass:\"btn btn-info text-white\",attrs:{\"data-bs-toggle\":\"modal\",\"data-bs-target\":\"#staticBackdrop\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"pen-to-square\"}})],1)]):_c('span',[_vm._v(\" \"+_vm._s(props.formattedRow[props.column.field])+\" \")])]}}])})],1),_c('CreateMainDebtor',{attrs:{\"refresh-data\":_vm.getAllMainDebtors}})],1),_c('FloatingAddButton',{on:{\"click\":_vm.navigateToOtherPage}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <full-page title=\"Layby Sales\">\r\n <div class=\"card m-3 p-2\">\r\n <div class=\"row mb-3\">\r\n <div class=\"form-row row\">\r\n <div class=\"form-group col-md-3\">\r\n <label for=\"special-name\">Customer Name</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\"/>\r\n </div>\r\n <div class=\"form-group col-md-3\">\r\n <label for=\"special-name\">Cell Number</label>\r\n <input id=\"special-name\" type=\"Number\" class=\"form-control\"/>\r\n </div>\r\n <div class=\"form-group col-md-3\">\r\n <label for=\"special-name\">Sales Person</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\"/>\r\n </div>\r\n <div class=\"form-group col-md-3\">\r\n <label for=\"special-name\">Amount</label>\r\n <input id=\"special-name\" type=\"Number\" class=\"form-control\"/>\r\n </div>\r\n <div class=\"col-md-3\">\r\n <label for=\"startDate\">Start date : </label>\r\n <input type=\"date\" id=\"startDate\" class=\"form-control\"/>\r\n </div>\r\n\r\n <div class=\"col-md-3\">\r\n <label for=\"endDate\">End date : </label>\r\n <input type=\"date\" id=\"endDate\" class=\"form-control\"/>\r\n </div>\r\n\r\n <button type=\"submit\" class=\"lyt-soft-btn h-50 w-100\">search</button>\r\n </div>\r\n </div>\r\n\r\n <!-- Second Modal for Terms -->\r\n <div class=\"modal fade\" id=\"termsModal\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\" tabindex=\"-1\"\r\n aria-labelledby=\"termsModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-dialog-centered\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"termsModalLabel\">Terms</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <div class=\"form-group mb-2\">\r\n <label for=\"termInput1\">Number of months:</label>\r\n <input type=\"number\" class=\"form-control\" id=\"termInput1\" placeholder=\"Enter Term 1\">\r\n </div>\r\n <div class=\"form-group mb-2\">\r\n <label for=\"termInput2\">Terms:</label>\r\n <textarea class=\"form-control\" id=\"termInput2\" rows=\"4\" placeholder=\"Enter Term 2\"></textarea>\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close</button>\r\n <button type=\"button\" class=\"btn btn-primary\">Save Terms</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Modal -->\r\n <div class=\"modal fade\" id=\"staticBackdrop\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\" tabindex=\"-1\"\r\n aria-labelledby=\"staticBackdropLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-dialog-centered modal-dialog-scrollable\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"staticBackdropLabel\">Actions</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body text-center\">\r\n <div class=\"form-group mb-2\">\r\n <button type=\"button\" class=\"btn btn-primary btn-lg\">View Layby</button>\r\n </div>\r\n <div class=\"form-group mb-2\">\r\n <button type=\"button\" class=\"btn btn-primary btn-lg\">Make Payment</button>\r\n </div>\r\n <div class=\"form-group mb-2\">\r\n <button type=\"button\" class=\"btn btn-primary btn-lg\">Reprint</button>\r\n </div>\r\n <div class=\"form-group mb-2\">\r\n <button type=\"button\" class=\"btn btn-primary btn-lg\">Report</button>\r\n </div>\r\n <div class=\"form-group\">\r\n <button type=\"button\" class=\"btn btn-primary btn-lg\" data-bs-toggle=\"modal\"\r\n data-bs-target=\"#termsModal\">Terms\r\n </button>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <label class=\"card-header text-primary\">\r\n <b style=\"text-underline: black\">Sales on Layby </b>\r\n </label>\r\n <div class=\"card-body\">\r\n <vue-good-table :search-options=\"{ enabled : true }\" :columns=\"columns\" :rows=\"debtors\"\r\n :pagination-options=\"pageOptions\" theme=\"polar-bear\" styleClass=\"vgt-table condensed\">\r\n <template slot=\"table-row\" slot-scope=\"props\">\r\n\r\n <div v-if=\"props.column.field === 'action'\">\r\n <button class=\"btn btn-info text-white\" data-bs-toggle=\"modal\" data-bs-target=\"#staticBackdrop\">\r\n <font-awesome-icon icon=\"pen-to-square\"/>\r\n </button>\r\n </div>\r\n\r\n <span v-else>\r\n {{ props.formattedRow[props.column.field] }}\r\n </span>\r\n </template>\r\n </vue-good-table>\r\n </div>\r\n <CreateMainDebtor :refresh-data=\"getAllMainDebtors\"/>\r\n </div>\r\n <FloatingAddButton @click=\"navigateToOtherPage\"/>\r\n </full-page>\r\n</template>\r\n\r\n<script>\r\nimport FullPage from \"@/components/layout/utils/FullPage\";\r\nimport PageWithBackBtn from \"@/components/layout/utils/PageWithBackBtn.vue\";\r\nimport LineSeparator from \"@/components/layout/utils/LineSeparator.vue\";\r\nimport FloatingAddButton from \"@/components/layout/utils/FloatingAddButton.vue\";\r\nimport LaybyCustomer from \"@/views/Debtors/Layby/LaybyCustomer.vue\";\r\n\r\nexport default {\r\n name: \"MainDebtorsView\",\r\n components: {FloatingAddButton, LineSeparator, PageWithBackBtn, FullPage},\r\n beforeMount() {\r\n this.getAllMainDebtors();\r\n },\r\n computed: {\r\n LaybyCustomer() {\r\n return LaybyCustomer\r\n },\r\n totalOwed() {\r\n let total = 0;\r\n for (let i = 0; i < this.debtors; i++) {\r\n total += this.debtors[i].balance;\r\n }\r\n return total;\r\n },\r\n },\r\n data() {\r\n return {\r\n pageOptions: pageOptions,\r\n debtors: [],\r\n columns: [\r\n {\r\n label: `ID`,\r\n field: `name`,\r\n },\r\n {\r\n label: `Customer Name`,\r\n field: `Customer`,\r\n },\r\n {\r\n label: `Customer Surname`,\r\n field: `Customer`,\r\n },\r\n {\r\n label: `Date`,\r\n field: `Date`,\r\n },\r\n {\r\n label: `Amount`,\r\n field: `Amount`,\r\n\r\n },\r\n {\r\n field: `action`,\r\n label: `Action`,\r\n },\r\n ],\r\n }\r\n },\r\n methods: {\r\n navigateToOtherPage() {\r\n // Use the $router to navigate to the specified path\r\n this.$router.push('/LaybyCustomer')\r\n },\r\n editMainDebtor(id) {\r\n return this.$router.push({\r\n name: `edit-main-debtor`,\r\n query: {id: id}\r\n });\r\n },\r\n getAllMainDebtors() {\r\n this.$utils.showLoading();\r\n return this.$store.dispatch(`getAllMainDebtors`)\r\n .then(res => this.debtors = res)\r\n .finally(() => this.$utils.hideLoading())\r\n },\r\n },\r\n\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>","import mod from \"-!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Layby.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Layby.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Layby.vue?vue&type=template&id=33eafbfe&scoped=true\"\nimport script from \"./Layby.vue?vue&type=script&lang=js\"\nexport * from \"./Layby.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"33eafbfe\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('full-page',{attrs:{\"title\":\"Layby Customers\"}},[_c('div',{staticClass:\"card m-3 p-2\"},[_c('div',{staticClass:\"row mb-3\"},[_c('line-separator',{staticClass:\"mx-2\"}),_c('div',{staticClass:\"form-row row\"},[_c('div',{staticClass:\"form-group col-md-3\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Customer Name\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group col-md-3\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Customer surname\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"col-md-3\"},[_c('label',{attrs:{\"for\":\"startDate\"}},[_vm._v(\"From : \")]),_c('input',{staticClass:\"form-control\",attrs:{\"type\":\"date\",\"id\":\"startDate\"}})]),_c('div',{staticClass:\"col-md-3\"},[_c('label',{attrs:{\"for\":\"endDate\"}},[_vm._v(\"To : \")]),_c('input',{staticClass:\"form-control\",attrs:{\"type\":\"date\",\"id\":\"endDate\"}})])]),_c('button',{staticClass:\"lyt-soft-btn h-50 w-100\",attrs:{\"type\":\"submit\"}},[_vm._v(\"search\")])],1),_c('div',{staticClass:\"modal fade\",attrs:{\"id\":\"staticBackdrop\",\"data-bs-backdrop\":\"static\",\"data-bs-keyboard\":\"false\",\"tabindex\":\"-1\",\"aria-labelledby\":\"staticBackdropLabel\",\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog modal-dialog-centered modal-dialog-scrollable\"},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\",attrs:{\"id\":\"staticBackdropLabel\"}},[_vm._v(\"Customer Details\")]),_c('button',{staticClass:\"btn-close\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\",\"aria-label\":\"Close\"}})]),_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Name\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Surname Name\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Email\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Tpin\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"number\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Contact Number\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"number\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Address\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})])]),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\"}},[_vm._v(\"Close\")]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"}},[_vm._v(\"Save\")])])])])]),_c('label',{staticClass:\"card-header text-primary\"},[_c('b',{staticStyle:{\"text-underline\":\"#000000\"}},[_vm._v(\"Customers on Layby \")])]),_c('div',{staticClass:\"card-body\"},[_c('vue-good-table',{attrs:{\"search-options\":{ enabled : true },\"columns\":_vm.columns,\"rows\":_vm.debtors,\"pagination-options\":_vm.pageOptions,\"theme\":\"polar-bear\",\"styleClass\":\"vgt-table condensed\"},scopedSlots:_vm._u([{key:\"table-row\",fn:function(props){return [(props.column.field === 'action')?_c('div',[_c('button',{staticClass:\"btn btn-info text-white\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"pen-to-square\"}})],1)]):_c('span',[_vm._v(\" \"+_vm._s(props.formattedRow[props.column.field])+\" \")])]}}])})],1)]),_c('FloatingAddButton',{attrs:{\"data-bs-toggle\":\"modal\",\"data-bs-target\":\"#staticBackdrop\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <full-page title=\"Layby Customers\">\r\n\r\n <div class=\"card m-3 p-2\">\r\n <div class=\"row mb-3\">\r\n <line-separator class=\"mx-2\" />\r\n <div class=\"form-row row\">\r\n <div class=\"form-group col-md-3\">\r\n <label for=\"special-name\">Customer Name</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group col-md-3\">\r\n <label for=\"special-name\">Customer surname</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n <div class=\"col-md-3\">\r\n <label for=\"startDate\">From : </label>\r\n <input type=\"date\" id=\"startDate\" class=\"form-control\" />\r\n </div>\r\n\r\n <div class=\"col-md-3\">\r\n <label for=\"endDate\">To : </label>\r\n <input type=\"date\" id=\"endDate\" class=\"form-control\" />\r\n </div>\r\n\r\n </div>\r\n <button type=\"submit\" class=\"lyt-soft-btn h-50 w-100\">search</button>\r\n </div>\r\n\r\n\r\n <!-- Modal -->\r\n <div class=\"modal fade\" id=\"staticBackdrop\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\" tabindex=\"-1\" aria-labelledby=\"staticBackdropLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-dialog-centered modal-dialog-scrollable\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"staticBackdropLabel\">Customer Details</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Name</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Surname Name</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Email</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Tpin</label>\r\n <input id=\"special-name\" type=\"number\" class=\"form-control\" />\r\n </div>\r\n\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Contact Number</label>\r\n <input id=\"special-name\" type=\"number\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Address</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close</button>\r\n <button type=\"button\" class=\"btn btn-primary\">Save</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <label class=\"card-header text-primary\">\r\n <b style=\"text-underline: #000000\">Customers on Layby </b>\r\n </label>\r\n <div class=\"card-body\">\r\n <vue-good-table :search-options=\"{ enabled : true }\" :columns=\"columns\" :rows=\"debtors\"\r\n :pagination-options=\"pageOptions\" theme=\"polar-bear\" styleClass=\"vgt-table condensed\">\r\n <template slot=\"table-row\" slot-scope=\"props\">\r\n\r\n <div v-if=\"props.column.field === 'action'\">\r\n <button class=\"btn btn-info text-white\" >\r\n <font-awesome-icon icon=\"pen-to-square\" />\r\n </button>\r\n </div>\r\n\r\n <span v-else>\r\n {{ props.formattedRow[props.column.field] }}\r\n </span>\r\n </template>\r\n </vue-good-table>\r\n </div>\r\n </div>\r\n <FloatingAddButton data-bs-toggle=\"modal\" data-bs-target=\"#staticBackdrop\"/>\r\n\r\n </full-page>\r\n</template>\r\n\r\n<script>\r\nimport FullPage from \"@/components/layout/utils/FullPage\";\r\nimport CreateMainDebtor from \"@/components/Debtors/CreateMainDebtor\";\r\nimport PageWithBackBtn from \"@/components/layout/utils/PageWithBackBtn.vue\";\r\nimport LineSeparator from \"@/components/layout/utils/LineSeparator.vue\";\r\nimport FloatingAddButton from \"@/components/layout/utils/FloatingAddButton.vue\";\r\n\r\nexport default {\r\n name: \"MainDebtorsView\",\r\n components: {FloatingAddButton, LineSeparator, PageWithBackBtn, CreateMainDebtor, FullPage},\r\n beforeMount() {\r\n this.getAllMainDebtors();\r\n },\r\n computed : {\r\n totalOwed(){\r\n let total = 0;\r\n for (let i = 0; i < this.debtors ; i++) {\r\n total += this.debtors[i].balance;\r\n }\r\n return total;\r\n },\r\n },\r\n data(){\r\n return {\r\n pageOptions : pageOptions,\r\n debtors : [],\r\n columns : [\r\n {\r\n label : `ID`,\r\n field : `name`,\r\n },\r\n {\r\n label : `Customer Name`,\r\n field : `Customer`,\r\n },\r\n {\r\n label : `Created Date`,\r\n field : `Customer`,\r\n },\r\n {\r\n label : `Due`,\r\n field : `Date`,\r\n },\r\n {\r\n field : `action`,\r\n label : `Action`,\r\n },\r\n ],\r\n }\r\n },\r\n methods : {\r\n openModal() {\r\n // Use the $router to navigate to the specified path\r\n this.$router.push('/LaybyCustomer')\r\n },\r\n editMainDebtor(id){\r\n return this.$router.push({\r\n name : `edit-main-debtor` ,\r\n query : { id : id }\r\n });\r\n },\r\n getAllMainDebtors(){\r\n this.$utils.showLoading();\r\n return this.$store.dispatch(`getAllMainDebtors`)\r\n .then(res=>this.debtors = res)\r\n .finally(()=>this.$utils.hideLoading())\r\n },\r\n },\r\n\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>","import mod from \"-!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./LaybyCustomer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./LaybyCustomer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./LaybyCustomer.vue?vue&type=template&id=0671b73c&scoped=true\"\nimport script from \"./LaybyCustomer.vue?vue&type=script&lang=js\"\nexport * from \"./LaybyCustomer.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0671b73c\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('full-page',{attrs:{\"title\":\"Loyalty customer\"}},[_c('div',{staticClass:\"modal fade\",attrs:{\"id\":\"staticBackdrop\",\"data-bs-backdrop\":\"static\",\"data-bs-keyboard\":\"false\",\"tabindex\":\"-1\",\"aria-labelledby\":\"staticBackdropLabel\",\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog modal-dialog-centered modal-dialog-scrollable\"},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\",attrs:{\"id\":\"staticBackdropLabel\"}},[_vm._v(\"Add Loyalty Customer\")]),_c('button',{staticClass:\"btn-close\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\",\"aria-label\":\"Close\"}})]),_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Name\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"cell\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Name\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Surname\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"contact\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"number\"}})]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"special-name\"}},[_vm._v(\"Email\")]),_c('input',{staticClass:\"form-control\",attrs:{\"id\":\"special-name\",\"type\":\"text\"}})])]),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"}},[_vm._v(\"save\")])])])])])]),_c('label',{staticClass:\"card-header text-primary\"},[_c('b',{staticStyle:{\"text-underline\":\"black\"}},[_vm._v(\"Loyalty list\")])]),_c('div',{staticClass:\"card-body\"},[_c('vue-good-table',{attrs:{\"search-options\":{ enabled : true },\"columns\":_vm.columns,\"rows\":_vm.debtors,\"pagination-options\":_vm.pageOptions,\"theme\":\"polar-bear\",\"styleClass\":\"vgt-table condensed\"},scopedSlots:_vm._u([{key:\"table-row\",fn:function(props){return [(props.column.field === 'action')?_c('div',[_c('button',{staticClass:\"btn btn-info text-white\",attrs:{\"data-bs-toggle\":\"modal\",\"data-bs-target\":\"#staticBackdrop\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"pen-to-square\"}})],1)]):_c('span',[_vm._v(\" \"+_vm._s(props.formattedRow[props.column.field])+\" \")])]}}])})],1),_c('FloatingAddButton',{attrs:{\"data-bs-toggle\":\"modal\",\"data-bs-target\":\"#staticBackdrop\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <full-page title=\"Loyalty customer\">\r\n\r\n\r\n\r\n <!-- Modal -->\r\n <div class=\"modal fade\" id=\"staticBackdrop\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\" tabindex=\"-1\" aria-labelledby=\"staticBackdropLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-dialog-centered modal-dialog-scrollable\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"staticBackdropLabel\">Add Loyalty Customer</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n\r\n <div class=\"modal-body\">\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Name</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">cell</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Name</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Surname</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">contact</label>\r\n <input id=\"special-name\" type=\"number\" class=\"form-control\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"special-name\">Email</label>\r\n <input id=\"special-name\" type=\"text\" class=\"form-control\" />\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"button\" class=\"btn btn-primary\">save</button>\r\n </div> </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <label class=\"card-header text-primary\">\r\n <b style=\"text-underline: black\">Loyalty list</b>\r\n </label>\r\n <div class=\"card-body\">\r\n <vue-good-table :search-options=\"{ enabled : true }\" :columns=\"columns\" :rows=\"debtors\"\r\n :pagination-options=\"pageOptions\" theme=\"polar-bear\" styleClass=\"vgt-table condensed\">\r\n <template slot=\"table-row\" slot-scope=\"props\">\r\n\r\n <div v-if=\"props.column.field === 'action'\">\r\n <button class=\"btn btn-info text-white\" data-bs-toggle=\"modal\" data-bs-target=\"#staticBackdrop\" >\r\n <font-awesome-icon icon=\"pen-to-square\" />\r\n </button>\r\n </div>\r\n\r\n <span v-else>\r\n {{ props.formattedRow[props.column.field] }}\r\n </span>\r\n </template>\r\n </vue-good-table>\r\n </div>\r\n <FloatingAddButton data-bs-toggle=\"modal\" data-bs-target=\"#staticBackdrop\"/>\r\n\r\n </full-page>\r\n</template>\r\n\r\n<script>\r\nimport FullPage from \"@/components/layout/utils/FullPage\";\r\nimport PageWithBackBtn from \"@/components/layout/utils/PageWithBackBtn.vue\";\r\nimport LineSeparator from \"@/components/layout/utils/LineSeparator.vue\";\r\nimport FloatingAddButton from \"@/components/layout/utils/FloatingAddButton.vue\";\r\n\r\nexport default {\r\n name: \"MainDebtorsView\",\r\n components: {FloatingAddButton, LineSeparator, PageWithBackBtn, FullPage},\r\n beforeMount() {\r\n this.getAllMainDebtors();\r\n },\r\n computed : {\r\n totalOwed(){\r\n let total = 0;\r\n for (let i = 0; i < this.debtors ; i++) {\r\n total += this.debtors[i].balance;\r\n }\r\n return total;\r\n },\r\n },\r\n data(){\r\n return {\r\n pageOptions : pageOptions,\r\n debtors : [],\r\n columns : [\r\n {\r\n label : `Name`,\r\n field : `name`,\r\n },\r\n {\r\n label : `Cell`,\r\n field : `Customer`,\r\n },\r\n {\r\n label : `Email`,\r\n field : `Customer`,\r\n },\r\n {\r\n label : `Points`,\r\n field : `Date`,\r\n },\r\n\r\n {\r\n field : `action`,\r\n label : `Action`,\r\n },\r\n ],\r\n }\r\n },\r\n methods : {\r\n navigateToOtherPage() {\r\n // Use the $router to navigate to the specified path\r\n this.$router.push('/LaybyCustomer')\r\n },\r\n editMainDebtor(id){\r\n return this.$router.push({\r\n name : `edit-main-debtor` ,\r\n query : { id : id }\r\n });\r\n },\r\n getAllMainDebtors(){\r\n this.$utils.showLoading();\r\n return this.$store.dispatch(`getAllMainDebtors`)\r\n .then(res=>this.debtors = res)\r\n .finally(()=>this.$utils.hideLoading())\r\n },\r\n },\r\n\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>","import mod from \"-!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Loyalty.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Loyalty.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Loyalty.vue?vue&type=template&id=d2bbb846&scoped=true\"\nimport script from \"./Loyalty.vue?vue&type=script&lang=js\"\nexport * from \"./Loyalty.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d2bbb846\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('full-page',{attrs:{\"title\":\"Franchise / Main Customers\"}},[_c('div',{staticClass:\"card m-3\"},[_c('label',{staticClass:\"card-header text-primary\"},[_c('b',{staticStyle:{\"text-underline\":\"black\"}},[_vm._v(\"Franchise Customers\")]),_c('h5',{class:_vm.totalOwed > 0?`mx-3 badge bg-warning`:`mx-3 badge bg-success`},[_vm._v(\"TOTAL OWED : \"+_vm._s(_vm.$utils.formatMoney(_vm.totalOwed)))])]),_c('div',{staticClass:\"card-body\"},[_c('vue-good-table',{attrs:{\"search-options\":{ enabled : true },\"columns\":_vm.columns,\"rows\":_vm.debtors,\"pagination-options\":_vm.pageOptions,\"theme\":\"polar-bear\",\"styleClass\":\"vgt-table condensed\"},scopedSlots:_vm._u([{key:\"table-row\",fn:function(props){return [(props.column.field === 'action')?_c('div',[_c('button',{staticClass:\"btn btn-info text-white\",on:{\"click\":function($event){return _vm.editMainDebtor(props.row.id)}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"pen-to-square\"}})],1)]):_c('span',[_vm._v(\" \"+_vm._s(props.formattedRow[props.column.field])+\" \")])]}}])})],1),_c('CreateMainDebtor',{attrs:{\"refresh-data\":_vm.getAllMainDebtors}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <full-page title=\"Franchise / Main Customers\">\r\n <div class=\"card m-3\">\r\n <label class=\"card-header text-primary\">\r\n <b style=\"text-underline: black\">Franchise Customers</b>\r\n <h5 :class=\"totalOwed > 0?`mx-3 badge bg-warning`:`mx-3 badge bg-success`\">TOTAL OWED : {{ $utils.formatMoney(totalOwed) }}</h5>\r\n </label>\r\n\r\n <div class=\"card-body\">\r\n <vue-good-table :search-options=\"{ enabled : true }\" :columns=\"columns\" :rows=\"debtors\"\r\n :pagination-options=\"pageOptions\" theme=\"polar-bear\" styleClass=\"vgt-table condensed\">\r\n <template slot=\"table-row\" slot-scope=\"props\">\r\n\r\n <div v-if=\"props.column.field === 'action'\">\r\n <button class=\"btn btn-info text-white\" @click=\"editMainDebtor(props.row.id)\">\r\n <font-awesome-icon icon=\"pen-to-square\" />\r\n </button>\r\n </div>\r\n\r\n <span v-else>\r\n {{ props.formattedRow[props.column.field] }}\r\n </span>\r\n </template>\r\n </vue-good-table>\r\n </div>\r\n <CreateMainDebtor :refresh-data=\"getAllMainDebtors\" />\r\n </div>\r\n </full-page>\r\n</template>\r\n\r\n<script>\r\nimport FullPage from \"@/components/layout/utils/FullPage\";\r\nimport CreateMainDebtor from \"@/components/Debtors/CreateMainDebtor\";\r\n\r\nexport default {\r\n name: \"MainDebtorsView\",\r\n components: {CreateMainDebtor, FullPage},\r\n beforeMount() {\r\n this.getAllMainDebtors();\r\n },\r\n computed : {\r\n totalOwed(){\r\n let total = 0;\r\n for (let i = 0; i < this.debtors ; i++) {\r\n total += this.debtors[i].balance;\r\n }\r\n return total;\r\n },\r\n },\r\n data(){\r\n return {\r\n pageOptions : pageOptions,\r\n debtors : [],\r\n columns : [\r\n {\r\n label : `Name`,\r\n field : `name`,\r\n },\r\n {\r\n label : `TPIN`,\r\n field : `tpin`,\r\n },\r\n {\r\n label : `Address`,\r\n field : `Adress`,\r\n },\r\n {\r\n label : `# of Stores`,\r\n field : `storeCount`,\r\n type : `number`,\r\n },\r\n {\r\n label : `Balance`,\r\n field : `balance`,\r\n type : `number`,\r\n },\r\n {\r\n field : `action`,\r\n label : `Action`,\r\n sortable: false,\r\n },\r\n ],\r\n }\r\n },\r\n methods : {\r\n editMainDebtor(id){\r\n return this.$router.push({\r\n name : `edit-main-debtor` ,\r\n query : { id : id }\r\n });\r\n },\r\n getAllMainDebtors(){\r\n this.$utils.showLoading();\r\n return this.$store.dispatch(`getAllMainDebtors`)\r\n .then(res=>this.debtors = res)\r\n .finally(()=>this.$utils.hideLoading())\r\n },\r\n },\r\n\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>","import mod from \"-!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MainDebtorsView.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MainDebtorsView.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./MainDebtorsView.vue?vue&type=template&id=212bd2a6&scoped=true\"\nimport script from \"./MainDebtorsView.vue?vue&type=script&lang=js\"\nexport * from \"./MainDebtorsView.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"212bd2a6\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","attrs","staticClass","_m","on","$event","preventDefault","submit","apply","arguments","directives","name","rawName","value","expression","domProps","Array","isArray","showZraList","_i","$$a","$$el","target","$$c","checked","$$v","$$i","concat","slice","_v","item","form","zraList","selectZraDebtor","searchTaxPayers","slot","composing","$set","checkZRADetails","_e","staticRenderFns","components","FloatingAddButton","props","refreshData","type","Function","required","data","accid_ref","tpin","Adress","methods","$utils","showLoading","$store","dispatch","then","document","getElementById","click","finally","hideLoading","search","loading","res","selected","taxPayerName","component","staticStyle","enabled","columns","debtors","pageOptions","scopedSlots","_u","key","fn","column","field","_s","formattedRow","getAllMainDebtors","navigateToOtherPage","beforeMount","computed","LaybyCustomer","totalOwed","total","i","balance","label","$router","push","editMainDebtor","id","query","openModal","class","formatMoney","row","CreateMainDebtor","sortable"],"sourceRoot":""}