"use strict";(self["webpackChunkacctg_ui"]=self["webpackChunkacctg_ui"]||[]).push([[8775],{6697:function(e,t,n){n.d(t,{Z:function(){return u}});var a=n(6252),i=n(3577),l=n(8056);const r=["height","src"],c={class:"d-flex flex-row-reverse"};var o={__name:"FileViewer",props:["viewerTitle","fileURL","viewerHeight","viewerWidth"],setup(e){return(t,n)=>((0,a.wg)(),(0,a.j4)(l.Z,{"modal-width-size":"lg"},{modalHeader:(0,a.w5)((()=>[(0,a._)("div",null,[(0,a._)("h3",null,(0,i.zw)(e.viewerTitle),1)])])),modalContent:(0,a.w5)((()=>[(0,a._)("div",{style:(0,i.j5)("height: "+e.viewerHeight+"px"),class:"w-100"},[(0,a._)("iframe",{class:"w-100",height:e.viewerHeight,src:e.fileURL},null,8,r)],4)])),modalFooter:(0,a.w5)((()=>[(0,a._)("div",c,[(0,a._)("button",{onClick:n[0]||(n[0]=e=>t.$emit("closeFileViewer")),class:"btn btn-outline-secondary"},"Close")])])),_:1}))}};const s=o;var u=s},9157:function(e,t,n){n.d(t,{Z:function(){return h}});var a=n(6252),i=n(3577),l=n(7303);const r=e=>((0,a.dD)("data-v-2debe368"),e=e(),(0,a.Cn)(),e),c={class:"d-md-flex justify-content-between"},o={class:"page-title"},s=r((()=>(0,a._)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1.3em",height:"1.3em",viewBox:"0 0 24 24"},[(0,a._)("path",{fill:"white",d:"M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3M8 5h8v3H8zm8 12v2H8v-4h8zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4z"}),(0,a._)("circle",{cx:"18",cy:"11.5",r:"1",fill:"white"})],-1)));var u={__name:"ReportsHeader",props:["pageTitle"],setup(e){return(t,n)=>((0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("h2",o,(0,i.zw)(e.pageTitle),1),(0,a.Wm)(l.Z,{class:"printBtn btn btn-primary",onClick:n[0]||(n[0]=e=>t.$emit("printReport"))},{default:(0,a.w5)((()=>[s,(0,a.Uk)(" Print Report ")])),_:1})]))}},d=n(3744);const v=(0,d.Z)(u,[["__scopeId","data-v-2debe368"]]);var h=v},8775:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var a=n(6252),i=n(2262),l=JSON.parse('[{"code":"FS-000100","desc":"Cash","amount":"P539342.56"},{"code":"FS-00101","desc":"Accounts Receivable","amount":"P3693.00"},{"code":"FS-00200","desc":"Accounts Payabale","amount":"49000.00"},{"code":"FS-00005","desc":"Long Term Liabilities","amount":"P3693.00"}]'),r=n(9157),c=(n(8291),n(8877)),o=n(5739),s=n(6697);const u=(0,a._)("thead",null,[(0,a._)("tr",null,[(0,a._)("th",null,"Code"),(0,a._)("th",null,"Description"),(0,a._)("th",null,"Amount")])],-1);var d={__name:"StatementOfAccountsPage",setup(e){const t=l,n=[{data:"code"},{data:"desc"},{data:"amount"}],d=(0,i.iH)({});(0,a.bv)((()=>{d.value=new c.u_("#main-modal")}));const v=async()=>{d.value.show()},h=()=>{d.value.hide()};return(e,l)=>{const c=(0,a.up)("TableContainer");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(r.Z,{pageTitle:"Statement of Accounts",onPrintReport:v}),(0,a.Wm)(c,{columns:n,data:(0,i.SU)(t),class:"mt-3 header-alignment reports-tb-fs-alignment"},{tableHeader:(0,a.w5)((()=>[u])),_:1},8,["data"]),(0,a.Wm)(s.Z,{"viewer-title":"Statement Of Account Report","file-u-r-l":(0,i.SU)(o._n)+"customerSoa",onCloseFileViewer:h,"viewer-height":475,"viewer-width":525},null,8,["file-u-r-l"])],64)}}};const v=d;var h=v}}]);
//# sourceMappingURL=8775.ad66fd1c.js.map