"use strict";(self["webpackChunkacctg_ui"]=self["webpackChunkacctg_ui"]||[]).push([[3126],{5836:function(e,t,a){a.d(t,{q:function(){return r}});var n=a(2262),s=a(6252),o=a(8877);function r(){const e=(0,n.iH)([{alert_container:null}]),t=(0,n.qj)({header:"",icon:null,message:null});function a(e){1===e?(t.header="You have unsaved changes!",t.message="You will lose all changes you made. Are you sure you wish to close?"):alert("Undefined modal scope")}return(0,s.bv)((()=>{e.alert_container=new o.u_("#main-alert",{})})),{alertContent:t,setAlertState:a,state:e}}},9791:function(e,t,a){a.d(t,{R:function(){return r}});var n=a(8877),s=a(2262),o=a(6252);function r(){const e=(0,s.iH)([{notification_container:null}]),t=(0,s.iH)(0),a=(0,s.iH)(!0),r=(0,s.qj)({toastHeader:null,toastMessage:null});function u(){t.value=Math.floor(2*Math.random()),a.value=0!==t.value,i(t.value)}function i(e,t){0!==e?(r.toastHeader="Success",r.toastMessage=t,a.value=!0):(r.toastHeader="Failed",r.toastMessage=t,a.value=!1)}return(0,o.bv)((()=>{e.notification_container=new n.FN("#main-notification",{})})),{toastTexts:r,successIcon:a,generateRandom:u,setNotificationMessage:i,state:e}}},4669:function(e,t,a){a.r(t),a.d(t,{default:function(){return _}});a(560);var n=a(6252),s=a(3577),o=a(2262),r=a(5113),u=a(4707),i=a(5836),l=a(9791),c=a(2201);const d={class:"p-3"},p={class:"d-flex justify-content-between"},h={class:"page-title"},m={class:"btn-container d-flex justify-content-end"},v=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",null,"Transaction Date"),(0,n._)("th",null,"Voucher No."),(0,n._)("th",null,"Particulars"),(0,n._)("th",null,"Total Amount")])],-1);var f={__name:"PurchaseOrder",props:["header"],setup(e){const t=e,a=(0,c.tv)(),f=((0,u.S)(),(0,i.q)()),g=(0,l.R)(),_=(0,o.iH)(""),b=()=>{a.push({name:"purchaseOrderForm",params:{transNo:"TR20240100001"}})},N=r,S=[{data:"transactionDate"},{data:"voucherNo"},{data:null,render:(e,t,a,n)=>`<span class="fs-5">${e.description}</span><br /><span>${e.suppliersName}</span>`},{data:"totalAmount"}];function A(){"Billing"===t.header?_.value="Transaction":_.value=t.header}return(0,n.bv)((()=>{A()})),(0,n.YP)((()=>t.header),(()=>{A()})),(t,a)=>{const r=(0,n.up)("font-awesome-icon"),u=(0,n.up)("TableContainer"),i=(0,n.up)("Notification"),l=(0,n.up)("AlertContainer");return(0,n.wg)(),(0,n.iD)("div",d,[(0,n._)("div",null,[(0,n._)("div",p,[(0,n._)("h2",h,(0,s.zw)(e.header),1),(0,n._)("div",m,[(0,n._)("button",{class:"add-btn btn btn-primary",onClick:b},[(0,n.Wm)(r,{icon:"fa-solid fa-plus"}),(0,n.Uk)(" Add "+(0,s.zw)(_.value),1)])])]),(0,n.Wm)(u,{columns:S,data:(0,o.SU)(N),class:"mt-3 voucher-alignment header-alignment"},{tableHeader:(0,n.w5)((()=>[v])),_:1},8,["data"])]),(0,n.Wm)(i,{isSuccess:(0,o.SU)(g).successIcon.value,message:(0,o.SU)(g).toastTexts.toastMessage,header:(0,o.SU)(g).toastTexts.toastHeader},null,8,["isSuccess","message","header"]),(0,n.Wm)(l,{alertHeader:(0,o.SU)(f).alertContent.header,"close-btn":!0,"proceed-btn":!0},null,8,["alertHeader"])])}}};const g=f;var _=g},5113:function(e){e.exports=JSON.parse('[{"transactionDate":"21-Jan-2023","voucherNo":"V0001","description":"Accounting","suppliersName":"Something","totalAmount":"$200,000"},{"transactionDate":"24-May-2023","voucherNo":"V0002","description":"Accounting","suppliersName":"Shiva","totalAmount":"$2,000"},{"transactionDate":"15-Feb-2023","voucherNo":"V0003","description":"Database Services","suppliersName":"Oracle","totalAmount":"$2,000"},{"transactionDate":"24-Mar-2023","voucherNo":"V0004","description":"Furniture","suppliersName":"IKEA","totalAmount":"$2,000"}]')}}]);
//# sourceMappingURL=3126.158bb260.js.map