import{d as _,p as f,i as s,q as v,H as h,J as l,n as x,o as i,j as c,k as e,t as a,b as y,c as g,e as I,x as C}from"./index.29cf2edd.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              */import{C as k}from"./CovidService.5364de46.js";import{f as T}from"./filters.69c883c5.js";const V={key:0},w=e("h1",{style:{"font-size":"22pt","font-weight":"bold"}},"INVOICE",-1),L=e("div",null,[e("p",null,"LAOPT"),e("p",null,"13 South Street"),e("p",null,"VT, Lao 10111")],-1),N={class:"flex",style:{"margin-top":"12px"}},b={class:"flex-grow-1"},S=e("h1",null,"Bill To",-1),A={class:"flex-grow-1"},B=e("div",{style:{"text-align":"right"}},[e("div",{class:"flex"},[e("p",null,"Subtotal:"),e("p",null,"0")]),e("div",{class:"flex"},[e("p",null,"VAT:"),e("p",null,"3%")]),e("div",{class:"flex"},[e("p",null,"TOTAL:"),e("p",null,"0")])],-1),D=e("div",{class:"text-center"},[e("p",{style:{"font-size":"16pt"}},"Thank you")],-1),R=_({__name:"CertificateInvoice",setup(E){const u=[{title:"QTY",dataIndex:"qty",key:"qty"},{title:"Description",dataIndex:"description",key:"description"},{title:"Unit Price",dataIndex:"unitprice",key:"unitprice"},{title:"Amount",dataIndex:"amount",key:"amount"}],r=f(),o=s(),t=s(),d=s();v(async()=>{o.value=r.params.no,o.value&&await p()});const p=async()=>{h(),await k.getCertificateInfo(o.value).then(n=>{l(),t.value=n.data}).catch(n=>{l(),x.error(n.message)})};return(n,O)=>{const m=C;return i(),c("div",null,[t.value?(i(),c("div",V,[w,L,e("div",N,[e("div",b,[S,e("p",null,a(t.value.user.firstname)+" "+a(t.value.user.lastname),1),e("p",null,"Phone: "+a(t.value.user.phone),1),e("p",null,"E-mail: "+a(t.value.user.email),1)]),e("div",A,[e("h1",null,"INVOICE #"+a(t.value.no),1),e("p",null,"Invoice Date: "+a(y(T).formatDate(t.value.createdtime)),1)])]),e("div",null,[g(m,{columns:u,data:d.value},null,8,["data"]),B]),D])):I("",!0)])}}});export{R as default};
