dealposbooks 5.34.1 → 5.36.0
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-KL455HIW.js → chunk-2RLNYYQR.js} +1 -1
- package/{chunk-GDXGKHOL.js → chunk-3D3GRYF3.js} +1 -1
- package/{chunk-6NTWTJMB.js → chunk-4CNNMBJW.js} +1 -1
- package/{chunk-XFEO3TKF.js → chunk-5IQ6TGNN.js} +1 -1
- package/chunk-5SIB7PEU.js +129 -0
- package/{chunk-YEUGY3NM.js → chunk-6UA2VGP4.js} +1 -1
- package/{chunk-5MWVNA7L.js → chunk-6WEZS6IX.js} +1 -1
- package/{chunk-J7NE4FZG.js → chunk-74BKLSFH.js} +1 -1
- package/{chunk-BBQJC5RS.js → chunk-7C3I4R2I.js} +1 -1
- package/{chunk-MXNRSORU.js → chunk-7CHVAZTI.js} +1 -1
- package/{chunk-WSOH6CXK.js → chunk-7HTH3SFF.js} +1 -1
- package/chunk-A5HAJEPC.js +1 -0
- package/{chunk-XMMQFUBI.js → chunk-AMANMDZU.js} +1 -1
- package/{chunk-WURLP7FN.js → chunk-ANCPMGSL.js} +1 -1
- package/chunk-AUF6ZNSG.js +160 -0
- package/{chunk-HIPJS62A.js → chunk-B54WGNWI.js} +1 -1
- package/{chunk-JF4X2NRA.js → chunk-BAH2FNAN.js} +1 -1
- package/{chunk-2YCI2ZLH.js → chunk-CGK3QRS6.js} +1 -1
- package/{chunk-BG6PUELE.js → chunk-CUVEPFZP.js} +1 -1
- package/{chunk-HJU5H3BY.js → chunk-DG42ZBO4.js} +1 -1
- package/{chunk-LGRJSELQ.js → chunk-DHTMHV6T.js} +1 -1
- package/{chunk-ED5LANRC.js → chunk-EPJW6GIY.js} +1 -1
- package/{chunk-NUTKQRB6.js → chunk-F3JN6BPV.js} +1 -1
- package/{chunk-HO4P24NF.js → chunk-FZ7YN3KE.js} +1 -1
- package/{chunk-XSPQTUYD.js → chunk-GAN5PRIS.js} +1 -1
- package/{chunk-6XMT5N3G.js → chunk-GMSTFECE.js} +1 -1
- package/{chunk-U2LBDVNR.js → chunk-L3OMRCAX.js} +1 -1
- package/chunk-L4XMRLHM.js +1 -0
- package/{chunk-GGVVJNM3.js → chunk-M2HJCLEP.js} +1 -1
- package/chunk-MSW4JBUU.js +7 -0
- package/{chunk-IICRNXZ2.js → chunk-NU67ULMO.js} +1 -1
- package/{chunk-YDTKSUC7.js → chunk-O2K45NCM.js} +1 -1
- package/{chunk-4WMH4AEV.js → chunk-O3K2CNOY.js} +1 -1
- package/{chunk-NMVZFOQ7.js → chunk-OVQDITWG.js} +1 -1
- package/{chunk-NXXA2OTE.js → chunk-P4OK4B27.js} +1 -1
- package/{chunk-Y5C5TOKB.js → chunk-PAWHO2BN.js} +1 -1
- package/{chunk-UW2MQD5Q.js → chunk-RC2E4TKB.js} +1 -1
- package/{chunk-FIK2YCVV.js → chunk-RO3TPZFM.js} +1 -1
- package/chunk-SMZ363LC.js +1 -0
- package/{chunk-5E7SENLI.js → chunk-T43HOKPK.js} +1 -1
- package/chunk-TYMCW3J6.js +1 -0
- package/{chunk-VS7EWHRJ.js → chunk-UUMZZMTS.js} +1 -1
- package/{chunk-QZUCPIZP.js → chunk-V4KVFLMH.js} +1 -1
- package/{chunk-E7RUVUID.js → chunk-VFC5APMC.js} +1 -1
- package/{chunk-ID36VIZQ.js → chunk-VIJVOI6Y.js} +1 -1
- package/{chunk-PVXR4USB.js → chunk-W7U7YCR2.js} +1 -1
- package/{chunk-TF5WKDAX.js → chunk-WGJIBSIS.js} +1 -1
- package/{chunk-6OLVNISY.js → chunk-WJL3LNRF.js} +1 -1
- package/{chunk-MQDQSWR6.js → chunk-Y46HDVD4.js} +1 -1
- package/{chunk-NEXPS7KD.js → chunk-Z545HOL6.js} +1 -1
- package/index.html +2 -2
- package/{main-JOMQDR5F.js → main-M6EX446M.js} +1 -1
- package/package.json +1 -1
- package/chunk-2NODLQR6.js +0 -1
- package/chunk-4QYZNOBR.js +0 -160
- package/chunk-6DNEPPVS.js +0 -129
- package/chunk-BHV2HCJY.js +0 -1
- package/chunk-OGLSZ3RG.js +0 -1
- package/chunk-YL2UL62U.js +0 -7
package/chunk-YL2UL62U.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as we,b as Te}from"./chunk-AACWH3EJ.js";import{a as jt,b as De}from"./chunk-YEUGY3NM.js";import{a as je}from"./chunk-NEXPS7KD.js";import{b as $e,c as Xe,d as Pt}from"./chunk-5XDCBC5Q.js";import{a as xe,b as he}from"./chunk-YYVQS5LF.js";import"./chunk-FLZXCWDU.js";import{b as Ye}from"./chunk-Q23KXB3T.js";import"./chunk-DHW7UHFT.js";import{a as be}from"./chunk-BY6QUHQI.js";import"./chunk-C2GO6SPF.js";import{a as N,b as H}from"./chunk-O4QM64EH.js";import{a as Ke,b as Ue,d as fe,k as ge}from"./chunk-SVXDMOLP.js";import{a as ue,b as _e}from"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import{a as Gt}from"./chunk-NMVZFOQ7.js";import{a as Me}from"./chunk-XKCLERWG.js";import{b as ve}from"./chunk-H57SDRPH.js";import"./chunk-GDX5XEV3.js";import{a as Ot,b as Ee}from"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import{d as He}from"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{b as de}from"./chunk-4CDAAU6Z.js";import{f as ze,h as ce}from"./chunk-WSOH6CXK.js";import"./chunk-X22YKT5B.js";import{a as qe,b as le}from"./chunk-JYCUE5HV.js";import{a as F,b as ae,c as Ie,d as pe,e as me,f as se,g as We}from"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import{w as oe,x as re}from"./chunk-5FSMHZSY.js";import"./chunk-BHV2HCJY.js";import{e as J,f as Z,g as At,i as T,k as ee,l as te,o as ie,u as Ne,x as ne}from"./chunk-G5S5AZA7.js";import{b as Vt,e as X,l as Q}from"./chunk-Z45NTTES.js";import{a as Bt}from"./chunk-JF4X2NRA.js";import{a as kt}from"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{k as U,p as Pe,q as Y,r as $,x as Lt,y as Mt}from"./chunk-OKCHQM5Q.js";import{Ab as Ae,Ac as R,Bc as Rt,Cb as x,D as ye,Ga as B,Jc as C,Kb as s,Kc as y,L as It,Lc as Ge,Mc as d,Pb as P,Qb as Re,Sb as Fe,Tb as Le,Ub as n,V as Et,Vb as i,W as Dt,Wb as E,X as O,Yc as V,Z as G,Zc as Ft,_b as D,ba as wt,bb as ke,c as A,cb as Be,dc as I,ec as c,gb as a,ha as b,hc as Oe,mb as W,pa as h,qa as S,qc as r,rc as _,s as bt,sc as w,ta as Ve,vc as q,wb as M,wc as j,xc as z,yb as Tt,yc as K,zc as L}from"./chunk-JP6RBSB3.js";import{a as g,b as v,c as it,e as vt}from"./chunk-YQFG5XE2.js";var k=(()=>{class t{constructor(){this.httpService=b(Bt),this.authService=b(je)}fetchGeneralLedgerLoader(){return this.httpService.get(void 0,"api/GeneralLedgerLoader/GetFilter")}fetchGeneralLedgerReport(e,o="single"){return this.httpService.post(void 0,`api/GeneralLedger/${o==="single"?"GetSingle":"Get"}`,e)}exportGeneralLedger(e,o={}){let l=g({responseType:"blob"},o);return this.httpService.post(void 0,"/api/GeneralLedgerExport/GetGeneralLedgerExport",e,l)}getCustomerSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:o})}getSupplierSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:o})}getCashierSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:o})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(e,o={}){let l=new Mt({fromObject:Object.fromEntries(Object.entries(e).map(([u,Ce])=>[u,String(Ce)]))}),m=new Lt({"X-Timeout":"50000","X-Retry":"3","X-Retry-Delay":"2000","X-Exponential-Backoff":"true","X-Retry-On-500":"true","X-Retry-On-500-Message":"timeout expired"}),f=g({params:l,headers:m},o);return this.httpService.get(void 0,"/api/BalanceSheet",f)}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(e,o={}){return this.httpService.post(void 0,"api/IncomeStatement/List",g({},e),o)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=wt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zt={metadata:{filter:{listAccountID:[],from:null,to:null,listOutletID:[],listCategoryID:[],contactType:0,contactID:"",accountID:"",sortAscending:!1},options:{accounts:[],outlets:[],contactTypeOptions:[]},roles:{isInEmptyOutletRole:!1}},items:null,filter:{accountID:"",listAccountID:[],from:null,to:null,listOutletID:[],listCategoryID:[],contactType:1,contactID:null,sortAscending:!1}},nt=ae(se(Zt),We("General Ledger Store"),me(t=>{let p=b(k),e={updateFilter:o=>{F(t,l=>v(g({},l),{filter:o}))},loadList:N(A(ye(o=>o.accountID.length>0),O(o=>p.fetchGeneralLedgerReport(o).pipe(H({next:l=>{F(t,m=>v(g({},m),{items:l}))},error:l=>{console.error(l)}}))))),loadLoader:N(A(O(()=>p.fetchGeneralLedgerLoader().pipe(H({next:o=>{F(t,l=>v(g({},l),{metadata:o,filter:v(g({},l.filter),{listCategoryID:o.filter.listCategoryID})})),e.loadList(t.filter)},error:o=>{console.error(o)}})))))};return e}),pe({onInit:t=>{t.loadLoader()}}));var Ze=(()=>{class t{constructor(e,o,l,m,f,u,Ce,et){this.reportService=e,this.coaService=o,this.authService=l,this.roleService=m,this.dayjsService=f,this.fb=u,this.toastr=Ce,this.route=et,this.dialogFilterVisible=B(!1),this.initDialogVisible=B(!0),this.categoriesOptions=B([]),this.customerSuggestions=B([]),this.supplierSuggestions=B([])}ngOnInit(){this.generateFilterForm(),this.listenQueryParams(),this.clearContactValueOnContactTypeChange(),this.handleFormValueChanges()}listenQueryParams(){this.route.queryParamMap.pipe(bt(e=>({id:e.get("id"),to:e.get("to")})),G(({id:e,to:o})=>{(e||o)&&(this.initDialogVisible.update(l=>!l),this.ledgerAccountType==="single"?(this.generalLedgerFilterForm.patchValue({accountID:e??null,from:null,to:o?this.dayjsService.from(o)?.toDate():this.dayjsService.now.toDate()}),this.store.updateFilter(v(g({},this.store.filter()),{accountID:e??null,from:null,to:o?this.dayjsService.format(o):this.dayjsService.format(this.dayjsService.now.toDate())}))):(this.generalLedgerFilterForm.patchValue({listAccountID:e?[e]:[],from:null,to:o?this.dayjsService.from(o)?.toDate():this.dayjsService.now.toDate()}),this.store.updateFilter(v(g({},this.store.filter()),{listAccountID:e?[e]:[],from:null,to:o?this.dayjsService.format(o):this.dayjsService.format(this.dayjsService.now.toDate())}))))})).subscribe()}clearContactValueOnContactTypeChange(){this.generalLedgerFilterForm.get("contactType")?.valueChanges.subscribe(()=>this.generalLedgerFilterForm.get("contactID")?.setValue(""))}handleFormValueChanges(){this.generalLedgerFilterForm.valueChanges.pipe(It(500),G(e=>{Array.isArray(e.listAccountID)&&e.listAccountID.length>0?this.generalLedgerFilterForm.controls.listCategoryID.disable():this.generalLedgerFilterForm.controls.listCategoryID.enable(),e.listCategoryID?.some(o=>o.key)?this.generalLedgerFilterForm.controls.listAccountID.disable():this.generalLedgerFilterForm.controls.listAccountID.enable()})).subscribe()}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(G(e=>this.categoriesOptions.set(e))).subscribe()}onFilterOKEvent(){let f=this.generalLedgerFilterForm.value,{from:e,to:o}=f,l=it(f,["from","to"]);if(this.generalLedgerFilterForm.invalid){this.generalLedgerFilterForm.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let m={sortAscending:l.sortAscending,accountID:l.accountID,listCategoryID:l.listCategoryID?.map(u=>u.key)??[],contactID:l.contactID?.length===0?null:l.contactID,listOutletID:l.listOutletID??[],listAccountID:l.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(o)?this.dayjsService.format(o):null,contactType:l.contactType};this.dialogFilterVisible.update(u=>!u),this.store.updateFilter(m),this.dialogFilterVisible.set(!1)}onExport(){let f=this.generalLedgerFilterForm.value,{from:e,to:o}=f,l=it(f,["from","to"]),m={sortAscending:l.sortAscending,accountID:this.ledgerAccountType==="single"?l.accountID:null,listCategoryID:l.listCategoryID?.map(u=>u.key)??[],contactID:l.contactID?.length===0?null:l.contactID,listOutletID:l.listOutletID??[],listAccountID:l.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(o)?this.dayjsService.format(o):null,contactType:l.contactType};this.reportService.exportGeneralLedger(m,{responseType:"blob",observe:"response"}).pipe(G(u=>{let Ce=u.headers;console.log("All headers:",Ce.keys());let et=Ce.get("Content-Disposition"),Qt=Ce.get("content-disposition"),St=et??Qt,Ct="download.csv";if(St){let tt=St.match(/filename\*?=(?:UTF-8'')?"?([^;\r\n"]+)/i);tt&&tt[1]&&(Ct=decodeURIComponent(tt[1].replace(/"/g,"")))}let yt=u.body;Pt(yt,Ct,yt.type)})).subscribe()}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(G(o=>this.customerSuggestions.set(o))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(G(o=>this.supplierSuggestions.set(o))).subscribe()}onAccountChange(e){Array.isArray(e.value)&&e.value.length>=this.selectionLimit&&this.toastr.warning(`Please select at least ${this.selectionLimit} accounts for the general ledger report.`,"Warning")}static{this.\u0275fac=function(o){return new(o||t)(W(k),W(Gt),W(je),W(be),W(De),W(Ne),W(kt),W(Vt))}}static{this.\u0275dir=Tt({type:t})}}return t})();var ii=t=>["/pages/journal/journal-entry/",t],ni=()=>({scrollHeight:"250px"});function oi(t,p){if(t&1){let e=D();n(0,"p-button",13),I("onClick",function(){h(e);let l=c(2);return S(l.onExport())}),i()}}function ri(t,p){if(t&1&&(n(0,"div",10)(1,"a",11),r(2,"Return to Accounts"),i(),x(3,oi,1,0,"p-button",12),i()),t&2){let e=c();a(3),s("ngIf",e.roleService.global.export)}}function li(t,p){t&1&&(n(0,"tr")(1,"th",17),r(2,"Outlet"),i(),n(3,"th",17),r(4,"No."),i(),n(5,"th",17),r(6,"Date"),i(),n(7,"th"),r(8,"Contact / Note"),i(),n(9,"th",18),r(10,"Debit"),i(),n(11,"th",19),r(12,"Credit"),i(),n(13,"th",19),r(14,"Balance"),i()())}function ai(t,p){if(t&1&&(n(0,"tr")(1,"td",20),r(2),i(),n(3,"td",20)(4,"a",21),r(5),i()(),n(6,"td",20),r(7),C(8,"date"),i(),n(9,"td",20)(10,"div",22)(11,"a",23),r(12),i(),E(13,"div",24),i()(),n(14,"td",25),r(15),C(16,"number"),i(),n(17,"td",25),r(18),C(19,"number"),i(),n(20,"td",25),r(21),C(22,"number"),i()()),t&2){let e=p.$implicit,o=c(3);a(2),_(e.outletName),a(2),s("routerLink",R(19,ii,e.id)),a(),_(e.number),a(2),_(Ge(8,10,e.date,"dd MMM yyyy")),a(4),s("href",o.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,Be),a(),_(e.contactName),a(),s("innerHTML",e.journalNote,ke),a(2),w(" ",y(16,13,e.debitAmount)," "),a(3),w(" ",y(19,15,e.creditAmount)," "),a(3),_(y(22,17,e.balance))}}function pi(t,p){if(t&1&&(n(0,"tr"),E(1,"td",26),n(2,"td",27),r(3,"Total"),i(),n(4,"td",27),r(5),C(6,"number"),i(),n(7,"td",27),r(8),C(9,"number"),i(),E(10,"td"),i()),t&2){let e=c(3);a(5),w(" ",y(6,2,e.store.items().data.debitTotal)," "),a(3),w(" ",y(9,4,e.store.items().data.creditTotal)," ")}}function mi(t,p){t&1&&(n(0,"tr")(1,"td",28)(2,"span"),r(3,"No records found."),i()()())}function si(t,p){if(t&1&&(n(0,"div",15)(1,"p-table",16),x(2,li,15,0,"ng-template",null,3,d)(4,ai,23,21,"ng-template",null,4,d)(6,pi,11,6,"ng-template",null,5,d)(8,mi,4,0,"ng-template",null,6,d),i()()),t&2){let e=c(2);a(),s("value",e.store.items().data.data)}}function ci(t,p){if(t&1&&x(0,si,10,1,"div",14),t&2){let e=c();s("ngIf",e.store.items()&&e.store.items().data)}}function di(t,p){if(t&1&&(n(0,"div",10)(1,"div",46)(2,"span",47),r(3),i()(),n(4,"div")(5,"span"),r(6,"-"),i()(),n(7,"div",46)(8,"span",48),r(9),i()()()),t&2){let e=p.$implicit;a(3),w("(",e.code,")"),a(6),_(e.name)}}function ui(t,p){if(t&1&&(n(0,"div",10)(1,"div",46)(2,"span",47),r(3),i()(),n(4,"div")(5,"span"),r(6,"-"),i()(),n(7,"div",46)(8,"span",48),r(9),i()()()),t&2){let e=p.$implicit;a(3),w("(",e.code,")"),a(6),_(e.name)}}function _i(t,p){if(t&1&&(n(0,"div",49)(1,"div"),r(2),i()()),t&2){let e=p.$implicit;a(2),_(e.value)}}function fi(t,p){if(t&1&&(n(0,"div",39)(1,"div",40),E(2,"p-radiobutton",50),n(3,"label",51),r(4),i()()()),t&2){let e=p.$implicit;a(2),s("value",e.key)("inputId",e.key),a(),Oe("for",e.key),a(),_(e.value)}}function gi(t,p){if(t&1){let e=D();n(0,"div",22)(1,"label",30),r(2,"Customer"),i(),n(3,"p-autocomplete",52),I("completeMethod",function(l){h(e);let m=c(2);return S(m.searchCustomer(l))}),i()()}if(t&2){let e=c(2);a(3),s("suggestions",e.customerSuggestions())}}function xi(t,p){if(t&1){let e=D();n(0,"div",22)(1,"label",30),r(2,"Supplier"),i(),n(3,"p-autocomplete",53),I("completeMethod",function(l){h(e);let m=c(2);return S(m.searchSupplier(l))}),i()()}if(t&2){let e=c(2);a(3),s("suggestions",e.supplierSuggestions())}}function hi(t,p){if(t&1){let e=D();n(0,"div",22)(1,"label",30),r(2,"Customer"),i(),n(3,"p-autocomplete",52),I("completeMethod",function(l){h(e);let m=c(2);return S(m.searchCustomer(l))}),i()()}if(t&2){let e=c(2);a(3),s("suggestions",e.customerSuggestions())}}function Si(t,p){if(t&1){let e=D();n(0,"form",29)(1,"div",22)(2,"label",30),r(3,"Accounts"),i(),n(4,"p-select",31),x(5,di,10,2,"ng-template",null,7,d)(7,ui,10,2,"ng-template",null,8,d),i()(),n(9,"div",22)(10,"label",30),r(11,"From - To"),i(),n(12,"div",32),E(13,"p-datepicker",33)(14,"p-datepicker",34),i()(),n(15,"div",22)(16,"label",30),r(17,"Outlets"),i(),n(18,"p-multiselect",35),x(19,_i,3,1,"ng-template",null,8,d),i()(),n(21,"div",22)(22,"label",30),r(23,"Category"),i(),n(24,"p-treeselect",36),I("onFocus",function(){h(e);let l=c();return S(l.onCategoryFocus())}),i()(),n(25,"div",22)(26,"label",37),r(27,"Contact Type"),i(),n(28,"div",38),Fe(29,fi,5,4,"div",39,Re),i()(),n(31,"div",22)(32,"label",37),r(33,"Sort order"),i(),n(34,"div",38)(35,"div",39)(36,"div",40),E(37,"p-radiobutton",41),n(38,"label",42),r(39,"Asc"),i()()(),n(40,"div",43)(41,"div",40),E(42,"p-radiobutton",44),n(43,"label",45),r(44,"Desc"),i()()()()(),x(45,gi,4,1,"div",22)(46,xi,4,1,"div",22)(47,hi,4,1,"div",22),i()}if(t&2){let e,o=c();s("formGroup",o.generalLedgerFilterForm),a(4),s("options",o.store.metadata().options.accounts),a(9),s("iconDisplay","input")("showIcon",!0),a(),s("iconDisplay","input")("showIcon",!0),a(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",o.store.metadata().options.outlets),a(6),s("metaKeySelection",!1)("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",L(17,ni))("options",o.categoriesOptions()),a(5),Le(o.store.metadata().options.contactTypeOptions),a(8),s("value",!0),a(5),s("value",!1),a(3),P((e=o.generalLedgerFilterForm.controls.contactType.value)===1?45:e===2?46:47)}}var Ht=(()=>{class t extends Ze{constructor(){super(...arguments),this.selectionLimit=1,this.store=b(nt),this.ledgerAccountType="single"}onAccountChange(e){Array.isArray(e.value)&&e.value.length>=this.selectionLimit&&this.toastr.warning(`Please select at least ${this.selectionLimit} accounts for the general ledger report.`,"Warning")}get pageTitle(){return this.store.items()&&this.store.items().pageTitle?this.store.items().pageTitle:"General Ledger"}generateFilterForm(){this.generalLedgerFilterForm=this.fb.group({sortAscending:this.fb.control(!1),accountID:this.fb.control(""),listAccountID:new T([]),listCategoryID:new T([]),listOutletID:new T([]),contactID:new T(""),from:new T(null),to:new T(null),contactType:new T(1)})}static{this.\u0275fac=(()=>{let e;return function(l){return(e||(e=Ve(t)))(l||t)}})()}static{this.\u0275cmp=M({type:t,selectors:[["app-report-general-ledger"]],features:[K([nt]),Ae],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible","scrollable"],[1,"d-flex","gap-2"],["routerLink","/pages/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined","fs-3"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],["class","px-3 py-3 bg-white border-top",4,"ngIf"],[1,"px-3","py-3","bg-white","border-top"],[3,"value"],[2,"width","10%"],[1,"text-end",2,"width","10%"],[1,"text-end",2,"width","20%"],[1,"text-break"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"d-flex","flex-column"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[1,"text-end","text-break"],["colspan","3"],[1,"text-end","fw-semibold"],["colspan","8"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],["for","outlet"],["dataKey","id","showClear","","filter","","filterBy","code,name","formControlName","accountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"options"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","display","chip","formControlName","listOutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","display","chip","selectionMode","multiple","filter","","filterBy","label","formControlName","listCategoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","id","placeholder","Select Category",3,"onFocus","metaKeySelection","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],["for",""],[1,"row"],[1,"col-4"],[1,"d-flex","align-items-center","gap-2"],["name","sortAscending","formControlName","sortAscending","inputId","asc",3,"value"],["for","asc",1,"m-0"],[1,"col-3"],["name","sortAscending","formControlName","sortAscending","inputId","desc",3,"value"],["for","desc",1,"m-0"],[1,""],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"flex","items-center","gap-2"],["name","contactType","formControlName","contactType",3,"value","inputId"],[1,"m-0",3,"for"],["formControlName","contactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"]],template:function(o,l){if(o&1){let m=D();n(0,"app-main-panel",9),z("isDialogFilterVisibleChange",function(u){return h(m),j(l.dialogFilterVisible,u)||(l.dialogFilterVisible=u),S(u)})("isInitDialogFilterVisibleChange",function(u){return h(m),j(l.initDialogVisible,u)||(l.initDialogVisible=u),S(u)}),I("filterConfirmed",function(){return h(m),S(l.onFilterOKEvent())}),x(1,ri,4,1,"ng-template",null,0,d)(3,ci,1,1,"ng-template",null,1,d)(5,Si,48,18,"ng-template",null,2,d),i()}o&2&&(s("pageTitle",l.pageTitle),q("isDialogFilterVisible",l.dialogFilterVisible),s("isFilterable",!0),q("isInitDialogFilterVisible",l.initDialogVisible),s("scrollable",!0))},dependencies:[ce,$,U,Y,Pe,de,ge,fe,ze,re,oe,Ee,Ot,_e,ue,Te,we,ne,ee,J,Z,te,ie,he,xe,ve,He,Xe,$e,Ye,le,Q,X,Ue,Ke],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{padding:.75rem 1rem .75rem 0}"],changeDetection:0})}}return t})();var Ci={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{from:"",to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},mt=ae(se(Ci),Ie(t=>{let p={totalCOGS:V(()=>{let e=t.data()?.data?.cogs;return Array.isArray(e)?e.reduce((o,l)=>o+(l?.amount??0),0):0}),totalRevenue:V(()=>{let e=t.data()?.data?.revenue;return Array.isArray(e)?e.reduce((o,l)=>o+(l?.amount??0),0):0}),totalExpense:V(()=>{let e=t.data()?.data?.expense;return Array.isArray(e)?e.reduce((o,l)=>o+(l?.amount??0),0):0}),grossProfit:V(()=>Array.isArray(t.data()?.data?.cogs)&&Array.isArray(t.data()?.data?.revenue)?p.totalRevenue()-p.totalCOGS():0),profitOrLoss:V(()=>p.totalRevenue()-p.totalCOGS()-p.totalExpense()),isDataEmpty:V(()=>Object.keys(t.data()?.data??{}).length===0)};return p}),me(t=>{let p=b(k),e=b(De),o={updateFilter(l){F(t,m=>v(g({},m),{filter:g(g({},m.filter),l)}))},getLoader:N(A(O(()=>p.getIncomeStatementLoader().pipe(H({next:l=>{F(t,m=>v(g({},m),{loader:l,filter:v(g({},m.filter),{from:e.from(l.filter.from).format(),to:e.from(l.filter.to).format()})})),o.getIncomeStatement(t.filter)},error:l=>{console.error(l)}}))))),getIncomeStatement:N(A(O(l=>p.getIncomeStatement(l).pipe(Dt(()=>F(t,m=>v(g({},m),{isLoading:!0}))),H({next:m=>{F(t,f=>v(g({},f),{data:m,isLoading:!1}))},error:m=>{console.error(m)}})))))};return o}),pe({onInit:t=>{t.getLoader()}}));var st=()=>({}),ct=t=>["/pages/chart-of-account/account/",t],dt=()=>["/pages/report/general-ledger"],ut=t=>({id:t});function vi(t,p){if(t&1){let e=D();n(0,"p-button",10),I("onClick",function(){h(e);let l=c(2);return S(l.onExport())}),i()}}function bi(t,p){if(t&1&&(n(0,"div",8),x(1,vi,1,0,"p-button",9),i()),t&2){let e=c();a(),s("ngIf",e.roleService.global.export)}}function Ii(t,p){t&1&&(n(0,"tr")(1,"th",14),r(2,"Code"),i(),n(3,"th",15),r(4,"Name"),i(),n(5,"th",16),r(6,"Total"),i()())}function Ei(t,p){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td")(4,"a",17),r(5),i()(),n(6,"td",16)(7,"a",18),r(8),C(9,"number"),i()()()),t&2){let e=p.$implicit;a(2),_(e.code),a(2),s("routerLink",R(8,ct,e.accountID)),a(),_(e.name),a(2),s("routerLink",L(10,dt))("queryParams",R(11,ut,e.accountID)),a(),_(y(9,6,e.amount))}}function Di(t,p){if(t&1&&(n(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),r(4,"Total Revenue :"),i(),n(5,"span",22),r(6),C(7,"number"),i()()()()),t&2){let e=c(3);a(6),_(y(7,1,e.store.totalRevenue()))}}function wi(t,p){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),r(3,"No revenue records available"),i()()())}function Ti(t,p){if(t&1&&(n(0,"h6",12),r(1,"Revenue"),i(),n(2,"p-table",13),x(3,Ii,7,0,"ng-template",null,3,d)(5,Ei,10,13,"ng-template",null,4,d)(7,Di,8,3,"ng-template",null,5,d)(9,wi,4,0,"ng-template",null,6,d),i()),t&2){let e,o=c(2);a(2),s("value",(e=o.store.data())==null||e.data==null?null:e.data.revenue)}}function Ri(t,p){t&1&&(n(0,"tr")(1,"th",14),r(2,"Code"),i(),n(3,"th",15),r(4,"Name"),i(),n(5,"th",24),r(6,"Total"),i()())}function Fi(t,p){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td")(4,"a",17),r(5),i()(),n(6,"td",16)(7,"a",18),r(8),C(9,"number"),i()()()),t&2){let e=p.$implicit;a(2),_(e.code),a(2),s("routerLink",R(8,ct,e.accountID)),a(),_(e.name),a(2),s("routerLink",L(10,dt))("queryParams",R(11,ut,e.AccountID)),a(),_(y(9,6,e.amount))}}function Li(t,p){if(t&1&&(n(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),r(4,"Total COGS :"),i(),n(5,"span",22),r(6),C(7,"number"),i()()()(),n(8,"tr")(9,"td",19)(10,"div",20)(11,"span",21),r(12,"Gross Profit :"),i(),n(13,"span",22),r(14),C(15,"number"),i()()()()),t&2){let e=c(3);a(6),_(y(7,2,e.store.totalCOGS())),a(8),_(y(15,4,e.store.grossProfit()))}}function Mi(t,p){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),r(3,"No COGS records available"),i()()())}function Vi(t,p){if(t&1&&(n(0,"h4",12),r(1,"COGS"),i(),n(2,"p-table",13),x(3,Ri,7,0,"ng-template",null,3,d)(5,Fi,10,13,"ng-template",null,4,d)(7,Li,16,6,"ng-template",null,5,d)(9,Mi,4,0,"ng-template",null,6,d),i()),t&2){let e,o=c(2);a(2),s("value",(e=o.store.data())==null||e.data==null?null:e.data.cogs)}}function ki(t,p){t&1&&(n(0,"tr")(1,"th",14),r(2,"Code"),i(),n(3,"th",15),r(4,"Name"),i(),n(5,"th",16),r(6,"Total"),i()())}function Bi(t,p){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td")(4,"a",17),r(5),i()(),n(6,"td",16)(7,"a",18),r(8),C(9,"number"),i()()()),t&2){let e=p.$implicit;a(2),_(e.code),a(2),s("routerLink",R(8,ct,e.accountID)),a(),_(e.name),a(2),s("routerLink",L(10,dt))("queryParams",R(11,ut,e.AccountID)),a(),_(y(9,6,e.amount))}}function Ai(t,p){if(t&1&&(n(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),r(4,"Total Expense :"),i(),n(5,"span",22),r(6),C(7,"number"),i()()()(),n(8,"tr")(9,"td",19)(10,"div",20)(11,"span",21),r(12,"Profit / Loss :"),i(),n(13,"span",22),r(14),C(15,"number"),i()()()()),t&2){let e=c(3);a(6),_(y(7,2,e.store.totalExpense())),a(8),_(y(15,4,e.store.profitOrLoss()))}}function Oi(t,p){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),r(3,"No expense records available"),i()()())}function Gi(t,p){if(t&1&&(n(0,"h4",12),r(1,"Expense"),i(),n(2,"p-table",13),x(3,ki,7,0,"ng-template",null,3,d)(5,Bi,10,13,"ng-template",null,4,d)(7,Ai,16,6,"ng-template",null,5,d)(9,Oi,4,0,"ng-template",null,6,d),i()),t&2){let e,o=c(2);a(2),s("value",(e=o.store.data())==null||e.data==null?null:e.data.expense)}}function Pi(t,p){if(t&1&&(n(0,"p-panel")(1,"div",11),x(2,Ti,11,1)(3,Vi,11,1)(4,Gi,11,1),i()()),t&2){let e,o,l,m=c();a(2),P(m.Object.keys((e=m.store.data().data)!==null&&e!==void 0?e:L(3,st)).length>0?2:-1),a(),P(m.Object.keys((o=(o=m.store.data().data)==null?null:o.cogs)!==null&&o!==void 0?o:L(4,st)).length>0?3:-1),a(),P(m.Object.keys((l=(l=m.store.data().data)==null?null:l.expense)!==null&&l!==void 0?l:L(5,st)).length>0?4:-1)}}function ji(t,p){if(t&1){let e=D();n(0,"form",25)(1,"div",26)(2,"label",27),r(3,"Outlet"),i(),E(4,"p-multiselect",28),i(),n(5,"div",26)(6,"label",27),r(7,"Cashier"),i(),n(8,"p-autocomplete",29),I("completeMethod",function(l){h(e);let m=c();return S(m.onCashierSearch(l))})("onSelect",function(l){h(e);let m=c();return S(m.onCashierSelect(l))}),i()(),n(9,"div",26)(10,"label",30),r(11,"From - To"),i(),n(12,"div",31),E(13,"p-datepicker",32)(14,"p-datepicker",33),i()()()}if(t&2){let e=c();s("formGroup",e.formFilter),a(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.loader().options.outlets)("showClear",!0),a(4),s("showClear",!0)("suggestions",e.cashierSuggestions())("showClear",!0),a(5),s("iconDisplay","input")("showIcon",!0),a(),s("iconDisplay","input")("showIcon",!0)}}var qt=(()=>{class t{constructor(){this.dayjsService=b(De),this.store=b(mt),this.fb=b(Ne),this.reportService=b(k),this.roleService=b(be),this.isInitDialogFilterVisible=B(!1),this.dialogFilterVisible=B(!1),this.cashierSuggestions=B([]),this.cashierHashMap=new Map,this.Object=Object,Ft(()=>{this.store.filter()&&this.initForm()})}ngOnInit(){this.initForm(),console.log(this.cashierHashMap.entries())}onSearch(e){this.store.updateFilter(v(g({},this.store.filter()),{Text:e}))}onCashierSearch(e){this.reportService.getCashierSuggestions(e.query).pipe(Me("Cashier Suggestions"),G(o=>this.cashierSuggestions.set(o))).subscribe()}initForm(){let e=this.store.filter();console.log("initForm",this.cashierHashMap.get(e.CashierID)),this.formFilter=this.fb.group({EntityID:this.fb.control(e.EntityID??[]),CashierID:this.fb.control(this.cashierHashMap.get(e.CashierID)??""),Text:this.fb.control(e.Text??""),from:this.fb.control(e.from?this.dayjsService.from(e.from).toDate():null),to:this.fb.control(e.to?this.dayjsService.from(e.to).toDate():null)})}onFilterOK(){let e=this.formFilter.getRawValue(),o=Object.entries(e).reduce((l,[m,f])=>(m==="from"||m==="to"?f instanceof Date&&(l[m]=this.dayjsService.from(f).format()):l[m]=f||null,l),{});this.store.updateFilter(g(g({},this.store.filter()),o)),this.dialogFilterVisible.update(l=>!l),console.log("body",e)}onCashierSelect(e){console.log("Cashier selected:",e),!this.cashierHashMap.has(e.value.Key)&&(this.cashierHashMap.set(e.value.Key,e.value.Value),console.log("Cashier HashMap:",this.cashierHashMap))}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.reportService.getIncomeStatement(e,{responseType:"blob"}).pipe(Me("Export Profit & Loss"),G(o=>{let l=o.type,m=[o],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:l}));let u=`profit-and-loss.${l.split("/")[1]}`;f.setAttribute("download",u),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-income-statement"]],features:[K([mt])],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","isFilterable","pageTitle","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold"],[3,"value"],[2,"width","20%"],[2,"width","30%"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","3",1,"text-end","fw-semibold"],[1,"row"],[1,"col"],[1,"col-1","col-lg-2"],["colspan","3",1,""],[1,"text-end",2,"min-width","10%"],[1,"d-flex","flex-column","gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["formControlName","EntityID","filterBy","value","appendTo","body","display","chip","optionLabel","value","optionValue","key","placeholder","Select an Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["appendTo","body","formControlName","CashierID","optionLabel","Value","optionValue","Key","styleClass","w-100","inputStyleClass","w-100","field","Value","placeholder","Search a cashier",3,"completeMethod","onSelect","showClear","suggestions"],["for","outlet"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"]],template:function(o,l){if(o&1){let m=D();n(0,"app-main-panel",7),z("isDialogFilterVisibleChange",function(u){return h(m),j(l.dialogFilterVisible,u)||(l.dialogFilterVisible=u),S(u)})("isInitDialogFilterVisibleChange",function(u){return h(m),j(l.isInitDialogFilterVisible,u)||(l.isInitDialogFilterVisible=u),S(u)}),I("filterConfirmed",function(){return h(m),S(l.onFilterOK())}),x(1,bi,2,1,"ng-template",null,0,d)(3,Pi,5,6,"ng-template",null,1,d)(5,ji,15,12,"ng-template",null,2,d),i()}o&2&&(s("isFilterable",!0)("pageTitle",l.store.data().pageTitle),q("isDialogFilterVisible",l.dialogFilterVisible)("isInitDialogFilterVisible",l.isInitDialogFilterVisible),s("scrollable",!0))},dependencies:[ce,$,U,Y,Ee,_e,ue,ne,ee,J,Z,te,ie,he,xe,de,ge,fe,le,qe,Q,X,Te,we,re,oe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var _t=vt(jt());var Ni={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,_t.default)().format("YYYY-MM-DD"),listOutletParam:[]}},ft=ae(se(Ni),Ie(t=>({totalAsset:V(()=>t.data().asset.reduce((p,e)=>p+ +e.amount,0)),totalLiability:V(()=>t.data().liability.reduce((p,e)=>p+ +e.counterAmount,0)),totalEquity:V(()=>t.data().equity.reduce((p,e)=>p+ +e.counterAmount,0))})),me(t=>{let p=b(k),e={updateFilter:o=>{F(t,l=>v(g({},l),{filter:o}))},fetchBalanceSheet:N(A(ye(()=>{let o=t.filter();return Object.entries(o).every(([l,m])=>m!=null&&m!=="")}),O(o=>p.getBalanceSheet(o).pipe(H({next:l=>{F(t,m=>v(g({},m),{data:l}))},error:l=>{console.error(l)}}))),Et(1))),fetchLoader:N(A(O(()=>p.getBalanceSheetLoader().pipe(H({next:o=>{F(t,l=>v(g({},l),{metadata:o,filter:{date:(0,_t.default)(o.filter.to).format("YYYY-MM-DD")}})),e.fetchBalanceSheet(t.filter)},error:o=>{console.error(o)}})))))};return e}),pe(t=>({onInit:()=>{t.fetchLoader()}})));var Wt=vt(jt());var gt=t=>["/pages/chart-of-account/account/",t],xt=()=>["/pages/report/general-ledger"],Hi=(t,p)=>({id:t,to:p}),zt=t=>({id:t});function qi(t,p){if(t&1){let e=D();n(0,"p-button",11),I("onClick",function(){h(e);let l=c(2);return S(l.onExport())}),i()}}function Wi(t,p){if(t&1&&(n(0,"div",9),x(1,qi,1,0,"p-button",10),i()),t&2){let e=c();a(),s("ngIf",e.roleService.global.export)}}function zi(t,p){t&1&&(n(0,"tr")(1,"th",16),r(2,"Code"),i(),n(3,"th"),r(4,"Asset"),i(),n(5,"th",17),r(6,"Total"),i()())}function Ki(t,p){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td")(4,"a",18),r(5),i()(),n(6,"td",19)(7,"a",20),r(8),C(9,"number"),i()()()),t&2){let e=p.$implicit,o=c(3);a(2),_(e.code),a(2),s("routerLink",R(8,gt,e.accountID)),a(),_(e.name),a(2),s("routerLink",L(10,xt))("queryParams",Rt(11,Hi,e.accountID,o.store.filter().date)),a(),_(y(9,6,e.amount))}}function Ui(t,p){if(t&1&&(n(0,"tr")(1,"td",21),r(2,"Total Asset"),i(),n(3,"td",22),r(4),C(5,"number"),i()()),t&2){let e=c(3);a(4),w(" ",y(5,1,e.store.totalAsset())," ")}}function Yi(t,p){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),r(3,"No asset records found."),i()()())}function $i(t,p){if(t&1&&(n(0,"h4",14),r(1,"Asset"),i(),n(2,"p-table",15),x(3,zi,7,0,"ng-template",null,3,d)(5,Ki,10,14,"ng-template",null,4,d)(7,Ui,6,3,"ng-template",null,5,d)(9,Yi,4,0,"ng-template",null,6,d),i()),t&2){let e=c(2);a(2),s("value",e.store.data().asset)}}function Xi(t,p){t&1&&(n(0,"tr")(1,"th",16),r(2,"Code"),i(),n(3,"th"),r(4,"Liability"),i(),n(5,"th",17),r(6,"Total"),i()())}function Qi(t,p){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td")(4,"a",25),r(5),i()(),n(6,"td",19)(7,"a",20),r(8),C(9,"number"),i()()()),t&2){let e=p.$implicit;a(2),_(e.code),a(2),s("routerLink",R(8,gt,e.accountID)),a(),_(e.name),a(2),s("routerLink",L(10,xt))("queryParams",R(11,zt,e.accountID)),a(),_(y(9,6,e.counterAmount))}}function Ji(t,p){if(t&1&&(n(0,"tr")(1,"td",21),r(2," Total Liability "),i(),n(3,"td",22),r(4),C(5,"number"),i()()),t&2){let e=c(3);a(4),w(" ",y(5,1,e.store.totalLiability())," ")}}function Zi(t,p){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),r(3,"No liability records found."),i()()())}function en(t,p){if(t&1&&(n(0,"h4",24),r(1,"Liability"),i(),n(2,"p-table",15),x(3,Xi,7,0,"ng-template",null,3,d)(5,Qi,10,13,"ng-template",null,4,d)(7,Ji,6,3,"ng-template",null,5,d)(9,Zi,4,0,"ng-template",null,6,d),i()),t&2){let e=c(2);a(2),s("value",e.store.data().liability)}}function tn(t,p){t&1&&(n(0,"tr")(1,"th",16),r(2,"Code"),i(),n(3,"th"),r(4,"Equity"),i(),n(5,"th",17),r(6,"Total"),i()())}function nn(t,p){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td")(4,"a",18),r(5),i()(),n(6,"td",19)(7,"a",20),r(8),C(9,"number"),i()()()),t&2){let e=p.$implicit;a(2),_(e.code),a(2),s("routerLink",R(8,gt,e.accountID)),a(),_(e.name),a(2),s("routerLink",L(10,xt))("queryParams",R(11,zt,e.accountID)),a(),_(y(9,6,e.counterAmount))}}function on(t,p){if(t&1&&(n(0,"tr")(1,"td",21),r(2,"Total Equity"),i(),n(3,"td",22),r(4),C(5,"number"),i()(),n(6,"tr")(7,"td",21),r(8," Total Liability + Equity "),i(),n(9,"td",22),r(10),C(11,"number"),i()()),t&2){let e=c(3);a(4),w(" ",y(5,2,e.store.totalEquity())," "),a(6),w(" ",y(11,4,e.store.totalLiability()+e.store.totalEquity())," ")}}function rn(t,p){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),r(3,"No equity records found."),i()()())}function ln(t,p){if(t&1&&(n(0,"h4",24),r(1,"Equity"),i(),n(2,"p-table",15),x(3,tn,7,0,"ng-template",null,3,d)(5,nn,10,13,"ng-template",null,4,d),r(7," <"),x(8,on,12,6,"ng-template",null,5,d)(10,rn,4,0,"ng-template",null,6,d),i()),t&2){let e=c(2);a(2),s("value",e.store.data().equity)}}function an(t,p){if(t&1&&(n(0,"p-panel",12)(1,"div",13),x(2,$i,11,1)(3,en,11,1)(4,ln,12,1),i()()),t&2){let e=c();s("showHeader",!1),a(2),P(e.Object.keys(e.store.data().asset).length>0?2:-1),a(),P(e.Object.keys(e.store.data().liability).length>0?3:-1),a(),P(e.Object.keys(e.store.data().equity).length>0?4:-1)}}function pn(t,p){if(t&1&&(n(0,"div",31)(1,"div"),r(2),i()()),t&2){let e=p.$implicit;a(2),_(e.value)}}function mn(t,p){if(t&1&&(n(0,"form",26)(1,"div",27)(2,"label",28),r(3,"Outlet"),i(),n(4,"p-multiselect",29),x(5,pn,3,1,"ng-template",null,7,d),i()(),n(7,"div",27)(8,"label",28),r(9,"From"),i(),E(10,"p-datepicker",30),i()()),t&2){let e=c();s("formGroup",e.filterForm),a(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets)("showClear",!0),a(6),s("iconDisplay","input")("showIcon",!0)}}var Kt=(()=>{class t{constructor(){this.store=b(ft),this.ReportServiceStore=b(k),this.dialogFilterVisible=B(!1),this.isInitDialogFilterVisible=B(!1),this.roleService=b(be),this.Object=Object}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new At({date:new T(new Date),outletID:new T([])})}onFilterOKEvent(){let{date:e,outletID:o}=this.filterForm.value;this.store.updateFilter({date:(0,Wt.default)(e).format("YYYY-MM-DD"),listOutletParam:o}),this.dialogFilterVisible.update(l=>!l)}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.ReportServiceStore.getBalanceSheet(e,{responseType:"blob"}).pipe(Me("Export Balance Sheet"),G(o=>{let l=o.type,m=[o],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:l}));let u=`balance-sheet.${l.split("/")[1]}`;f.setAttribute("download",u),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-balance-sheet"]],features:[K([ft])],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],[3,"showHeader"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold","mt-3"],[3,"value"],[2,"width","20%"],[1,"text-end",2,"width","5%"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"fw-semibold","text-end"],[1,"text-end","fw-semibold"],["colspan","3",1,""],[1,"fs-5","fw-semibold"],["target","_blank",1,"link","link-primary","d-flex","align-items-center",3,"routerLink"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletID","display","chip","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["formControlName","date","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],[1,"flex","items-center","gap-2"]],template:function(o,l){if(o&1){let m=D();n(0,"app-main-panel",8),z("isDialogFilterVisibleChange",function(u){return h(m),j(l.dialogFilterVisible,u)||(l.dialogFilterVisible=u),S(u)})("isInitDialogFilterVisibleChange",function(u){return h(m),j(l.isInitDialogFilterVisible,u)||(l.isInitDialogFilterVisible=u),S(u)}),I("filterConfirmed",function(){return h(m),S(l.onFilterOKEvent())}),x(1,Wi,2,1,"ng-template",null,0,d)(3,an,5,4,"ng-template",null,1,d)(5,mn,11,7,"ng-template",null,2,d),i()}o&2&&(s("pageTitle",l.store.data().pageTitle)("isFilterable",!0),q("isDialogFilterVisible",l.dialogFilterVisible)("isInitDialogFilterVisible",l.isInitDialogFilterVisible),s("scrollable",!0))},dependencies:[ce,$,U,Y,ge,fe,de,re,oe,ne,ee,J,Z,te,ie,he,xe,_e,ue,ve,le,qe,Q,X],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ut=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(o,l){o&1&&(n(0,"p"),r(1,"report-comparative-balance works!"),i(),r(2,`
|
|
2
|
-
,
|
|
3
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Yt=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(o,l){o&1&&(n(0,"p"),r(1,"report-cash-flow works!"),i(),r(2,`
|
|
4
|
-
,
|
|
5
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var $t=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(o,l){o&1&&(n(0,"p"),r(1,"report-trial-balance works!"),i(),r(2,`
|
|
6
|
-
,
|
|
7
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var sn={metadata:{filter:{sortAscending:!1,listAccountID:[],from:null,to:null,listOutletID:[],listCategoryID:[],contactType:0,contactID:""},options:{accounts:[],outlets:[],contactTypeOptions:[]},roles:{isInEmptyOutletRole:!1}},items:{data:null,pageTitle:""},filter:{sortAscending:!1,accountID:"",listAccountID:[],from:null,to:null,listOutletID:[],listCategoryID:[],contactType:1,contactID:null}},ht=ae(se(sn),We("General Ledger Store"),Ie(t=>({debitTotal:V(()=>t.items.data().reduce((p,e)=>p+e.debitTotal,0)),creditTotal:V(()=>t.items.data().reduce((p,e)=>p+e.creditTotal,0))})),me(t=>{let p=b(k),e={updateFilter:o=>{F(t,l=>v(g({},l),{filter:o}))},loadList:N(A(ye(o=>o.listAccountID.length>0),O(o=>{let l=Object.entries(o).reduce((m,[f,u])=>(f==="accountID"?m[f]=null:m[f]=u,m),{});return console.log("normalize",l),p.fetchGeneralLedgerReport(l,"multiple").pipe(H({next:m=>{F(t,f=>v(g({},f),{items:m}))},error:m=>{console.error(m)}}))}))),loadLoader:N(A(O(()=>p.fetchGeneralLedgerLoader().pipe(H({next:o=>{F(t,l=>v(g({},l),{metadata:o,filter:v(g({},l.filter),{listCategoryID:o.filter.listCategoryID})})),e.loadList(t.filter)},error:o=>{console.error(o)}})))))};return e}),pe({onInit:t=>{t.loadLoader()}}));var cn=t=>["/pages/journal/journal-entry/",t],dn=()=>({scrollHeight:"250px"});function un(t,p){if(t&1){let e=D();n(0,"p-button",14),I("onClick",function(){h(e);let l=c(2);return S(l.onExport())}),i()}}function _n(t,p){if(t&1&&(n(0,"div",11)(1,"a",12),r(2,"Return to Accounts"),i(),x(3,un,1,0,"p-button",13),i()),t&2){let e=c();a(3),s("ngIf",e.roleService.global.export)}}function fn(t,p){if(t&1&&(n(0,"div",11)(1,"span",18)(2,"h2",19),r(3),i()(),n(4,"span",18)(5,"h2",19),r(6),i()()()),t&2){let e=c().$implicit;a(3),_(e.name),a(3),w(" (",e.chartOfAccountCode,") ")}}function gn(t,p){t&1&&(n(0,"tr")(1,"th",20),r(2,"Outlet"),i(),n(3,"th",20),r(4,"No."),i(),n(5,"th",20),r(6,"Date"),i(),n(7,"th"),r(8,"Contact / Note"),i(),n(9,"th",21),r(10,"Debit"),i(),n(11,"th",22),r(12,"Credit"),i(),n(13,"th",22),r(14,"Balance"),i()())}function xn(t,p){if(t&1&&(n(0,"tr")(1,"td",23),r(2),i(),n(3,"td",23)(4,"a",24),r(5),i()(),n(6,"td",23),r(7),C(8,"date"),i(),n(9,"td",23)(10,"div",25)(11,"a",26),r(12),i(),E(13,"div",27),i()(),n(14,"td",28),r(15),C(16,"number"),i(),n(17,"td",28),r(18),C(19,"number"),i(),n(20,"td",28),r(21),C(22,"number"),i()()),t&2){let e=p.$implicit,o=c(4);a(2),_(e.outletName),a(2),s("routerLink",R(19,cn,e.id)),a(),_(e.number),a(2),_(Ge(8,10,e.date,"dd MMM yyyy")),a(4),s("href",o.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,Be),a(),_(e.contactName),a(),s("innerHTML",e.journalNote,ke),a(2),w(" ",y(16,13,e.debitAmount)," "),a(3),w(" ",y(19,15,e.creditAmount)," "),a(3),_(y(22,17,e.balance))}}function hn(t,p){if(t&1&&(n(0,"tr"),E(1,"td",29),n(2,"td",30),r(3,"Total"),i(),n(4,"td",30),r(5),C(6,"number"),i(),n(7,"td",30),r(8),C(9,"number"),i(),E(10,"td"),i()),t&2){let e=c().$index,o=c(3);a(5),w(" ",y(6,2,o.store.items().data[e].debitTotal)," "),a(3),w(" ",y(9,4,o.store.items().data[e].creditTotal)," ")}}function Sn(t,p){t&1&&(n(0,"tr")(1,"td",31)(2,"span"),r(3,"No records found."),i()()())}function Cn(t,p){if(t&1&&(n(0,"p-table",17),x(1,fn,7,2,"ng-template",null,3,d)(3,gn,15,0,"ng-template",null,4,d)(5,xn,23,21,"ng-template",null,5,d)(7,hn,11,6,"ng-template",null,6,d)(9,Sn,4,0,"ng-template",null,7,d),i()),t&2){let e=p.$implicit;s("value",e.data)}}function yn(t,p){if(t&1&&(n(0,"div",16),Fe(1,Cn,11,1,"p-table",17,Re),i()),t&2){let e=c(2);a(),Le(e.store.items().data)}}function vn(t,p){if(t&1&&x(0,yn,3,0,"div",15),t&2){let e=c();s("ngIf",e.store.items()&&e.store.items().data)}}function bn(t,p){if(t&1&&(n(0,"div",11)(1,"div",18)(2,"span",49),r(3),i()(),n(4,"div")(5,"span"),r(6,"-"),i()(),n(7,"div",18)(8,"span",50),r(9),i()()()),t&2){let e=p.$implicit;a(3),w("(",e.code,")"),a(6),_(e.name)}}function In(t,p){if(t&1&&(n(0,"div",11)(1,"div",18)(2,"span",49),r(3),i()(),n(4,"div")(5,"span"),r(6,"-"),i()(),n(7,"div",18)(8,"span",50),r(9),i()()()),t&2){let e=p.$implicit;a(3),w("(",e.code,")"),a(6),_(e.name)}}function En(t,p){if(t&1&&(n(0,"div",51)(1,"div"),r(2),i()()),t&2){let e=p.$implicit;a(2),_(e.value)}}function Dn(t,p){if(t&1&&(n(0,"div",42)(1,"div",43),E(2,"p-radiobutton",52),n(3,"label",53),r(4),i()()()),t&2){let e=p.$implicit;a(2),s("value",e.key)("inputId",e.key),a(),Oe("for",e.key),a(),_(e.value)}}function wn(t,p){if(t&1){let e=D();n(0,"div",25)(1,"label",33),r(2,"Customer"),i(),n(3,"p-autocomplete",54),I("completeMethod",function(l){h(e);let m=c(2);return S(m.searchCustomer(l))}),i()()}if(t&2){let e=c(2);a(3),s("suggestions",e.customerSuggestions())}}function Tn(t,p){if(t&1){let e=D();n(0,"div",25)(1,"label",33),r(2,"Supplier"),i(),n(3,"p-autocomplete",55),I("completeMethod",function(l){h(e);let m=c(2);return S(m.searchSupplier(l))}),i()()}if(t&2){let e=c(2);a(3),s("suggestions",e.supplierSuggestions())}}function Rn(t,p){if(t&1){let e=D();n(0,"div",25)(1,"label",33),r(2,"Customer"),i(),n(3,"p-autocomplete",54),I("completeMethod",function(l){h(e);let m=c(2);return S(m.searchCustomer(l))}),i()()}if(t&2){let e=c(2);a(3),s("suggestions",e.customerSuggestions())}}function Fn(t,p){if(t&1){let e=D();n(0,"form",32)(1,"div",25)(2,"label",33),r(3,"Accounts"),i(),n(4,"p-multiselect",34),I("onChange",function(l){h(e);let m=c();return S(m.onAccountChange(l))}),x(5,bn,10,2,"ng-template",null,8,d)(7,In,10,2,"ng-template",null,9,d),i()(),n(9,"div",25)(10,"label",33),r(11,"From"),i(),n(12,"div",35),E(13,"p-datepicker",36)(14,"p-datepicker",37),i()(),n(15,"div",25)(16,"label",33),r(17,"Outlets"),i(),n(18,"p-multiselect",38),x(19,En,3,1,"ng-template",null,9,d),i()(),n(21,"div",25)(22,"label",33),r(23,"Category"),i(),n(24,"p-treeselect",39),I("onFocus",function(){h(e);let l=c();return S(l.onCategoryFocus())}),i()(),n(25,"div",25)(26,"label",40),r(27,"Contact Type"),i(),n(28,"div",41),Fe(29,Dn,5,4,"div",42,Re),i()(),n(31,"div",25)(32,"label",40),r(33,"Sort order"),i(),n(34,"div",41)(35,"div",42)(36,"div",43),E(37,"p-radiobutton",44),n(38,"label",45),r(39,"Asc"),i()()(),n(40,"div",46)(41,"div",43),E(42,"p-radiobutton",47),n(43,"label",48),r(44,"Desc"),i()()()()(),x(45,wn,4,1,"div",25)(46,Tn,4,1,"div",25)(47,Rn,4,1,"div",25),i()}if(t&2){let e,o=c();s("formGroup",o.generalLedgerFilterForm),a(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",o.store.metadata().options.accounts)("selectionLimit",5),a(9),s("iconDisplay","input")("showIcon",!0),a(),s("iconDisplay","input")("showIcon",!0),a(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",o.store.metadata().options.outlets),a(6),s("metaKeySelection",!1)("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",L(20,dn))("options",o.categoriesOptions()),a(5),Le(o.store.metadata().options.contactTypeOptions),a(8),s("value",!0),a(5),s("value",!1),a(3),P((e=o.generalLedgerFilterForm.controls.contactType.value)===1?45:e===2?46:47)}}var Xt=(()=>{class t extends Ze{constructor(){super(...arguments),this.selectionLimit=5,this.store=b(ht),this.ledgerAccountType="multiple"}onAccountChange(e){Array.isArray(e.value)&&e.value.length>=this.selectionLimit&&this.toastr.warning(`Please select at least ${this.selectionLimit} accounts for the general ledger report.`,"Warning")}get pageTitle(){return this.store.items()&&this.store.items().pageTitle?this.store.items().pageTitle:"Multi Ledger"}generateFilterForm(){this.generalLedgerFilterForm=this.fb.group({sortAscending:new T(!1),accountID:this.fb.control(""),listAccountID:new T([]),listCategoryID:new T([]),listOutletID:new T([]),contactID:new T(""),from:new T(null),to:new T(null),contactType:new T(1)})}static{this.\u0275fac=(()=>{let e;return function(l){return(e||(e=Ve(t)))(l||t)}})()}static{this.\u0275cmp=M({type:t,selectors:[["app-report-multiple-ledger"]],features:[K([ht]),Ae],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["caption",""],["header",""],["body",""],["footer",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible","scrollable"],[1,"d-flex","gap-2"],["routerLink","/pages/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined","fs-3"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],["class","px-3 bg-white border-top",4,"ngIf"],[1,"px-3","bg-white","border-top"],[3,"value"],[1,""],[1,"fs-5","fw-semibold"],[2,"width","10%"],[1,"text-end",2,"width","10%"],[1,"text-end",2,"width","20%"],[1,"text-break"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"d-flex","flex-column"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[1,"text-end","text-break"],["colspan","3"],[1,"text-end","fw-semibold"],["colspan","8"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"onChange","virtualScroll","virtualScrollItemSize","options","selectionLimit"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","display","chip","formControlName","listOutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","display","chip","selectionMode","multiple","filter","","filterBy","label","formControlName","listCategoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","id","placeholder","Select Category",3,"onFocus","metaKeySelection","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],["for",""],[1,"row"],[1,"col-4"],[1,"d-flex","align-items-center","gap-2"],["name","sortAscending","formControlName","sortAscending","inputId","asc",3,"value"],["for","asc",1,"m-0"],[1,"col-3"],["name","sortAscending","formControlName","sortAscending","inputId","desc",3,"value"],["for","desc",1,"m-0"],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"flex","items-center","gap-2"],["name","contactType","formControlName","contactType",3,"value","inputId"],[1,"m-0",3,"for"],["formControlName","contactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"]],template:function(o,l){if(o&1){let m=D();n(0,"app-main-panel",10),z("isDialogFilterVisibleChange",function(u){return h(m),j(l.dialogFilterVisible,u)||(l.dialogFilterVisible=u),S(u)})("isInitDialogFilterVisibleChange",function(u){return h(m),j(l.initDialogVisible,u)||(l.initDialogVisible=u),S(u)}),I("filterConfirmed",function(){return h(m),S(l.onFilterOKEvent())}),x(1,_n,4,1,"ng-template",null,0,d)(3,vn,1,1,"ng-template",null,1,d)(5,Fn,48,21,"ng-template",null,2,d),i()}o&2&&(s("pageTitle",l.pageTitle),q("isDialogFilterVisible",l.dialogFilterVisible),s("isFilterable",!0),q("isInitDialogFilterVisible",l.initDialogVisible),s("scrollable",!0))},dependencies:[ce,$,U,Y,Pe,de,ge,fe,ze,re,oe,Ee,_e,ue,Te,we,ne,ee,J,Z,te,ie,he,xe,ve,He,Xe,$e,Ye,le,Q,X,Ue,Ke],styles:["[_nghost-%COMP%]{display:block} .p-datatable .p-datatable-header{padding-left:0!important}"],changeDetection:0})}}return t})();var El=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:Ht},{path:"multiple-general-ledger",component:Xt},{path:"profit-loss",component:qt},{path:"balance-sheet",component:Kt},{path:"comparative-balance",component:Ut},{path:"trial-balance",component:$t},{path:"cash-flow",component:Yt}]}];export{El as REPORTS_ROUTES};
|