[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 8878.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8878],{1030:(e,t,l)=>{l.d(t,{A:()=>n});var a=l(9726),s={class:"db-tooltip"};const i={name:"SmIconEditComponent",props:{link:String,id:Number}};const n=(0,l(6262).A)(i,[["render",function(e,t,l,i,n,r){var o=(0,a.resolveComponent)("router-link");return(0,a.openBlock)(),(0,a.createBlock)(o,{class:"db-table-action edit",to:{name:this.$props.link,params:{id:this.$props.id}}},{default:(0,a.withCtx)(function(){return[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab lab-line-edit"},null,-1)),(0,a.createElementVNode)("span",s,(0,a.toDisplayString)(e.$t("button.edit")),1)]}),_:1,__:[0]},8,["to"])}]])},2660:(e,t,l)=>{l.d(t,{A:()=>i});var a=l(6314),s=l.n(a)()(function(e){return e[1]});s.push([e.id,"@media print{.hidden-print[data-v-454aa592]{display:none!important}}",""]);const i=s},5316:(e,t,l)=>{l.d(t,{A:()=>i});class a{constructor(e){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,e),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let e="";this.settings.url&&!this.settings.asyncUrl&&(e=this.settings.url);let t=this;if(this.settings.asyncUrl)return void t.settings.asyncUrl(function(e){let l=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(l)},t.settings.vue);let l=this.getPrintWindow(e);this.settings.url||this.write(l.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(l)}addEvent(e,t,l){e.addEventListener?e.addEventListener(t,l,!1):e.attachEvent?e.attachEvent("on"+t,l):e["on"+t]=l}previewIfrmaeLoad(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e){let t=this,l=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(l,"load",function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()}),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),l.contentWindow.print(),t.settings.closeCallback()})}}removeCanvasImg(){let e=this;try{if(e.elsdom){let t=e.elsdom.querySelectorAll(".canvasImg");for(let e=0;e<t.length;e++)t[e].remove()}}catch(e){console.log(e)}}print(e){var t=this;let l=document.getElementById(this.settings.id)||e.f,a=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(l,"load",function(){a.focus(),t.settings.openCallback(),a.print(),l.remove(),t.settings.closeCallback(),t.removeCanvasImg()})}write(e){e.open(),e.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),e.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let e="",t="",l="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,t=>{e+=t}),[].forEach.call(document.querySelectorAll("link"),function(e){e.href.indexOf(".css")>=0&&(t+=`<link type="text/css" rel="stylesheet" href="${e.href}" >`)});let a=document.styleSheets;if(a&&a.length>0)for(let e=0;e<a.length;e++)try{if(a[e].cssRules||a[e].rules){let t=a[e].cssRules||a[e].rules;for(let e=0;e<t.length;e++)l+=t[e].cssText}}catch(t){console.log(a[e].href+t)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,e=>{t+=`<link type="text/css" rel="stylesheet" href="${e}">`}),`<head><title>${this.settings.popTitle}</title>${e}${t}<style type="text/css">${l}</style></head>`}getBody(){let e=this.settings.ids;return e=e.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(e)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(e){let t=e.querySelectorAll("canvas");for(let e=0;e<t.length;e++)if(!t[e].style.display){let l=t[e].parentNode,a=t[e].toDataURL("image/png"),s=new Image;s.className="canvasImg",s.style.display="none",s.src=a,l.appendChild(s)}return e}getFormData(e){let t=e.cloneNode(!0),l=t.querySelectorAll("input,select,textarea"),a=t.querySelectorAll(".canvasImg,canvas"),s=-1;for(let e=0;e<a.length;e++){let t=a[e].parentNode,l=a[e];"canvas"===l.tagName.toLowerCase()?t.removeChild(l):l.style.display="block"}for(let t=0;t<l.length;t++){let a=l[t],i=a.getAttribute("type"),n=l[t];if(i||(i="SELECT"===a.tagName?"select":"TEXTAREA"===a.tagName?"textarea":""),"INPUT"===a.tagName)"radio"===i||"checkbox"===i?a.checked&&n.setAttribute("checked",a.checked):(n.value=a.value,n.setAttribute("value",a.value));else if("select"===i){s++;for(let t=0;t<e.querySelectorAll("select").length;t++){let l=e.querySelectorAll("select")[t];if(!l.getAttribute("newbs")&&l.setAttribute("newbs",t),l.getAttribute("newbs")==s){let t=e.querySelectorAll("select")[s].selectedIndex;a.options[t].setAttribute("selected",!0)}}}else n.innerHTML=a.value,n.setAttribute("html",a.value)}return t}getPrintWindow(e){var t=this.Iframe(e);return{f:t,win:t.contentWindow||t,doc:t.doc}}previewBoxShow(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: hidden"),e.style.display="block")}previewBoxHide(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: visible;"),e.querySelector("iframe")&&e.querySelector("iframe").remove(),e.style.display="none")}previewBox(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e)return e.querySelector("iframe")&&e.querySelector("iframe").remove(),{close:e.querySelector(".previewClose"),previewBody:e.querySelector(".previewBody")};let t=document.createElement("div");t.setAttribute("id","vue-pirnt-nb-previewBox"),t.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),t.style.zIndex=this.settings.zIndex;let l=document.createElement("div");l.setAttribute("class","previewHeader"),l.setAttribute("style","padding: 5px 20px;"),l.innerHTML=this.settings.previewTitle,t.appendChild(l),this.close=document.createElement("div");let a=this.close;a.setAttribute("class","previewClose"),a.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let s=document.createElement("div"),i=document.createElement("div");s.setAttribute("class","closeBefore"),s.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),i.setAttribute("class","closeAfter"),i.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),a.appendChild(s),a.appendChild(i),l.appendChild(a),this.previewBody=document.createElement("div");let n=this.previewBody;n.setAttribute("class","previewBody"),n.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(n);let r=document.createElement("div");r.setAttribute("class","previewBodyUtil"),r.setAttribute("style","height: 32px;background: #474747;position: relative;"),n.appendChild(r),this.previewBodyUtilPrintBtn=document.createElement("div");let o=this.previewBodyUtilPrintBtn;return o.setAttribute("class","previewBodyUtilPrintBtn"),o.innerHTML=this.settings.previewPrintBtnLabel,o.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),r.appendChild(o),document.body.appendChild(t),{close:this.close,previewBody:this.previewBody}}iframeBox(e,t){let l=document.createElement("iframe");return l.style.border="0px",l.style.position="absolute",l.style.width="0px",l.style.height="0px",l.style.right="0px",l.style.top="0px",l.setAttribute("id",e),l.setAttribute("src",t),l}Iframe(e){let t=this.settings.id;e=e||(new Date).getTime();let l=this,a=this.iframeBox(t,e);try{if(this.settings.preview){a.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,s=e.close;t.appendChild(a),this.addEvent(s,"click",function(){l.previewBoxHide()})}else document.body.appendChild(a);a.doc=null,a.doc=a.contentDocument?a.contentDocument:a.contentWindow?a.contentWindow.document:a.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==a.doc)throw new Error("Cannot find document.");return a}}var s={directiveName:"print",mounted(e,t,l){let s=t.instance,i="";var n,r,o;r="click",o=()=>{if("string"==typeof t.value)i=t.value;else{if("object"!=typeof t.value||!t.value.id)return void window.print();{i=t.value.id;let e=i.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),i="")}}c()},(n=e).addEventListener?n.addEventListener(r,o,!1):n.attachEvent?n.attachEvent("on"+r,o):n["on"+r]=o;const c=()=>{new a({ids:i,vue:s,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,zIndex:t.value.zIndex||20002,previewTitle:t.value.previewTitle||"打印预览",previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(s)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(s)},openCallback(){t.value.openCallback&&t.value.openCallback(s)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(s)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(s)}})}},install:function(e){e.directive("print",s)}};const i=s},6883:(e,t,l)=>{l.d(t,{A:()=>i});var a=l(9726);const s={name:"PrintButtonComponent",props:["props","buttonClass"],directives:{print:l(5316).A}};const i=(0,l(6262).A)(s,[["render",function(e,t,l,s,i,n){var r=(0,a.resolveDirective)("print");return(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("button",{class:(0,a.normalizeClass)(l.buttonClass)},[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab-fill-printer"},null,-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("button.print")),1)],2)),[[r,l.props]])}]])},8878:(e,t,l)=>{l.r(t),l.d(t,{default:()=>Pe});var a=l(9726),s={class:"col-12",id:"print"},i={class:"db-card p-4 mb-8"},n={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},r={class:"p-4 rounded-xl border border-gray-100"},o={class:"text-sm capitalize font-semibold text-secondary mb-1.5"},c={class:"flex flex-col gap-1"},d={class:"flex items-start gap-1"},p={class:"text-sm capitalize"},u={class:"text-sm"},m={class:"flex items-start gap-1"},b={class:"text-sm capitalize"},h={class:"text-sm"},g={key:0,class:"flex items-start gap-1"},y={class:"text-sm capitalize"},v={class:"text-sm"},f={key:1,class:"flex items-start gap-1"},x={class:"text-sm capitalize"},E={class:"text-sm"},w={class:"p-4 rounded-xl border border-gray-100"},N={class:"text-sm capitalize font-semibold text-secondary mb-1.5"},D={class:"flex flex-col gap-1"},V={class:"flex items-start gap-1"},S={class:"text-sm capitalize"},k={class:"text-sm"},B={class:"flex items-start gap-1"},C={class:"text-sm capitalize"},A={class:"text-sm capitalize font-semibold text-primary"},$={key:0,class:"grid grid-cols-1 md:grid-cols-1 gap-6 pt-4"},_={class:"p-4 rounded-xl border border-gray-100"},I={class:"text-sm capitalize font-semibold text-secondary mb-1.5"},T=["innerHTML"],L={class:"db-card overflow-hidden"},O={class:"db-table-responsive"},P={class:"db-table stripe"},z={class:"db-table-head"},q={class:"db-table-head-tr"},H={class:"db-table-head-th"},U={class:"db-table-head-th"},j={class:"db-table-head-th"},R={class:"db-table-head-th"},F={class:"db-table-head-th"},W={class:"db-table-head-th"},M={class:"db-table-body border-b border-gray-200"},Y={class:"db-table-body-td font-medium"},G={key:0},X={class:"db-table-body-td"},J={class:"db-table-body-td"},K={class:"db-table-body-td"},Q={class:"db-table-body-td"},Z={class:"db-table-body-td"},ee={class:"grid grid-cols-1 md:grid-cols-2 gap-6 items-start py-6 px-4"},te={class:"p-4 rounded-xl flex flex-col gap-2.5 bg-gray-100"},le={key:0,class:"flex items-start gap-1.5"},ae={class:"text-base font-medium text-secondary"},se={class:"text-base font-medium text-secondary"},ie={class:"flex items-start gap-1.5"},ne={class:"text-base font-medium text-secondary"},re={class:"text-base font-medium text-secondary"},oe={class:"w-full flex flex-col gap-3.5 p-4 rounded-xl border border-gray-100"},ce={class:"w-full flex items-center justify-between"},de={class:"text-base font-semibold text-secondary"},pe={class:"text-base font-semibold text-secondary"},ue={class:"w-full flex items-center justify-between"},me={class:"text-base font-semibold text-secondary"},be={class:"text-base font-semibold text-secondary"},he={class:"w-full flex items-center justify-between"},ge={class:"text-base font-semibold text-secondary"},ye={class:"text-base font-semibold text-secondary"},ve={class:"w-full flex items-center justify-between"},fe={class:"text-base font-semibold text-secondary"},xe={class:"text-base font-semibold text-secondary"},Ee={class:"col-12 hidden-print"},we={class:"flex items-center justify-end gap-6"},Ne={class:"capitalize text-sm font-medium"};var De=l(9856),Ve=l(8655),Se=l(6883),ke=l(5475),Be=l(3859),Ce=l(1030);function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function $e(e,t,l){return(t=function(e){var t=function(e,t){if("object"!=Ae(e)||!e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var a=l.call(e,t||"default");if("object"!=Ae(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ae(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const _e={name:"PurchaseShowComponent",components:{LoadingComponent:ke.A,SmIconEditComponent:Ce.A,PrintButtonComponent:Se.A},data:function(){return{loading:{isActive:!1},printObj:{id:"print",popTitle:this.$t("menu.purchase")},statusEnumArray:$e($e($e({},Be.A.PENDING,this.$t("label.pending")),Be.A.ORDERED,this.$t("label.ordered")),Be.A.RECEIVED,this.$t("label.received"))}},mounted:function(){this.show()},computed:{purchaseDetails:function(){return this.$store.getters["purchase/show"]},setting:function(){return this.$store.getters["frontendSetting/lists"]}},methods:{floatFormat:function(e){return Ve.A.floatFormat(e,this.setting.site_digit_after_decimal_point)},show:function(){var e=this;isNaN(this.$route.params.id)||(this.loading.isActive=!0,this.$store.dispatch("purchase/show",this.$route.params.id).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}))},download:function(){var e=this;isNaN(this.$route.params.id)||(this.loading.isActive=!0,this.$store.dispatch("purchase/download",this.$route.params.id).then(function(t){e.loading.isActive=!1;var l="";if(t.data.type){var a=t.data.type;l=(a=a.split("/"))[1]}if(t.data.size>0){var s=window.URL.createObjectURL(new Blob([t.data])),i=document.createElement("a");i.href=s,i.download=e.$t("menu.purchase")+"."+l,i.click(),URL.revokeObjectURL(i.href)}else De.A.info(e.$t("menu.purchase")+" "+e.$t("message.attachment_not_found"))}).catch(function(t){e.loading.isActive=!1}))}}};var Ie=l(5072),Te=l.n(Ie),Le=l(2660),Oe={insert:"head",singleton:!1};Te()(Le.A,Oe);Le.A.locals;const Pe=(0,l(6262).A)(_e,[["render",function(e,t,l,De,Ve,Se){var ke,Be,Ce,Ae,$e,_e,Ie,Te,Le,Oe=(0,a.resolveComponent)("LoadingComponent"),Pe=(0,a.resolveComponent)("PrintButtonComponent");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(Oe,{props:Ve.loading},null,8,["props"]),(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("div",i,[(0,a.createElementVNode)("div",n,[(0,a.createElementVNode)("div",r,[t[1]||(t[1]=(0,a.createElementVNode)("i",{class:"lab-fill-shop text-2xl text-shopperz-blue mb-2 lab-font-size-24"},null,-1)),(0,a.createElementVNode)("h4",o,(0,a.toDisplayString)(e.$t("label.supplier")),1),(0,a.createElementVNode)("ul",c,[(0,a.createElementVNode)("li",d,[(0,a.createElementVNode)("span",p,(0,a.toDisplayString)(e.$t("label.name"))+":",1),(0,a.createElementVNode)("span",u,(0,a.toDisplayString)(null===(ke=Se.purchaseDetails.supplier)||void 0===ke?void 0:ke.name),1)]),(0,a.createElementVNode)("li",m,[(0,a.createElementVNode)("span",b,(0,a.toDisplayString)(e.$t("label.location"))+":",1),(0,a.createElementVNode)("span",h,(0,a.toDisplayString)(null===(Be=Se.purchaseDetails.supplier)||void 0===Be?void 0:Be.address)+", "+(0,a.toDisplayString)(null===(Ce=Se.purchaseDetails.supplier)||void 0===Ce?void 0:Ce.city)+" "+(0,a.toDisplayString)(null!==(Ae=Se.purchaseDetails.supplier)&&void 0!==Ae&&Ae.postal_code?",":"")+" "+(0,a.toDisplayString)(null===($e=Se.purchaseDetails.supplier)||void 0===$e?void 0:$e.postal_code),1)]),null!==(_e=Se.purchaseDetails.supplier)&&void 0!==_e&&_e.phone?((0,a.openBlock)(),(0,a.createElementBlock)("li",g,[(0,a.createElementVNode)("span",y,(0,a.toDisplayString)(e.$t("label.phone"))+":",1),(0,a.createElementVNode)("span",v,(0,a.toDisplayString)(null===(Ie=Se.purchaseDetails.supplier)||void 0===Ie?void 0:Ie.phone),1)])):(0,a.createCommentVNode)("",!0),null!==(Te=Se.purchaseDetails.supplier)&&void 0!==Te&&Te.email?((0,a.openBlock)(),(0,a.createElementBlock)("li",f,[(0,a.createElementVNode)("span",x,(0,a.toDisplayString)(e.$t("label.email"))+":",1),(0,a.createElementVNode)("span",E,(0,a.toDisplayString)(null===(Le=Se.purchaseDetails.supplier)||void 0===Le?void 0:Le.email),1)])):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("div",w,[t[2]||(t[2]=(0,a.createElementVNode)("i",{class:"lab-fill-file text-2xl text-success mb-2 lab-font-size-24"},null,-1)),(0,a.createElementVNode)("h4",N,(0,a.toDisplayString)(e.$t("label.reference"))+": "+(0,a.toDisplayString)(Se.purchaseDetails.reference_no),1),(0,a.createElementVNode)("ul",D,[(0,a.createElementVNode)("li",V,[(0,a.createElementVNode)("span",S,(0,a.toDisplayString)(e.$t("label.date"))+":",1),(0,a.createElementVNode)("span",k,(0,a.toDisplayString)(Se.purchaseDetails.converted_date),1)]),(0,a.createElementVNode)("li",B,[(0,a.createElementVNode)("span",C,(0,a.toDisplayString)(e.$t("label.status"))+":",1),(0,a.createElementVNode)("span",A,(0,a.toDisplayString)(Ve.statusEnumArray[Se.purchaseDetails.status]),1)])])])]),Se.purchaseDetails.note?((0,a.openBlock)(),(0,a.createElementBlock)("div",$,[(0,a.createElementVNode)("div",_,[(0,a.createElementVNode)("h4",I,(0,a.toDisplayString)(e.$t("label.note"))+": ",1),(0,a.createElementVNode)("span",{innerHTML:Se.purchaseDetails.note},null,8,T)])])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",L,[(0,a.createElementVNode)("div",O,[(0,a.createElementVNode)("table",P,[(0,a.createElementVNode)("thead",z,[(0,a.createElementVNode)("tr",q,[(0,a.createElementVNode)("th",H,(0,a.toDisplayString)(e.$t("label.product")),1),(0,a.createElementVNode)("th",U,(0,a.toDisplayString)(e.$t("label.unit_cost")),1),(0,a.createElementVNode)("th",j,(0,a.toDisplayString)(e.$t("label.quantity")),1),(0,a.createElementVNode)("th",R,(0,a.toDisplayString)(e.$t("label.discount")),1),(0,a.createElementVNode)("th",F,(0,a.toDisplayString)(e.$t("label.taxes")),1),(0,a.createElementVNode)("th",W,(0,a.toDisplayString)(e.$t("label.sub_total")),1)])]),(0,a.createElementVNode)("tbody",M,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(Se.purchaseDetails.products,function(t,l){return(0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:l,class:"db-table-body-tr"},[(0,a.createElementVNode)("td",Y,[(0,a.createTextVNode)((0,a.toDisplayString)(t.product_name)+" ",1),t.variation_names?((0,a.openBlock)(),(0,a.createElementBlock)("span",G," ( "+(0,a.toDisplayString)(e.$t("label.variation"))+" : "+(0,a.toDisplayString)(t.variation_names)+") ",1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("td",X,(0,a.toDisplayString)(Se.floatFormat(t.price)),1),(0,a.createElementVNode)("td",J,(0,a.toDisplayString)(t.quantity),1),(0,a.createElementVNode)("td",K,(0,a.toDisplayString)(0===Number(t.discount)?"":"-")+" "+(0,a.toDisplayString)(Se.floatFormat(t.discount)),1),(0,a.createElementVNode)("td",Q,(0,a.toDisplayString)(Se.floatFormat(t.tax)),1),(0,a.createElementVNode)("td",Z,(0,a.toDisplayString)(Se.floatFormat(t.total)),1)])}),128))])])]),(0,a.createElementVNode)("div",ee,[(0,a.createElementVNode)("div",te,[Se.purchaseDetails.creator&&Se.purchaseDetails.creator.name?((0,a.openBlock)(),(0,a.createElementBlock)("dl",le,[(0,a.createElementVNode)("dt",ae,(0,a.toDisplayString)(e.$t("label.created_by"))+": ",1),(0,a.createElementVNode)("dd",se,(0,a.toDisplayString)(Se.purchaseDetails.creator?Se.purchaseDetails.creator.name:""),1)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("dl",ie,[(0,a.createElementVNode)("dt",ne,(0,a.toDisplayString)(e.$t("label.created_date"))+":",1),(0,a.createElementVNode)("dd",re,(0,a.toDisplayString)(Se.purchaseDetails.created_at),1)])]),(0,a.createElementVNode)("ul",oe,[(0,a.createElementVNode)("li",ce,[(0,a.createElementVNode)("span",de,(0,a.toDisplayString)(e.$t("label.subtotal")),1),(0,a.createElementVNode)("span",pe,(0,a.toDisplayString)(Se.purchaseDetails.subtotal_currency_price),1)]),(0,a.createElementVNode)("li",ue,[(0,a.createElementVNode)("span",me,(0,a.toDisplayString)(e.$t("label.tax_fee")),1),(0,a.createElementVNode)("span",be,(0,a.toDisplayString)(Se.purchaseDetails.tax_currency_price),1)]),(0,a.createElementVNode)("li",he,[(0,a.createElementVNode)("span",ge,(0,a.toDisplayString)(e.$t("label.discount")),1),(0,a.createElementVNode)("span",ye,(0,a.toDisplayString)(Se.purchaseDetails.discount_currency_price),1)]),(0,a.createElementVNode)("li",ve,[(0,a.createElementVNode)("span",fe,(0,a.toDisplayString)(e.$t("label.total")),1),(0,a.createElementVNode)("span",xe,(0,a.toDisplayString)(Se.purchaseDetails.total_currency_price),1)])])])])]),(0,a.createElementVNode)("div",Ee,[(0,a.createElementVNode)("div",we,[Se.purchaseDetails.file?((0,a.openBlock)(),(0,a.createElementBlock)("button",{key:0,onClick:t[0]||(t[0]=function(){return Se.download&&Se.download.apply(Se,arguments)}),type:"button",class:"flex items-center justify-center gap-1.5 h-10 px-6 rounded-3xl text-white bg-primary"},[t[3]||(t[3]=(0,a.createElementVNode)("i",{class:"lab lab-fill-download"},null,-1)),(0,a.createElementVNode)("span",Ne,(0,a.toDisplayString)(e.$t("label.download")),1)])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(Pe,{props:Ve.printObj,buttonClass:"flex items-center justify-center gap-1.5 h-10 px-6 rounded-3xl text-white bg-success"},null,8,["props"])])])],64)}],["__scopeId","data-v-454aa592"]])}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285