{"version":3,"sources":["webpack:///./node_modules/lodash/isEmpty.js","webpack:///./src/views/paymententry/storeMixin.js","webpack:///./src/views/paymententry/PaymentEntryAdvancePaymentModal.vue?3e95","webpack:///./src/views/paymententry/PaymentEntryValidation.js","webpack:///./src/views/paymententry/PaymentEntryAdvancePayment.vue?495e","webpack:///./src/views/paymententry/PaymentEntryAdvancePaymentModal.vue","webpack:///./src/views/paymententry/PaymentEntryAdvancePayment.vue","webpack:///src/views/paymententry/PaymentEntryAdvancePayment.vue","webpack:///./src/views/paymententry/PaymentEntryAdvancePayment.vue?0440","webpack:///./src/views/paymententry/PaymentEntryAdvancePayment.vue?63ff","webpack:///src/views/paymententry/PaymentEntryAdvancePaymentModal.vue","webpack:///./src/views/paymententry/PaymentEntryAdvancePaymentModal.vue?7eb8","webpack:///./src/views/paymententry/PaymentEntryAdvancePaymentModal.vue?838b"],"names":["baseKeys","getTag","isArguments","isArray","isArrayLike","isBuffer","isPrototype","isTypedArray","mapTag","setTag","objectProto","Object","prototype","hasOwnProperty","isEmpty","value","splice","length","tag","size","key","call","module","exports","moduleName","computed","mapGetters","returnRoute","snapshots","baseSnapshot","currentSnapshot","snapshotDiff","readOnlyView","methods","mapActions","setPrintPreviewReturnRoute","addEmailer","removeEmailer","addReportParameters","removeReportParameters","provide","$vv","this","$v","validations","advancePaymentGroup","entity","vendorID","required","validGuid","guidValidator","payDate","render","_vm","_c","_self","isActive","attrs","animationIn","animationOut","animationDuration","on","$event","staticClass","class","showIcon","_v","isNewEntity","showAmount","model","callback","$$v","expression","style","buttonLocation","directives","name","rawName","isNew","save","print","close","_e","staticRenderFns","_m","$error","vendors","isVendorLoading","vendorFilter","pageSize","selectVendor","removeVendor","getVendorDropdownFilter","scopedSlots","_u","fn","props","_s","option","selectedVendor","slot","formats","$userInfo","locale","$filters","getIanaTimezone","selectedPayDate","fromISOWithCurrentTime","toISOString","inputValue","inputEvents","_g","domProps","formatDateTimezone","innerValue","paid","$set","previousAdvance","total","cheque","target","composing","glBankAccountListCombo","isGlBankAccountLoading","selectedBankAccount","inject","components","Multiselect","VueNumeric","mixins","type","active","default","iconType","iconName","enableAttach","defaultEmail","data","pageIndex","title","weekdays","navMonths","input","dayPopover","highlight","backgroundColor","popover","label","dates","watch","handler","deep","created","mounted","getVendorDropdown","VendorService","selected","PaymentEntryService","resetSelectedVendors","GetGlBankAccountsDropdown","component","BaseModalEx","PaymentEntryAdvancePayment","validateError","beforeDestroy","getEntity","reset","response","params","REPORTTITLE","CompanyID","VendorId","InvoiceID","timezoneoffset","keyValuePairs","KeyValuePairModel","reportName","emailer","query","parameterId","emailerId","removeQueries","sessionStorage","clearSessionStorage"],"mappings":"kJAAA,IAAIA,EAAW,EAAQ,QACnBC,EAAS,EAAQ,QACjBC,EAAc,EAAQ,QACtBC,EAAU,EAAQ,QAClBC,EAAc,EAAQ,QACtBC,EAAW,EAAQ,QACnBC,EAAc,EAAQ,QACtBC,EAAe,EAAQ,QAGvBC,EAAS,eACTC,EAAS,eAGTC,EAAcC,OAAOC,UAGrBC,EAAiBH,EAAYG,eAmCjC,SAASC,EAAQC,GACf,GAAa,MAATA,EACF,OAAO,EAET,GAAIX,EAAYW,KACXZ,EAAQY,IAA0B,iBAATA,GAA4C,mBAAhBA,EAAMC,QAC1DX,EAASU,IAAUR,EAAaQ,IAAUb,EAAYa,IAC1D,OAAQA,EAAME,OAEhB,IAAIC,EAAMjB,EAAOc,GACjB,GAAIG,GAAOV,GAAUU,GAAOT,EAC1B,OAAQM,EAAMI,KAEhB,GAAIb,EAAYS,GACd,OAAQf,EAASe,GAAOE,OAE1B,IAAK,IAAIG,KAAOL,EACd,GAAIF,EAAeQ,KAAKN,EAAOK,GAC7B,OAAO,EAGX,OAAO,EAGTE,EAAOC,QAAUT,G,gEC1EXU,EAAa,iBAEJ,QACbC,SAAU,iCACLC,eAAWF,EAAY,CACxBG,YAAa,cACbC,UAAW,YACXC,aAAc,eACdC,gBAAiB,kBACjBC,aAAc,eACdC,aAAc,kBAEbN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AC,UAGAC,QAhFA,WAgFA,oKACA,cADA,8CAGAC,QAnFA,WAoFA,+BAEAW,cAtFA,WAuFA,uBACA,0BAGAnI,SACAoI,UADA,WACA,gBAAI,EAAJ,uJAAAC,kCAAA,SAEA,iBACA,IACA,wBACA,8CAEA,kBAPA,gCAQA,2CARA,OAWA,gCACA,6BAZA,qDAcA,6CAdA,QAgBA,iBAhBA,6DAkBAvF,KAnBA,WAmBA,+JACA4D,EAAA,mBACA,gBAFA,uBAGA,mGAHA,mBAIA,GAJA,UAKA,kBALA,wBAMA,0EANA,mBAOA,GAPA,aAQA,uCARA,wBASA,2GATA,mBAUA,GAVA,qBAaA,6BAEA,eAfA,kCAgBAkB,4BAhBA,QAgBAU,EAhBA,kBAkBA,kBACAA,6BAnBA,kCAoBA,gBApBA,QAqBA,kFArBA,kCAuBA,GAvBA,6CAyBA,iBACA,+CACA,+BAEA,4DA7BA,mBA+BA,GA/BA,8DAkCAtF,MArDA,WAsDA,mDACA,2BACA,+BACA,qBAEAD,MA3DA,WA2DA,gKACAwF,EAAA,CACAC,uCACAC,gCACAC,2BACAC,qCACAC,mDAGAC,EAAAC,iCACA,yBAEAC,EAAA,sBAEAC,EAAA,WACAA,4BACAA,kDACAA,8BACAA,qDACAA,eACA,gBACA,gBACArG,8BACA4F,QAAAQ,wCACAE,OAAAC,8BAAAC,kBAxBA,+CA2BAC,cAtFA,WAuFAC,yFACAA,qFAEAC,oBA1FA,WA2FA,wBCxPuX,ICQnX,G,UAAY,eACd,EACAnI,EACA+B,GACA,EACA,KACA,WACA,OAIa,S","file":"static/js/creditorlist-chunk~paymententrylist-chunk~paymentlist-chunk.e21b494e.js","sourcesContent":["var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n","import { mapGetters, mapActions } from 'vuex'\n\nconst moduleName = 'paymententries'\n\nexport default {\n computed: {\n ...mapGetters(moduleName, {\n returnRoute: 'returnRoute',\n snapshots: 'snapshots',\n baseSnapshot: 'baseSnapshot',\n currentSnapshot: 'currentSnapshot',\n snapshotDiff: 'snapshotDiff',\n readOnlyView: 'readOnlyView'\n }),\n ...mapGetters(['licenceExpired'])\n },\n methods: {\n ...mapActions(moduleName, [\n 'getStoreItem',\n 'addStoreItem',\n 'addStoreItemPaymentEntry',\n 'getStoreItemPaymentEntry',\n 'saveSnapshot',\n 'clearSnapshots',\n 'setReturnRoute',\n 'setReadOnlyView'\n ]),\n ...mapActions('printpreview', { setPrintPreviewReturnRoute: 'setReturnRoute', addEmailer: 'addEmailer', removeEmailer: 'removeEmailer' }),\n ...mapActions('printpreview', { addReportParameters: 'addParameters', removeReportParameters: 'removeParameters' })\n }\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentEntryAdvancePaymentModal.vue?vue&type=style&index=0&id=65f8c805&prod&lang=scss&scoped=true\"","import { required } from 'vuelidate/lib/validators'\nimport { guidValidator } from '@/components/validators'\n\nexport default {\n provide: function() {\n return {\n $vv: this.$v\n }\n },\n validations: {\n advancePaymentGroup: ['entity.vendorID', 'entity.payDate'],\n entity: {\n vendorID: {\n required,\n validGuid: guidValidator\n },\n payDate: {\n required\n }\n }\n }\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentEntryAdvancePayment.vue?vue&type=style&index=0&id=3070ee48&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.isActive)?_c('base-modal-ex',{attrs:{\"active\":_vm.isActive,\"animation-in\":_vm.animationIn,\"animation-out\":_vm.animationOut,\"animation-duration\":_vm.animationDuration,\"can-cancel\":false,\"min-width\":40,\"min-height\":50,\"has-modal-card\":\"\"},on:{\"update:active\":function($event){_vm.isActive=$event}}},[_c('header',{staticClass:\"modal-card-head\"},[_c('div',{staticClass:\"modal-card-title\",class:{ 'is-flex-items-center' : _vm.showIcon}},[_c('span',[_vm._v(\"Advance Payment Entry\")])])]),_c('section',{staticClass:\"modal-card-body\"},[_c('payment-entry-advance-payment',{attrs:{\"is-new-entity\":_vm.isNewEntity,\"show-amount\":_vm.showAmount,\"read-only-view\":_vm.readOnlyView},model:{value:(_vm.entity),callback:function ($$v) {_vm.entity=$$v},expression:\"entity\"}})],1),_c('footer',{staticClass:\"modal-card-foot\",style:(`justify-content: flex-${_vm.buttonLocation}`)},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.entity.isNew),expression:\"entity.isNew\"}],staticClass:\"button is-success tooltip\",attrs:{\"data-tooltip\":\"Save\"},on:{\"click\":function($event){return _vm.save()}}},[_c('span',{staticClass:\"icon\"},[_c('i',{staticClass:\"mdi mdi-content-save mdi-18px\"})]),_c('span',[_vm._v(\"Save\")])]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.entity.isNew),expression:\"!entity.isNew\"}],staticClass:\"button is-primary tooltip\",attrs:{\"data-tooltip\":\"Print\"},on:{\"click\":function($event){return _vm.print()}}},[_c('span',{staticClass:\"icon\"},[_c('i',{staticClass:\"mdi mdi-printer mdi-18px\"})]),_c('span',[_vm._v(\"Print\")])]),_c('button',{staticClass:\"button tooltip\",attrs:{\"data-tooltip\":\"Close\"},on:{\"click\":function($event){return _vm.close()}}},[_vm._v(\"Close\")])])]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('article',{staticClass:\"tile is-child box detail-page-tile\"},[_c('div',{staticClass:\"field is-horizontal\"},[_vm._m(0),_c('div',{staticClass:\"input-width\"},[_c('div',{staticClass:\"field\"},[_c('multiselect',{class:{ 'is-danger' : _vm.$v.entity.vendorID.$error },attrs:{\"deselect-label\":\"Can't remove this value\",\"track-by\":\"key\",\"label\":\"value\",\"placeholder\":\"Select Vendor\",\"options\":_vm.vendors,\"loading\":_vm.isVendorLoading,\"internal-search\":false,\"options-limit\":_vm.vendorFilter.pageSize,\"searchable\":true,\"show-labels\":false,\"allow-empty\":true,\"disabled\":!_vm.isNewEntity},on:{\"select\":_vm.selectVendor,\"remove\":_vm.removeVendor,\"search-change\":_vm.getVendorDropdownFilter},scopedSlots:_vm._u([{key:\"option\",fn:function(props){return [_c('span',[_vm._v(_vm._s(props.option.value))])]}}]),model:{value:(_vm.selectedVendor),callback:function ($$v) {_vm.selectedVendor=$$v},expression:\"selectedVendor\"}},[_c('span',{staticClass:\"has-text-danger\",attrs:{\"slot\":\"noResult\"},slot:\"noResult\"},[_vm._v(\"Vendor not found.\")])]),(_vm.$v.entity && !_vm.$v.entity.vendorID.validGuid)?_c('span',{staticClass:\"help is-danger\"},[_vm._v(\"Vendor is required.\")]):_vm._e()],1)])]),_c('div',{staticClass:\"field is-horizontal\"},[_vm._m(1),_c('div',{staticClass:\"input-width\"},[_c('div',{staticClass:\"field-body\"},[_c('div',{staticClass:\"field is-narrow\"},[_c('div',{staticClass:\"control\"},[(!_vm.isNewEntity)?_c('div',{staticClass:\"control\"},[_c('input',{staticClass:\"input is-static\",attrs:{\"readonly\":\"\"},domProps:{\"value\":_vm.$filters.formatDateTimezone(_vm.innerValue.payDate, _vm.$userInfo.locale)}})]):_c('v-date-picker',{attrs:{\"masks\":_vm.formats,\"attributes\":_vm.attrs,\"locale\":_vm.$userInfo.locale,\"timezone\":_vm.$filters.getIanaTimezone()},on:{\"input\":function($event){_vm.selectedPayDate = _vm.$filters.fromISOWithCurrentTime($event.toISOString())}},scopedSlots:_vm._u([{key:\"default\",fn:function({ inputValue, inputEvents }){return [_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control has-icons-left\"},[_c('input',_vm._g({staticClass:\"input\",attrs:{\"type\":\"text\",\"placeholder\":\"Pay Date\",\"readonly\":\"\"},domProps:{\"value\":inputValue}},inputEvents)),_c('span',{staticClass:\"icon is-small is-left\"},[_c('i',{staticClass:\"mdi mdi-calendar mdi-18px\"})])])])]}}]),model:{value:(_vm.selectedPayDate),callback:function ($$v) {_vm.selectedPayDate=$$v},expression:\"selectedPayDate\"}})],1)])])])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showAmount),expression:\"showAmount\"}],staticClass:\"field is-horizontal\"},[_vm._m(2),_c('div',{staticClass:\"input-width\"},[_c('div',{staticClass:\"field-body\"},[_c('div',{staticClass:\"field is-narrow\"},[_c('div',{staticClass:\"control\"},[_c('vue-numeric',{staticClass:\"input no-border has-text-right has-text-success\",attrs:{\"type\":\"text\",\"symbol\":\"$\",\"placeholder\":\"\",\"disabled\":!_vm.isNewEntity,\"min\":0,\"precision\":2},model:{value:(_vm.innerValue.paid),callback:function ($$v) {_vm.$set(_vm.innerValue, \"paid\", $$v)},expression:\"innerValue.paid\"}})],1)])])])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showAmount),expression:\"showAmount\"}],staticClass:\"field is-horizontal\"},[_vm._m(3),_c('div',{staticClass:\"input-width\"},[_c('div',{staticClass:\"field-body\"},[_c('div',{staticClass:\"field is-narrow\"},[_c('div',{staticClass:\"control\"},[_c('vue-numeric',{staticClass:\"input no-border has-text-right has-text-success\",attrs:{\"type\":\"text\",\"symbol\":\"$\",\"placeholder\":\"\",\"minus\":true,\"disabled\":true,\"precision\":2},model:{value:(_vm.innerValue.previousAdvance),callback:function ($$v) {_vm.$set(_vm.innerValue, \"previousAdvance\", $$v)},expression:\"innerValue.previousAdvance\"}})],1)])])])]),_c('div',{staticClass:\"field is-horizontal\"},[_vm._m(4),_c('div',{staticClass:\"input-width\"},[_c('div',{staticClass:\"field-body\"},[_c('div',{staticClass:\"field is-narrow\"},[_c('div',{staticClass:\"control\"},[_c('vue-numeric',{staticClass:\"input no-border has-text-right has-text-success\",attrs:{\"type\":\"text\",\"symbol\":\"$\",\"placeholder\":\"\",\"value\":_vm.total,\"minus\":true,\"disabled\":true,\"precision\":2}})],1)])])])]),_c('div',{staticClass:\"field is-horizontal\"},[_vm._m(5),_c('div',{staticClass:\"input-width\"},[_c('div',{staticClass:\"field-body\"},[_c('div',{staticClass:\"field is-narrow\"},[_c('p',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.innerValue.cheque),expression:\"innerValue.cheque\"}],staticClass:\"input is-capitalized\",attrs:{\"type\":\"text\",\"placeholder\":\"Cheque No.\",\"disabled\":!_vm.isNewEntity},domProps:{\"value\":(_vm.innerValue.cheque)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.innerValue, \"cheque\", $event.target.value)}}})])])])])]),_c('div',{staticClass:\"field is-horizontal\"},[_vm._m(6),_c('div',{staticClass:\"input-width\"},[_c('div',{staticClass:\"field acc-column-width\"},[(_vm.glBankAccountListCombo)?_c('multiselect',{attrs:{\"options\":_vm.glBankAccountListCombo,\"loading\":_vm.isGlBankAccountLoading,\"disabled\":!_vm.isNewEntity,\"open-direction\":\"above\",\"placeholder\":\"Select account\",\"label\":\"displayName\",\"deselect-label\":\"Can't remove this value\",\"track-by\":\"accountNo\",\"allow-empty\":false},model:{value:(_vm.selectedBankAccount),callback:function ($$v) {_vm.selectedBankAccount=$$v},expression:\"selectedBankAccount\"}},[_c('span',{staticClass:\"has-text-danger\",attrs:{\"slot\":\"noResult\"},slot:\"noResult\"},[_vm._v(\"Bank account not found.\")])]):_vm._e()],1)])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"field-label is-normal label-width\"},[_c('label',{staticClass:\"label has-text-left\"},[_vm._v(\"Vendor\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"field-label is-normal label-width\"},[_c('label',{staticClass:\"label has-text-left\"},[_vm._v(\"Pay Date\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"field-label is-normal label-width\"},[_c('label',{staticClass:\"label has-text-left\"},[_vm._v(\"Amount\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"field-label is-normal label-width\"},[_c('label',{staticClass:\"label has-text-left\"},[_vm._v(\"Previous Advance\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"field-label is-normal label-input\"},[_c('label',{staticClass:\"label has-text-left\"},[_vm._v(\"Total\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"field-label is-normal label-input\"},[_c('label',{staticClass:\"label has-text-left\"},[_vm._v(\"Cheque No.\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"field-label is-normal label-width\"},[_c('label',{staticClass:\"label has-text-left\"},[_vm._v(\"Bank Account\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div>\n <article class=\"tile is-child box detail-page-tile\">\n <div class=\"field is-horizontal\">\n <div class=\"field-label is-normal label-width\">\n <label class=\"label has-text-left\">Vendor</label>\n </div>\n <div class=\"input-width\">\n <div class=\"field\">\n <multiselect v-model=\"selectedVendor\"\n :class=\"{ 'is-danger' : $v.entity.vendorID.$error }\"\n deselect-label=\"Can't remove this value\"\n track-by=\"key\"\n label=\"value\"\n placeholder=\"Select Vendor\"\n :options=\"vendors\"\n :loading=\"isVendorLoading\"\n :internal-search=\"false\"\n :options-limit=\"vendorFilter.pageSize\"\n :searchable=\"true\"\n :show-labels=\"false\"\n :allow-empty=\"true\"\n :disabled=\"!isNewEntity\"\n @select=\"selectVendor\"\n @remove=\"removeVendor\"\n @search-change=\"getVendorDropdownFilter\">\n <template slot=\"option\"\n slot-scope=\"props\">\n <span>{{ props.option.value }}</span>\n </template>\n <span class=\"has-text-danger\"\n slot=\"noResult\">Vendor not found.</span>\n </multiselect>\n <span class=\"help is-danger\"\n v-if=\"$v.entity && !$v.entity.vendorID.validGuid\">Vendor is required.</span>\n </div>\n </div>\n </div>\n <div class=\"field is-horizontal\">\n <div class=\"field-label is-normal label-width\">\n <label class=\"label has-text-left\">Pay Date</label>\n </div>\n <div class=\"input-width\">\n <div class=\"field-body\">\n <div class=\"field is-narrow\">\n <div class=\"control\">\n <div v-if=\"!isNewEntity\"\n class=\"control\">\n <input class=\"input is-static\"\n :value=\"$filters.formatDateTimezone(innerValue.payDate, $userInfo.locale)\"\n readonly>\n </div>\n <v-date-picker v-else\n v-model=\"selectedPayDate\"\n :masks=\"formats\"\n :attributes=\"attrs\"\n :locale=\"$userInfo.locale\"\n @input=\"selectedPayDate = $filters.fromISOWithCurrentTime($event.toISOString())\"\n :timezone=\"$filters.getIanaTimezone()\">\n <template v-slot=\"{ inputValue, inputEvents }\"\n :timezone=\"$filters.getIanaTimezone()\">\n <div class=\"field\">\n <div class=\"control has-icons-left\">\n <input type=\"text\"\n class=\"input\"\n placeholder=\"Pay Date\"\n readonly\n :value=\"inputValue\"\n v-on=\"inputEvents\">\n <span class=\"icon is-small is-left\">\n <i class=\"mdi mdi-calendar mdi-18px\" />\n </span>\n </div>\n </div>\n </template>\n </v-date-picker>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div v-show=\"showAmount\"\n class=\"field is-horizontal\">\n <div class=\"field-label is-normal label-width\"><label class=\"label has-text-left\">Amount</label></div>\n <div class=\"input-width\">\n <div class=\"field-body\">\n <div class=\"field is-narrow\">\n <div class=\"control\">\n <vue-numeric class=\"input no-border has-text-right has-text-success\"\n v-model=\"innerValue.paid\"\n type=\"text\"\n symbol=\"$\"\n placeholder=\"\"\n :disabled=\"!isNewEntity\"\n :min=\"0\"\n :precision=\"2\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n <div v-show=\"showAmount\"\n class=\"field is-horizontal\">\n <div class=\"field-label is-normal label-width\">\n <label class=\"label has-text-left\">Previous Advance</label>\n </div>\n <div class=\"input-width\">\n <div class=\"field-body\">\n <div class=\"field is-narrow\">\n <div class=\"control\">\n <vue-numeric class=\"input no-border has-text-right has-text-success\"\n v-model=\"innerValue.previousAdvance\"\n type=\"text\"\n symbol=\"$\"\n placeholder=\"\"\n :minus=\"true\"\n :disabled=\"true\"\n :precision=\"2\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"field is-horizontal\">\n <div class=\"field-label is-normal label-input\"><label class=\"label has-text-left\">Total</label></div>\n <div class=\"input-width\">\n <div class=\"field-body\">\n <div class=\"field is-narrow\">\n <div class=\"control\">\n <vue-numeric class=\"input no-border has-text-right has-text-success\"\n type=\"text\"\n symbol=\"$\"\n placeholder=\"\"\n :value=\"total\"\n :minus=\"true\"\n :disabled=\"true\"\n :precision=\"2\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"field is-horizontal\">\n <div class=\"field-label is-normal label-input\">\n <label class=\"label has-text-left\">Cheque No.</label>\n </div>\n <div class=\"input-width\">\n <div class=\"field-body\">\n <div class=\"field is-narrow\">\n <p class=\"control\">\n <input class=\"input is-capitalized\"\n v-model=\"innerValue.cheque\"\n type=\"text\"\n placeholder=\"Cheque No.\"\n :disabled=\"!isNewEntity\">\n </p>\n </div>\n </div>\n </div>\n </div>\n <div class=\"field is-horizontal\">\n <div class=\"field-label is-normal label-width\"><label class=\"label has-text-left\">Bank Account</label></div>\n <div class=\"input-width\">\n <div class=\"field acc-column-width\">\n <multiselect v-if=\"glBankAccountListCombo\"\n v-model=\"selectedBankAccount\"\n :options=\"glBankAccountListCombo\"\n :loading=\"isGlBankAccountLoading\"\n :disabled=\"!isNewEntity\"\n open-direction=\"above\"\n placeholder=\"Select account\"\n label=\"displayName\"\n deselect-label=\"Can't remove this value\"\n track-by=\"accountNo\"\n :allow-empty=\"false\">\n <span class=\"has-text-danger\"\n slot=\"noResult\">Bank account not found.</span>\n </multiselect>\n </div>\n </div>\n </div>\n </article>\n </div>\n</template>\n\n<script>\nimport _debounce from 'lodash.debounce'\nimport _cloneDeep from 'lodash/cloneDeep'\nimport Multiselect from 'vue-multiselect'\nimport Guid from '@/components/Guid'\nimport VueNumeric from '@/components/VueNumeric'\nimport { DateTimeFiltersMixin } from '@/components/mixins/filters'\nimport VendorService from '@/views/vendor/VendorService'\nimport StoreMixin from './storeMixin'\nimport PaymentEntryService from './PaymentEntryService'\n\nexport default {\n name: 'PaymentEntryAdvancePayment',\n inject: ['$vv'],\n components: {\n Multiselect,\n VueNumeric\n },\n mixins: [StoreMixin, DateTimeFiltersMixin],\n props: {\n value: null,\n isNewEntity: {\n type: Boolean\n },\n active: {\n type: Boolean,\n default: false\n },\n animationIn: {\n type: String,\n default: 'zoomIn'\n },\n animationOut: {\n type: String,\n default: 'zoomOut'\n },\n animationDuration: {\n type: [String, Number],\n default: 0.3\n },\n buttonLocation: {\n type: String,\n default: 'end' // valid values 'start' & 'end'\n },\n showIcon: {\n type: Boolean,\n default: true\n },\n iconType: {\n type: String,\n default: 'primary'\n },\n iconName: {\n type: String,\n default: 'mdi-file-export'\n },\n enableAttach: {\n type: Boolean,\n default: true\n },\n defaultEmail: {\n type: String,\n default: ''\n },\n showAmount: {\n type: Boolean,\n default: true\n }\n },\n data() {\n return {\n innerValue: _cloneDeep(this.value),\n isActive: false,\n vendors: [],\n selectedVendor: '',\n selectedPayDate: null,\n selectedBankAccount: null,\n isVendorLoading: false,\n isGlBankAccountLoading: false,\n glBankAccountListCombo: null,\n vendorFilter: {\n name: '',\n pageIndex: 1,\n pageSize: 50\n },\n formats: {\n title: 'MMMM YYYY',\n weekdays: 'W',\n navMonths: 'MMM',\n input: ['L', 'DD-MM-YYYY', 'DD/MM/YYYY'],\n data: ['L', 'DD-MM-YYYY', 'DD/MM/YYYY'],\n dayPopover: 'L'\n },\n attrs: [\n {\n key: 'today',\n highlight: {\n backgroundColor: '#ff8080'\n },\n popover: {\n label: 'Today'\n },\n dates: new Date()\n }\n ]\n }\n },\n computed: {\n $v() {\n return this.$vv || this.$v\n },\n total() {\n if (this.showAmount) {\n return this.innerValue.paid + this.innerValue.previousAdvance\n } else {\n return this.innerValue.previousAdvance\n }\n }\n },\n watch: {\n innerValue: {\n handler: function(newVal, oldVal) {\n this.$emit('input', newVal)\n },\n deep: true\n },\n selectedPayDate: function(newVal, oldVal) {\n if (newVal) {\n this.innerValue.payDate = this.selectedPayDate.toISOString()\n } else {\n this.innerValue.payDate = ''\n }\n },\n selectedBankAccount: function(newVal, oldVal) {\n if (newVal) {\n this.innerValue.bankAccount = this.selectedBankAccount.accountNo\n } else {\n this.innerValue.bankAccount = ''\n }\n }\n },\n created() {\n this.selectedPayDate = new Date(this.innerValue.payDate)\n this.getVendorDropdown()\n this.GetGlBankAccountsDropdown()\n },\n mounted() {\n this.$v.advancePaymentGroup.$touch()\n this.isActive = this.active || false\n },\n methods: {\n close() {\n this.$emit('close')\n },\n async getVendorDropdown() {\n this.isVendorLoading = true\n this.vendors = await VendorService.getVendorDropdownProto(this.vendorFilter)\n this.selectedVendor = this.vendors.find(i => i.key === this.innerValue.vendorID.toUpperCase())\n this.isVendorLoading = false\n },\n getVendorDropdownFilter: _debounce(async function(query) {\n this.isVendorLoading = true\n this.vendorFilter.name = query\n this.vendors = await VendorService.getVendorDropdownProto(this.vendorFilter)\n this.isVendorLoading = false\n }, 500),\n async selectVendor(selected) {\n this.vendorFilter.name = selected.Value\n this.innerValue.vendorID = selected.key\n this.innerValue.previousAdvance = await PaymentEntryService.GetTotalAdvancePaymentByVendor(selected.key)\n },\n removeVendor() {\n this.vendorFilter.name = ''\n this.selectedVendor = ''\n this.innerValue.vendorID = Guid.empty()\n this.getVendorDropdown()\n },\n resetSelectedVendors() {\n this.selectedVendor = ''\n },\n async GetGlBankAccountsDropdown() {\n this.isGlBankAccountLoading = true\n this.glBankAccountListCombo = await PaymentEntryService.getGlBankAccountsDropdown(this.$userInfo.companyId)\n this.selectedBankAccount = this.glBankAccountListCombo.find(g => g.accountNo === this.innerValue.bankAccount)\n this.isGlBankAccountLoading = false\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.is-flex-items-center {\n display: flex;\n align-items: center;\n}\n.label-width {\n float: left;\n width: 25%;\n}\n.input-width {\n float: left;\n width: 75%;\n}\n</style>\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!./PaymentEntryAdvancePayment.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!./PaymentEntryAdvancePayment.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PaymentEntryAdvancePayment.vue?vue&type=template&id=3070ee48&scoped=true\"\nimport script from \"./PaymentEntryAdvancePayment.vue?vue&type=script&lang=js\"\nexport * from \"./PaymentEntryAdvancePayment.vue?vue&type=script&lang=js\"\nimport style0 from \"./PaymentEntryAdvancePayment.vue?vue&type=style&index=0&id=3070ee48&prod&lang=scss&scoped=true\"\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 \"3070ee48\",\n null\n \n)\n\nexport default component.exports","<template>\n <base-modal-ex v-if=\"isActive\"\n :active.sync=\"isActive\"\n :animation-in=\"animationIn\"\n :animation-out=\"animationOut\"\n :animation-duration=\"animationDuration\"\n :can-cancel=\"false\"\n :min-width=\"40\"\n :min-height=\"50\"\n has-modal-card>\n <header class=\"modal-card-head\">\n <div class=\"modal-card-title\"\n :class=\"{ 'is-flex-items-center' : showIcon}\">\n <span>Advance Payment Entry</span>\n </div>\n </header>\n <section class=\"modal-card-body\">\n <payment-entry-advance-payment v-model=\"entity\"\n :is-new-entity=\"isNewEntity\"\n :show-amount=\"showAmount\"\n :read-only-view=\"readOnlyView\" />\n </section>\n <footer class=\"modal-card-foot\"\n :style=\"`justify-content: flex-${buttonLocation}`\">\n <button v-show=\"entity.isNew\"\n class=\"button is-success tooltip\"\n @click=\"save()\"\n data-tooltip=\"Save\">\n <span class=\"icon\">\n <i class=\"mdi mdi-content-save mdi-18px\" />\n </span>\n <span>Save</span>\n </button>\n <button v-show=\"!entity.isNew\"\n class=\"button is-primary tooltip\"\n @click=\"print()\"\n data-tooltip=\"Print\">\n <span class=\"icon\">\n <i class=\"mdi mdi-printer mdi-18px\" />\n </span>\n <span>Print</span>\n </button>\n <button class=\"button tooltip\"\n @click=\"close()\"\n data-tooltip=\"Close\">Close</button>\n </footer>\n </base-modal-ex>\n</template>\n\n<script>\nimport _debounce from 'lodash.debounce'\nimport _cloneDeep from 'lodash/cloneDeep'\nimport _isEmpty from 'lodash/isEmpty'\nimport HttpStatus from '@/components/http-status'\nimport { mapGetters } from 'vuex'\nimport { Emailer } from '@/classes'\nimport { RemarkTypes } from '@/enums'\nimport { KeyValuePairModel } from '@/classes/viewmodels'\nimport { BaseModalEx } from '@/components/BulmaModal'\nimport { DateTimeFiltersMixin } from '@/components/mixins/filters'\nimport PrintPreviewRoutes from '@/components/printpreview/route-types'\nimport StoreMixin from './storeMixin'\nimport PaymentEntryAdvancePayment from './PaymentEntryAdvancePayment'\nimport PaymentEntryValidation from './PaymentEntryValidation'\nimport PaymentEntryService from './PaymentEntryService'\n\nexport default {\n name: 'PaymentEntryAdvancePaymentModal',\n components: {\n BaseModalEx,\n PaymentEntryAdvancePayment\n },\n mixins: [StoreMixin, DateTimeFiltersMixin, PaymentEntryValidation],\n props: {\n active: {\n type: Boolean,\n default: false\n },\n animationIn: {\n type: String,\n default: 'zoomIn'\n },\n animationOut: {\n type: String,\n default: 'zoomOut'\n },\n animationDuration: {\n type: [String, Number],\n default: 0.3\n },\n buttonLocation: {\n type: String,\n default: 'end' // valid values 'start' & 'end'\n },\n showIcon: {\n type: Boolean,\n default: true\n },\n iconType: {\n type: String,\n default: 'primary'\n },\n iconName: {\n type: String,\n default: 'mdi-file-export'\n },\n enableAttach: {\n type: Boolean,\n default: true\n },\n defaultEmail: {\n type: String,\n default: ''\n },\n showAmount: {\n type: Boolean,\n default: true\n }\n },\n data() {\n return {\n isActive: false,\n entity: null,\n isNewEntity: false\n }\n },\n computed: {\n ...mapGetters(['licenceExpired']),\n validateError() {\n return this.$v.$error || this.$v.advancePaymentGroup.$error\n }\n },\n watch: {\n active(value) {\n this.isActive = value\n },\n entity: {\n handler: _debounce(function(newVal) {\n if (newVal) {\n this.$forceUpdate()\n this.saveSnapshot(_cloneDeep(this.entity))\n }\n }, 500),\n deep: true\n }\n },\n async created() {\n await this.getEntity()\n },\n mounted() {\n this.isActive = this.active || false\n },\n beforeDestroy() {\n if (_isEmpty(this.returnRoute)) {\n this.setReadOnlyView(false)\n }\n },\n methods: {\n async getEntity(reset = false) {\n try {\n this.$showSpinner()\n if (reset) {\n this.clearSessionStorage()\n this.clearSnapshots(this.entity.creditorPaymentID)\n }\n if (!this.currentSnapshot) {\n await this.getStoreItem(this.entity.creditorPaymentID)\n }\n\n this.entity = _cloneDeep(this.currentSnapshot)\n this.isNewEntity = this.entity.isNew\n } catch (e) {\n this.$notification.openMessageXhrError('', e)\n }\n this.$hideSpinner()\n },\n async save() {\n const title = 'Advance Payment'\n if (this.validateError) {\n this.$notification.openNotificationWithType('danger', title, 'Validation errors. Please fix before saving')\n return false\n } else if (this.entity.paid === 0) {\n this.$notification.openNotificationWithType('danger', title, 'Amount cannot be 0')\n return false\n } else if (this.entity.payDate < this.entity.glCloseDate) {\n this.$notification.openNotificationWithType('danger', title, 'Payment date cannot be in a closed Accounting Year.')\n return false\n }\n try {\n this.$showSpinner('Saving...')\n let response\n if (this.entity.isNew) {\n response = await PaymentEntryService.postEntity(this.entity)\n }\n this.$hideSpinner()\n if (response && response.status === HttpStatus.CREATED) {\n await this.getEntity(true)\n this.$notification.openNotificationWithType('success', title, 'New Advance Payment added')\n }\n return true\n } catch (e) {\n this.$hideSpinner()\n if (e.response.request.status === HttpStatus.CONFLICT) {\n this.isSaveConflictModalActive = true\n } else {\n this.$notification.openMessageXhrError('Advance Payment', e)\n }\n return false\n }\n },\n close() {\n this.clearSnapshots(this.entity.creditorPaymentID)\n this.clearSessionStorage()\n this.$emit('update:active', false)\n this.$emit('close')\n },\n async print() {\n const params = {\n REPORTTITLE: 'CREDITOR ADVANCE PAYMENT',\n CompanyID: this.$userInfo.companyId,\n VendorId: this.entity.vendorID,\n InvoiceID: this.entity.creditorInvoiceID,\n timezoneoffset: this.$filters.getSiteTimezoneOffset()\n }\n // Create KeyValuePairs and add to vuex for later retrieval by PrintPreviewEx component\n const keyValuePairs = KeyValuePairModel.convertToKeyValuePairs(params)\n this.addReportParameters(keyValuePairs)\n\n const reportName = this.entity.invoiceNoRef\n\n const emailer = new Emailer()\n emailer.assetId = this.entity.vendorID\n emailer.remark = 'Advance Payment ' + this.entity.invoiceNoRef\n emailer.remarkTypeId = RemarkTypes.Remark\n emailer.subject = 'Advance Payment - ' + this.entity.invoiceNoRef\n emailer.reportName = reportName\n this.addEmailer(emailer)\n this.$router.push({\n name: PrintPreviewRoutes.PrintPreview.name,\n params: { reportName: 'AT_CreditorInvoicePayment' },\n query: { parameterId: this.$guid.newGuid(), emailerId: emailer.id }\n })\n },\n removeQueries() {\n sessionStorage.removeItem(`${this.$userInfo.sessionId}|paymententry|returnUrl`)\n sessionStorage.removeItem(`${this.$userInfo.sessionId}|paymententry|type`)\n },\n clearSessionStorage() {\n this.removeQueries()\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.is-flex-items-center {\n display: flex;\n align-items: center;\n}\n</style>\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!./PaymentEntryAdvancePaymentModal.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!./PaymentEntryAdvancePaymentModal.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PaymentEntryAdvancePaymentModal.vue?vue&type=template&id=65f8c805&scoped=true\"\nimport script from \"./PaymentEntryAdvancePaymentModal.vue?vue&type=script&lang=js\"\nexport * from \"./PaymentEntryAdvancePaymentModal.vue?vue&type=script&lang=js\"\nimport style0 from \"./PaymentEntryAdvancePaymentModal.vue?vue&type=style&index=0&id=65f8c805&prod&lang=scss&scoped=true\"\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 \"65f8c805\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}