"use strict";(self["webpackChunkacctg_ui"]=self["webpackChunkacctg_ui"]||[]).push([[4934],{5836:function(e,t,a){a.d(t,{q:function(){return i}});var n=a(2262),s=a(6252),o=a(8877);function i(){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 i}});var n=a(8877),s=a(2262),o=a(6252);function i(){const e=(0,s.iH)([{notification_container:null}]),t=(0,s.iH)(0),a=(0,s.iH)(!0),i=(0,s.qj)({toastHeader:null,toastMessage:null});function r(){t.value=Math.floor(2*Math.random()),a.value=0!==t.value,l(t.value)}function l(e,t){0!==e?(i.toastHeader="Success",i.toastMessage=t,a.value=!0):(i.toastHeader="Failed",i.toastMessage=t,a.value=!1)}return(0,o.bv)((()=>{e.notification_container=new n.FN("#main-notification",{})})),{toastTexts:i,successIcon:a,generateRandom:r,setNotificationMessage:l,state:e}}},4934: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),i=a(5113),r=a(4707),l=a(5836),u=a(9791),c=a(2201);const d={class:"p-3"},p={class:"d-flex justify-content-between"},m={class:"page-title"},h={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:"SalesList",props:["header"],setup(e){const t=(0,c.tv)(),a=((0,r.S)(),(0,l.q)()),f=(0,u.R)(),g=((0,o.iH)(""),()=>{"billingInvoiceList"===t.currentRoute.value.name?t.push({name:"billingInvoiceForm"}):t.push({name:"salesReceiptForm"})}),_=i,b=[{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"}];return(t,i)=>{const r=(0,n.up)("font-awesome-icon"),l=(0,n.up)("TableContainer"),u=(0,n.up)("Notification"),c=(0,n.up)("AlertContainer");return(0,n.wg)(),(0,n.iD)("div",d,[(0,n._)("div",null,[(0,n._)("div",p,[(0,n._)("h2",m,(0,s.zw)(e.header)+"s",1),(0,n._)("div",h,[(0,n._)("button",{class:"add-btn btn btn-primary",onClick:g},[(0,n.Wm)(r,{icon:"fa-solid fa-plus"}),(0,n.Uk)(" Add "+(0,s.zw)(e.header),1)])])]),(0,n.Wm)(l,{columns:b,data:(0,o.SU)(_),class:"mt-3 voucher-alignment header-alignment"},{tableHeader:(0,n.w5)((()=>[v])),_:1},8,["data"])]),(0,n.Wm)(u,{isSuccess:(0,o.SU)(f).successIcon.value,message:(0,o.SU)(f).toastTexts.toastMessage,header:(0,o.SU)(f).toastTexts.toastHeader},null,8,["isSuccess","message","header"]),(0,n.Wm)(c,{alertHeader:(0,o.SU)(a).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=4934.7f4af3c4.js.map