⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
makarnacimmix.xyz
/
public
/
dist
/
js
/
Edit File: 110.944eea.js
/*! For license information please see 110.944eea.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[110],{488:function(t,e,o){"use strict";o.r(e);var r=o(5),n=o(3),a=o.n(n),i=o(4);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){s=function(){return t};var t={},e=Object.prototype,o=e.hasOwnProperty,r=Object.defineProperty||function(t,e,o){t[e]=o.value},n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function u(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,o){return t[e]=o}}function m(t,e,o,n){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new S(n||[]);return r(i,"_invoke",{value:C(t,o,c)}),i}function f(t,e,o){try{return{type:"normal",arg:t.call(e,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=m;var v={};function d(){}function p(){}function h(){}var y={};u(y,a,(function(){return this}));var _=Object.getPrototypeOf,g=_&&_(_(D([])));g&&g!==e&&o.call(g,a)&&(y=g);var b=h.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var n;r(this,"_invoke",{value:function(r,a){function i(){return new e((function(n,i){!function r(n,a,i,s){var l=f(t[n],t,a);if("throw"!==l.type){var u=l.arg,m=u.value;return m&&"object"==c(m)&&o.call(m,"__await")?e.resolve(m.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(m).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(l.arg)}(r,a,n,i)}))}return n=n?n.then(i,i):i()}})}function C(t,e,o){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return O()}for(o.method=n,o.arg=a;;){var i=o.delegate;if(i){var c=P(i,o);if(c){if(c===v)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===r)throw r="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r="executing";var s=f(t,e,o);if("normal"===s.type){if(r=o.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r="completed",o.method="throw",o.arg=s.arg)}}}function P(t,e){var o=e.method,r=t.iterator[o];if(void 0===r)return e.delegate=null,"throw"===o&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==o&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,v;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function D(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,r(b,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),u(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,o,r,n,a){void 0===a&&(a=Promise);var i=new x(m(e,o,r,n),a);return t.isGeneratorFunction(o)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(b),u(b,l,"Generator"),u(b,a,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),o=[];for(var r in e)o.push(r);return o.reverse(),function t(){for(;o.length;){var r=o.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=D,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(o,r){return i.type="throw",i.arg=t,e.next=o,r&&(e.method="next",e.arg=void 0),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc===t){var r=o.completion;if("throw"===r.type){var n=r.arg;N(o)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:D(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}function l(t,e,o,r,n,a,i){try{var c=t[a](i),s=c.value}catch(t){return void o(t)}c.done?e(s):Promise.resolve(s).then(r,n)}function u(t){return function(){var e=this,o=arguments;return new Promise((function(r,n){var a=t.apply(e,o);function i(t){l(a,r,n,i,c,"next",t)}function c(t){l(a,r,n,i,c,"throw",t)}i(void 0)}))}}function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function f(t,e,o){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var v={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("payments.clients.invoice.create.page_title")}},components:{ToggleButton:o(38).ToggleButton},data:function(){return{breadcrumbsCurrent:"payments.clients.invoice.create.breadcrumbs_current",breadcrumbs:[{name:"payments.clients.invoice.create.breadcrumbs_first",url:"home"},{name:"payments.clients.invoice.create.breadcrumbs_second",url:""},{name:"payments.clients.invoice.create.breadcrumbs_third",url:"invoicePayments.index"},{name:"payments.clients.invoice.create.breadcrumbs_active",url:""}],form:new r.a({client:"",selectedInvoices:[],totalPayment:0,paymentDate:(new Date).toISOString().slice(0,10),note:"",status:1,account:"",chequeNo:"",receiptNo:"",isSendEmail:!1,isSendSMS:!1}),accounts:"",invoices:"",isDemoMode:window.config.isDemoMode}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?m(Object(o),!0).forEach((function(e){f(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(i.b)("operations",["items","appInfo"])),created:function(){this.getClients(),this.getAccounts()},methods:{getClients:function(){var t=this;return u(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("operations/allData",{path:"/api/all-clients"});case 2:case"end":return e.stop()}}),e)})))()},getInvoices:function(){var t=this;return u(s().mark((function e(){var o,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.form.selectedInvoices=[],!t.form.client){e.next=9;break}return t.form.clientBalance=t.form.client.clientTotalAdvance,e.next=5,a.a.get(window.location.origin+"/api/client/"+t.form.client.slug+"/invoices");case 5:o=e.sent,r=o.data,t.invoices=r.invoices,t.form.client=r.client;case 9:case"end":return e.stop()}}),e)})))()},getAccounts:function(){var t=this;return u(s().mark((function e(){var o,r,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.get(window.location.origin+"/api/all-accounts");case 2:o=e.sent,r=o.data,t.accounts=r.data,t.accounts&&t.accounts.length>0&&(n=t.appInfo.defaultAccountSlug,t.form.account=t.accounts.find((function(t){return t.slug==n})));case 6:case"end":return e.stop()}}),e)})))()},storeInvoice:function(t){return-1===this.form.selectedInvoices.findIndex((function(e){return e.id==t.id}))&&this.form.selectedInvoices.push({id:t.id,slug:t.slug,invoiceNo:t.label,invoiceTotal:t.invoiceTotal,newDue:t.due,originalDue:t.due,maxAmount:t.due,paidAmount:1,note:""}),!0},updateArray:function(t,e){var o=this.form.selectedInvoices[e];o&&t<=o.maxAmount&&(this.form.selectedInvoices[e].paidAmount=Number(t),o.newDue=Number((o.originalDue-o.paidAmount).toFixed(2))),this.form.selectedInvoices[e]=o,this.calculateTotal()},removeItem:function(t){var e=this.form.selectedInvoices.indexOf(t);e>-1&&this.form.selectedInvoices.splice(e,1),this.calculateTotal(),this.form.invoice=""},calculateTotal:function(){this.form.totalPayment=this.form.selectedInvoices.reduce((function(t,e){return t+e.paidAmount}),0)},savePayment:function(){var t=this;return u(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.form.post(window.location.origin+"/api/payments/invoice").then((function(){toast.fire({type:"success",title:t.$t("payments.clients.invoice.create.success_msg")}),t.$router.push({name:"invoicePayments.index"})})).catch((function(){toast.fire({type:"error",title:t.$t("common.error_msg")})}));case 2:case"end":return e.stop()}}),e)})))()}}},d=o(1),p=Object(d.a)(v,(function(){var t=this,e=t._self._c;return e("div",[e("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12 col-xl-12"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("payments.clients.invoice.create.form_title"))+"\n ")]),t._v(" "),e("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"invoicePayments.index"}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")])],1),t._v(" "),e("form",{attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),t.savePayment.apply(null,arguments)},keydown:function(e){return t.form.onKeydown(e)}}},[e("div",{staticClass:"card-body"},[t.items?e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-12"},[e("label",{attrs:{for:"client"}},[t._v(t._s(t.$t("common.client"))+"\n "),e("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),e("v-select",{class:{"is-invalid":t.form.errors.has("client")},attrs:{options:t.items,label:"name",name:"client",placeholder:t.$t("common.client_placeholder")},on:{input:t.getInvoices},model:{value:t.form.client,callback:function(e){t.$set(t.form,"client",e)},expression:"form.client"}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"client"}})],1)]):t._e(),t._v(" "),t.form.client?e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"clientInvoiceTotal"}},[t._v(t._s(t.$t("common.invoice_total")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.client.clientInvoiceTotal,expression:"form.client.clientInvoiceTotal"}],staticClass:"form-control",attrs:{id:"clientInvoiceTotal",type:"text",name:"clientInvoiceTotal",readonly:""},domProps:{value:t.form.client.clientInvoiceTotal},on:{input:function(e){e.target.composing||t.$set(t.form.client,"clientInvoiceTotal",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"clientTotalPaid"}},[t._v(t._s(t.$t("common.total_paid")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.client.clientTotalPaid,expression:"form.client.clientTotalPaid"}],staticClass:"form-control",attrs:{id:"clientTotalPaid",type:"text",name:"clientTotalPaid",readonly:""},domProps:{value:t.form.client.clientTotalPaid},on:{input:function(e){e.target.composing||t.$set(t.form.client,"clientTotalPaid",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"clientDue"}},[t._v(t._s(t.$t("common.total_due")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.client.clientDue,expression:"form.client.clientDue"}],staticClass:"form-control",attrs:{id:"clientDue",type:"text",name:"clientDue",readonly:""},domProps:{value:t.form.client.clientDue},on:{input:function(e){e.target.composing||t.$set(t.form.client,"clientDue",e.target.value)}}})])]):t._e(),t._v(" "),t.form.client&&t.invoices?e("div",{staticClass:"row mb-3"},[e("div",{staticClass:"form-group col-md-12"},[e("label",{attrs:{for:"invoice"}},[t._v(t._s(t.$t("payments.common.select_invoice"))+"\n "),e("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),e("v-select",{class:{"is-invalid":t.form.errors.has("invoice")},attrs:{options:t.invoices,label:"label",name:"invoice",placeholder:t.$t("payments.common.select_invoice_placeholder")},on:{input:function(e){return t.storeInvoice(t.form.invoice)}},model:{value:t.form.invoice,callback:function(e){t.$set(t.form,"invoice",e)},expression:"form.invoice"}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"invoice"}})],1)]):t._e(),t._v(" "),t.form.errors.errors&&t.form.errors.errors.selectedInvoices?e("div",{staticClass:"col-md-11 m-auto"},t._l(t.form.errors.errors.selectedInvoices,(function(o,r){return e("div",{key:r,staticClass:"callout callout-danger"},[e("p",[e("i",{staticClass:"icon fas fa-ban"}),t._v(" "+t._s(o))])])})),0):t._e(),t._v(" "),t.form.selectedInvoices?e("div",{staticClass:"col-md-11 m-auto"},t._l(t.form.selectedInvoices,(function(o,r){return e("div",{key:r,staticClass:"card bg-light border-dark mb-3"},[e("div",{staticClass:"card-header"},[t._v("\n "+t._s(o.invoiceNo)+" "+t._s(t.$t("common.invoice_details"))+"\n "),e("button",{staticClass:"btn btn-danger float-right",attrs:{type:"button"},on:{click:function(e){return t.removeItem(o)}}},[e("i",{staticClass:"fas fa-times"})])]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"invoiceNumber"}},[t._v(t._s(t.$t("common.invoice_no")))]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",id:"invoiceNumber-".concat(++r),readonly:""},domProps:{value:o.invoiceNo}})]),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"invoiceTotal"}},[t._v(t._s(t.$t("common.invoice_total")))]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",id:"invoiceTotal-".concat(r),readonly:""},domProps:{value:o.invoiceTotal}})]),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"invoiceDue"}},[t._v(t._s(t.$t("common.invoice_due")))]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",id:"invoiceDue-".concat(r),readonly:""},domProps:{value:o.newDue}})]),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"paidAmount"}},[t._v(t._s(t.$t("common.paid_amount")))]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"number",step:"any",id:"paidAmount-".concat(r),placeholder:t.$t("common.paid_amount_placeholder"),required:"",min:"1",max:o.originalDue,value:"1"},on:{change:function(e){return t.updateArray(e.target.value,r-1)},keyup:function(e){return t.updateArray(e.target.value,"paidAmount",r-1)}}})])])])])})),0):t._e(),t._v(" "),t.accounts?e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-6"},[e("label",{attrs:{for:"totalPayment"}},[t._v(t._s(t.$t("payments.common.total_payment"))+"\n "),e("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.totalPayment,expression:"form.totalPayment"}],staticClass:"form-control",attrs:{id:"totalPayment",type:"number",step:"any",name:"totalPayment",readonly:""},domProps:{value:t.form.totalPayment},on:{input:function(e){e.target.composing||t.$set(t.form,"totalPayment",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group col-md-6"},[e("label",{attrs:{for:"account"}},[t._v(t._s(t.$t("common.account"))+"\n "),e("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),e("v-select",{class:{"is-invalid":t.form.errors.has("account")},attrs:{options:t.accounts,label:"label",name:"account",placeholder:t.$t("common.account_placeholder")},model:{value:t.form.account,callback:function(e){t.$set(t.form,"account",e)},expression:"form.account"}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"account"}})],1)]):t._e(),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"chequeNo"}},[t._v(t._s(t.$t("common.cheque_no")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.chequeNo,expression:"form.chequeNo"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("chequeNo")},attrs:{type:"text",id:"chequeNo",placeholder:t.$t("common.cheque_placeholder")},domProps:{value:t.form.chequeNo},on:{input:function(e){e.target.composing||t.$set(t.form,"chequeNo",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"chequeNo"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"receiptNo"}},[t._v(t._s(t.$t("common.receipt_no")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.receiptNo,expression:"form.receiptNo"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("receiptNo")},attrs:{type:"text",id:"receiptNo",placeholder:t.$t("common.receipt_no_placeholder")},domProps:{value:t.form.receiptNo},on:{input:function(e){e.target.composing||t.$set(t.form,"receiptNo",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"receiptNo"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"paymentDate"}},[t._v(t._s(t.$t("common.payment_date")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.paymentDate,expression:"form.paymentDate"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("paymentDate")},attrs:{id:"paymentDate",type:"date",name:"paymentDate"},domProps:{value:t.form.paymentDate},on:{input:function(e){e.target.composing||t.$set(t.form,"paymentDate",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"paymentDate"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"status"}},[t._v(t._s(t.$t("common.status")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.status,expression:"form.status"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("status")},attrs:{id:"status"},on:{change:function(e){var o=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"status",e.target.multiple?o:o[0])}}},[e("option",{attrs:{value:"1"}},[t._v(t._s(t.$t("common.active")))]),t._v(" "),e("option",{attrs:{value:"0"}},[t._v(t._s(t.$t("common.in_active")))])]),t._v(" "),e("has-error",{attrs:{form:t.form,field:"status"}})],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"note"}},[t._v(t._s(t.$t("common.note")))]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.note,expression:"form.note"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("note")},attrs:{id:"note",placeholder:t.$t("common.note_placeholder")},domProps:{value:t.form.note},on:{input:function(e){e.target.composing||t.$set(t.form,"note",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"note"}})],1),t._v(" "),e("div",{staticClass:"form-group col-12 d-flex flex-wrap"},[e("div",{staticClass:"pr-5"},[e("toggle-button",{attrs:{disabled:t.isDemoMode},model:{value:t.form.isSendEmail,callback:function(e){t.$set(t.form,"isSendEmail",e)},expression:"form.isSendEmail"}}),t._v("\n "+t._s(t.$t("Send Email Notification"))+"\n ")],1)]),t._v(" "),e("div",{staticClass:"form-group col-12 d-flex flex-wrap"},[e("div",{staticClass:"pr-5"},[e("toggle-button",{attrs:{disabled:t.isDemoMode},model:{value:t.form.isSendSMS,callback:function(e){t.$set(t.form,"isSendSMS",e)},expression:"form.isSendSMS"}}),t._v("\n "+t._s(t.$t("Send SMS Notification"))+"\n ")],1)])]),t._v(" "),e("div",{staticClass:"card-footer"},[e("v-button",{staticClass:"btn btn-primary",attrs:{loading:t.form.busy}},[e("i",{staticClass:"fas fa-save"}),t._v(" "+t._s(t.$t("common.save"))+"\n ")]),t._v(" "),e("button",{staticClass:"btn btn-secondary float-right",attrs:{type:"reset"},on:{click:function(e){return t.form.reset()}}},[e("i",{staticClass:"fas fa-power-off"}),t._v(" "+t._s(t.$t("common.reset"))+"\n ")])],1)])])])])],1)}),[],!1,null,null,null);e.default=p.exports}}]);
Simpan