0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.146.107.152


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ViewGeneratedBill-Uzb4-mc7.js

import{x as m,r as i,t as e,D as x,L as g,B as n,O as D}from"./index-DbuAcQXx.js";import{a as h}from"./GenerateBill-Dl7mOXy-.js";import{p as w}from"./sem-BK69X1ab.js";import{g as l,s as o}from"./datatable-DpkPs_9K.js";import{S as E}from"./index-BAPoK_Ga.js";import{F}from"./Table-WszsqUiE.js";import"./index-D-tKmmVD.js";import"./index-DJSdY4DS.js";import"./index-B9avJFOk.js";import"./responsiveObserver-DPqhCh2n.js";function u(r){const[s,d]=i.useState([]);i.useEffect(()=>{r.getGenerateBillReport()},[]),i.useEffect(()=>{d(r.billDetails)},[r.billDetails]);const c=async t=>{let a=localStorage.getItem("dbname");window.open(D+"/app.php?a=GenerateBillReport&db="+a+"&fdocno="+t.FDOCNO+"&rtype="+t.FREPORTYPE)},p=[{title:"Sl. No.",dataIndex:"fslno",align:"center",width:"2%"},{title:"Doc. No.",dataIndex:"FDOCNO",...l("FDOCNO"),sorter:(t,a)=>o(t,a,"FDOCNO"),sortDirections:["descend","ascend"],align:"center",width:"5%"},{title:e.jsx("div",{style:{textAlign:"center"},children:"Degree Group"}),dataIndex:"FDEGGRP",...l("FDEGGRP"),sorter:(t,a)=>o(t,a,"FDEGGRP"),sortDirections:["descend","ascend"],width:"25%"},{title:"Degree",dataIndex:"FDEGREE",align:"center",width:"10%"},{title:"Sem",dataIndex:"FEXAMNO",align:"center",width:"5%"},{title:"Type",dataIndex:"FREPORTYPE",align:"center",width:"5%"},{title:"Teach Code.",dataIndex:"FTEACHCODE",align:"center",width:"5%"},{title:"From Date",dataIndex:"FFROMDATE",align:"center",width:"5%"},{title:"To Date",dataIndex:"FFROMDATE",align:"center",width:"5%"},{title:"Action",render:(t,a)=>e.jsx("div",{children:e.jsx(n,{type:"primary",style:{backgroundColor:"green",color:"white"},onClick:()=>c(a),children:"Generate"})}),align:"center",width:"10%"}];return e.jsx(x,{style:{margin:"6rem 10px 10px"},title:e.jsx("h6",{children:"View Bills"}),extra:e.jsx(E,{children:e.jsx(g,{to:"/qpsettings/generatebill",children:e.jsx(n,{type:"primary",danger:!0,children:"Back"})})}),children:e.jsx(F,{bordered:!0,dataSource:s,columns:p,scroll:{y:500,x:1200},size:"small",pagination:w})})}const O=r=>({billDetails:r.generatedBillDet}),T=m(O,{getGenerateBillReport:h})(u);export{T as default};