⚝
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
/
View File Name :
139.8e9639.js
/*! For license information please see 139.8e9639.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[139],{522:function(t,r,e){"use strict";e.r(r);var n=e(5),o=e(16),a=e.n(o);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 i(){i=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function v(t,r,e,o){var a=r&&r.prototype instanceof p?r:p,s=Object.create(a.prototype),i=new E(o||[]);return n(s,"_invoke",{value:x(t,e,i)}),s}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=v;var _={};function p(){}function d(){}function h(){}var m={};u(m,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(I([])));b&&b!==r&&e.call(b,a)&&(m=b);var g=h.prototype=p.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function C(t,r){var o;n(this,"_invoke",{value:function(n,a){function i(){return new r((function(o,i){!function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,v=u.value;return v&&"object"==s(v)&&e.call(v,"__await")?r.resolve(v.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):r.resolve(v).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}(n,a,o,i)}))}return o=o?o.then(i,i):i()}})}function x(t,r,e){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return A()}for(e.method=o,e.arg=a;;){var s=e.delegate;if(s){var i=$(s,e);if(i){if(i===_)continue;return i}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=f(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===_)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}function $(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,$(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),_;var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,_;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,_):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function L(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function I(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=u(h,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(C.prototype),u(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(r,e,n,o,a){void 0===a&&(a=Promise);var s=new C(v(r,e,n,o),a);return t.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},w(g),u(g,l,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,E.prototype={constructor:E,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(L),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function n(e,n){return s.type="throw",s.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var i=e.call(a,"catchLoc"),c=e.call(a,"finallyLoc");if(i&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(i){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=t,s.arg=r,a?(this.method="next",this.next=a.finallyLoc,_):this.complete(s)},complete:function(t,r){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&&r&&(this.next=r),_},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),L(e),_}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;L(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:I(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),_}},t}function c(t,r,e,n,o,a,s){try{var i=t[a](s),c=i.value}catch(t){return void e(t)}i.done?r(c):Promise.resolve(c).then(n,o)}var l={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("reports.summary.page_title")}},data:function(){return{breadcrumbsCurrent:"reports.summary.breadcrumbs_current",breadcrumbs:[{name:"reports.summary.breadcrumbs_first",url:"home"},{name:"reports.summary.breadcrumbs_second",url:""},{name:"reports.summary.breadcrumbs_active",url:""}],form:new n.a({month:(new Date).getMonth()+1,year:(new Date).getFullYear(),currentYear:(new Date).getFullYear()}),reportInfo:"",totalOpeningBalance:0,totalClosingBalance:0,totalCollection:0,totalExpense:0,totalTransfer:0,loading:!1}},computed:{years:function(){return Array.from({length:this.form.currentYear-2020},(function(t,r){return 2021+r}))}},methods:{getReportData:function(){var t,r=this;return(t=i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.loading=!0,t.next=3,r.form.post(window.location.origin+"/api/reports/summery").then((function(t){r.reportInfo=t.data,r.calculateSum(r.reportInfo),r.loading=!1})).catch((function(){toast.fire({type:"error",title:r.$t("common.delete_failed")})}));case 3:r.form.currentYear=(new Date).getFullYear();case 4:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var a=t.apply(r,e);function s(t){c(a,n,o,s,i,"next",t)}function i(t){c(a,n,o,s,i,"throw",t)}s(void 0)}))})()},calculateSum:function(t){var r=[0,0,0,0,0];this.totalOpeningBalance=r[0],this.totalClosingBalance=r[1],this.totalCollection=r[2],this.totalExpense=r[3],this.totalTransfer=r[4],this.totalOpeningBalance=t.openingBalances.reduce((function(t,r){return Number(t)+Number(r.current_balance)}),0),this.totalClosingBalance=t.closingBalances.reduce((function(t,r){return Number(t)+Number(r.current_balance)}),0),this.totalCollection=t.accountCollections.reduce((function(t,r){return Number(t)+Number(r.total_collection)}),0),this.totalExpense=t.expenses+t.payrolls+t.loanInterest+t.assetDepriciation,this.totalTransfer=t.balanceTransfers.reduce((function(t,r){return Number(t)+Number(r.amount)}),0)},printWindow:function(){window.print()},generatePDF:function(){var t=document.getElementById("content-to-pdf");a()().from(t).set({margin:5,filename:"Summary Report.pdf",image:{type:"jpeg",quality:.98},pagebreak:{mode:"avoid-all",before:"#page-break"},html2canvas:{scale:2},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}}).save()}}},u=e(1),v=Object(u.a)(l,(function(){var t=this,r=t._self._c;return r("div",[r("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),r("div",{staticClass:"row no-print"},[r("div",{staticClass:"col-lg-12"},[r("div",{staticClass:"card"},[r("form",{attrs:{role:"form"},on:{submit:function(r){return r.preventDefault(),t.getReportData.apply(null,arguments)},keydown:function(r){return t.form.onKeydown(r)}}},[r("div",{staticClass:"card-body"},[r("div",{staticClass:"row"},[r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"month"}},[t._v(" "+t._s(t.$t("common.month"))+" ")]),t._v(" "),r("select",{directives:[{name:"model",rawName:"v-model",value:t.form.month,expression:"form.month"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("month")},attrs:{id:"month"},on:{change:function(r){var e=Array.prototype.filter.call(r.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"month",r.target.multiple?e:e[0])}}},[r("option",{attrs:{value:"1"}},[t._v("January")]),t._v(" "),r("option",{attrs:{value:"2"}},[t._v("February")]),t._v(" "),r("option",{attrs:{value:"3"}},[t._v("March")]),t._v(" "),r("option",{attrs:{value:"4"}},[t._v("April")]),t._v(" "),r("option",{attrs:{value:"5"}},[t._v("May")]),t._v(" "),r("option",{attrs:{value:"6"}},[t._v("June")]),t._v(" "),r("option",{attrs:{value:"7"}},[t._v("July")]),t._v(" "),r("option",{attrs:{value:"8"}},[t._v("August")]),t._v(" "),r("option",{attrs:{value:"9"}},[t._v("September")]),t._v(" "),r("option",{attrs:{value:"10"}},[t._v("October")]),t._v(" "),r("option",{attrs:{value:"11"}},[t._v("November")]),t._v(" "),r("option",{attrs:{value:"12"}},[t._v("December")])]),t._v(" "),r("has-error",{attrs:{form:t.form,field:"month"}})],1),t._v(" "),r("div",{staticClass:"form-group col-md-6"},[r("label",{attrs:{for:"year"}},[t._v(t._s(t.$t("common.year")))]),t._v(" "),r("select",{directives:[{name:"model",rawName:"v-model",value:t.form.year,expression:"form.year"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("year")},attrs:{id:"year"},on:{change:function(r){var e=Array.prototype.filter.call(r.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"year",r.target.multiple?e:e[0])}}},t._l(t.years,(function(e){return r("option",{key:e,domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),0),t._v(" "),r("has-error",{attrs:{form:t.form,field:"year"}})],1)])]),t._v(" "),r("div",{staticClass:"card-footer"},[r("v-button",{staticClass:"btn btn-primary",attrs:{loading:t.form.busy}},[r("i",{staticClass:"fas fa-eye"}),t._v(" "+t._s(t.$t("reports.view_report"))+"\n ")]),t._v(" "),r("button",{staticClass:"btn btn-secondary float-right",attrs:{type:"reset"},on:{click:function(r){return t.form.reset()}}},[r("i",{staticClass:"fas fa-power-off"}),t._v(" "+t._s(t.$t("common.reset"))+"\n ")])],1)])])])]),t._v(" "),r("div",{staticClass:"row no-print mb-2"},[r("div",{staticClass:"w-100 text-right float-right"},[t.reportInfo?r("div",{staticClass:"btn-group"},[r("a",{staticClass:"btn btn-primary",attrs:{href:"#"},on:{click:function(r){return t.generatePDF()}}},[r("i",{staticClass:"fas fa-download"}),t._v(" "+t._s(t.$t("download"))+"\n ")]),t._v(" "),r("a",{staticClass:"btn btn-secondary",attrs:{href:"#"},on:{click:function(r){return t.printWindow()}}},[r("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.$t("common.print"))+"\n ")]),t._v(" "),r("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"home"}}},[r("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")])],1):t._e()])]),t._v(" "),t.reportInfo?r("div",{staticClass:"row"},[r("div",{staticClass:"invoice p-3 mb-3 w-100",attrs:{id:"content-to-pdf"}},[r("div",{staticClass:"row invoice-info"},[r("div",{staticClass:"m-auto invoice-col"},[r("CompanyInfo",{staticClass:"text-center"})],1)]),t._v(" "),r("div",{staticClass:"row mt-3 position-relative"},[r("table-loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._v(" "),r("div",{staticClass:"table-responsive col-xl-10 m-auto"},[r("table",{staticClass:"table table-bordered table-striped table-sm"},[r("thead",[r("tr",{staticClass:"success text-center"},[r("th",{attrs:{colspan:"3"}},[r("h5",[t._v("\n "+t._s(t.$t("reports.monthly_summery"))+":\n "+t._s(t.reportInfo.monthName)+", "+t._s(t.reportInfo.year)),r("br")])])])]),t._v(" "),r("thead",[r("tr",[r("th",[t._v(t._s(t.$t("common.s_no")))]),t._v(" "),r("th",[t._v(t._s(t.$t("reports.particulars")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.balance")))])])]),t._v(" "),r("thead",[r("tr",[r("th",{attrs:{colspan:"3"}},[t._v(t._s(t.$t("reports.opening_balance")))])])]),t._v(" "),r("tbody",[t._l(t.reportInfo.openingBalances,(function(e,n){return r("tr",{key:n},[r("td",[t._v(t._s(++n))]),t._v(" "),r("td",[t._v(t._s(e.bank_name)+" ["+t._s(e.account_number)+"]")]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(e.current_balance)))])])})),t._v(" "),r("tr",[r("td",{staticClass:"text-right",attrs:{colspan:"2"}},[r("strong",[t._v(t._s(t.$t("common.total")))])]),t._v(" "),r("td",[r("strong",[t._v("\n "+t._s(t._f("withAbsoluteCurrency")(t.totalOpeningBalance))+"\n ")])])])],2),t._v(" "),r("thead",[r("tr",[r("th",{attrs:{colspan:"3"}},[t._v(t._s(t.$t("sidebar.sales")))])])]),t._v(" "),r("tbody",[r("tr",[r("td",[t._v("1")]),t._v(" "),r("td",[t._v(t._s(t.$t("reports.invoice_sales")))]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(t.reportInfo.invoiceSales)))])]),t._v(" "),r("tr",[r("td",[t._v("2")]),t._v(" "),r("td",[t._v(t._s(t.$t("reports.invoice_dues")))]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(t.reportInfo.invoiceDue)))])])]),t._v(" "),r("thead",[r("tr",[r("th",{attrs:{colspan:"3"}},[t._v(t._s(t.$t("reports.accounts_collection")))])])]),t._v(" "),r("tbody",[t._l(t.reportInfo.accountCollections,(function(e,n){return r("tr",{key:n},[r("td",[t._v(t._s(++n))]),t._v(" "),r("td",[t._v(t._s(e.bank_name)+" ["+t._s(e.account_number)+"]")]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(e.total_collection)))])])})),t._v(" "),r("tr",[r("td",{staticClass:"text-right",attrs:{colspan:"2"}},[r("strong",[t._v(t._s(t.$t("common.total")))])]),t._v(" "),r("td",[r("strong",[t._v(t._s(t._f("withAbsoluteCurrency")(t.totalCollection)))])])])],2),t._v(" "),r("thead",[r("tr",[r("th",{attrs:{colspan:"3"}},[t._v(t._s(t.$t("sidebar.expenses")))])])]),t._v(" "),r("tbody",[r("tr",[r("td",{attrs:{colspan:"2"}},[t._v(t._s(t.$t("sidebar.purchase")))]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(t.reportInfo.totalPurchase)))])]),t._v(" "),r("tr",[r("td",{attrs:{colspan:"2"}},[t._v(t._s(t.$t("reports.general")))]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(t.reportInfo.expenses)))])]),t._v(" "),r("tr",[r("td",{attrs:{colspan:"2"}},[t._v(t._s(t.$t("sidebar.payroll")))]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(t.reportInfo.payrolls)))])]),t._v(" "),r("tr",[r("td",{attrs:{colspan:"2"}},[t._v(t._s(t.$t("reports.loan_interest")))]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(t.reportInfo.loanInterest)))])]),t._v(" "),r("tr",[r("td",{attrs:{colspan:"2"}},[t._v(t._s(t.$t("reports.asset_depreciation")))]),t._v(" "),r("td",[t._v("\n "+t._s(t._f("withAbsoluteCurrency")(t.reportInfo.assetDepriciation))+"\n ")])]),t._v(" "),r("tr",[r("td",{staticClass:"text-right",attrs:{colspan:"2"}},[r("strong",[t._v(t._s(t.$t("common.total")))])]),t._v(" "),r("td",[r("strong",[t._v(t._s(t._f("withAbsoluteCurrency")(t.totalExpense)))])])])]),t._v(" "),r("thead",[r("tr",[r("th",{attrs:{colspan:"3"}},[t._v(t._s(t.$t("reports.transfer")))])])]),t._v(" "),r("tbody",[t._l(t.reportInfo.balanceTransfers,(function(e,n){return r("tr",{key:n},[r("td",[t._v(t._s(++n))]),t._v(" "),r("td",[t._v("\n "+t._s(t.$t("reports.transfer_from"))+" ["+t._s(e.debit_transaction.cashbook_account.account_number)+"] "+t._s(t.$t("common.to"))+" ["+t._s(e.credit_transaction.cashbook_account.account_number)+"]\n ")]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(e.amount)))])])})),t._v(" "),r("tr",[r("td",{staticClass:"text-right",attrs:{colspan:"2"}},[r("strong",[t._v(t._s(t.$t("common.total")))])]),t._v(" "),r("td",[r("strong",[t._v(t._s(t._f("withAbsoluteCurrency")(t.totalTransfer)))])])])],2),t._v(" "),r("thead",[r("tr",[r("th",{attrs:{colspan:"3"}},[t._v(t._s(t.$t("reports.closing_balance")))])])]),t._v(" "),r("tbody",[t._l(t.reportInfo.closingBalances,(function(e,n){return r("tr",{key:n},[r("td",[t._v(t._s(++n))]),t._v(" "),r("td",[t._v(t._s(e.bank_name)+" ["+t._s(e.account_number)+"]")]),t._v(" "),r("td",[t._v(t._s(t._f("withAbsoluteCurrency")(e.current_balance)))])])})),t._v(" "),r("tr",[r("td",{staticClass:"text-right",attrs:{colspan:"2"}},[r("strong",[t._v(t._s(t.$t("common.total")))])]),t._v(" "),r("td",[r("strong",[t._v(t._s(t._f("withAbsoluteCurrency")(t.totalClosingBalance)))])])])],2)])])],1)])]):t._e()],1)}),[],!1,null,null,null);r.default=v.exports}}]);