⚝
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: 99.99dec7.js
/*! For license information please see 99.99dec7.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[99],{477:function(t,r,e){"use strict";e.r(r);var n=e(3),o=e.n(n),i=e(4),a=e(16),s=e.n(a);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 u(){u=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:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function v(t,r,e,o){var i=r&&r.prototype instanceof d?r:d,a=Object.create(i.prototype),s=new C(o||[]);return n(a,"_invoke",{value:O(t,e,s)}),a}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 p={};function d(){}function h(){}function _(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==r&&e.call(g,i)&&(m=g);var b=_.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){var o;n(this,"_invoke",{value:function(n,i){function a(){return new r((function(o,a){!function n(o,i,a,s){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,v=l.value;return v&&"object"==c(v)&&e.call(v,"__await")?r.resolve(v.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):r.resolve(v).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}(n,i,o,a)}))}return o=o?o.then(a,a):a()}})}function O(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var s=k(a,e);if(s){if(s===p)continue;return s}}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===p)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}function k(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,k(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function $(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 j(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function P(t){if(t){var r=t[i];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:L}}function L(){return{value:void 0,done:!0}}return h.prototype=_,n(b,"constructor",{value:_,configurable:!0}),n(_,"constructor",{value:h,configurable:!0}),h.displayName=l(_,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===h||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(v(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"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=P,C.prototype={constructor:C,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(j),!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 a.type="throw",a.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 i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=e.call(i,"catchLoc"),c=e.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.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 i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},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),p},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),j(e),p}},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;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:P(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}function l(t,r,e,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?r(c):Promise.resolve(c).then(n,o)}function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function f(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==c(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===c(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var p={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("inventory.common.inventory_history")}},data:function(){return{breadcrumbsCurrent:"inventory.history.breadcrumbs_current",breadcrumbs:[{name:"inventory.history.breadcrumbs_first",url:"home"},{name:"inventory.history.breadcrumbs_second",url:"inventory.index"},{name:"inventory.history.breadcrumbs_active",url:""}],allData:"",product:"",date:new Date,loading:!1,productPrefix:""}},computed:function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?v(Object(e),!0).forEach((function(r){f(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},Object(i.b)("operations",["appInfo"])),created:function(){this.getHistory(),this.productPrefix=this.appInfo.productPrefix},methods:{printWindow:function(){window.print()},getHistory:function(){var t,r=this;return(t=u().mark((function t(){var e,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.loading=!0,t.next=3,o.a.get(window.location.origin+"/api/inventory-history/"+r.$route.params.slug);case 3:e=t.sent,n=e.data,r.allData=n,r.product=n.product,r.loading=!1;case 8:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){l(i,n,o,a,s,"next",t)}function s(t){l(i,n,o,a,s,"throw",t)}a(void 0)}))})()},stockInQty:function(t){return t.reduce((function(t,r){return Number(t)+Number(r.quantity)}),0)},stockOutQty:function(t){return t.reduce((function(t,r){return Number(t)+Number(r.quantity)}),0)},generatePDF:function(){var t=document.getElementById("content-to-pdf"),r={margin:5,filename:"Inventory History-"+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"}};s()().from(t).set(r).save()}}},d=e(1),h=Object(d.a)(p,(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 mb-2"},[r("div",{staticClass:"w-100 text-right float-right"},[t.allData?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:"inventory.index"}}},[r("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")])],1):t._e()])]),t._v(" "),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:"col-sm-4 invoice-col"},[r("CompanyInfo")],1),t._v(" "),t.product&&t.product.category&&t.product.subCategory&&t.product.itemUnit?r("div",{staticClass:"col-sm-6 offset-sm-2 invoice-col float-right text-md-right"},[r("p",[t._v("\n "+t._s(t.$t("common.date"))+": "+t._s(t._f("moment")(t.date,"Do MMM, YYYY"))+"\n ")]),t._v(" "),r("h5",[t._v(t._s(t.$t("products.list.view.page_title")))]),t._v(" "),r("strong",[t._v(t._s(t.$t("common.code"))+":")]),t._v("\n "+t._s(t._f("withPrefix")(t.product.code,t.productPrefix))),r("br"),t._v(" "),r("strong",[t._v(t._s(t.$t("common.name"))+":")]),t._v(" "+t._s(t.product.name)),r("br"),t._v(" "),r("strong",[t._v(t._s(t.$t("common.category"))+":")]),t._v("\n "+t._s(t.product.category.name)),r("br"),t._v(" "),r("strong",[t._v(t._s(t.$t("common.sub_category"))+":")]),t._v("\n "+t._s(t.product.subCategory.name)),r("br"),t._v(" "),r("strong",[t._v(t._s(t.$t("products.list.common.stock"))+":")]),t._v("\n "+t._s(t.product.availableQty)+" "+t._s(t.product.itemUnit.code)+" "),r("br")]):t._e()]),t._v(" "),r("hr"),t._v(" "),r("div",{staticClass:"row mt-5 position-relative"},[r("table-loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._v(" "),r("div",{staticClass:"col-lg-6"},[r("h4",{attrs:{align:"center"}},[r("i",[t._v(t._s(t.$t("reports.stock_in")))])]),t._v(" "),r("div",{staticClass:"table-responsive table-custom"},[r("table",{staticClass:"table table-sm"},[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("common.date")))]),t._v(" "),r("th",[t._v(t._s(t.$t("reports.stock_in")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.price")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.type")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.code")))]),t._v(" "),r("th",[t._v("\n "+t._s(t.$t("common.supplier"))+"/"+t._s(t.$t("common.client"))+"\n ")])])]),t._v(" "),r("tbody",[t._l(t.allData.stockIns,(function(e,n){return r("tr",{key:n},[r("td",[t._v(t._s(n+1))]),t._v(" "),r("td",[t._v(t._s(t._f("moment")(e.date,"Do MMM, YYYY")))]),t._v(" "),r("td",[t._v(t._s(e.quantity))]),t._v(" "),r("td",[t._v(t._s(t._f("withCurrency")(e.price)))]),t._v(" "),r("td",[r("span",{staticClass:"badge bg-success"},[t._v(t._s(e.type))])]),t._v(" "),r("td",[t._v(t._s(e.code))]),t._v(" "),r("td",["Purchase"===e.type?r("span",[t._v(t._s(e.supplier))]):"Invoice Return"===e.type?r("span",[t._v(t._s(e.client))]):t._e()])])})),t._v(" "),r("tr",[r("td",{attrs:{colspan:"2",align:"right"}},[r("strong",[t._v(t._s(t.$t("reports.total_quantity")))])]),t._v(" "),t.allData.stockIns?r("td",{attrs:{colspan:"5"}},[r("strong",[t._v(t._s(t.stockInQty(t.allData.stockIns)))])]):t._e()])],2)])])]),t._v(" "),r("div",{staticClass:"col-lg-6"},[r("h4",{attrs:{align:"center"}},[r("i",[t._v(t._s(t.$t("reports.stock_out")))])]),t._v(" "),r("div",{staticClass:"table-responsive table-custom"},[r("table",{staticClass:"table table-sm"},[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("common.date")))]),t._v(" "),r("th",[t._v(t._s(t.$t("reports.stock_out")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.price")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.type")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.code")))]),t._v(" "),r("th",[t._v("\n "+t._s(t.$t("common.client"))+"/"+t._s(t.$t("common.supplier"))+"\n ")])])]),t._v(" "),r("tbody",[t._l(t.allData.stockOuts,(function(e,n){return r("tr",{key:n},[r("td",[t._v(t._s(n+1))]),t._v(" "),r("td",[t._v(t._s(t._f("moment")(e.date,"Do MMM, YYYY")))]),t._v(" "),r("td",[t._v("-"+t._s(e.quantity))]),t._v(" "),r("td",[t._v(t._s(t._f("withCurrency")(e.price)))]),t._v(" "),r("td",[r("span",{staticClass:"badge bg-success"},[t._v(t._s(e.type))])]),t._v(" "),r("td",[t._v(t._s(e.code))]),t._v(" "),r("td",["Invoice"===e.type?r("span",[t._v(t._s(e.client))]):"Purchase Return"===e.type?r("span",[t._v(t._s(e.supplier))]):t._e()])])})),t._v(" "),r("tr",[r("td",{attrs:{colspan:"2",align:"right"}},[r("b",[r("i",[t._v(t._s(t.$t("reports.total_quantity"))+": ")])])]),t._v(" "),t.allData.stockOuts?r("td",{attrs:{colspan:"5"}},[r("b",[r("i",[t._v("- "+t._s(t.stockOutQty(t.allData.stockOuts))+" ")])])]):t._e()])],2)])])])],1)])])],1)}),[],!1,null,null,null);r.default=h.exports}}]);
Simpan