⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
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
/
qda-digital.online
/
public
/
dist
/
js
/
Edit File: 112.d4ab1a.js
/*! For license information please see 112.d4ab1a.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[112],{490:function(t,e,n){"use strict";n.r(e);var a=n(3),r=n.n(a),o=n(4),i=n(16),c=n.n(i);function s(t){return(s="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 l(){l=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function v(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),c=new O(r||[]);return a(i,"_invoke",{value:C(t,n,c)}),i}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=v;var f={};function m(){}function h(){}function d(){}var p={};u(p,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(j([])));b&&b!==e&&n.call(b,o)&&(p=b);var g=d.prototype=m.prototype=Object.create(p);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){var r;a(this,"_invoke",{value:function(a,o){function i(){return new e((function(r,i){!function a(r,o,i,c){var l=_(t[r],t,o);if("throw"!==l.type){var u=l.arg,v=u.value;return v&&"object"==s(v)&&n.call(v,"__await")?e.resolve(v.__await).then((function(t){a("next",t,i,c)}),(function(t){a("throw",t,i,c)})):e.resolve(v).then((function(t){u.value=t,i(u)}),(function(t){return a("throw",t,i,c)}))}c(l.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}})}function C(t,e,n){var a="suspendedStart";return function(r,o){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw o;return L()}for(n.method=r,n.arg=o;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var s=_(t,e,n);if("normal"===s.type){if(a=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a="completed",n.method="throw",n.arg=s.arg)}}}function x(t,e){var n=e.method,a=t.iterator[n];if(void 0===a)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=_(a,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function P(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 $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,r=function e(){for(;++a<t.length;)if(n.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=d,a(g,"constructor",{value:d,configurable:!0}),a(d,"constructor",{value:h,configurable:!0}),h.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(D.prototype),u(D.prototype,i,(function(){return this})),t.AsyncIterator=D,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new D(v(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(g),u(g,c,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},t.values=j,O.prototype={constructor:O,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($),!t)for(var e in this)"t"===e.charAt(0)&&n.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 a(n,a){return i.type="throw",i.arg=t,e.next=n,a&&(e.method="next",e.arg=void 0),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):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),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;$(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function u(t,e,n,a,r,o,i){try{var c=t[o](i),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(a,r)}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function _(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==s(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("payments.clients.invoice.view.page_title")}},data:function(){return{breadcrumbsCurrent:"payments.clients.invoice.view.breadcrumbs_current",breadcrumbs:[{name:"payments.clients.invoice.view.breadcrumbs_first",url:"home"},{name:"payments.clients.invoice.view.breadcrumbs_second",url:""},{name:"payments.clients.invoice.view.breadcrumbs_third",url:"invoicePayments.index"},{name:"payments.clients.invoice.view.breadcrumbs_active",url:""}],allData:"",clientPrefix:"",invoicePrefix:""}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(o.b)("operations",["appInfo"])),created:function(){this.getInvoicePayment(),this.clientPrefix=this.appInfo.clientPrefix,this.invoicePrefix=this.appInfo.invoicePrefix},methods:{getInvoicePayment:function(){var t,e=this;return(t=l().mark((function t(){var n,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.a.get(window.location.origin+"/api/payments/invoice/"+e.$route.params.slug);case 2:n=t.sent,a=n.data,e.allData=a.data;case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(a,r){var o=t.apply(e,n);function i(t){u(o,a,r,i,c,"next",t)}function c(t){u(o,a,r,i,c,"throw",t)}i(void 0)}))})()},printWindow:function(){window.print()},generatePDF:function(){var t=document.getElementById("content-to-pdf"),e={margin:5,filename:"Invoice Payment-"+this.$route.params.slug+".pdf",image:{type:"jpeg",quality:.98},pagebreak:{mode:"avoid-all",before:"#page-break"},html2canvas:{scale:2},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};c()().from(t).set(e).save()}}},m=n(1),h=Object(m.a)(f,(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 no-print mb-2"},[e("div",{staticClass:"w-100 text-right float-right"},[t.allData?e("div",{staticClass:"btn-group"},[e("a",{staticClass:"btn btn-primary",attrs:{href:"#"},on:{click:function(e){return t.generatePDF()}}},[e("i",{staticClass:"fas fa-download"}),t._v(" "+t._s(t.$t("download"))+"\n ")]),t._v(" "),e("a",{staticClass:"btn btn-secondary",attrs:{href:"#"},on:{click:function(e){return t.printWindow()}}},[e("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.$t("common.print"))+"\n ")]),t._v(" "),t.$can("invoice-payment-edit")?e("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"invoicePayments.edit",params:{slug:t.allData.slug}}}},[e("i",{staticClass:"fas fa-edit"}),t._v(" "+t._s(t.$t("common.edit"))+"\n ")]):t._e(),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._e()])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"invoice p-3 mb-3 w-100",attrs:{id:"content-to-pdf"}},[e("div",{staticClass:"row invoice-info"},[e("div",{staticClass:"col-sm-4 invoice-col"},[e("CompanyInfo")],1),t._v(" "),e("div",{staticClass:"col-sm-6 offset-sm-2 invoice-col float-right text-md-right"},[e("h5",[t._v(t._s(t.$t("common.client_details")))]),t._v(" "),t.allData.client?e("div",[t.allData.client.clientID?e("span",[e("strong",[t._v(t._s(t.$t("common.client_id"))+":")]),t._v("\n "+t._s(t._f("withPrefix")(t.allData.client.clientID,t.clientPrefix))),e("br")]):t._e(),t._v(" "),e("strong",[t._v(t._s(t.$t("common.client_name"))+":")]),t._v("\n "+t._s(t.allData.client.name)),e("br"),t._v(" "),t.allData.client.companyName?e("span",[e("strong",[t._v(t._s(t.$t("common.company_name"))+":")]),t._v("\n "+t._s(t.allData.client.companyName)),e("br")]):t._e(),t._v(" "),t.allData.client.email?e("span",[e("strong",[t._v(t._s(t.$t("common.email"))+":")]),t._v("\n "+t._s(t.allData.client.email)),e("br")]):t._e(),t._v(" "),t.allData.client.phoneNumber?e("span",[e("strong",[t._v(t._s(t.$t("common.contact_number"))+":")]),t._v("\n "+t._s(t.allData.client.phoneNumber)),e("br")]):t._e(),t._v(" "),t.allData.client.address?e("span",[e("strong",[t._v(t._s(t.$t("common.address"))+":")]),t._v("\n "+t._s(t.allData.client.address)),e("br")]):t._e()]):t._e()])]),t._v(" "),e("div",{staticClass:"row mt-4"},[e("div",{staticClass:"col-12"},[e("strong",{staticClass:"mt-4 d-block mb-2"},[t._v(t._s(t.$t("common.payment_details"))+":")]),t._v(" "),e("div",{staticClass:"table-responsive table-custom"},[e("table",{staticClass:"table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$t("common.invoice_no")))]),t._v(" "),e("th",[t._v(t._s(t.$t("common.invoice_date")))]),t._v(" "),e("th",[t._v(t._s(t.$t("common.invoice_total")))]),t._v(" "),e("th",[t._v(t._s(t.$t("common.paid_amount")))]),t._v(" "),e("th",[t._v(t._s(t.$t("common.account")))]),t._v(" "),e("th",{staticClass:"text-right"},[t._v("\n "+t._s(t.$t("common.payment_date"))+"\n ")])])]),t._v(" "),t.allData.invoice?e("tbody",[e("tr",[e("td",[t._v("\n "+t._s(t._f("withPrefix")(t.allData.invoice.invoiceNo,t.invoicePrefix))+"\n ")]),t._v(" "),e("td",[t._v("\n "+t._s(t._f("moment")(t.allData.invoice.invoiceDate,"Do MMM, YYYY"))+"\n ")]),t._v(" "),e("td",[t._v(t._s(t._f("withCurrency")(t.allData.invoice.invoiceTotal)))]),t._v(" "),e("td",[t._v(t._s(t._f("withCurrency")(t.allData.amount)))]),t._v(" "),e("td",[t.allData.account?e("span",[t._v(t._s(t.allData.account.label))]):t._e()]),t._v(" "),e("td",{staticClass:"text-right"},[t.allData.date?e("span",[t._v(t._s(t._f("moment")(t.allData.date,"Do MMM, YYYY")))]):t._e()])])]):t._e()])])])]),t._v(" "),e("div",{staticClass:"row mt-4"},[e("div",{staticClass:"col-lg-12 col-xl-8"},[e("div",{staticClass:"table-responsive table-custom"},[t.allData.transaction?e("table",{staticClass:"table"},[e("thead",[e("tr",[t.allData.transaction&&t.allData.transaction.cheque_no?e("th",[t._v("\n "+t._s(t.$t("common.cheque_no"))+"\n ")]):t._e(),t._v(" "),t.allData.transaction&&t.allData.transaction.receipt_no?e("th",[t._v("\n "+t._s(t.$t("common.receipt_no"))+"\n ")]):t._e(),t._v(" "),t.allData.note?e("th",[t._v(t._s(t.$t("common.note")))]):t._e(),t._v(" "),t.allData.createdBy?e("th",[t._v("\n "+t._s(t.$t("common.created_by"))+"\n ")]):t._e(),t._v(" "),e("th",{staticClass:"text-right"},[t._v(t._s(t.$t("common.status")))])])]),t._v(" "),e("tbody",[e("tr",[t.allData.transaction&&t.allData.transaction.cheque_no?e("td",[t._v("\n "+t._s(t.allData.transaction.cheque_no)+"\n ")]):t._e(),t._v(" "),t.allData.transaction&&t.allData.transaction.receipt_no?e("td",[t._v("\n "+t._s(t.allData.transaction.receipt_no)+"\n ")]):t._e(),t._v(" "),t.allData.note?e("td",[t._v(t._s(t.allData.note))]):t._e(),t._v(" "),t.allData.createdBy?e("td",[t._v(t._s(t.allData.createdBy))]):t._e(),t._v(" "),e("td",{staticClass:"text-right"},[1===t.allData.status?e("span",{staticClass:"badge bg-success"},[t._v(t._s(t.$t("common.active")))]):e("span",{staticClass:"badge bg-danger"},[t._v(t._s(t.$t("common.in_active")))])])])])]):t._e()])]),t._v(" "),e("div",{staticClass:"col-lg-12 col-xl-4 text-lg-right"},[t.allData.invoice?e("div",{staticClass:"table-responsive table-custom table-border-y-0"},[t.allData.invoice?e("table",{staticClass:"table"},[e("tbody",[e("tr",{staticClass:"bg-sub-light text-bold"},[e("th",[t._v(t._s(t.$t("common.subtotal"))+":")]),t._v(" "),e("td",[t._v(t._s(t._f("withCurrency")(t.allData.invoice.subTotal)))])]),t._v(" "),t.allData.costOfReturn?e("tr",[e("th",[t._v(t._s(t.$t("common.return_cost"))+":")]),t._v(" "),e("td",[e("span",{staticClass:"minus-sign"},[t._v("-")]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.costOfReturn))+"\n ")])]):t._e(),t._v(" "),e("tr",[e("th",[t._v("\n "+t._s(t.$t("common.discount"))+"\n "),1==t.allData.invoice.discountType?e("span",[t._v("("+t._s(t.allData.invoice.discountPercentage)+"%)")]):t._e(),t._v("\n :\n ")]),t._v(" "),e("td",[e("span",{staticClass:"minus-sign"},[t._v("-")]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.invoice.discount))+"\n ")])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("common.transport"))+":")]),t._v(" "),e("td",[e("span",{staticClass:"plus-sign"},[t._v("+")]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.invoice.transport))+"\n ")])]),t._v(" "),e("tr",[e("th",[t._v("\n "+t._s(t.$t("common.tax"))+"\n "),t.allData.invoice.taxRate?e("span",[t._v("("+t._s(t.allData.invoice.taxRate)+"%)")]):t._e(),t._v(":\n ")]),t._v(" "),e("td",[e("span",{staticClass:"plus-sign"},[t._v("+")]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.invoice.tax))+"\n ")])]),t._v(" "),e("tr",{staticClass:"bg-indigo-light"},[e("th",[t._v(t._s(t.$t("common.total"))+":")]),t._v(" "),e("td",[e("span",{staticClass:"equal-sign"},[t._v("=")]),t._v("\n\n "+t._s(t._f("withCurrency")(t.allData.invoice.subTotal-t.allData.costOfReturn-t.allData.invoice.discount+t.allData.invoice.transport+t.allData.invoice.tax))+"\n ")])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("common.total_paid"))+":")]),t._v(" "),e("td",[e("span",{staticClass:"minus-sign"},[t._v("-")]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.invoice.totalPaid))+"\n ")])]),t._v(" "),e("tr",{staticClass:"bg-red-light"},[e("th",[t._v(t._s(t.$t("common.due"))+":")]),t._v(" "),e("td",[t._v(t._s(t._f("withCurrency")(t.allData.invoice.due)))])]),t._v(" "),t.allData.accountPayable>0?e("tr",{staticClass:"bg-green-light"},[e("th",[t._v(t._s(t.$t("common.account_payable"))+":")]),t._v(" "),e("td",[t._v(t._s(t._f("withCurrency")(t.allData.accountPayable)))])]):t._e()])]):t._e()]):t._e()])])])])],1)}),[],!1,null,null,null);e.default=h.exports}}]);
Simpan