"use strict";(self["webpackChunkacctg_ui"]=self["webpackChunkacctg_ui"]||[]).push([[8343],{8343:function(t,a,s){s.r(a),s.d(a,{default:function(){return w}});s(560);var n=s(6252),e=s(9963),l=s(2262),o=s(2201),r=s(7530);const i=(0,n._)("h1",{class:"mb-3 fs-2"},"VOF Transaction List",-1),u={class:"d-flex col-12 col-md-5 align-items-center mb-4"},c=(0,n._)("div",{class:"flex-pill text-nowrap"},"Transaction Dates: ",-1),d=(0,n._)("span",null,"-",-1),m=(0,n._)("button",{class:"btn btn-primary btn-sm"},"Generate",-1),f={class:"border p-4"},_=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",{style:{width:"10%"}},"Date"),(0,n._)("th",{style:{width:"10%"}},"Trans No."),(0,n._)("th",null,"Customer"),(0,n._)("th",{style:{width:"30%"}},"Particulars"),(0,n._)("th",{style:{width:"7%"}},"Terms"),(0,n._)("th",{style:{width:"11%"}},"Amount"),(0,n._)("th",{style:{width:"11%"}},"status")])],-1),p=(0,n.aZ)({name:"vofTransactionDetails"});var h=Object.assign(p,{setup(t){const a=(0,o.tv)();let s=(0,l.qj)({});function p(t){const s=window.$("#vofTransactionDetails").DataTable();s.on("click","tr",(function(t){const n=s.row(this).data();void 0!==n&&(a.push({name:"vofTransactionDetails",params:{transNo:n.transNo}}),console.log(n))}))}async function h(){let t=await(0,r.Z)("operation_trans","list").execute();if(t){let a=t.data.data,n=[];for(let t in a){let s={terms:a[t].terms+" "+a[t].unit,amount:a[t].amountDetails,dueDate:a[t].dueDate,transNo:a[t].trans_no,transDate:a[t].transDate,status:a[t].status,particulars:a[t].particulars,customer:a[t].customerName};n.push(s)}s.value=n}}(0,n.bv)((()=>{p(),h()}));(0,l.iH)([{modal_container:null}]);(0,l.iH)({});const v="vofTransactionDetails",w=(0,l.qj)({from:"",to:""}),b=(0,l.iH)([{data:"transDate"},{data:"transNo"},{data:"customer"},{data:"particulars"},{data:"terms"},{data:"amount"},{data:"status"}]);return(t,a)=>{const o=(0,n.up)("TableContainer");return(0,n.wg)(),(0,n.iD)("div",null,[i,(0,n._)("div",null,[(0,n._)("div",u,[c,(0,n.wy)((0,n._)("input",{type:"date",class:"form-control form-control-sm mx-2","onUpdate:modelValue":a[0]||(a[0]=t=>w.from=t)},null,512),[[e.nr,w.from]]),d,(0,n.wy)((0,n._)("input",{type:"date",class:"form-control form-control-sm mx-2","onUpdate:modelValue":a[1]||(a[1]=t=>w.to=t)},null,512),[[e.nr,w.to]]),m]),(0,n._)("div",f,[(0,n.Wm)(o,{columns:b.value,"table-id":v,data:(0,l.SU)(s).value,class:"vof-receive-table"},{tableHeader:(0,n.w5)((()=>[_])),_:1},8,["columns","data"])])])])}}});const v=h;var w=v}}]);
//# sourceMappingURL=8343.0399d712.js.map