dealposbooks 5.51.2 → 5.51.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-5UVNTB7W.js → chunk-2NSZXE7A.js} +1 -1
- package/{chunk-KR465WRL.js → chunk-2PW2KI76.js} +1 -1
- package/{chunk-IBPU4HMB.js → chunk-2WVFFG26.js} +1 -1
- package/{chunk-NGMAZPWL.js → chunk-3WP4K427.js} +1 -1
- package/{chunk-UCJ6JQWA.js → chunk-45277TJC.js} +1 -1
- package/{chunk-M2RAH7HZ.js → chunk-53XLJS5G.js} +1 -1
- package/{chunk-SXKPF3GY.js → chunk-5M4HQSDE.js} +1 -1
- package/{chunk-RBJEQZ2O.js → chunk-66XTNHB6.js} +1 -1
- package/{chunk-ICDJTXVE.js → chunk-6C5IVTNB.js} +1 -1
- package/{chunk-ZRPU3QYR.js → chunk-AHS622Q3.js} +1 -1
- package/{chunk-ZVDGEDMP.js → chunk-AKHZNBCJ.js} +1 -1
- package/{chunk-4EGQ563G.js → chunk-BAN4BZ4V.js} +1 -1
- package/{chunk-QQYGISGZ.js → chunk-BDIQKQLH.js} +1 -1
- package/{chunk-YAFMVKX5.js → chunk-BXCI7FLO.js} +1 -1
- package/{chunk-RSAW2IGP.js → chunk-C4HVS55R.js} +1 -1
- package/{chunk-UPBPXKNV.js → chunk-CP4OMA5A.js} +1 -1
- package/{chunk-H6JPNVHO.js → chunk-DD3C4ZJK.js} +1 -1
- package/{chunk-3NF5ANCH.js → chunk-EXPUB774.js} +1 -1
- package/{chunk-TZH35FNY.js → chunk-F2AUOYRQ.js} +2 -2
- package/{chunk-DOPSA7V7.js → chunk-FLSC37KK.js} +1 -1
- package/{chunk-WZ6BCBDQ.js → chunk-FWCM3R4Q.js} +1 -1
- package/chunk-FYFGO4SH.js +1 -0
- package/{chunk-S36SGADP.js → chunk-GKPEHY4C.js} +1 -1
- package/{chunk-NBWU3VSN.js → chunk-GXWFHDPQ.js} +1 -1
- package/{chunk-WZ5LBHF5.js → chunk-H3AE3LK2.js} +1 -1
- package/{chunk-CNWZ52LV.js → chunk-H7RIXTPZ.js} +1 -1
- package/{chunk-LTIBX74D.js → chunk-HIBQ7GQQ.js} +1 -1
- package/{chunk-YB424QNC.js → chunk-IOUEWZQZ.js} +1 -1
- package/{chunk-HKEKJASB.js → chunk-JC7ZPT6F.js} +1 -1
- package/{chunk-RK23P4VG.js → chunk-JUDAFNFD.js} +1 -1
- package/{chunk-IVCIH4GN.js → chunk-LM3PSBXX.js} +1 -1
- package/{chunk-DJAA5EF6.js → chunk-LME6HR4A.js} +1 -1
- package/{chunk-CYTZBS64.js → chunk-MYDWRF4X.js} +1 -1
- package/{chunk-LRD5A6EL.js → chunk-N3KDIJIC.js} +1 -1
- package/{chunk-BPJERO47.js → chunk-N6QZPVZI.js} +2 -2
- package/{chunk-Z2KELIGC.js → chunk-NFJAMS74.js} +1 -1
- package/{chunk-I2SBX2TZ.js → chunk-OO2FDGBF.js} +1 -1
- package/{chunk-JK2F33M6.js → chunk-P5ND3ICW.js} +2 -2
- package/{chunk-HUNIPNEV.js → chunk-PROCZGHH.js} +1 -1
- package/{chunk-W6SE4LJW.js → chunk-QBBXI37N.js} +1 -1
- package/{chunk-HK6564XM.js → chunk-QCJYNI45.js} +1 -1
- package/{chunk-Q4WVEWIJ.js → chunk-RJDZR2TQ.js} +1 -1
- package/{chunk-7QQAIIXC.js → chunk-RRWAF23G.js} +1 -1
- package/{chunk-L5IWZ4Y2.js → chunk-TBMRVRBG.js} +1 -1
- package/{chunk-VQM5QCPU.js → chunk-TPVWARR4.js} +1 -1
- package/{chunk-ITGMU5MB.js → chunk-UMXCHIQ6.js} +1 -1
- package/{chunk-YCOTHSE5.js → chunk-VF3GNEJQ.js} +1 -1
- package/{chunk-5DAIWPJH.js → chunk-VJVH5N44.js} +1 -1
- package/{chunk-2P6N6225.js → chunk-W23IXSWP.js} +1 -1
- package/{chunk-TRH6BRRC.js → chunk-W2RBWHBT.js} +1 -1
- package/{chunk-6YXA7GFO.js → chunk-XPKM4HTA.js} +1 -1
- package/{chunk-ZZLTM7V6.js → chunk-ZBRAMWLM.js} +1 -1
- package/index.html +2 -2
- package/{main-6DNI2R4P.js → main-AK3IBIXE.js} +1 -1
- package/package.json +1 -1
- package/chunk-EZGBB4MD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as F}from"./chunk-ICDJTXVE.js";import{a as ze}from"./chunk-SVGPDGYN.js";import{a as je,b as Be}from"./chunk-LO4HJ77Y.js";import{a as oe}from"./chunk-6YXA7GFO.js";import{b as A}from"./chunk-ZVDGEDMP.js";import{a as Me}from"./chunk-XKI7WLHE.js";import"./chunk-KQZMRRMA.js";import"./chunk-ZC7ZENN7.js";import"./chunk-WL6ZZCYW.js";import{a as z,b as j}from"./chunk-3VQUNDVT.js";import{b as ke,g as Ne,h as Pe,i as Re}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as De,b as Ae}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import{a as Fe,b as Je}from"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as Ve}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as xe,b as Ce}from"./chunk-ISIYG4D5.js";import{a as ve,b as y,c as ye,d as we,e as Te,f as Ie,g as Ee}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{n as fe,o as _e,w as ge,x as he,y as Se,z as be}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{b as re,c as ae,e as le,f as pe,k as me,m as se,p as ce,v as de,y as ue}from"./chunk-MGIEURA2.js";import"./chunk-DZCJWJUG.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as Y,l as Z,m as ee,p as te,r as ie,u as ne}from"./chunk-DM2JLWKE.js";import{Cb as K,Dc as Q,Eb as x,Fc as V,Ha as P,Mb as c,Oc as I,Pc as X,Qc as D,Sc as v,Wb as r,Xb as o,Y as N,Yb as S,_ as O,ac as w,bd as E,c as J,db as U,eb as L,fc as T,gc as _,ia as C,ib as l,qa as g,ra as h,s as k,sc as s,tc as b,uc as R,wc as W,xc as $,yb as G,yc as M,zc as q}from"./chunk-6QJHEOXN.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var Ke={data:{data:[],totalCount:0},filter:{number:null,outletName:null,from:null,to:null,supplierID:null,pageNumber:1,pageSize:20,export:!1,exportPageNumber:1,exportPageSize:1e4,paymentState:0},meta:{options:{outlets:[]},filter:{number:null,outletName:null,from:null,to:null,supplierID:null,pageNumber:1,pageSize:20,export:!1,exportPageNumber:1,exportPageSize:1e4,paymentState:0}}},B=ye(Ee(Ke),we(t=>({first:E(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:E(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().totalCount)),hasCheckedRows:E(()=>t.data().data.some(a=>a.checked)),checkedAPCollection:E(()=>t.data().data.filter(a=>a.checked).map(a=>a.id))})),Ie(t=>{let a=C(F),e=C(A);return{updateFilter(n){y(t,i=>f(d({},i),{filter:d(d({},i.filter),n)}))},onRowSelect(n){y(t,i=>{let u=i.data.data.map(m=>m.id===n.id?f(d({},m),{checked:!0}):m);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onRowUnselect(n){y(t,i=>{let u=i.data.data.map(m=>m.id===n.id?f(d({},m),{checked:!1}):m);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onHeaderCheckboxToggle(n){y(t,i=>{let u=i.data.data.map(m=>f(d({},m),{checked:n}));return f(d({},i),{data:f(d({},i.data),{data:u})})})},getAPLoader:z(J(N(()=>a.getAPJournalLoader().pipe(j({next:n=>{y(t,i=>f(d({},i),{meta:n}))},error:n=>{console.error("Error fetching AP journal:",n)}}))))),getARCollection:z(J(k(n=>Object.entries(n).reduce((i,[u,m])=>(m!=null&&(i[u]=m),i),{})),N(n=>a.getAPJournal(n).pipe(k(i=>f(d({},i),{data:i.data.map(u=>f(d({},u),{due:e.from(u.due)?e.from(u.due).format():null,checked:!1}))})),j({next:i=>{y(t,u=>f(d({},u),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),Te(t=>({onInit:()=>{t.getAPLoader(),t.getARCollection(t.filter)}})));var H=t=>({"ng-invalid ng-dirty":t});function We(t,a){if(t&1){let e=w();r(0,"p-button",10),T("onClick",function(){g(e);let n=_(2);return h(n.onCreateJournal())}),o()}}function $e(t,a){if(t&1&&x(0,We,1,0,"p-button",9),t&2){let e=_();c("ngIf",e.store.hasCheckedRows())}}function qe(t,a){t&1&&(r(0,"tr")(1,"th",12),S(2,"p-tableHeaderCheckbox"),o(),r(3,"th",13),s(4,"Tag"),o(),r(5,"th",14),s(6,"Number"),o(),r(7,"th",15),s(8,"Supplier"),o(),r(9,"th",16),s(10,"Date"),o(),r(11,"th",16),s(12,"Due"),o(),r(13,"th",15),s(14,"Note"),o(),r(15,"th",17),s(16,"Payment"),o(),S(17,"th",18),o())}function Qe(t,a){if(t&1&&(r(0,"tr")(1,"td"),S(2,"p-tableCheckbox",19),o(),r(3,"td"),s(4),o(),r(5,"td")(6,"a",20),s(7),o()(),r(8,"td"),s(9),o(),r(10,"td"),s(11),I(12,"date"),o(),r(13,"td"),s(14),I(15,"date"),o(),r(16,"td"),S(17,"div",21),o(),r(18,"td"),s(19),o(),r(20,"td"),S(21,"p-button",22),o()()),t&2){let e=a.$implicit,p=_(2);l(2),c("value",e),l(2),b(e.outlet),l(2),c("href",p.authService.getTenantExternalURL()+"/menu/Debt/Debt/Join_Bill/New_Join_Bill/Info?ID="+e.id,L),l(),R(" ",e.number," "),l(2),b(e.customer),l(2),b(D(12,12,e.date,"d MMM y")),l(3),b(e.due?D(15,15,e.due,"d MMM y hh:mm"):"-"),l(3),c("innerHTML",e.note,U),l(2),b(e.payment),l(2),c("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function Xe(t,a){if(t&1&&s(0),t&2){let e=_(2);W(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Ye(t,a){t&1&&(r(0,"tr")(1,"td",23)(2,"span"),s(3,"No records found."),o()()())}function Ze(t,a){if(t&1){let e=w();r(0,"p-panel")(1,"p-table",11),T("onPage",function(n){g(e);let i=_();return h(i.onPageChange(n))})("onHeaderCheckboxToggle",function(n){g(e);let i=_();return h(i.onHeaderCheckboxToggle(n))})("onRowSelect",function(n){g(e);let i=_();return h(i.onRowSelect(n))})("onRowUnselect",function(n){g(e);let i=_();return h(i.onRowUnselect(n))}),x(2,qe,18,0,"ng-template",null,3,v)(4,Qe,22,18,"ng-template",null,4,v)(6,Xe,1,3,"ng-template",null,5,v)(8,Ye,4,0,"ng-template",null,6,v),o()()}if(t&2){let e=_();l(),c("value",e.store.data().data)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}function et(t,a){if(t&1&&(r(0,"span",34),s(1),I(2,"truncate"),o()),t&2){let e=a.$implicit;c("pTooltip",e.name),l(),R(" ",D(2,2,e.name,30)," ")}}function tt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;l(2),b(e)}}function it(t,a){if(t&1&&(r(0,"div"),x(1,tt,3,1,"div",35),o()),t&2){let e=_(2);l(),c("ngForOf",e.getErrors("from"))}}function nt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;l(2),b(e)}}function ot(t,a){if(t&1&&(r(0,"div"),x(1,nt,3,1,"div",35),o()),t&2){let e=_(2);l(),c("ngForOf",e.getErrors("to"))}}function rt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;l(2),b(e)}}function at(t,a){if(t&1&&(r(0,"div"),x(1,rt,3,1,"div",35),o()),t&2){let e=_(2);l(),c("ngForOf",e.getErrors("pageSize"))}}function lt(t,a){if(t&1){let e=w();r(0,"form",24)(1,"div",25)(2,"label",26),s(3,"Tag"),o(),r(4,"p-select",27),x(5,et,3,5,"ng-template",null,7,v),o()(),r(7,"div",25)(8,"label",26),s(9,"From - To"),o(),r(10,"div",28),S(11,"p-datepicker",29),x(12,it,2,1,"div",30),S(13,"p-datepicker",31),x(14,ot,2,1,"div",30),o()(),r(15,"div",25)(16,"label",26),s(17,"Supplier"),o(),r(18,"p-autocomplete",32),I(19,"async"),T("completeMethod",function(n){g(e);let i=_();return h(i.onSearchSupplier(n))}),o()(),r(20,"div",25)(21,"label",26),s(22,"Page Size"),o(),S(23,"input",33),x(24,at,2,1,"div",30),o()()}if(t&2){let e=_();c("formGroup",e.form),l(4),c("virtualScrollItemSize",50)("options",e.store.meta().options.outlets),l(7),c("iconDisplay","input")("showIcon",!0)("ngClass",V(16,H,e.isInvalid("from"))),l(),c("ngIf",e.isInvalid("from")),l(),c("iconDisplay","input")("showIcon",!0)("ngClass",V(18,H,e.isInvalid("to"))),l(),c("ngIf",e.isInvalid("to")),l(4),c("suggestions",X(19,14,e.supplierSuggestions$)),l(5),c("ngClass",V(20,H,e.isInvalid("pageSize"))),l(),c("ngIf",e.isInvalid("pageSize"))}}var Qt=(()=>{class t extends Me{constructor(){super(),this.store=C(B),this.generateJournalService=C(F),this.authService=C(oe),this.isDialogFilterVisible=P(!1),this.isInitDialogFilterVisible=P(!1),this.fb=C(de),this.dayjsService=C(A)}ngOnInit(){this.initform()}initform(){let{outletName:e,number:p,from:n,to:i,paymentState:u,supplierID:m,pageNumber:He,pageSize:Oe,export:Ue,exportPageNumber:Le,exportPageSize:Ge}=this.store.filter();this.form=this.fb.group({outletName:this.fb.control(e),number:this.fb.control(p),from:this.fb.control(this.dayjsService.from(n)?this.dayjsService.from(n).toDate():null),to:this.fb.control(this.dayjsService.from(i)?this.dayjsService.from(i).toDate():null),paymentState:this.fb.control(u),supplierID:this.fb.control(m),pageNumber:this.fb.control(He),pageSize:this.fb.control(Oe,[ae.required]),export:this.fb.control(Ue),exportPageNumber:this.fb.control(Le),exportPageSize:this.fb.control(Ge)})}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((p,[n,i])=>(i!=null&&(n==="from"||n==="to"?(typeof i=="string"||typeof i=="number"||i instanceof Date)&&(p[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null):p[n]=i),p),{});this.store.updateFilter(e),this.isDialogFilterVisible.update(p=>!p)}onSearch(e){this.store.updateFilter(f(d({},this.store.filter()),{number:e}))}onSearchSupplier(e){this.supplierSuggestions$=this.generateJournalService.getSupplierSuggestions(e.query).pipe()}onPageChange(e){let p=e.first/e.rows;this.store.updateFilter(f(d({},this.store.filter()),{pageNumber:p+1}))}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(p=>{this.store.onRowUnselect(p)});return}else this.store.onRowUnselect(e.data)}onCreateJournal(){this.generateJournalService.createAPJournal(this.store.checkedAPCollection()).pipe(O(()=>{this.store.getARCollection(this.store.filter)})).subscribe()}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=G({type:t,selectors:[["app-ap-journal"]],features:[Q([B]),K],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["item",""],["pageTitle","Join Bill",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","value","paginator","rows","totalRecords","lazy"],[2,"width","1rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","14rem"],[2,"width","11rem"],[2,"width","9rem"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[3,"icon","severity","text"],["colspan","9"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["virtualScroll","","showClear","","filter","","filterBy","name","formControlName","outletName","appendTo","body","optionLabel","name","optionValue","name","placeholder","Select an Tag",3,"virtualScrollItemSize","options"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],[4,"ngIf"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],["showClear","","formControlName","supplierID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["appMaskNumber","","type","text","pInputText","","formControlName","pageSize",3,"ngClass"],[3,"pTooltip"],[4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(p,n){if(p&1){let i=w();r(0,"app-main-panel",8),q("isDialogFilterVisibleChange",function(m){return g(i),M(n.isDialogFilterVisible,m)||(n.isDialogFilterVisible=m),h(m)})("isInitDialogFilterVisibleChange",function(m){return g(i),M(n.isInitDialogFilterVisible,m)||(n.isInitDialogFilterVisible=m),h(m)}),T("filterConfirmed",function(){return g(i),h(n.onFilterOKEvent())})("search",function(m){return g(i),h(n.onSearch(m))}),x(1,$e,1,1,"ng-template",null,0,v)(3,Ze,10,5,"ng-template",null,1,v)(5,lt,25,22,"ng-template",null,2,v),o()}p&2&&(c("isSearchableInput",!0)("isFilterable",!0),$("isDialogFilterVisible",n.isDialogFilterVisible)("isInitDialogFilterVisible",n.isInitDialogFilterVisible),c("scrollable",!0))},dependencies:[Ve,Re,ke,Ne,Pe,ne,Y,Z,ee,te,ie,he,ge,Ce,xe,ue,me,re,le,pe,se,ce,Je,Fe,Ae,De,_e,fe,Be,je,be,Se,ve,ze],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{Qt as ApJournalComponent};
|
|
1
|
+
import{a as F}from"./chunk-6C5IVTNB.js";import{a as ze}from"./chunk-SVGPDGYN.js";import{a as je,b as Be}from"./chunk-LO4HJ77Y.js";import{a as oe}from"./chunk-XPKM4HTA.js";import{b as A}from"./chunk-AKHZNBCJ.js";import{a as Me}from"./chunk-XKI7WLHE.js";import"./chunk-KQZMRRMA.js";import"./chunk-ZC7ZENN7.js";import"./chunk-WL6ZZCYW.js";import{a as z,b as j}from"./chunk-3VQUNDVT.js";import{b as ke,g as Ne,h as Pe,i as Re}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as De,b as Ae}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import{a as Fe,b as Je}from"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as Ve}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{a as xe,b as Ce}from"./chunk-ISIYG4D5.js";import{a as ve,b as y,c as ye,d as we,e as Te,f as Ie,g as Ee}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{n as fe,o as _e,w as ge,x as he,y as Se,z as be}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{b as re,c as ae,e as le,f as pe,k as me,m as se,p as ce,v as de,y as ue}from"./chunk-MGIEURA2.js";import"./chunk-DZCJWJUG.js";import"./chunk-DD3C4ZJK.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as Y,l as Z,m as ee,p as te,r as ie,u as ne}from"./chunk-DM2JLWKE.js";import{Cb as K,Dc as Q,Eb as x,Fc as V,Ha as P,Mb as c,Oc as I,Pc as X,Qc as D,Sc as v,Wb as r,Xb as o,Y as N,Yb as S,_ as O,ac as w,bd as E,c as J,db as U,eb as L,fc as T,gc as _,ia as C,ib as l,qa as g,ra as h,s as k,sc as s,tc as b,uc as R,wc as W,xc as $,yb as G,yc as M,zc as q}from"./chunk-6QJHEOXN.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var Ke={data:{data:[],totalCount:0},filter:{number:null,outletName:null,from:null,to:null,supplierID:null,pageNumber:1,pageSize:20,export:!1,exportPageNumber:1,exportPageSize:1e4,paymentState:0},meta:{options:{outlets:[]},filter:{number:null,outletName:null,from:null,to:null,supplierID:null,pageNumber:1,pageSize:20,export:!1,exportPageNumber:1,exportPageSize:1e4,paymentState:0}}},B=ye(Ee(Ke),we(t=>({first:E(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:E(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().totalCount)),hasCheckedRows:E(()=>t.data().data.some(a=>a.checked)),checkedAPCollection:E(()=>t.data().data.filter(a=>a.checked).map(a=>a.id))})),Ie(t=>{let a=C(F),e=C(A);return{updateFilter(n){y(t,i=>f(d({},i),{filter:d(d({},i.filter),n)}))},onRowSelect(n){y(t,i=>{let u=i.data.data.map(m=>m.id===n.id?f(d({},m),{checked:!0}):m);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onRowUnselect(n){y(t,i=>{let u=i.data.data.map(m=>m.id===n.id?f(d({},m),{checked:!1}):m);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onHeaderCheckboxToggle(n){y(t,i=>{let u=i.data.data.map(m=>f(d({},m),{checked:n}));return f(d({},i),{data:f(d({},i.data),{data:u})})})},getAPLoader:z(J(N(()=>a.getAPJournalLoader().pipe(j({next:n=>{y(t,i=>f(d({},i),{meta:n}))},error:n=>{console.error("Error fetching AP journal:",n)}}))))),getARCollection:z(J(k(n=>Object.entries(n).reduce((i,[u,m])=>(m!=null&&(i[u]=m),i),{})),N(n=>a.getAPJournal(n).pipe(k(i=>f(d({},i),{data:i.data.map(u=>f(d({},u),{due:e.from(u.due)?e.from(u.due).format():null,checked:!1}))})),j({next:i=>{y(t,u=>f(d({},u),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),Te(t=>({onInit:()=>{t.getAPLoader(),t.getARCollection(t.filter)}})));var H=t=>({"ng-invalid ng-dirty":t});function We(t,a){if(t&1){let e=w();r(0,"p-button",10),T("onClick",function(){g(e);let n=_(2);return h(n.onCreateJournal())}),o()}}function $e(t,a){if(t&1&&x(0,We,1,0,"p-button",9),t&2){let e=_();c("ngIf",e.store.hasCheckedRows())}}function qe(t,a){t&1&&(r(0,"tr")(1,"th",12),S(2,"p-tableHeaderCheckbox"),o(),r(3,"th",13),s(4,"Tag"),o(),r(5,"th",14),s(6,"Number"),o(),r(7,"th",15),s(8,"Supplier"),o(),r(9,"th",16),s(10,"Date"),o(),r(11,"th",16),s(12,"Due"),o(),r(13,"th",15),s(14,"Note"),o(),r(15,"th",17),s(16,"Payment"),o(),S(17,"th",18),o())}function Qe(t,a){if(t&1&&(r(0,"tr")(1,"td"),S(2,"p-tableCheckbox",19),o(),r(3,"td"),s(4),o(),r(5,"td")(6,"a",20),s(7),o()(),r(8,"td"),s(9),o(),r(10,"td"),s(11),I(12,"date"),o(),r(13,"td"),s(14),I(15,"date"),o(),r(16,"td"),S(17,"div",21),o(),r(18,"td"),s(19),o(),r(20,"td"),S(21,"p-button",22),o()()),t&2){let e=a.$implicit,p=_(2);l(2),c("value",e),l(2),b(e.outlet),l(2),c("href",p.authService.getTenantExternalURL()+"/menu/Debt/Debt/Join_Bill/New_Join_Bill/Info?ID="+e.id,L),l(),R(" ",e.number," "),l(2),b(e.customer),l(2),b(D(12,12,e.date,"d MMM y")),l(3),b(e.due?D(15,15,e.due,"d MMM y hh:mm"):"-"),l(3),c("innerHTML",e.note,U),l(2),b(e.payment),l(2),c("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function Xe(t,a){if(t&1&&s(0),t&2){let e=_(2);W(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Ye(t,a){t&1&&(r(0,"tr")(1,"td",23)(2,"span"),s(3,"No records found."),o()()())}function Ze(t,a){if(t&1){let e=w();r(0,"p-panel")(1,"p-table",11),T("onPage",function(n){g(e);let i=_();return h(i.onPageChange(n))})("onHeaderCheckboxToggle",function(n){g(e);let i=_();return h(i.onHeaderCheckboxToggle(n))})("onRowSelect",function(n){g(e);let i=_();return h(i.onRowSelect(n))})("onRowUnselect",function(n){g(e);let i=_();return h(i.onRowUnselect(n))}),x(2,qe,18,0,"ng-template",null,3,v)(4,Qe,22,18,"ng-template",null,4,v)(6,Xe,1,3,"ng-template",null,5,v)(8,Ye,4,0,"ng-template",null,6,v),o()()}if(t&2){let e=_();l(),c("value",e.store.data().data)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}function et(t,a){if(t&1&&(r(0,"span",34),s(1),I(2,"truncate"),o()),t&2){let e=a.$implicit;c("pTooltip",e.name),l(),R(" ",D(2,2,e.name,30)," ")}}function tt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;l(2),b(e)}}function it(t,a){if(t&1&&(r(0,"div"),x(1,tt,3,1,"div",35),o()),t&2){let e=_(2);l(),c("ngForOf",e.getErrors("from"))}}function nt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;l(2),b(e)}}function ot(t,a){if(t&1&&(r(0,"div"),x(1,nt,3,1,"div",35),o()),t&2){let e=_(2);l(),c("ngForOf",e.getErrors("to"))}}function rt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;l(2),b(e)}}function at(t,a){if(t&1&&(r(0,"div"),x(1,rt,3,1,"div",35),o()),t&2){let e=_(2);l(),c("ngForOf",e.getErrors("pageSize"))}}function lt(t,a){if(t&1){let e=w();r(0,"form",24)(1,"div",25)(2,"label",26),s(3,"Tag"),o(),r(4,"p-select",27),x(5,et,3,5,"ng-template",null,7,v),o()(),r(7,"div",25)(8,"label",26),s(9,"From - To"),o(),r(10,"div",28),S(11,"p-datepicker",29),x(12,it,2,1,"div",30),S(13,"p-datepicker",31),x(14,ot,2,1,"div",30),o()(),r(15,"div",25)(16,"label",26),s(17,"Supplier"),o(),r(18,"p-autocomplete",32),I(19,"async"),T("completeMethod",function(n){g(e);let i=_();return h(i.onSearchSupplier(n))}),o()(),r(20,"div",25)(21,"label",26),s(22,"Page Size"),o(),S(23,"input",33),x(24,at,2,1,"div",30),o()()}if(t&2){let e=_();c("formGroup",e.form),l(4),c("virtualScrollItemSize",50)("options",e.store.meta().options.outlets),l(7),c("iconDisplay","input")("showIcon",!0)("ngClass",V(16,H,e.isInvalid("from"))),l(),c("ngIf",e.isInvalid("from")),l(),c("iconDisplay","input")("showIcon",!0)("ngClass",V(18,H,e.isInvalid("to"))),l(),c("ngIf",e.isInvalid("to")),l(4),c("suggestions",X(19,14,e.supplierSuggestions$)),l(5),c("ngClass",V(20,H,e.isInvalid("pageSize"))),l(),c("ngIf",e.isInvalid("pageSize"))}}var Qt=(()=>{class t extends Me{constructor(){super(),this.store=C(B),this.generateJournalService=C(F),this.authService=C(oe),this.isDialogFilterVisible=P(!1),this.isInitDialogFilterVisible=P(!1),this.fb=C(de),this.dayjsService=C(A)}ngOnInit(){this.initform()}initform(){let{outletName:e,number:p,from:n,to:i,paymentState:u,supplierID:m,pageNumber:He,pageSize:Oe,export:Ue,exportPageNumber:Le,exportPageSize:Ge}=this.store.filter();this.form=this.fb.group({outletName:this.fb.control(e),number:this.fb.control(p),from:this.fb.control(this.dayjsService.from(n)?this.dayjsService.from(n).toDate():null),to:this.fb.control(this.dayjsService.from(i)?this.dayjsService.from(i).toDate():null),paymentState:this.fb.control(u),supplierID:this.fb.control(m),pageNumber:this.fb.control(He),pageSize:this.fb.control(Oe,[ae.required]),export:this.fb.control(Ue),exportPageNumber:this.fb.control(Le),exportPageSize:this.fb.control(Ge)})}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((p,[n,i])=>(i!=null&&(n==="from"||n==="to"?(typeof i=="string"||typeof i=="number"||i instanceof Date)&&(p[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null):p[n]=i),p),{});this.store.updateFilter(e),this.isDialogFilterVisible.update(p=>!p)}onSearch(e){this.store.updateFilter(f(d({},this.store.filter()),{number:e}))}onSearchSupplier(e){this.supplierSuggestions$=this.generateJournalService.getSupplierSuggestions(e.query).pipe()}onPageChange(e){let p=e.first/e.rows;this.store.updateFilter(f(d({},this.store.filter()),{pageNumber:p+1}))}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(p=>{this.store.onRowUnselect(p)});return}else this.store.onRowUnselect(e.data)}onCreateJournal(){this.generateJournalService.createAPJournal(this.store.checkedAPCollection()).pipe(O(()=>{this.store.getARCollection(this.store.filter)})).subscribe()}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=G({type:t,selectors:[["app-ap-journal"]],features:[Q([B]),K],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["item",""],["pageTitle","Join Bill",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","value","paginator","rows","totalRecords","lazy"],[2,"width","1rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","14rem"],[2,"width","11rem"],[2,"width","9rem"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[3,"icon","severity","text"],["colspan","9"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["virtualScroll","","showClear","","filter","","filterBy","name","formControlName","outletName","appendTo","body","optionLabel","name","optionValue","name","placeholder","Select an Tag",3,"virtualScrollItemSize","options"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],[4,"ngIf"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],["showClear","","formControlName","supplierID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["appMaskNumber","","type","text","pInputText","","formControlName","pageSize",3,"ngClass"],[3,"pTooltip"],[4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(p,n){if(p&1){let i=w();r(0,"app-main-panel",8),q("isDialogFilterVisibleChange",function(m){return g(i),M(n.isDialogFilterVisible,m)||(n.isDialogFilterVisible=m),h(m)})("isInitDialogFilterVisibleChange",function(m){return g(i),M(n.isInitDialogFilterVisible,m)||(n.isInitDialogFilterVisible=m),h(m)}),T("filterConfirmed",function(){return g(i),h(n.onFilterOKEvent())})("search",function(m){return g(i),h(n.onSearch(m))}),x(1,$e,1,1,"ng-template",null,0,v)(3,Ze,10,5,"ng-template",null,1,v)(5,lt,25,22,"ng-template",null,2,v),o()}p&2&&(c("isSearchableInput",!0)("isFilterable",!0),$("isDialogFilterVisible",n.isDialogFilterVisible)("isInitDialogFilterVisible",n.isInitDialogFilterVisible),c("scrollable",!0))},dependencies:[Ve,Re,ke,Ne,Pe,ne,Y,Z,ee,te,ie,he,ge,Ce,xe,ue,me,re,le,pe,se,ce,Je,Fe,Ae,De,_e,fe,Be,je,be,Se,ve,ze],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{Qt as ApJournalComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y}from"./chunk-H7YYGW7V.js";import{m as K}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as H,b as I}from"./chunk-3VQUNDVT.js";import{b as ee,g as te,h as ne,i as ie}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as Z}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-H7YYGW7V.js";import{m as K}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as H,b as I}from"./chunk-3VQUNDVT.js";import{b as ee,g as te,h as ne,i as ie}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as Z}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{b as f,c as G,d as J,e as Q,f as W,g as X,h as Y}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as O,x as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import{e as $}from"./chunk-DZCJWJUG.js";import"./chunk-DD3C4ZJK.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{m as F,r as A,u as L}from"./chunk-DM2JLWKE.js";import{Dc as j,Eb as _,Mb as S,Oc as M,Qc as D,Rb as w,Sc as u,Wb as o,Xb as l,Y as T,Yb as P,_ as U,ac as R,bd as E,c as v,fc as k,gc as p,ia as C,ib as g,qa as x,ra as h,s as N,sc as m,tc as b,wc as B,yb as z}from"./chunk-6QJHEOXN.js";import{a as s,b as c}from"./chunk-YQFG5XE2.js";var oe={data:[],count:0,filter:{PageSize:20,PageNumber:1}},V=G(X(oe),Y("Closing Entries Store"),J(e=>({first:E(()=>(e.filter().PageNumber-1)*e.filter().PageSize+1),end:E(()=>Math.min(e.filter().PageNumber*e.filter().PageSize,e.count())),hasCheckedRows:E(()=>e.data().some(r=>r.checked)),selectedItems:E(()=>e.data().filter(r=>r.checked))})),W(e=>{let r=C(y),t={updateFilter:n=>{f(e,i=>c(s({},i),{filter:s(s({},i.filter),n)}))},onRowSelect(n){f(e,i=>{let a=i.data.map(d=>d.id===n.id?c(s({},d),{checked:!0}):d);return c(s({},i),{data:a})})},onRowUnselect(n){f(e,i=>{let a=i.data.map(d=>d.id===n.id?c(s({},d),{checked:!1}):d);return c(s({},i),{data:a})})},onHeaderCheckboxToggle(n){f(e,i=>{let a=i.data.map(d=>c(s({},d),{checked:n}));return c(s({},i),{data:a})})},getClosingEntries:H(v(T(n=>r.getClosingEntries(n).pipe(N(i=>i.map(a=>c(s({},a),{checked:!1}))),I({next:i=>{f(e,a=>c(s({},a),{data:i})),t.getClosingEntryCount()},error:i=>{console.error("Error fetching closing entries:",i)}}))))),getClosingEntryCount:H(v(T(()=>r.getClosingEntryCount().pipe(I({next:({count:n})=>{f(e,i=>c(s({},i),{count:n}))},error:n=>{console.error("Error fetching closing entry count:",n)}})))))};return t}),Q(e=>({onInit:()=>{e.getClosingEntries(e.filter)}})));function re(e,r){if(e&1){let t=R();o(0,"p-button",11),k("onClick",function(){x(t);let i=p(3);return h(i.onDeleteClosingEntries())}),l()}}function ae(e,r){if(e&1&&_(0,re,1,0,"p-button",10),e&2){let t=p(2);S("ngIf",t.store.hasCheckedRows())}}function le(e,r){e&1&&(o(0,"a",9),P(1,"i",12),m(2," Add"),l())}function se(e,r){if(e&1&&(o(0,"div",7),_(1,ae,1,1,"p-button",8)(2,le,3,0,"a",9),l()),e&2){let t=p();g(),w(t.roleService.permissions().accountingSetup.delete?1:-1),g(),w(t.roleService.permissions().accountingSetup.create?2:-1)}}function ce(e,r){e&1&&(o(0,"th",14),P(1,"p-tableHeaderCheckbox"),l())}function pe(e,r){if(e&1&&(o(0,"tr"),_(1,ce,2,0,"th",14),o(2,"th"),m(3,"Period"),l(),o(4,"th"),m(5,"Note"),l(),o(6,"th"),m(7,"Created"),l(),o(8,"th"),m(9,"CreatedBy"),l()()),e&2){let t=p(2);g(),w(t.roleService.permissions().accountingSetup.delete?1:-1)}}function me(e,r){if(e&1&&(o(0,"td"),P(1,"p-tableCheckbox",15),l()),e&2){let t=p().$implicit;g(),S("value",t)}}function ge(e,r){if(e&1&&(o(0,"tr"),_(1,me,2,1,"td"),o(2,"td"),m(3),M(4,"date"),l(),o(5,"td"),m(6),l(),o(7,"td"),m(8),M(9,"date"),l(),o(10,"td"),m(11),l()()),e&2){let t=r.$implicit,n=p(2);g(),w(n.roleService.permissions().accountingSetup.delete?1:-1),g(2),b(D(4,5,t.period,"d MMM y")),g(3),b(t.note),g(2),b(D(9,8,t.created,"d MMM y")),g(3),b(t.creatorName)}}function de(e,r){if(e&1&&m(0),e&2){let t=p(2);B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.count()," entries ")}}function _e(e,r){e&1&&(o(0,"tr")(1,"td",16)(2,"span"),m(3," No journal entries found. "),l()()())}function ue(e,r){if(e&1){let t=R();o(0,"p-table",13),k("onPage",function(i){x(t);let a=p();return h(a.onPageChange(i))})("onRowSelect",function(i){x(t);let a=p();return h(a.onRowSelect(i))})("onRowUnselect",function(i){x(t);let a=p();return h(a.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){x(t);let a=p();return h(a.onHeaderCheckboxToggle(i))}),_(1,pe,10,1,"ng-template",null,2,u)(3,ge,12,11,"ng-template",null,3,u)(5,de,1,3,"ng-template",null,4,u)(7,_e,4,0,"ng-template",null,5,u),l()}if(e&2){let t=p();S("value",t.store.data())("paginator",!0)("totalRecords",t.store.count())("lazy",!0)("rows",t.store.filter().PageSize)("scrollHeight","calc(100vh - 142px)")}}var Ae=(()=>{class e{constructor(){this.store=C(V),this.closingEntryService=C(y),this.roleService=C(K)}onPageChange(t){let n=t.first/t.rows+1;this.store.updateFilter(c(s({},this.store.filter()),{PageSize:n}))}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}onDeleteClosingEntries(){let t=this.store.selectedItems().map(n=>n.id).join(",");console.log("Deleting closing entries with IDs:",t),this.closingEntryService.deleteClosingEntry(t).pipe(U(()=>{this.store.updateFilter(s({},this.store.filter()))})).subscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=z({type:e,selectors:[["app-closing-page"]],features:[j([V])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Closing Entries List",3,"scrollable"],[1,"d-flex","gap-2"],["label","Delete","severity","danger","icon","fa-solid fa-trash"],["routerLink","create",1,"p-button"],["label","Delete","severity","danger","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["label","Delete","severity","danger","icon","fa-solid fa-trash",3,"onClick"],[1,"fa-solid","fa-plus"],["dataKey","id","styleClass","d-flex flex-column justify-content-between h-100",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","paginator","totalRecords","lazy","rows","scrollHeight"],[2,"width","1rem"],[3,"value"],["colspan","5"]],template:function(n,i){n&1&&(o(0,"app-main-panel",6),_(1,se,3,2,"ng-template",null,0,u)(3,ue,9,6,"ng-template",null,1,u),l()),n&2&&S("scrollable",!0)},dependencies:[Z,L,F,A,ie,ee,te,ne,$,q,O],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();export{Ae as ClosingPageComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-CP4OMA5A.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-QBBXI37N.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-JUDAFNFD.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-H7RIXTPZ.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-VF3GNEJQ.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-UMXCHIQ6.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-W2RBWHBT.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-LM3PSBXX.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-53XLJS5G.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Yt,b as ei,c as ti,d as ii,e as oi,f as li}from"./chunk-X6KL7VKV.js";import{a as Zt,b as gi,c as ni}from"./chunk-3O7NQ6AZ.js";import{a as kt,b as zt}from"./chunk-43JH7CKX.js";import{a as Xt}from"./chunk-YKZN6T5N.js";import{a as qe}from"./chunk-BT7Y4ADP.js";import{a as Ot}from"./chunk-5U7KZJ3H.js";import{b as Be,c as Ke,d as Rt,e as Dt,f as Pt,g as Gt,h as Jt}from"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import{a as Vt}from"./chunk-II7KELI4.js";import{c as je}from"./chunk-FTBQKOYS.js";import{a as Lt}from"./chunk-L4ENW4RK.js";import{a as qt,b as Wt}from"./chunk-FHJOSHI3.js";import{a as Qe}from"./chunk-KONCSTVQ.js";import{a as $e}from"./chunk-FMAG3RQL.js";import{e as Qt,f as Ut,i as jt}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as At,b as Bt}from"./chunk-ISIYG4D5.js";import{a as $t}from"./chunk-FNGX2XFA.js";import{a as Mt}from"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{a as He,b as Ae,i as Ue,p as Nt,w as Ft,x as Ht,z as Kt}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{$ as de,A as Re,C as De,Da as It,Ha as be,M as wt,Ma as _e,N as Pe,Na as Fe,Q as ie,R as z,S as fe,T as Ve,Va as Et,X as vt,Y as St,Z as ce,oa as Ne,ra as xt,sa as V,ta as Oe,x as Ct,z as Me}from"./chunk-MGIEURA2.js";import{d as Tt}from"./chunk-DZCJWJUG.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as ae,l as yt,m as G,n as Le,o as se,u as me,x as ge}from"./chunk-DM2JLWKE.js";import{$b as T,$c as Q,Aa as S,Ab as rt,Ba as le,Cb as xe,Dc as pt,Eb as p,Ec as ee,Fa as Se,Fc as P,Gc as te,Ha as X,Hc as ht,I as Ye,Ic as ut,Kc as mt,La as it,Lb as ne,Mb as a,Nb as at,Oc as gt,Pb as Z,Qb as j,Qc as ft,Rb as Ie,Sb as Ee,Sc as x,Ub as ke,Vb as ze,Wb as d,Wc as bt,Xb as h,Yb as I,Zb as q,_ as Ce,_b as W,_c as w,ac as D,ca as we,cd as _t,da as et,fc as k,g as J,gb as ot,gc as m,ia as A,ib as s,lc as _,m as Ze,mc as E,nb as lt,nc as g,ob as N,oc as f,pa as tt,qa as L,ra as M,rc as Y,sc as b,tc as B,ua as ve,uc as re,xc as st,yb as U,yc as ct,zb as nt,zc as dt}from"./chunk-6QJHEOXN.js";import{a as $,b as ue,e as mi}from"./chunk-YQFG5XE2.js";var _i=["colgroup"],yi=["caption"],Ti=["header"],Ci=["body"],wi=["footer"],vi=["summary"],Si=["emptymessage"],xi=["paginatorleft"],Ii=["paginatorright"],Ei=["paginatordropdownitem"],ki=["frozenheader"],zi=["frozenbody"],Li=["frozenfooter"],Mi=["frozencolgroup"],Ri=["loadingicon"],Di=["reorderindicatorupicon"],Pi=["reorderindicatordownicon"],Vi=["sorticon"],Ni=["checkboxicon"],Oi=["headercheckboxicon"],Fi=["togglericon"],Hi=["paginatorfirstpagelinkicon"],Ai=["paginatorlastpagelinkicon"],Bi=["paginatorpreviouspagelinkicon"],Ki=["paginatornextpagelinkicon"],$i=["loader"],Qi=["container"],Ui=["resizeHelper"],ji=["reorderIndicatorUp"],qi=["reorderIndicatorDown"],Wi=["table"],Gi=["scrollableView"],Ji=["scrollableFrozenView"],Xi=(t,r,e,o,i,l)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":o,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":l}),K=t=>({$implicit:t}),Zi=(t,r)=>({left:t,width:r}),Yi=t=>({width:t});function eo(t,r){if(t&1&&I(0,"i"),t&2){let e=m(2);j("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function to(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function io(t,r){}function oo(t,r){t&1&&p(0,io,0,0,"ng-template")}function lo(t,r){if(t&1&&(d(0,"span",25),p(1,oo,1,0,null,26),h()),t&2){let e=m(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function no(t,r){if(t&1&&(q(0),p(1,to,1,2,"SpinnerIcon",22)(2,lo,2,1,"span",23),W()),t&2){let e=m(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function ro(t,r){if(t&1&&(d(0,"div",18)(1,"div",19),p(2,eo,1,2,"i",20)(3,no,3,2,"ng-container",21),h()()),t&2){let e=m();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&(d(0,"div",27),p(1,ao,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function co(t,r){t&1&&T(0)}function po(t,r){if(t&1&&p(0,co,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ho(t,r){t&1&&p(0,po,1,1,"ng-template",29)}function uo(t,r){t&1&&T(0)}function mo(t,r){if(t&1&&p(0,uo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function go(t,r){t&1&&p(0,mo,1,1,"ng-template",30)}function fo(t,r){t&1&&T(0)}function bo(t,r){if(t&1&&p(0,fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function _o(t,r){t&1&&p(0,bo,1,1,"ng-template",31)}function yo(t,r){t&1&&T(0)}function To(t,r){if(t&1&&p(0,yo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Co(t,r){t&1&&p(0,To,1,1,"ng-template",32)}function wo(t,r){if(t&1){let e=D();d(0,"p-paginator",28),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,ho,1,0,null,21)(2,go,1,0,null,21)(3,_o,1,0,null,21)(4,Co,1,0,null,21),h()}if(t&2){let e,o,i,l=m();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function vo(t,r){t&1&&T(0)}function So(t,r){t&1&&T(0)}function xo(t,r){t&1&&T(0)}function Io(t,r){if(t&1&&(d(0,"div",33)(1,"table",34,1),p(3,vo,1,0,"ng-container",35),d(4,"thead",36),p(5,So,1,0,"ng-container",35),h(),I(6,"tbody",37),d(7,"tfoot",38),p(8,xo,1,0,"ng-container",35),h()()()),t&2){let e,o=m();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",P(10,K,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",P(12,K,o.columns)),s(),a("pTreeTableBody",o.columns)("pTreeTableBodyTemplate",(e=o.bodyTemplate)!==null&&e!==void 0?e:o._bodyTemplate),s(2),a("ngTemplateOutlet",o.footerTemplate||o._footerTemplate)("ngTemplateOutletContext",P(14,K,o.columns))}}function Eo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=m(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",P(4,Yi,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function ko(t,r){if(t&1&&(d(0,"div",39),p(1,Eo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=m();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",te(5,Zi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function zo(t,r){t&1&&T(0)}function Lo(t,r){if(t&1&&p(0,zo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Mo(t,r){t&1&&p(0,Lo,1,1,"ng-template",29)}function Ro(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Ro,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Po(t,r){t&1&&p(0,Do,1,1,"ng-template",30)}function Vo(t,r){t&1&&T(0)}function No(t,r){if(t&1&&p(0,Vo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Oo(t,r){t&1&&p(0,No,1,1,"ng-template",31)}function Fo(t,r){t&1&&T(0)}function Ho(t,r){if(t&1&&p(0,Fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ao(t,r){t&1&&p(0,Ho,1,1,"ng-template",32)}function Bo(t,r){if(t&1){let e=D();d(0,"p-paginator",43),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,Mo,1,0,null,21)(2,Po,1,0,null,21)(3,Oo,1,0,null,21)(4,Ao,1,0,null,21),h()}if(t&2){let e,o,i,l=m();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function Ko(t,r){t&1&&T(0)}function $o(t,r){if(t&1&&(d(0,"div",44),p(1,Ko,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function Qo(t,r){t&1&&I(0,"div",45,4)}function Uo(t,r){t&1&&I(0,"ArrowDownIcon")}function jo(t,r){}function qo(t,r){t&1&&p(0,jo,0,0,"ng-template")}function Wo(t,r){if(t&1&&(d(0,"span",46,5),p(2,Uo,1,0,"ArrowDownIcon",21)(3,qo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Go(t,r){t&1&&I(0,"ArrowUpIcon")}function Jo(t,r){}function Xo(t,r){t&1&&p(0,Jo,0,0,"ng-template")}function Zo(t,r){if(t&1&&(d(0,"span",47,6),p(2,Go,1,0,"ArrowUpIcon",21)(3,Xo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Yo=["pTreeTableBody",""],el=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),tl=(t,r)=>({$implicit:t,frozen:r});function il(t,r){t&1&&T(0)}function ol(t,r){if(t&1&&(q(0),p(1,il,1,0,"ng-container",2),W()),t&2){let e=m().$implicit,o=m();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ut(2,el,e,e.node,e.node.data,o.columns))}}function ll(t,r){if(t&1&&p(0,ol,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function nl(t,r){t&1&&T(0)}function rl(t,r){if(t&1&&(q(0),p(1,nl,1,0,"ng-container",2),W()),t&2){let e=m();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",te(2,tl,e.columns,e.frozen))}}var al=["scrollHeader"],sl=["scrollHeaderBox"],cl=["scrollBody"],dl=["scrollTable"],pl=["loadingTable"],hl=["scrollFooter"],ul=["scrollFooterBox"],ml=["scrollableAligner"],gl=["scroller"],fl=["ttScrollableView",""],bl=t=>({height:t}),ai=(t,r)=>({$implicit:t,options:r}),_l=t=>({options:t}),yl=(t,r)=>({"max-height":t,"overflow-y":r}),Tl=()=>({});function Cl(t,r){t&1&&T(0)}function wl(t,r){t&1&&T(0)}function vl(t,r){t&1&&T(0)}function Sl(t,r){if(t&1&&p(0,vl,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;m(2);let i=Y(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",te(2,ai,e,o))}}function xl(t,r){t&1&&T(0)}function Il(t,r){if(t&1&&p(0,xl,1,0,"ng-container",14),t&2){let e=r.options,o=m(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",P(2,_l,e))}}function El(t,r){t&1&&(q(0),p(1,Il,1,4,"ng-template",null,5,x),W())}function kl(t,r){if(t&1){let e=D();d(0,"p-scroller",19,3),k("onLazyLoad",function(i){L(e);let l=m();return M(l.tt.onLazyItemLoad(i))}),p(2,Sl,1,5,"ng-template",null,4,x)(4,El,3,0,"ng-container",17),h()}if(t&2){let e=m();Z(P(8,bl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function zl(t,r){t&1&&T(0)}function Ll(t,r){if(t&1&&(q(0),d(1,"div",20,6),p(3,zl,1,0,"ng-container",14),h(),W()),t&2){let e=m(),o=Y(11);s(),a("ngStyle",te(3,yl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",te(7,ai,e.serializedValue,ee(6,Tl)))}}function Ml(t,r){t&1&&T(0)}function Rl(t,r){t&1&&I(0,"div",24,8)}function Dl(t,r){if(t&1&&(d(0,"table",21,7),p(2,Ml,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,Rl,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=m();Z(o.contentStyle),j(i.tt.tableStyleClass),a("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",P(13,K,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Pl(t,r){t&1&&T(0)}function Vl(t,r){t&1&&T(0)}function Nl(t,r){if(t&1&&(d(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,Pl,1,0,"ng-container",14),d(6,"tfoot",28),p(7,Vl,1,0,"ng-container",14),h()()()()),t&2){let e=m();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",P(6,K,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",P(8,K,e.columns))}}function Ol(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&ne("aria-hidden",!0)}function Fl(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&ne("aria-hidden",!0)}function Hl(t,r){if(t&1&&(q(0),p(1,Ol,1,1,"ChevronDownIcon",1)(2,Fl,1,1,"ChevronRightIcon",1),W()),t&2){let e=m();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Al(t,r){}function Bl(t,r){t&1&&p(0,Al,0,0,"ng-template")}var Kl=({dt:t})=>`
|
|
1
|
+
import{a as Yt,b as ei,c as ti,d as ii,e as oi,f as li}from"./chunk-X6KL7VKV.js";import{a as Zt,b as gi,c as ni}from"./chunk-3O7NQ6AZ.js";import{a as kt,b as zt}from"./chunk-43JH7CKX.js";import{a as Xt}from"./chunk-YKZN6T5N.js";import{a as qe}from"./chunk-BT7Y4ADP.js";import{a as Ot}from"./chunk-5U7KZJ3H.js";import{b as Be,c as Ke,d as Rt,e as Dt,f as Pt,g as Gt,h as Jt}from"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import{a as Vt}from"./chunk-II7KELI4.js";import{c as je}from"./chunk-FTBQKOYS.js";import{a as Lt}from"./chunk-L4ENW4RK.js";import{a as qt,b as Wt}from"./chunk-FHJOSHI3.js";import{a as Qe}from"./chunk-KONCSTVQ.js";import{a as $e}from"./chunk-FMAG3RQL.js";import{e as Qt,f as Ut,i as jt}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{a as At,b as Bt}from"./chunk-ISIYG4D5.js";import{a as $t}from"./chunk-FNGX2XFA.js";import{a as Mt}from"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{a as He,b as Ae,i as Ue,p as Nt,w as Ft,x as Ht,z as Kt}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{$ as de,A as Re,C as De,Da as It,Ha as be,M as wt,Ma as _e,N as Pe,Na as Fe,Q as ie,R as z,S as fe,T as Ve,Va as Et,X as vt,Y as St,Z as ce,oa as Ne,ra as xt,sa as V,ta as Oe,x as Ct,z as Me}from"./chunk-MGIEURA2.js";import{d as Tt}from"./chunk-DZCJWJUG.js";import"./chunk-DD3C4ZJK.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as ae,l as yt,m as G,n as Le,o as se,u as me,x as ge}from"./chunk-DM2JLWKE.js";import{$b as T,$c as Q,Aa as S,Ab as rt,Ba as le,Cb as xe,Dc as pt,Eb as p,Ec as ee,Fa as Se,Fc as P,Gc as te,Ha as X,Hc as ht,I as Ye,Ic as ut,Kc as mt,La as it,Lb as ne,Mb as a,Nb as at,Oc as gt,Pb as Z,Qb as j,Qc as ft,Rb as Ie,Sb as Ee,Sc as x,Ub as ke,Vb as ze,Wb as d,Wc as bt,Xb as h,Yb as I,Zb as q,_ as Ce,_b as W,_c as w,ac as D,ca as we,cd as _t,da as et,fc as k,g as J,gb as ot,gc as m,ia as A,ib as s,lc as _,m as Ze,mc as E,nb as lt,nc as g,ob as N,oc as f,pa as tt,qa as L,ra as M,rc as Y,sc as b,tc as B,ua as ve,uc as re,xc as st,yb as U,yc as ct,zb as nt,zc as dt}from"./chunk-6QJHEOXN.js";import{a as $,b as ue,e as mi}from"./chunk-YQFG5XE2.js";var _i=["colgroup"],yi=["caption"],Ti=["header"],Ci=["body"],wi=["footer"],vi=["summary"],Si=["emptymessage"],xi=["paginatorleft"],Ii=["paginatorright"],Ei=["paginatordropdownitem"],ki=["frozenheader"],zi=["frozenbody"],Li=["frozenfooter"],Mi=["frozencolgroup"],Ri=["loadingicon"],Di=["reorderindicatorupicon"],Pi=["reorderindicatordownicon"],Vi=["sorticon"],Ni=["checkboxicon"],Oi=["headercheckboxicon"],Fi=["togglericon"],Hi=["paginatorfirstpagelinkicon"],Ai=["paginatorlastpagelinkicon"],Bi=["paginatorpreviouspagelinkicon"],Ki=["paginatornextpagelinkicon"],$i=["loader"],Qi=["container"],Ui=["resizeHelper"],ji=["reorderIndicatorUp"],qi=["reorderIndicatorDown"],Wi=["table"],Gi=["scrollableView"],Ji=["scrollableFrozenView"],Xi=(t,r,e,o,i,l)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":o,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":l}),K=t=>({$implicit:t}),Zi=(t,r)=>({left:t,width:r}),Yi=t=>({width:t});function eo(t,r){if(t&1&&I(0,"i"),t&2){let e=m(2);j("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function to(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function io(t,r){}function oo(t,r){t&1&&p(0,io,0,0,"ng-template")}function lo(t,r){if(t&1&&(d(0,"span",25),p(1,oo,1,0,null,26),h()),t&2){let e=m(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function no(t,r){if(t&1&&(q(0),p(1,to,1,2,"SpinnerIcon",22)(2,lo,2,1,"span",23),W()),t&2){let e=m(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function ro(t,r){if(t&1&&(d(0,"div",18)(1,"div",19),p(2,eo,1,2,"i",20)(3,no,3,2,"ng-container",21),h()()),t&2){let e=m();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&(d(0,"div",27),p(1,ao,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function co(t,r){t&1&&T(0)}function po(t,r){if(t&1&&p(0,co,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ho(t,r){t&1&&p(0,po,1,1,"ng-template",29)}function uo(t,r){t&1&&T(0)}function mo(t,r){if(t&1&&p(0,uo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function go(t,r){t&1&&p(0,mo,1,1,"ng-template",30)}function fo(t,r){t&1&&T(0)}function bo(t,r){if(t&1&&p(0,fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function _o(t,r){t&1&&p(0,bo,1,1,"ng-template",31)}function yo(t,r){t&1&&T(0)}function To(t,r){if(t&1&&p(0,yo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Co(t,r){t&1&&p(0,To,1,1,"ng-template",32)}function wo(t,r){if(t&1){let e=D();d(0,"p-paginator",28),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,ho,1,0,null,21)(2,go,1,0,null,21)(3,_o,1,0,null,21)(4,Co,1,0,null,21),h()}if(t&2){let e,o,i,l=m();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function vo(t,r){t&1&&T(0)}function So(t,r){t&1&&T(0)}function xo(t,r){t&1&&T(0)}function Io(t,r){if(t&1&&(d(0,"div",33)(1,"table",34,1),p(3,vo,1,0,"ng-container",35),d(4,"thead",36),p(5,So,1,0,"ng-container",35),h(),I(6,"tbody",37),d(7,"tfoot",38),p(8,xo,1,0,"ng-container",35),h()()()),t&2){let e,o=m();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",P(10,K,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",P(12,K,o.columns)),s(),a("pTreeTableBody",o.columns)("pTreeTableBodyTemplate",(e=o.bodyTemplate)!==null&&e!==void 0?e:o._bodyTemplate),s(2),a("ngTemplateOutlet",o.footerTemplate||o._footerTemplate)("ngTemplateOutletContext",P(14,K,o.columns))}}function Eo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=m(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",P(4,Yi,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function ko(t,r){if(t&1&&(d(0,"div",39),p(1,Eo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=m();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",te(5,Zi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function zo(t,r){t&1&&T(0)}function Lo(t,r){if(t&1&&p(0,zo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Mo(t,r){t&1&&p(0,Lo,1,1,"ng-template",29)}function Ro(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Ro,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Po(t,r){t&1&&p(0,Do,1,1,"ng-template",30)}function Vo(t,r){t&1&&T(0)}function No(t,r){if(t&1&&p(0,Vo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Oo(t,r){t&1&&p(0,No,1,1,"ng-template",31)}function Fo(t,r){t&1&&T(0)}function Ho(t,r){if(t&1&&p(0,Fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ao(t,r){t&1&&p(0,Ho,1,1,"ng-template",32)}function Bo(t,r){if(t&1){let e=D();d(0,"p-paginator",43),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,Mo,1,0,null,21)(2,Po,1,0,null,21)(3,Oo,1,0,null,21)(4,Ao,1,0,null,21),h()}if(t&2){let e,o,i,l=m();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function Ko(t,r){t&1&&T(0)}function $o(t,r){if(t&1&&(d(0,"div",44),p(1,Ko,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function Qo(t,r){t&1&&I(0,"div",45,4)}function Uo(t,r){t&1&&I(0,"ArrowDownIcon")}function jo(t,r){}function qo(t,r){t&1&&p(0,jo,0,0,"ng-template")}function Wo(t,r){if(t&1&&(d(0,"span",46,5),p(2,Uo,1,0,"ArrowDownIcon",21)(3,qo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Go(t,r){t&1&&I(0,"ArrowUpIcon")}function Jo(t,r){}function Xo(t,r){t&1&&p(0,Jo,0,0,"ng-template")}function Zo(t,r){if(t&1&&(d(0,"span",47,6),p(2,Go,1,0,"ArrowUpIcon",21)(3,Xo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Yo=["pTreeTableBody",""],el=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),tl=(t,r)=>({$implicit:t,frozen:r});function il(t,r){t&1&&T(0)}function ol(t,r){if(t&1&&(q(0),p(1,il,1,0,"ng-container",2),W()),t&2){let e=m().$implicit,o=m();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ut(2,el,e,e.node,e.node.data,o.columns))}}function ll(t,r){if(t&1&&p(0,ol,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function nl(t,r){t&1&&T(0)}function rl(t,r){if(t&1&&(q(0),p(1,nl,1,0,"ng-container",2),W()),t&2){let e=m();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",te(2,tl,e.columns,e.frozen))}}var al=["scrollHeader"],sl=["scrollHeaderBox"],cl=["scrollBody"],dl=["scrollTable"],pl=["loadingTable"],hl=["scrollFooter"],ul=["scrollFooterBox"],ml=["scrollableAligner"],gl=["scroller"],fl=["ttScrollableView",""],bl=t=>({height:t}),ai=(t,r)=>({$implicit:t,options:r}),_l=t=>({options:t}),yl=(t,r)=>({"max-height":t,"overflow-y":r}),Tl=()=>({});function Cl(t,r){t&1&&T(0)}function wl(t,r){t&1&&T(0)}function vl(t,r){t&1&&T(0)}function Sl(t,r){if(t&1&&p(0,vl,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;m(2);let i=Y(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",te(2,ai,e,o))}}function xl(t,r){t&1&&T(0)}function Il(t,r){if(t&1&&p(0,xl,1,0,"ng-container",14),t&2){let e=r.options,o=m(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",P(2,_l,e))}}function El(t,r){t&1&&(q(0),p(1,Il,1,4,"ng-template",null,5,x),W())}function kl(t,r){if(t&1){let e=D();d(0,"p-scroller",19,3),k("onLazyLoad",function(i){L(e);let l=m();return M(l.tt.onLazyItemLoad(i))}),p(2,Sl,1,5,"ng-template",null,4,x)(4,El,3,0,"ng-container",17),h()}if(t&2){let e=m();Z(P(8,bl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function zl(t,r){t&1&&T(0)}function Ll(t,r){if(t&1&&(q(0),d(1,"div",20,6),p(3,zl,1,0,"ng-container",14),h(),W()),t&2){let e=m(),o=Y(11);s(),a("ngStyle",te(3,yl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",te(7,ai,e.serializedValue,ee(6,Tl)))}}function Ml(t,r){t&1&&T(0)}function Rl(t,r){t&1&&I(0,"div",24,8)}function Dl(t,r){if(t&1&&(d(0,"table",21,7),p(2,Ml,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,Rl,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=m();Z(o.contentStyle),j(i.tt.tableStyleClass),a("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",P(13,K,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Pl(t,r){t&1&&T(0)}function Vl(t,r){t&1&&T(0)}function Nl(t,r){if(t&1&&(d(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,Pl,1,0,"ng-container",14),d(6,"tfoot",28),p(7,Vl,1,0,"ng-container",14),h()()()()),t&2){let e=m();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",P(6,K,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",P(8,K,e.columns))}}function Ol(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&ne("aria-hidden",!0)}function Fl(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&ne("aria-hidden",!0)}function Hl(t,r){if(t&1&&(q(0),p(1,Ol,1,1,"ChevronDownIcon",1)(2,Fl,1,1,"ChevronRightIcon",1),W()),t&2){let e=m();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Al(t,r){}function Bl(t,r){t&1&&p(0,Al,0,0,"ng-template")}var Kl=({dt:t})=>`
|
|
2
2
|
/* For PrimeNG */
|
|
3
3
|
.p-treetable {
|
|
4
4
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as Se}from"./chunk-
|
|
1
|
+
import{b as Se}from"./chunk-AKHZNBCJ.js";import{a as I,b as V}from"./chunk-3VQUNDVT.js";import{b as _e,i as xe}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as be,b as Ce}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import{b as ge}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as he}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{a as ae,b as re}from"./chunk-ISIYG4D5.js";import{b as T,c as se,d as me,e as ce,f as de,g as fe,h as ue}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{y as le,z as pe}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as Y,f as Z,k as $,m as ee,p as te,v as ie,x as oe,y as ne}from"./chunk-MGIEURA2.js";import{e as z,l as J}from"./chunk-DZCJWJUG.js";import"./chunk-DD3C4ZJK.js";import{a as X}from"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{s as W,u as q}from"./chunk-DM2JLWKE.js";import{D as M,Dc as H,Eb as F,Ec as Q,Fc as P,Ha as O,Mb as f,Oc as u,Pc as h,Sc as g,Wb as o,Xb as n,Y as D,Yb as E,ac as L,bd as B,c as v,ca as N,cd as U,fc as w,gc as k,ia as d,ib as p,qa as x,ra as S,sc as r,tc as y,uc as C,xc as j,yb as R,yc as G,zc as K}from"./chunk-6QJHEOXN.js";import{a as m,b as c}from"./chunk-YQFG5XE2.js";var ke=(()=>{class e{constructor(){this.httpService=d(X)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(t){return this.httpService.get("","api/CashAndBank/GetCashAndBank",{params:t})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ve={data:{data:[],pageTitle:"",pageSubTitle:""},filter:null,options:{hasGeneralLedger:!1}},A=se(ue("cash-bank-store"),fe(ve),me(e=>({totalBalance:B(()=>e.data().data.reduce((l,t)=>l+t.balance,0)),subTotalDebit:B(()=>e.data().data.reduce((l,t)=>l+t.debit,0)),subTotalCredit:B(()=>e.data().data.reduce((l,t)=>l+t.credit,0))})),de(e=>{let l=d(ke);return{updateFilterQuery(i){T(e,a=>c(m({},a),{filter:c(m({},i),{pageNumber:1})}))},loadCashAndBankLoader:I(v(D(()=>l.fetchCashAndBankLoader().pipe(V({next:i=>{T(e,a=>c(m({},a),{options:i.options,filter:i.filter}))},error:i=>{console.log("error",i)}}))))),loadCashAndBankData:I(v(M(i=>!!i),D(i=>l.fetchCashAndBankData(i).pipe(V({next:a=>{T(e,s=>c(m({},s),{data:a}))},error:a=>{console.log("error",a)}})))))}}),ce({onInit(e){e.loadCashAndBankLoader(),e.loadCashAndBankData(e.filter)}}));var De=["class","page"],Fe=e=>[e],Ee=()=>["/pages/report/general-ledger"],we=e=>({id:e});function Pe(e,l){e&1&&(o(0,"tr")(1,"th"),r(2,"Code"),n(),o(3,"th"),r(4,"Name"),n(),o(5,"th",8)(6,"span",9),r(7," Debit "),n()(),o(8,"th",8)(9,"span",10),r(10," Credit "),n()(),o(11,"th",8)(12,"span",11),r(13," Current Balance"),n()()())}function Ie(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),n(),o(3,"td")(4,"a",12),r(5),n()(),o(6,"td",13),r(7),u(8,"number"),n(),o(9,"td",14),r(10),u(11,"number"),n(),o(12,"td",8)(13,"a",15),r(14),u(15,"number"),n()()()),e&2){let t=l.$implicit;p(2),y(t.code),p(2),f("routerLink",P(14,Fe,"/pages/chart-of-account/account/"+t.accountID)),p(),y(t.name),p(2),C(" ",h(8,8,t.debit)," "),p(3),C(" ",h(11,10,t.credit)," "),p(3),f("routerLink",Q(16,Ee))("queryParams",P(17,we,t.accountID)),p(),y(h(15,12,t.balance))}}function Ve(e,l){if(e&1&&(o(0,"tr"),E(1,"td"),o(2,"td",16),r(3,"Total"),n(),o(4,"td",17),r(5),u(6,"number"),n(),o(7,"td",18),r(8),u(9,"number"),n(),o(10,"td",19),r(11),u(12,"number"),n()()),e&2){let t=k(2);p(5),C(" ",h(6,3,t.store.subTotalDebit())," "),p(3),C(" ",h(9,5,t.store.subTotalCredit())," "),p(3),C(" ",h(12,7,t.store.totalBalance())," ")}}function Ae(e,l){e&1&&(o(0,"tr")(1,"td",20)(2,"span"),r(3,"No records found."),n()()())}function Me(e,l){if(e&1&&(o(0,"p-panel")(1,"p-table",7),F(2,Pe,14,0,"ng-template",null,2,g)(4,Ie,16,19,"ng-template",null,3,g)(6,Ve,13,9,"ng-template",null,4,g)(8,Ae,4,0,"ng-template",null,5,g),n()()),e&2){let t=k();p(),f("value",t.store.data().data)}}function Ne(e,l){if(e&1&&(o(0,"form",21)(1,"div",22)(2,"label",23),r(3,"From - To"),n(),o(4,"div",24),E(5,"p-datepicker",25)(6,"p-datepicker",26),n()()()),e&2){let t=k();f("formGroup",t.filterForm),p(5),f("iconDisplay","input")("showIcon",!0),p(),f("iconDisplay","input")("showIcon",!0)}}var ye=(()=>{class e{constructor(){this.store=d(A),this.isDialogFilterVisible=O(!1),this.routeInfo=Be,this.fb=d(ie),this.dayjsService=d(Se),U(()=>{let t=this.store.filter();if(t){let i=Object.entries(t).reduce((a,[s,b])=>(s==="from"||s==="to"?a[s]=b?new Date(b):null:a[s]=b,a),{});this.filterForm?.patchValue(i)}})}ngOnInit(){this.initForm()}initForm(){this.filterForm=this.fb.group({text:this.fb.control(""),listOutletID:this.fb.control([]),listCategoryID:this.fb.control([]),isInRoleEmptyOutlets:this.fb.control(!1),discontinued:this.fb.control("all"),discontinuedValue:this.fb.control(!1),from:this.fb.control(null),to:this.fb.control(null),pageNumber:this.fb.control(1),pageSize:this.fb.control(10),export:this.fb.control(!1),exportPageNumber:this.fb.control(1),exportPageSize:this.fb.control(10)})}onSearch(t){this.store.updateFilterQuery(c(m({},this.store.filter()),{text:t}))}onFilterOKEvent(){let t=this.filterForm.getRawValue();console.log("\u{1F680} ~ CashBankPageComponent ~ onFilterOKEvent ~ formValue:",t);let i=c(m({},t),{from:t.from?this.dayjsService.format(t.from):void 0,to:t.to?this.dayjsService.format(t.to):void 0});this.store.updateFilterQuery(i),this.isDialogFilterVisible.set(!1)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=R({type:e,selectors:[["app-cash-bank",8,"page"]],features:[H([A])],attrs:De,decls:5,vars:6,consts:[["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"search","isDialogFilterVisibleChange","filterConfirmed","pageTitle","pageSubTitle","scrollable","isSearchableInput","isFilterable","isDialogFilterVisible"],[3,"value"],[1,"text-end"],["pTooltip","Total debit based on the selected date filter","tooltipPosition","top"],["pTooltip","Total credit based on the selected date filter","tooltipPosition","top"],["pTooltip","Current balance based on the selected date filter","tooltipPosition","top"],[1,"link","link-primary",3,"routerLink"],[1,"text-end","text-success"],[1,"text-end","text-danger"],[1,"link","link-primary",3,"routerLink","queryParams"],[1,"fw-bold"],[1,"fw-bold","text-end","text-success"],[1,"fw-bold","text-end","text-danger"],[1,"text-end","fw-bold"],["colspan","5"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"]],template:function(i,a){if(i&1){let s=L();o(0,"app-main-panel",6),w("search",function(_){return x(s),S(a.onSearch(_))}),K("isDialogFilterVisibleChange",function(_){return x(s),G(a.isDialogFilterVisible,_)||(a.isDialogFilterVisible=_),S(_)}),w("filterConfirmed",function(){return x(s),S(a.onFilterOKEvent())}),F(1,Me,10,1,"ng-template",null,0,g)(3,Ne,7,5,"ng-template",null,1,g),n()}i&2&&(f("pageTitle",a.store.data().pageTitle)("pageSubTitle",a.store.data().pageSubTitle)("scrollable",!0)("isSearchableInput",!0)("isFilterable",!0),j("isDialogFilterVisible",a.isDialogFilterVisible))},dependencies:[q,W,he,oe,$,Y,Z,xe,_e,ge,J,z,re,ae,pe,le,ne,ee,te,Ce,be],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return e})();var St=[{path:"",component:ye,children:[]}],Be={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{St as CASH_BANK_ROUTES,Be as CASH_BANK_ROUTE_PAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-XPKM4HTA.js";import{d as r}from"./chunk-DZCJWJUG.js";import{ia as e}from"./chunk-6QJHEOXN.js";var f=(a,o)=>{let t=e(i),s=e(r),n=t.isAuthenticated(),u=!t.isTokenExpired(),c=t.checkAuthKeysExists();return!n||!u||!c?(s.navigate(["/"],{queryParams:{returnUrl:o.url}}),!1):!0};export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as T,b as J}from"./chunk-
|
|
1
|
+
import{a as T,b as J}from"./chunk-BAN4BZ4V.js";import"./chunk-AKHZNBCJ.js";import{m as j}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as R,b as O}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-DD3C4ZJK.js";import"./chunk-G3BJCT7T.js";import{a as V}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as E,u as I}from"./chunk-DM2JLWKE.js";import{Dc as F,Eb as C,Ec as v,Mb as m,Oc as c,Pb as y,Pc as l,Rb as h,Sc as S,W as M,Wb as n,Xb as o,Y as k,Yb as u,_ as A,ac as x,fc as P,gc as a,h as b,ia as s,ib as r,qa as g,ra as _,s as f,sa as B,ta as w,yb as $}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(t,d){if(t&1){let e=x();n(0,"p-button",6),P("onClick",function(){g(e);let p=a(2);return _(p.onFormat())}),o()}}function U(t,d){if(t&1){let e=x();n(0,"p-button",7),c(1,"async"),c(2,"async"),P("onClick",function(){g(e);let p=a(2);return _(p.migratePaymentAccount())}),o()}if(t&2){let e=a(2);m("disabled",l(1,2,e.countInBooks$)!==0)("pTooltip",l(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(t,d){if(t&1&&(n(0,"div",3),C(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),o()),t&2){let e=a();r(),h(e.roleService.permissions().migrate.delete?1:-1),r(),h(e.roleService.permissions().migrate.create?2:-1)}}function X(t,d){if(t&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),c(4,"async"),B(),n(5,"svg",10),u(6,"path",11),o(),w(),u(7,"app-migration-cards",12),c(8,"async"),o()()()),t&2){let e=a();y(v(12,K)),r(),y(v(13,K)),r(2),m("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),m("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var Ce=(()=>{class t{constructor(){this.migrateService=s(T),this.toastr=s(V),this.refresh$=new b(void 0),this.pageTitle="Payment Account",this.roleService=s(j)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getPaymentMethodAccountCount()),A(i=>console.log("API response:",i)),M(1));this.countInPOS$=e.pipe(f(i=>Number(i.pos))),this.countInBooks$=e.pipe(f(i=>Number(i.books)))}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatPaymentAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=$({type:t,selectors:[["app-payment-account"]],features:[F([T])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,p){i&1&&(n(0,"app-main-panel",2),C(1,W,3,2,"ng-template",null,0,S)(3,X,9,14,"ng-template",null,1,S),o()),i&2&&m("pageTitle",p.pageTitle)},dependencies:[z,I,E,O,R,H,G,q,L,J,N,D],encapsulation:2})}}return t})();export{Ce as PaymentAccountComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-XPKM4HTA.js";import"./chunk-WL6ZZCYW.js";import{d as e}from"./chunk-DZCJWJUG.js";import"./chunk-DD3C4ZJK.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import"./chunk-DM2JLWKE.js";import{ia as n}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var a=(t,u)=>{let o=n(r),i=n(e),p=o.isAuthenticated(),m=!o.isTokenExpired(),h=o.checkAuthKeysExists();return p&&m&&h?(i.navigateByUrl("/pages/dashboard"),!1):!0};var A=[{path:"",canActivate:[a],loadComponent:()=>import("./chunk-TPVWARR4.js").then(t=>t.LoginComponent)},{path:"404",loadComponent:()=>import("./chunk-JRBGNG24.js").then(t=>t.NotfoundComponent)},{path:"signup",loadComponent:()=>import("./chunk-OOCLTY27.js").then(t=>t.SignupComponent)},{path:"504",loadComponent:()=>import("./chunk-6DTQWLB3.js").then(t=>t.TimeoutComponent)},{path:"unauthorized",loadComponent:()=>import("./chunk-NFJAMS74.js").then(t=>t.FullComponent),children:[{path:"",loadComponent:()=>import("./chunk-66XTNHB6.js").then(t=>t.ForbiddenComponent)}]}];export{A as AuthenticationRoutes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as be}from"./chunk-6YXA7GFO.js";import{b as Ve}from"./chunk-5VKDAA74.js";import{m as xe}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as Q,b as X}from"./chunk-3VQUNDVT.js";import{b as Y,g as Ie,h as Me,i as Z}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as Re,b as Fe}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as Ne}from"./chunk-BT7Y4ADP.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import{b as ke}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as q}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as j,b as H}from"./chunk-ISIYG4D5.js";import{b as S,c as L,d as G,e as Ee,f as K,g as W}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{o as Ue,w as O,x as A}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as Ce,f as Se,k as Te,m as we,p as ve,v as ye,y as Pe}from"./chunk-MGIEURA2.js";import{e as B,l as ge}from"./chunk-DZCJWJUG.js";import"./chunk-H6JPNVHO.js";import{a as he}from"./chunk-G3BJCT7T.js";import{a as _e}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{d as $}from"./chunk-KL3TPLRB.js";import{m as ue,r as fe,s as J,u as z}from"./chunk-DM2JLWKE.js";import{Dc as D,Eb as T,Ec as R,Fc as se,Ha as ae,Mb as g,Oc as v,Pb as M,Pc as E,Qc as de,Rb as le,Sc as _,Wb as o,Xb as a,Y as N,Yb as k,_ as ie,ac as U,bd as y,c as F,ca as oe,eb as re,fc as w,gc as d,ia as f,ib as c,qa as x,ra as C,s as ne,sc as r,tc as h,wc as V,xc as pe,yb as I,yc as me,zc as ce}from"./chunk-6QJHEOXN.js";import{a as m,b as s}from"./chunk-YQFG5XE2.js";var P=(()=>{class t{constructor(){this.httpService=f(he)}getGenerateCoa(e){let n={params:new $().set("PageNumber",e.PageNumber).set("PageSize",e.PageSize)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(e={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,e)}getUnbalanceJournal(e){let i=new $,n=(u,b)=>{b!=null&&b!==""&&(i=i.set(u,String(b)))};n("pageNumber",e.PageNumber),n("pageSize",e.PageSize),n("from",e.From),n("to",e.To),n("numberSearch",e.Number);let l=i.keys().length?{params:i}:{};return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal",l)}loadInitialUnbalanceJournal(){return this.httpService.get(void 0,"api/ToolsLoader/UnbalanceJurnal")}updateUnbalanceJournal(e){let i={ListID:e};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=oe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Be={filter:{PageNumber:1,PageSize:20},data:{data:[],count:0}},ee=L(W(Be),G(t=>({first:y(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:y(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().count))})),K(t=>{let p=f(P);return{updateFilter:i=>{S(t,n=>s(m({},n),{filter:m(m({},n.filter),i)}))},getUpdateCOA:Q(F(N(i=>p.getGenerateCoa(i).pipe(X({next:n=>{S(t,l=>s(m({},l),{data:n}))},error:n=>{console.error(n)}})))))}}),Ee({onInit(t){t.getUpdateCOA(t.filter)}}));var Le=()=>({height:"calc(100vh - 70px)"}),Ge=()=>({"min-width":"50rem"});function Ke(t,p){if(t&1){let e=U();o(0,"p-button",8),w("onClick",function(){x(e);let n=d(2);return C(n.updateCoaBalance())}),a()}}function We(t,p){if(t&1&&T(0,Ke,1,0,"p-button",7),t&2){let e=d();le(e.roleService.permissions().tools.edit?0:-1)}}function qe(t,p){t&1&&(o(0,"tr")(1,"th"),r(2,"Code"),a(),o(3,"th"),r(4,"Name"),a(),o(5,"th"),r(6,"Tag"),a(),o(7,"th",10),r(8,"COA Balance"),a(),o(9,"th",10),r(10,"Correct Balance"),a()())}function Qe(t,p){if(t&1&&(o(0,"tr")(1,"td"),r(2),a(),o(3,"td")(4,"a",11),r(5),a()(),o(6,"td"),r(7),a(),o(8,"td",10),r(9),v(10,"number"),a(),o(11,"td",10),r(12),v(13,"number"),a()()),t&2){let e=p.$implicit;c(2),h(e.Code),c(2),g("routerLink","/pages/chart-of-account/account/"+e.ID),c(),h(e.Name),c(2),h(e.OutletName),c(2),h(E(10,6,e.Balance)),c(3),h(E(13,8,e.CorrectBalance))}}function Xe(t,p){if(t&1&&(o(0,"div",12)(1,"p",13),r(2),a()()),t&2){let e=d(2);c(2),V(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function Ye(t,p){t&1&&(o(0,"tr")(1,"td",14)(2,"span"),r(3,"No records found."),a()()())}function Ze(t,p){if(t&1){let e=U();o(0,"p-panel")(1,"p-table",9),w("onPage",function(n){x(e);let l=d();return C(l.onPageChange(n))}),T(2,qe,11,0,"ng-template",null,2,_)(4,Qe,14,10,"ng-template",null,3,_)(6,Xe,3,3,"ng-template",null,4,_)(8,Ye,4,0,"ng-template",null,5,_),a()()}if(t&2){let e=d();M(R(8,Le)),c(),g("paginator",!0)("lazy",!0)("totalRecords",e.store.data().count)("rows",e.store.filter().PageSize)("value",e.store.data().data)("tableStyle",R(9,Ge))}}var Je=(()=>{class t{constructor(){this.store=f(ee),this.coaService=f(P),this.toastrService=f(_e),this.roleService=f(xe)}onPageChange(e){this.store.updateFilter(s(m({},this.store.filter()),{PageNumber:Math.floor(e.first/e.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(Ne("Update COA Balance"),ie(()=>{this.store.updateFilter(this.store.filter())})).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tools-update-coa"]],features:[D([ee])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Update COA Balance",3,"scrollable"],["label","Update"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","rows","value","tableStyle"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(i,n){i&1&&(o(0,"app-main-panel",6),T(1,We,1,1,"ng-template",null,0,_)(3,Ze,10,10,"ng-template",null,1,_),a()),i&2&&g("scrollable",!0)},dependencies:[q,Z,Y,ke,z,J,A,O,H,j,B],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit} .p-paginator .p-paginator-pages .p-paginator-page{font-size:14px}.custom-font-footer[_ngcontent-%COMP%]{font-size:.875rem}"],changeDetection:0})}}return t})();var $e={data:{count:0,data:[]},filter:{PageNumber:1,PageSize:20,From:"",To:"",Number:null}},te=L(W($e),G(t=>({first:y(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:y(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().count)),selectedItems:y(()=>t.data().data.filter(p=>p.checked)),hasCheckedRows:y(()=>t.data().data.some(p=>p.checked))})),K(t=>{let p=f(P);return{updateFilter(i){S(t,n=>s(m({},n),{filter:m(m({},n.filter),i)}))},onRowSelect(i){S(t,n=>{let l=n.data.data.map(u=>u.id===i.id?s(m({},u),{checked:!0}):u);return s(m({},n),{data:s(m({},n.data),{data:l})})})},onRowUnselect(i){S(t,n=>{let l=n.data.data.map(u=>u.id===i.id?s(m({},u),{checked:!1}):u);return s(m({},n),{data:s(m({},n.data),{data:l})})})},onHeaderCheckboxToggle(i){S(t,n=>{let l=n.data.data.map(u=>s(m({},u),{checked:i}));return s(m({},n),{data:s(m({},n.data),{data:l})})})},loadData:Q(F(N(i=>p.getUnbalanceJournal(i).pipe(ne(n=>s(m({},n),{data:n.data.map(l=>s(m({},l),{checked:!1}))})),X({next:n=>{S(t,l=>s(m({},l),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}));var et=()=>({height:"calc(100vh - 70px)"}),tt=t=>["/pages/journal/journal-entry",t];function nt(t,p){if(t&1){let e=U();o(0,"div",9),k(1,"p-button",10),o(2,"p-button",11),w("onClick",function(){x(e);let n=d(2);return C(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),a()()}}function it(t,p){if(t&1&&T(0,nt,4,0,"div",8),t&2){let e=d();g("ngIf",e.store.hasCheckedRows())}}function ot(t,p){t&1&&(o(0,"tr")(1,"th",13),k(2,"p-tableHeaderCheckbox"),a(),o(3,"th"),r(4,"Date"),a(),o(5,"th"),r(6,"Number"),a(),o(7,"th",14),r(8,"Debit SUM"),a(),o(9,"th",14),r(10,"Credit SUM"),a(),o(11,"th",14),r(12,"Difference"),a(),o(13,"th"),r(14,"Reference"),a(),o(15,"th"),r(16,"Tag"),a()())}function at(t,p){if(t&1&&(o(0,"tr")(1,"td"),k(2,"p-tableCheckbox",15),a(),o(3,"td"),r(4),v(5,"date"),a(),o(6,"td")(7,"a",16),r(8),a()(),o(9,"td",14),r(10),v(11,"number"),a(),o(12,"td",14),r(13),v(14,"number"),a(),o(15,"td",14),r(16),v(17,"number"),a(),o(18,"td")(19,"a",17),r(20),a()(),o(21,"td"),r(22),a()()),t&2){let e=p.$implicit,i=d(2);c(2),g("value",e),c(2),h(de(5,10,e.date,"dd MMM yyyy")),c(3),g("routerLink",se(19,tt,e.id)),c(),h(e.number),c(2),h(E(11,13,e.debitSum)),c(3),h(E(14,15,e.creditSum)),c(3),h(E(17,17,e.differences)),c(3),g("href",i.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+e.id,re),c(),h(e.referenceText),c(2),h(e.outletName)}}function rt(t,p){if(t&1&&r(0),t&2){let e=d(2);V(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function lt(t,p){t&1&&(o(0,"tr")(1,"td",18)(2,"span"),r(3,"No records found."),a()()())}function pt(t,p){if(t&1){let e=U();o(0,"p-panel")(1,"p-table",12),w("onPage",function(n){x(e);let l=d();return C(l.onPageChange(n))})("onRowSelect",function(n){x(e);let l=d();return C(l.onRowSelect(n))})("onRowUnselect",function(n){x(e);let l=d();return C(l.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){x(e);let l=d();return C(l.onHeaderCheckboxToggle(n))}),T(2,ot,17,0,"ng-template",null,3,_)(4,at,23,21,"ng-template",null,4,_)(6,rt,1,3,"ng-template",null,5,_)(8,lt,4,0,"ng-template",null,6,_),a()()}if(t&2){let e=d();M(R(7,et)),c(),g("value",e.store.data().data)("lazy",!0)("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().count)}}function mt(t,p){if(t&1&&(o(0,"form",19)(1,"div",20)(2,"label",21),r(3,"From - To"),a(),o(4,"div",22),k(5,"p-datepicker",23)(6,"p-datepicker",24),a()()()),t&2){let e=d();g("formGroup",e.form),c(5),g("iconDisplay","input")("showIcon",!0),c(),g("iconDisplay","input")("showIcon",!0)}}var ze=(()=>{class t{constructor(){this.store=f(te),this.toolsService=f(P),this.authService=f(be),this.fb=f(ye),this.isFilterVisible=ae(!1)}ngOnInit(){this.initForm(),this.toolsService.loadInitialUnbalanceJournal().subscribe({next:e=>{let i=e?.filter;i&&(this.store.updateFilter({PageNumber:i.pageNumber??this.store.filter().PageNumber,PageSize:i.pageSize??this.store.filter().PageSize,From:i.from??this.store.filter().From,To:i.to??this.store.filter().To,Number:i.numberSearch??this.store.filter().Number}),this.form&&this.form.patchValue({PageNumber:i.pageNumber??this.form.value.PageNumber,PageSize:i.pageSize??this.form.value.PageSize,from:i.from??this.form.value.from,to:i.to??this.form.value.to,number:i.numberSearch??this.form.value.number}))}})}initForm(){this.form=this.fb.group({PageNumber:this.fb.control(1),PageSize:this.fb.control(20),from:this.fb.control(null),to:this.fb.control(null),number:this.fb.control(null)}),this.form&&this.isFilterVisible.set(!0)}onPageChange(e){console.log("Page changed:",e);let i=e.first/e.rows;this.store.updateFilter({PageNumber:i+1})}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(i=>{this.store.onRowUnselect(i)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}regenerateUnbalanceJournal(){let i=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(i).subscribe()}onFilterOKEvent(){let{PageNumber:e,PageSize:i,from:n,to:l,number:u}=this.form.value;this.store.updateFilter({PageNumber:e??this.store.filter().PageNumber,PageSize:i??this.store.filter().PageSize,From:n??this.store.filter().From,To:l??this.store.filter().To,Number:u??this.store.filter().Number}),this.store.loadData(this.store.filter()),this.isFilterVisible.update(b=>!b)}onSearch(e){this.store.updateFilter({Number:e}),this.store.loadData(this.store.filter())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-unbalance-journal"]],features:[D([te])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal",3,"filterConfirmed","isDialogFilterVisibleChange","search","scrollable","isFilterable","isDialogFilterVisible","isSearchableInput"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],[2,"width","1rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"],[1,"d-flex","flex-column",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"]],template:function(i,n){if(i&1){let l=U();o(0,"app-main-panel",7),w("filterConfirmed",function(){return x(l),C(n.onFilterOKEvent())}),ce("isDialogFilterVisibleChange",function(b){return x(l),me(n.isFilterVisible,b)||(n.isFilterVisible=b),C(b)}),w("search",function(b){return x(l),C(n.onSearch(b))}),T(1,it,1,1,"ng-template",null,0,_)(3,pt,10,8,"ng-template",null,1,_)(5,mt,7,5,"ng-template",null,2,_),a()}i&2&&(g("scrollable",!0)("isFilterable",!0),pe("isDialogFilterVisible",n.isFilterVisible),g("isSearchableInput",!0))},dependencies:[q,Z,Y,Ie,Me,Ve,Ue,z,ue,J,fe,Pe,Te,Ce,Se,we,ve,A,O,H,j,ge,B,Fe,Re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var bn=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:Je},{path:"unbalance-journal",component:ze}];export{bn as TOOLS_ROUTES};
|
|
1
|
+
import{a as be}from"./chunk-XPKM4HTA.js";import{b as Ve}from"./chunk-5VKDAA74.js";import{m as xe}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as Q,b as X}from"./chunk-3VQUNDVT.js";import{b as Y,g as Ie,h as Me,i as Z}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as Re,b as Fe}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as Ne}from"./chunk-BT7Y4ADP.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import{b as ke}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as q}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{a as j,b as H}from"./chunk-ISIYG4D5.js";import{b as S,c as L,d as G,e as Ee,f as K,g as W}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{o as Ue,w as O,x as A}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as Ce,f as Se,k as Te,m as we,p as ve,v as ye,y as Pe}from"./chunk-MGIEURA2.js";import{e as B,l as ge}from"./chunk-DZCJWJUG.js";import"./chunk-DD3C4ZJK.js";import{a as he}from"./chunk-G3BJCT7T.js";import{a as _e}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{d as $}from"./chunk-KL3TPLRB.js";import{m as ue,r as fe,s as J,u as z}from"./chunk-DM2JLWKE.js";import{Dc as D,Eb as T,Ec as R,Fc as se,Ha as ae,Mb as g,Oc as v,Pb as M,Pc as E,Qc as de,Rb as le,Sc as _,Wb as o,Xb as a,Y as N,Yb as k,_ as ie,ac as U,bd as y,c as F,ca as oe,eb as re,fc as w,gc as d,ia as f,ib as c,qa as x,ra as C,s as ne,sc as r,tc as h,wc as V,xc as pe,yb as I,yc as me,zc as ce}from"./chunk-6QJHEOXN.js";import{a as m,b as s}from"./chunk-YQFG5XE2.js";var P=(()=>{class t{constructor(){this.httpService=f(he)}getGenerateCoa(e){let n={params:new $().set("PageNumber",e.PageNumber).set("PageSize",e.PageSize)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(e={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,e)}getUnbalanceJournal(e){let i=new $,n=(u,b)=>{b!=null&&b!==""&&(i=i.set(u,String(b)))};n("pageNumber",e.PageNumber),n("pageSize",e.PageSize),n("from",e.From),n("to",e.To),n("numberSearch",e.Number);let l=i.keys().length?{params:i}:{};return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal",l)}loadInitialUnbalanceJournal(){return this.httpService.get(void 0,"api/ToolsLoader/UnbalanceJurnal")}updateUnbalanceJournal(e){let i={ListID:e};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=oe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Be={filter:{PageNumber:1,PageSize:20},data:{data:[],count:0}},ee=L(W(Be),G(t=>({first:y(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:y(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().count))})),K(t=>{let p=f(P);return{updateFilter:i=>{S(t,n=>s(m({},n),{filter:m(m({},n.filter),i)}))},getUpdateCOA:Q(F(N(i=>p.getGenerateCoa(i).pipe(X({next:n=>{S(t,l=>s(m({},l),{data:n}))},error:n=>{console.error(n)}})))))}}),Ee({onInit(t){t.getUpdateCOA(t.filter)}}));var Le=()=>({height:"calc(100vh - 70px)"}),Ge=()=>({"min-width":"50rem"});function Ke(t,p){if(t&1){let e=U();o(0,"p-button",8),w("onClick",function(){x(e);let n=d(2);return C(n.updateCoaBalance())}),a()}}function We(t,p){if(t&1&&T(0,Ke,1,0,"p-button",7),t&2){let e=d();le(e.roleService.permissions().tools.edit?0:-1)}}function qe(t,p){t&1&&(o(0,"tr")(1,"th"),r(2,"Code"),a(),o(3,"th"),r(4,"Name"),a(),o(5,"th"),r(6,"Tag"),a(),o(7,"th",10),r(8,"COA Balance"),a(),o(9,"th",10),r(10,"Correct Balance"),a()())}function Qe(t,p){if(t&1&&(o(0,"tr")(1,"td"),r(2),a(),o(3,"td")(4,"a",11),r(5),a()(),o(6,"td"),r(7),a(),o(8,"td",10),r(9),v(10,"number"),a(),o(11,"td",10),r(12),v(13,"number"),a()()),t&2){let e=p.$implicit;c(2),h(e.Code),c(2),g("routerLink","/pages/chart-of-account/account/"+e.ID),c(),h(e.Name),c(2),h(e.OutletName),c(2),h(E(10,6,e.Balance)),c(3),h(E(13,8,e.CorrectBalance))}}function Xe(t,p){if(t&1&&(o(0,"div",12)(1,"p",13),r(2),a()()),t&2){let e=d(2);c(2),V(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function Ye(t,p){t&1&&(o(0,"tr")(1,"td",14)(2,"span"),r(3,"No records found."),a()()())}function Ze(t,p){if(t&1){let e=U();o(0,"p-panel")(1,"p-table",9),w("onPage",function(n){x(e);let l=d();return C(l.onPageChange(n))}),T(2,qe,11,0,"ng-template",null,2,_)(4,Qe,14,10,"ng-template",null,3,_)(6,Xe,3,3,"ng-template",null,4,_)(8,Ye,4,0,"ng-template",null,5,_),a()()}if(t&2){let e=d();M(R(8,Le)),c(),g("paginator",!0)("lazy",!0)("totalRecords",e.store.data().count)("rows",e.store.filter().PageSize)("value",e.store.data().data)("tableStyle",R(9,Ge))}}var Je=(()=>{class t{constructor(){this.store=f(ee),this.coaService=f(P),this.toastrService=f(_e),this.roleService=f(xe)}onPageChange(e){this.store.updateFilter(s(m({},this.store.filter()),{PageNumber:Math.floor(e.first/e.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(Ne("Update COA Balance"),ie(()=>{this.store.updateFilter(this.store.filter())})).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tools-update-coa"]],features:[D([ee])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Update COA Balance",3,"scrollable"],["label","Update"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","rows","value","tableStyle"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(i,n){i&1&&(o(0,"app-main-panel",6),T(1,We,1,1,"ng-template",null,0,_)(3,Ze,10,10,"ng-template",null,1,_),a()),i&2&&g("scrollable",!0)},dependencies:[q,Z,Y,ke,z,J,A,O,H,j,B],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit} .p-paginator .p-paginator-pages .p-paginator-page{font-size:14px}.custom-font-footer[_ngcontent-%COMP%]{font-size:.875rem}"],changeDetection:0})}}return t})();var $e={data:{count:0,data:[]},filter:{PageNumber:1,PageSize:20,From:"",To:"",Number:null}},te=L(W($e),G(t=>({first:y(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:y(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().count)),selectedItems:y(()=>t.data().data.filter(p=>p.checked)),hasCheckedRows:y(()=>t.data().data.some(p=>p.checked))})),K(t=>{let p=f(P);return{updateFilter(i){S(t,n=>s(m({},n),{filter:m(m({},n.filter),i)}))},onRowSelect(i){S(t,n=>{let l=n.data.data.map(u=>u.id===i.id?s(m({},u),{checked:!0}):u);return s(m({},n),{data:s(m({},n.data),{data:l})})})},onRowUnselect(i){S(t,n=>{let l=n.data.data.map(u=>u.id===i.id?s(m({},u),{checked:!1}):u);return s(m({},n),{data:s(m({},n.data),{data:l})})})},onHeaderCheckboxToggle(i){S(t,n=>{let l=n.data.data.map(u=>s(m({},u),{checked:i}));return s(m({},n),{data:s(m({},n.data),{data:l})})})},loadData:Q(F(N(i=>p.getUnbalanceJournal(i).pipe(ne(n=>s(m({},n),{data:n.data.map(l=>s(m({},l),{checked:!1}))})),X({next:n=>{S(t,l=>s(m({},l),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}));var et=()=>({height:"calc(100vh - 70px)"}),tt=t=>["/pages/journal/journal-entry",t];function nt(t,p){if(t&1){let e=U();o(0,"div",9),k(1,"p-button",10),o(2,"p-button",11),w("onClick",function(){x(e);let n=d(2);return C(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),a()()}}function it(t,p){if(t&1&&T(0,nt,4,0,"div",8),t&2){let e=d();g("ngIf",e.store.hasCheckedRows())}}function ot(t,p){t&1&&(o(0,"tr")(1,"th",13),k(2,"p-tableHeaderCheckbox"),a(),o(3,"th"),r(4,"Date"),a(),o(5,"th"),r(6,"Number"),a(),o(7,"th",14),r(8,"Debit SUM"),a(),o(9,"th",14),r(10,"Credit SUM"),a(),o(11,"th",14),r(12,"Difference"),a(),o(13,"th"),r(14,"Reference"),a(),o(15,"th"),r(16,"Tag"),a()())}function at(t,p){if(t&1&&(o(0,"tr")(1,"td"),k(2,"p-tableCheckbox",15),a(),o(3,"td"),r(4),v(5,"date"),a(),o(6,"td")(7,"a",16),r(8),a()(),o(9,"td",14),r(10),v(11,"number"),a(),o(12,"td",14),r(13),v(14,"number"),a(),o(15,"td",14),r(16),v(17,"number"),a(),o(18,"td")(19,"a",17),r(20),a()(),o(21,"td"),r(22),a()()),t&2){let e=p.$implicit,i=d(2);c(2),g("value",e),c(2),h(de(5,10,e.date,"dd MMM yyyy")),c(3),g("routerLink",se(19,tt,e.id)),c(),h(e.number),c(2),h(E(11,13,e.debitSum)),c(3),h(E(14,15,e.creditSum)),c(3),h(E(17,17,e.differences)),c(3),g("href",i.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+e.id,re),c(),h(e.referenceText),c(2),h(e.outletName)}}function rt(t,p){if(t&1&&r(0),t&2){let e=d(2);V(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function lt(t,p){t&1&&(o(0,"tr")(1,"td",18)(2,"span"),r(3,"No records found."),a()()())}function pt(t,p){if(t&1){let e=U();o(0,"p-panel")(1,"p-table",12),w("onPage",function(n){x(e);let l=d();return C(l.onPageChange(n))})("onRowSelect",function(n){x(e);let l=d();return C(l.onRowSelect(n))})("onRowUnselect",function(n){x(e);let l=d();return C(l.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){x(e);let l=d();return C(l.onHeaderCheckboxToggle(n))}),T(2,ot,17,0,"ng-template",null,3,_)(4,at,23,21,"ng-template",null,4,_)(6,rt,1,3,"ng-template",null,5,_)(8,lt,4,0,"ng-template",null,6,_),a()()}if(t&2){let e=d();M(R(7,et)),c(),g("value",e.store.data().data)("lazy",!0)("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().count)}}function mt(t,p){if(t&1&&(o(0,"form",19)(1,"div",20)(2,"label",21),r(3,"From - To"),a(),o(4,"div",22),k(5,"p-datepicker",23)(6,"p-datepicker",24),a()()()),t&2){let e=d();g("formGroup",e.form),c(5),g("iconDisplay","input")("showIcon",!0),c(),g("iconDisplay","input")("showIcon",!0)}}var ze=(()=>{class t{constructor(){this.store=f(te),this.toolsService=f(P),this.authService=f(be),this.fb=f(ye),this.isFilterVisible=ae(!1)}ngOnInit(){this.initForm(),this.toolsService.loadInitialUnbalanceJournal().subscribe({next:e=>{let i=e?.filter;i&&(this.store.updateFilter({PageNumber:i.pageNumber??this.store.filter().PageNumber,PageSize:i.pageSize??this.store.filter().PageSize,From:i.from??this.store.filter().From,To:i.to??this.store.filter().To,Number:i.numberSearch??this.store.filter().Number}),this.form&&this.form.patchValue({PageNumber:i.pageNumber??this.form.value.PageNumber,PageSize:i.pageSize??this.form.value.PageSize,from:i.from??this.form.value.from,to:i.to??this.form.value.to,number:i.numberSearch??this.form.value.number}))}})}initForm(){this.form=this.fb.group({PageNumber:this.fb.control(1),PageSize:this.fb.control(20),from:this.fb.control(null),to:this.fb.control(null),number:this.fb.control(null)}),this.form&&this.isFilterVisible.set(!0)}onPageChange(e){console.log("Page changed:",e);let i=e.first/e.rows;this.store.updateFilter({PageNumber:i+1})}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(i=>{this.store.onRowUnselect(i)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}regenerateUnbalanceJournal(){let i=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(i).subscribe()}onFilterOKEvent(){let{PageNumber:e,PageSize:i,from:n,to:l,number:u}=this.form.value;this.store.updateFilter({PageNumber:e??this.store.filter().PageNumber,PageSize:i??this.store.filter().PageSize,From:n??this.store.filter().From,To:l??this.store.filter().To,Number:u??this.store.filter().Number}),this.store.loadData(this.store.filter()),this.isFilterVisible.update(b=>!b)}onSearch(e){this.store.updateFilter({Number:e}),this.store.loadData(this.store.filter())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-unbalance-journal"]],features:[D([te])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal",3,"filterConfirmed","isDialogFilterVisibleChange","search","scrollable","isFilterable","isDialogFilterVisible","isSearchableInput"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],[2,"width","1rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"],[1,"d-flex","flex-column",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"]],template:function(i,n){if(i&1){let l=U();o(0,"app-main-panel",7),w("filterConfirmed",function(){return x(l),C(n.onFilterOKEvent())}),ce("isDialogFilterVisibleChange",function(b){return x(l),me(n.isFilterVisible,b)||(n.isFilterVisible=b),C(b)}),w("search",function(b){return x(l),C(n.onSearch(b))}),T(1,it,1,1,"ng-template",null,0,_)(3,pt,10,8,"ng-template",null,1,_)(5,mt,7,5,"ng-template",null,2,_),a()}i&2&&(g("scrollable",!0)("isFilterable",!0),pe("isDialogFilterVisible",n.isFilterVisible),g("isSearchableInput",!0))},dependencies:[q,Z,Y,Ie,Me,Ve,Ue,z,ue,J,fe,Pe,Te,Ce,Se,we,ve,A,O,H,j,ge,B,Fe,Re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var bn=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:Je},{path:"unbalance-journal",component:ze}];export{bn as TOOLS_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as I,b as k,c as F,d as j,e as R,f as O}from"./chunk-TAN6GLIH.js";import"./chunk-7L5IAWG2.js";import{a as E}from"./chunk-BT7Y4ADP.js";import{b as T}from"./chunk-II7KELI4.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import{i as w}from"./chunk-
|
|
1
|
+
import{a as I,b as k,c as F,d as j,e as R,f as O}from"./chunk-TAN6GLIH.js";import"./chunk-7L5IAWG2.js";import{a as E}from"./chunk-BT7Y4ADP.js";import{b as T}from"./chunk-II7KELI4.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import{i as w}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{a as S}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-DD3C4ZJK.js";import{a as P}from"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{u as M}from"./chunk-DM2JLWKE.js";import{Eb as h,Ec as _,Ha as u,Pb as v,Sb as m,Sc as C,Ub as c,Vb as s,Wb as o,Xb as r,_ as f,ca as d,gc as g,ia as l,ib as n,sc as p,tc as x,uc as y,yb as b}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var D=(()=>{class e{constructor(){this.httpService=l(P)}getUserProfile(){return this.httpService.get(void 0,"api/MyProfile")}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var A=()=>({height:"calc(100vh - 70px)"});function B(e,a){if(e&1&&(o(0,"div",10)(1,"div",11)(2,"p",12),p(3),r()()()),e&2){let t=a.$implicit;n(3),y(" ",t.roleName," ")}}function L(e,a){if(e&1&&(o(0,"div",4)(1,"div",5)(2,"div",6)(3,"span",7),p(4),r()()(),o(5,"div",8)(6,"div",9),c(7,B,4,1,"div",10,m),r()()()),e&2){let t=a.$implicit;n(4),x(t.roleGroupName),n(3),s(t.listRole)}}function $(e,a){if(e&1&&(o(0,"p-panel")(1,"p-tabs",2)(2,"p-tablist")(3,"p-tab",2),p(4,"Roles"),r()(),o(5,"p-tabpanels")(6,"p-tabpanel",2)(7,"div",3),c(8,L,9,1,"div",4,m),r()()()()()),e&2){let t,i=g();v(_(2,A)),n(8),s((t=i.roles())==null?null:t.Roles)}}var N=(()=>{class e{constructor(){this.profileService=l(D),this.roles=u(null)}ngOnInit(){this.profileService.getUserProfile().pipe(E("response"),f(t=>this.roles.set(t))).subscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=b({type:e,selectors:[["app-my-profile"]],decls:3,vars:0,consts:[["content",""],["pageTitle","My Profile"],["value","0"],["formArrayName","roles",1,"container-fluid","d-flex","flex-column","row-gap-3"],[1,"row"],[1,"col-2","border","d-flex","align-items-center","justify-content-between",2,"height","50px","background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100"],[1,"text-dark","fw-semibold","fs-2"],[1,"col"],["formArrayName","roles",1,"row","h-100"],[1,"col-3","border-top","border-bottom","border-end","p-0","bg-white"],[1,"d-flex","h-100","align-items-center","gap-2","px-2"],[1,"fs-2","text-dark","m-0"]],template:function(i,G){i&1&&(o(0,"app-main-panel",1),h(1,$,10,3,"ng-template",null,0,C),r())},dependencies:[w,S,O,R,j,F,I,k,M,T],styles:["[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding-top:0!important}"],changeDetection:0})}}return e})();var le=[{path:"",redirectTo:"my-profile",pathMatch:"full"},{path:"",children:[{path:"my-profile",component:N}]}];export{le as PROFILE_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D,b as le}from"./chunk-
|
|
1
|
+
import{a as D,b as le}from"./chunk-BAN4BZ4V.js";import"./chunk-AKHZNBCJ.js";import{m as H}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as ne,b as oe}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as U,b as X}from"./chunk-5U7KZJ3H.js";import{a as re,b as ae}from"./chunk-CN6AT4LE.js";import{b as ie}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as te}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{a as $,b as ee}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as Y,x as Z}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as q,j as K,x as Q}from"./chunk-MGIEURA2.js";import"./chunk-DD3C4ZJK.js";import"./chunk-G3BJCT7T.js";import{a as G}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as R,u as A}from"./chunk-DM2JLWKE.js";import{Dc as z,Eb as F,Ec as P,Ha as b,Mb as u,Oc as V,Pb as T,Pc as k,Rb as v,Sc as x,W,Wb as r,Xb as a,Y as I,Yb as w,_ as N,ac as _,fc as f,gc as s,h as B,ia as M,ib as m,qa as l,ra as p,s as S,sa as O,sc as C,ta as L,xc as c,yb as j,yc as g,zc as d}from"./chunk-6QJHEOXN.js";import{a as E}from"./chunk-YQFG5XE2.js";var pe=()=>({height:"calc(100vh - 100px)"});function me(i,h){if(i&1){let e=_();r(0,"p-button",7),f("onClick",function(){l(e);let t=s(2);return p(t.onFormat())}),a()}}function se(i,h){if(i&1){let e=_();r(0,"p-button",8),f("onClick",function(){l(e);let t=s(2);return p(t.openMigrateDialog())}),a()}}function ue(i,h){if(i&1&&(r(0,"div",4),F(1,me,1,0,"p-button",5)(2,se,1,0,"p-button",6),a()),i&2){let e=s();m(),v(e.roleService.permissions().migrate.delete?1:-1),m(),v(e.roleService.permissions().migrate.create?2:-1)}}function ce(i,h){if(i&1){let e=_();r(0,"div",9)(1,"div",10)(2,"label",11),C(3,"From"),a(),r(4,"p-datepicker",12),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().From,t)||(o.filter().From=t),p(t)}),a()(),r(5,"div",10)(6,"label",11),C(7,"To"),a(),r(8,"p-datepicker",12),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().To,t)||(o.filter().To=t),p(t)}),a()(),r(9,"div",10)(10,"label",11),C(11,"Page Number"),a(),r(12,"p-inputnumber",13),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().PageNumber,t)||(o.filter().PageNumber=t),p(t)}),a()(),r(13,"div",10)(14,"label",11),C(15,"Page Size"),a(),r(16,"p-inputnumber",13),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().PageSize,t)||(o.filter().PageSize=t),p(t)}),a()()()}if(i&2){let e=s();m(4),u("showIcon",!0),c("ngModel",e.filter().From),m(4),u("showIcon",!0),c("ngModel",e.filter().To),m(4),c("ngModel",e.filter().PageNumber),m(4),c("ngModel",e.filter().PageSize)}}function ge(i,h){if(i&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",14),w(3,"app-migration-cards",15),V(4,"async"),O(),r(5,"svg",16),w(6,"path",17),a(),L(),w(7,"app-migration-cards",18),V(8,"async"),a()()()),i&2){let e=s();T(P(12,pe)),m(),T(P(13,pe)),m(2),u("migrationCount",k(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),m(4),u("migrationCount",k(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var je=(()=>{class i{constructor(){this.migrateService=M(D),this.refresh$=new B(void 0),this.toastr=M(G),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null,this.roleService=M(H)}ngOnInit(){let e=this.refresh$.pipe(I(()=>this.migrateService.getManualJournalCount()),W(1));this.countInPOS$=e.pipe(S(n=>Number(n.pos))),this.countInBooks$=e.pipe(S(n=>Number(n.books)))}openMigrateDialog(){this.previousFilter=E({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(N(()=>{this.isFilterDialogOpen.update(e=>!e),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(n=>{this.refresh$.next(),this.toastr.success(n.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=j({type:i,selectors:[["app-manual-journal"]],features:[z([D])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create"],["label","Format","severity","danger",3,"onClick"],["label","Create",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(n,t){if(n&1){let o=_();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(o),p(t.onMigrate())}),d("isDialogFilterVisibleChange",function(y){return l(o),g(t.isFilterDialogOpen,y)||(t.isFilterDialogOpen=y),p(y)}),f("filterCanceled",function(){return l(o),p(t.onFilterCanceled())}),F(1,ue,3,2,"ng-template",null,0,x)(3,ce,17,6,"ng-template",null,1,x)(5,ge,9,14,"ng-template",null,2,x),a()}n&2&&(u("pageTitle",t.pageTitle),c("isDialogFilterVisible",t.isFilterDialogOpen))},dependencies:[te,A,R,ie,Z,Y,X,U,ee,$,le,oe,ne,Q,q,K,ae,re],encapsulation:2})}}return i})();export{je as ManualJournalComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as J}from"./chunk-
|
|
1
|
+
import{a as b,b as J}from"./chunk-BAN4BZ4V.js";import"./chunk-AKHZNBCJ.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as j,b as R}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-EXPUB774.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-DD3C4ZJK.js";import"./chunk-G3BJCT7T.js";import{a as O}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as E,u as I}from"./chunk-DM2JLWKE.js";import{Dc as F,Eb as _,Ec as S,Mb as l,Oc as s,Pb as y,Pc as m,Rb as h,Sc as T,W as k,Wb as o,Xb as n,Y as B,Yb as g,_ as P,ac as x,fc as v,gc as a,h as M,ia as c,ib as r,qa as f,ra as d,s as C,sa as w,ta as $,yb as A}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(t,u){if(t&1){let e=x();o(0,"p-button",6),v("onClick",function(){f(e);let p=a(2);return d(p.onFormatCOACategory())}),n()}}function U(t,u){if(t&1){let e=x();o(0,"p-button",7),s(1,"async"),s(2,"async"),v("onClick",function(){f(e);let p=a(2);return d(p.onMigrateCoaCategory())}),n()}if(t&2){let e=a(2);l("disabled",m(1,2,e.countInBooks$)!==0)("pTooltip",m(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(t,u){if(t&1&&(o(0,"div",3),_(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),n()),t&2){let e=a();r(),h(e.roleService.permissions().migrate.delete?1:-1),r(),h(e.roleService.permissions().migrate.create?2:-1)}}function X(t,u){if(t&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),g(3,"app-migration-cards",9),s(4,"async"),w(),o(5,"svg",10),g(6,"path",11),n(),$(),g(7,"app-migration-cards",12),s(8,"async"),n()()()),t&2){let e=a();y(S(12,K)),r(),y(S(13,K)),r(2),l("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),l("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=c(b),this.toastr=c(O),this.refresh$=new M(void 0),this.pageTitle="Chart of Account Category",this.roleService=c(V)}ngOnInit(){let e=this.refresh$.pipe(B(()=>this.migrateService.getCOACategoryCount()),P(i=>console.log("API response:",i)),k(1));this.countInPOS$=e.pipe(C(i=>Number(i.pos))),this.countInBooks$=e.pipe(C(i=>Number(i.books)))}onMigrateCoaCategory(){this.migrateService.migrateCoaCategory().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormatCOACategory(){confirm("Are you sure you want to format?")&&this.migrateService.formatManualCOACategory().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-coa-configuration"]],features:[F([b])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,p){i&1&&(o(0,"app-main-panel",2),_(1,W,3,2,"ng-template",null,0,T)(3,X,9,14,"ng-template",null,1,T),n()),i&2&&l("pageTitle",p.pageTitle)},dependencies:[z,I,E,N,D,R,j,H,G,q,L,J],encapsulation:2})}}return t})();export{_e as CoaCategoryComponent};
|