dealposbooks 1.9.6 → 1.9.8
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/3rdpartylicenses.txt +26 -26
- package/assets/scss/style.scss +30 -0
- package/{chunk-RBDJZRHY.js → chunk-27P5HOS3.js} +1 -1
- package/chunk-2QWAAI3V.js +1 -0
- package/{chunk-CSMMP7XG.js → chunk-35ER6BC7.js} +1 -1
- package/{chunk-BNI5KUDE.js → chunk-3GHEXAAZ.js} +3 -3
- package/chunk-3OJSEDLY.js +1 -0
- package/{chunk-TC43COAE.js → chunk-3RM5CDGW.js} +1 -1
- package/chunk-46XJU64Z.js +1 -0
- package/chunk-4MEPU7FI.js +1 -0
- package/chunk-4PK4TO7C.js +1 -0
- package/{chunk-46TNY5N4.js → chunk-4V5YFD3N.js} +1 -1
- package/chunk-5RRPJBLN.js +1 -0
- package/chunk-6332DY2I.js +82 -0
- package/{chunk-OVCTOPAO.js → chunk-6PS3NJ62.js} +1 -1
- package/{chunk-J2SK4PGN.js → chunk-77BBQI2T.js} +1 -1
- package/{chunk-PGECEXRR.js → chunk-7ET5CSOO.js} +1 -1
- package/{chunk-6ZZARVQO.js → chunk-7IPVVF6Y.js} +1 -1
- package/chunk-7JGGV5FX.js +1 -0
- package/chunk-7TOJMYLE.js +1 -0
- package/chunk-AZWJMXL6.js +449 -0
- package/chunk-BDJHC5O6.js +2 -0
- package/{chunk-GJXWL5XV.js → chunk-BOVEGMBL.js} +1 -1
- package/{chunk-IIB2DZLA.js → chunk-BPFL7VRT.js} +1 -1
- package/{chunk-EXVUABTO.js → chunk-BX74ZLQG.js} +1 -1
- package/chunk-C3N6HRIE.js +1 -0
- package/{chunk-TFV5QZKR.js → chunk-CEZEYAWZ.js} +1 -1
- package/chunk-CGUMUBB7.js +1 -0
- package/{chunk-OEOAUJY5.js → chunk-CLVUILX2.js} +1 -1
- package/{chunk-JDW35ZB5.js → chunk-CNLYDNON.js} +1 -1
- package/{chunk-JP3F2QND.js → chunk-CZWWMQFD.js} +1 -1
- package/{chunk-BYD3JK4R.js → chunk-DAQCANBV.js} +1 -1
- package/{chunk-OZACNHDP.js → chunk-DJAICZNR.js} +1 -1
- package/chunk-DXIZC3FM.js +87 -0
- package/chunk-EJCLRSB2.js +1 -0
- package/{chunk-4S33ZRKF.js → chunk-FTI2QPWV.js} +1 -1
- package/{chunk-ASK2IVMC.js → chunk-H6BPUKCW.js} +1 -1
- package/{chunk-TK3G2BVM.js → chunk-HFUW7PYZ.js} +1 -1
- package/chunk-I3BTHUK3.js +160 -0
- package/chunk-IL6G454L.js +1 -0
- package/chunk-IY6KCAQ4.js +1 -0
- package/{chunk-JMLETF7Y.js → chunk-J6H5UCJR.js} +1 -1
- package/{chunk-J77A3DFB.js → chunk-JO3SI6HU.js} +1 -1
- package/{chunk-32BR7AQL.js → chunk-JZTK7BS7.js} +1 -1
- package/{chunk-P6CJ2ONT.js → chunk-K4ALA724.js} +1 -1
- package/{chunk-NF3TF3LT.js → chunk-KANHSSLO.js} +1 -1
- package/{chunk-G6FJQBZZ.js → chunk-KHP7E7JG.js} +1 -1
- package/chunk-L66QS3IX.js +81 -0
- package/chunk-LFVBO7JG.js +1 -0
- package/{chunk-YOEPO6LK.js → chunk-LMI4DLB5.js} +1 -1
- package/chunk-LRI7YFKN.js +1 -0
- package/chunk-MPHC4J2R.js +1 -0
- package/chunk-MYLHWS7O.js +1 -0
- package/chunk-NHEN24Y3.js +1 -0
- package/chunk-NOZEL54G.js +1 -0
- package/{chunk-3L7IWFXM.js → chunk-NR3EHEG3.js} +1 -1
- package/chunk-ONMFMNUN.js +129 -0
- package/chunk-OXGCSUUS.js +2 -0
- package/{chunk-LTZA6IIO.js → chunk-PDNXU4MC.js} +1 -1
- package/chunk-R6NK3ROE.js +1 -0
- package/{chunk-54OPMMIM.js → chunk-R6XNFCQM.js} +1 -1
- package/{chunk-HRQJ5DXP.js → chunk-RLR2HFSC.js} +1 -1
- package/{chunk-HFFH2WIX.js → chunk-RNOSD5RO.js} +1 -1
- package/chunk-RQ52IUQY.js +130 -0
- package/{chunk-DOM7WYRM.js → chunk-RSGEQTNJ.js} +1 -1
- package/{chunk-35CWG2OK.js → chunk-RYHNURUZ.js} +2 -2
- package/{chunk-3DN7TZCI.js → chunk-SH4ALZVS.js} +1 -1
- package/chunk-SRNYKRLK.js +1 -0
- package/{chunk-3HW557B7.js → chunk-TDMJ2M6W.js} +1 -1
- package/{chunk-AKMHO3LC.js → chunk-TIX3GAPF.js} +1 -1
- package/{chunk-XKEV5AED.js → chunk-TLLNQB5C.js} +1 -1
- package/chunk-TOYTUB2K.js +1 -0
- package/chunk-U4SERSDK.js +1 -0
- package/{chunk-C5GEP4MM.js → chunk-U75O34AW.js} +1 -1
- package/{chunk-I3HFXOYS.js → chunk-UNWDCLFZ.js} +1 -1
- package/chunk-UUZOSCEV.js +7 -0
- package/chunk-UWWFSGE7.js +1 -0
- package/{chunk-6TA77CRR.js → chunk-V4IY7RIP.js} +1 -1
- package/chunk-VDBXI7BY.js +1 -0
- package/{chunk-RT5PUZ5F.js → chunk-VJLO7GNT.js} +1 -1
- package/chunk-VJVWTOYU.js +1 -0
- package/{chunk-LKZL77YR.js → chunk-W4KTL6Y6.js} +1 -1
- package/{chunk-ZWHB7NI7.js → chunk-W6LBFCQQ.js} +1 -1
- package/{chunk-YVEUYFCE.js → chunk-WCXWWANV.js} +5 -5
- package/{chunk-34XRAZFC.js → chunk-WUPQR4WU.js} +1 -1
- package/{chunk-LR2DJRRL.js → chunk-WWWY3VE7.js} +1 -1
- package/chunk-X26YDRRO.js +1 -0
- package/chunk-XAH4P23E.js +1 -0
- package/{chunk-7WXXPCRV.js → chunk-XYU65DNE.js} +1 -1
- package/chunk-YJ3CWPO4.js +1 -0
- package/{chunk-3WB76KQC.js → chunk-YVGWGEPX.js} +1 -1
- package/{chunk-TQZNJ5WF.js → chunk-Z3SHAW6W.js} +1 -1
- package/{chunk-AOSPVPK7.js → chunk-ZHU3HOWQ.js} +1 -1
- package/index.html +2 -2
- package/{main-U5PC2W2C.js → main-LKLXHNSP.js} +1 -1
- package/package.json +1 -1
- package/{styles-GTUKYMN7.css → styles-XXVTW56A.css} +1 -1
- package/chunk-27SWEVDU.js +0 -1
- package/chunk-2DV653RD.js +0 -1
- package/chunk-2OECREUZ.js +0 -1
- package/chunk-35KDUCM3.js +0 -1
- package/chunk-3G3QSUWH.js +0 -1
- package/chunk-43WCLYRX.js +0 -1
- package/chunk-4FGQ5T64.js +0 -2
- package/chunk-4KXSM3HP.js +0 -1
- package/chunk-4QKRWFW4.js +0 -1
- package/chunk-6HQX2SM2.js +0 -1
- package/chunk-B7JILYJO.js +0 -1
- package/chunk-BX3CRF44.js +0 -1
- package/chunk-C4LZX33Q.js +0 -449
- package/chunk-C7UZ6ZYF.js +0 -1
- package/chunk-CTCQB63H.js +0 -1
- package/chunk-DNK2GUDB.js +0 -1
- package/chunk-ELWFWCNU.js +0 -246
- package/chunk-GNP7WGSH.js +0 -1
- package/chunk-GTGRV7IH.js +0 -1
- package/chunk-HRPP75N7.js +0 -1
- package/chunk-JYNZPVLW.js +0 -1
- package/chunk-K6753MGR.js +0 -7
- package/chunk-LD4G6ND6.js +0 -130
- package/chunk-M7MFX6BW.js +0 -1
- package/chunk-MCDQ2TIS.js +0 -1
- package/chunk-MJVSTWYY.js +0 -1
- package/chunk-N2RYBZK7.js +0 -1
- package/chunk-N6JCA3CN.js +0 -2
- package/chunk-OEJBOFI5.js +0 -1
- package/chunk-QPKNYNLC.js +0 -210
- package/chunk-UEOO2LYA.js +0 -82
- package/chunk-WEWEITR7.js +0 -1
- package/chunk-WGZN6AN2.js +0 -1
- package/chunk-WZO2ZLBL.js +0 -1
- package/chunk-X34Y3TVX.js +0 -1
- package/chunk-XFSZDZPJ.js +0 -1
- package/chunk-XZGFG6E3.js +0 -1
package/chunk-GNP7WGSH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as me}from"./chunk-P6CJ2ONT.js";import{b as Se}from"./chunk-RT5PUZ5F.js";import{a as A,b as z}from"./chunk-JP3F2QND.js";import{d as L,i as Ce,j as be,k as G}from"./chunk-TFV5QZKR.js";import"./chunk-3WB76KQC.js";import"./chunk-LTZA6IIO.js";import"./chunk-HFFH2WIX.js";import"./chunk-TK3G2BVM.js";import"./chunk-LR2DJRRL.js";import"./chunk-CSMMP7XG.js";import"./chunk-6TA77CRR.js";import"./chunk-JMLETF7Y.js";import"./chunk-C5GEP4MM.js";import"./chunk-TC43COAE.js";import{a as H,b as j}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import{b as xe}from"./chunk-6ZZARVQO.js";import{h as F}from"./chunk-35CWG2OK.js";import"./chunk-EXVUABTO.js";import{a as E,b as ue,c as fe,d as _e,e as ge,f as he}from"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{o as de,w as O,x as V}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{y as se}from"./chunk-BNI5KUDE.js";import{a as ce}from"./chunk-35KDUCM3.js";import{a as pe}from"./chunk-3HW557B7.js";import{F as re,M as le,f as ne,k as ae,l as B,m as N,s as oe,u as ie}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Cb as w,Ga as $,Ic as b,J as Q,Jc as v,Kb as C,Kc as te,Lc as f,Nb as I,Ub as o,Vb as i,Wb as D,X as M,Xc as S,Z as W,_b as T,ba as X,c as k,cb as Y,dc as R,ec as d,gb as p,ha as _,pa as h,pc as r,qa as x,qc as u,s as q,tc as J,wb as P,xc as Z,yc as y,zc as ee}from"./chunk-YVEUYFCE.js";import{a as m,b as s}from"./chunk-YQFG5XE2.js";var U=(()=>{class t{constructor(){this.httpService=_(ce)}getGenerateCoa(e){let a={params:new oe().set("PageNumber",e.PageNumber).set("RowCount",e.RowCount)};return this.httpService.get(void 0,"api/Tools/GetListCOA",a)}updateCOABalance(e={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,e)}getUnbalanceJournal(e){return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal/"+e.PageNumber+"/"+e.RowCount)}updateUnbalanceJournal(e){let n={ListID:e};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ke=()=>({height:"calc(100vh - 70px)"}),Me=()=>({"min-width":"50rem"});function Pe(t,l){if(t&1){let e=T();o(0,"p-button",7),R("onClick",function(){h(e);let a=d();return x(a.updateCoaBalance())}),i()}}function Ie(t,l){t&1&&(o(0,"tr")(1,"th"),r(2,"Code"),i(),o(3,"th"),r(4,"Name"),i(),o(5,"th"),r(6,"Outlet"),i(),o(7,"th"),r(8,"COA Balance"),i(),o(9,"th"),r(10,"Correct Balance"),i()())}function De(t,l){if(t&1&&(o(0,"tr")(1,"td"),r(2),i(),o(3,"td"),r(4),i(),o(5,"td"),r(6),i(),o(7,"td"),r(8),b(9,"number"),i(),o(10,"td"),r(11),b(12,"number"),i()()),t&2){let e=l.$implicit;p(2),u(e.Code),p(2),u(e.Name),p(2),u(e.OutletName),p(2),u(v(9,5,e.Balance)),p(3),u(v(12,7,e.CorrectBalance))}}function Je(t,l){if(t&1&&(o(0,"div",9)(1,"p",10),r(2),i()()),t&2){let e=d(2);p(2),J(" Showing ",e.startIndex()," to ",e.endIndex()," of ",e.coaData().count," entries ")}}function Be(t,l){t&1&&(o(0,"tr")(1,"td",11)(2,"span"),r(3,"No records found."),i()()())}function Ne(t,l){if(t&1){let e=T();o(0,"p-panel")(1,"p-table",8),R("onPage",function(a){h(e);let c=d();return x(c.onPageChange(a))}),w(2,Ie,11,0,"ng-template",null,2,f)(4,De,13,9,"ng-template",null,3,f)(6,Je,3,3,"ng-template",null,4,f)(8,Be,4,0,"ng-template",null,5,f),i()()}if(t&2){let e=d();I(y(10,ke)),p(),C("paginator",!0)("lazy",!0)("totalRecords",e.coaData().count)("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("rows",e.pagination().RowCount)("value",e.coaData().data)("tableStyle",y(11,Me))}}var ve=(()=>{class t{constructor(){this.pagination=$({PageNumber:1,RowCount:20}),this.coaService=_(U),this.toastrService=_(pe),this.coaData=$(null),this.fetchCoaData=A(k(Q(e=>this.coaService.getGenerateCoa(e).pipe(z({next:n=>this.coaData.set(n),error:n=>console.error(n)}))))),this.startIndex=S(()=>this.pagination()?(this.pagination().PageNumber-1)*this.pagination().RowCount+1:0),this.endIndex=S(()=>this.pagination()?Math.min(this.pagination().PageNumber*this.pagination().RowCount,this.coaData()?.count||0):0)}ngOnInit(){this.fetchCoaData(this.pagination)}onPageChange(e){this.pagination.update(n=>s(m({},n),{PageNumber:Math.floor(e.first/e.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(M(()=>this.coaService.getGenerateCoa(this.pagination())),W(e=>{e instanceof ie&&this.toastrService.success(e.body?.message,"Success")})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-tools-update-coa"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Generate COA"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","scrollable","scrollHeight","rows","value","tableStyle"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(n,a){n&1&&(o(0,"app-main-panel",6),w(1,Pe,1,0,"ng-template",null,0,f)(3,Ne,10,12,"ng-template",null,1,f),i())},dependencies:[F,G,L,xe,N,B,V,O,j,H],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 Oe={data:{count:0,data:[]},filter:{PageNumber:1,RowCount:20}},K=ue(he(Oe),fe(t=>({first:S(()=>(t.filter().PageNumber-1)*t.filter().RowCount+1),end:S(()=>Math.min(t.filter().PageNumber*t.filter().RowCount,t.data().count)),selectedItems:S(()=>t.data().data.filter(l=>l.checked)),hasCheckedRows:S(()=>t.data().data.some(l=>l.checked))})),ge(t=>{let l=_(U);return{updateFilter(n){E(t,a=>s(m({},a),{filter:m(m({},a.filter),n)}))},onRowSelect(n){E(t,a=>{let c=a.data.data.map(g=>g.id===n.id?s(m({},g),{checked:!0}):g);return s(m({},a),{data:s(m({},a.data),{data:c})})})},onRowUnselect(n){E(t,a=>{let c=a.data.data.map(g=>g.id===n.id?s(m({},g),{checked:!1}):g);return s(m({},a),{data:s(m({},a.data),{data:c})})})},onHeaderCheckboxToggle(n){E(t,a=>{let c=a.data.data.map(g=>s(m({},g),{checked:n}));return s(m({},a),{data:s(m({},a.data),{data:c})})})},loadData:A(k(M(n=>l.getUnbalanceJournal(n).pipe(q(a=>s(m({},a),{data:a.data.map(c=>s(m({},c),{checked:!1}))})),z({next:a=>{E(t,c=>s(m({},c),{data:a}))},error:a=>{console.error("Error loading unbalance journal data:",a)}})))))}}),_e(t=>({onInit:()=>{t.loadData(t.filter)}})));var Ve=()=>({height:"calc(100vh - 70px)"}),He=t=>["/pages/journal/journal-entry",t];function je(t,l){if(t&1){let e=T();o(0,"div",8),D(1,"p-button",9),o(2,"p-button",10),R("onClick",function(){h(e);let a=d(2);return x(a.regenerateUnbalanceJournal())}),r(3,"Regenerate"),i()()}}function Fe(t,l){if(t&1&&w(0,je,4,0,"div",7),t&2){let e=d();C("ngIf",e.store.hasCheckedRows())}}function Ae(t,l){t&1&&(o(0,"tr")(1,"th",12),D(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Date"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th",13),r(8,"Debit SUM"),i(),o(9,"th",13),r(10,"Credit SUM"),i(),o(11,"th",13),r(12,"Difference"),i(),o(13,"th"),r(14,"Reference"),i(),o(15,"th"),r(16,"Outlet"),i()())}function ze(t,l){if(t&1&&(o(0,"tr")(1,"td"),D(2,"p-tableCheckbox",14),i(),o(3,"td"),r(4),b(5,"date"),i(),o(6,"td")(7,"a",15),r(8),i()(),o(9,"td",13),r(10),b(11,"number"),i(),o(12,"td",13),r(13),b(14,"number"),i(),o(15,"td",13),r(16),b(17,"number"),i(),o(18,"td")(19,"a",16),r(20),i()(),o(21,"td"),r(22),i()()),t&2){let e=l.$implicit,n=d(2);p(2),C("value",e),p(2),u(te(5,10,e.date,"dd MMM yyyy")),p(3),C("routerLink",ee(19,He,e.id)),p(),u(e.number),p(2),u(v(11,13,e.debitSum)),p(3),u(v(14,15,e.creditSum)),p(3),u(v(17,17,e.differences)),p(3),C("href",n.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+e.id,Y),p(),u(e.referenceText),p(2),u(e.outletName)}}function Le(t,l){if(t&1&&r(0),t&2){let e=d(2);J(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function Ge(t,l){t&1&&(o(0,"tr")(1,"td",17)(2,"span"),r(3,"No records found."),i()()())}function $e(t,l){if(t&1){let e=T();o(0,"p-panel")(1,"p-table",11),R("onPage",function(a){h(e);let c=d();return x(c.onPageChange(a))})("onRowSelect",function(a){h(e);let c=d();return x(c.onRowSelect(a))})("onRowUnselect",function(a){h(e);let c=d();return x(c.onRowUnselect(a))})("onHeaderCheckboxToggle",function(a){h(e);let c=d();return x(c.onHeaderCheckboxToggle(a))}),w(2,Ae,17,0,"ng-template",null,2,f)(4,ze,23,21,"ng-template",null,3,f)(6,Le,1,3,"ng-template",null,4,f)(8,Ge,4,0,"ng-template",null,5,f),i()()}if(t&2){let e=d();I(y(9,Ve)),p(),C("value",e.store.data().data)("scrollable",!0)("lazy",!0)("scrollHeight","calc(100vh - 142px)")("paginator",!0)("rows",e.store.filter().RowCount)("totalRecords",e.store.data().count)}}var Te=(()=>{class t{constructor(){this.store=_(K),this.toolsService=_(U),this.authService=_(me)}onPageChange(e){console.log("Page changed:",e);let n=e.first/e.rows;this.store.updateFilter({PageNumber:n+1})}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}regenerateUnbalanceJournal(){let n=this.store.selectedItems().filter(a=>a.checked==!0).map(a=>a.id);this.toolsService.updateUnbalanceJournal(n).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-unbalance-journal"]],features:[Z([K])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal"],["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","scrollable","lazy","scrollHeight","paginator","rows","totalRecords"],[2,"width","4rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"]],template:function(n,a){n&1&&(o(0,"app-main-panel",6),w(1,Fe,1,1,"ng-template",null,0,f)(3,$e,10,10,"ng-template",null,1,f),i())},dependencies:[F,G,L,Ce,be,Se,de,N,ne,B,ae,se,V,O,j,H,le,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var At=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:ve},{path:"unbalance-journal",component:Te}];export{At as TOOLS_ROUTES};
|
package/chunk-GTGRV7IH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x,b as L}from"./chunk-G6FJQBZZ.js";import"./chunk-GJXWL5XV.js";import"./chunk-34XRAZFC.js";import{a as E,b as V}from"./chunk-LKZL77YR.js";import{a as R,b as D}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import"./chunk-6ZZARVQO.js";import{h as H}from"./chunk-35CWG2OK.js";import{b as N,c as G}from"./chunk-EXVUABTO.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as j,x as O}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import"./chunk-BNI5KUDE.js";import"./chunk-35KDUCM3.js";import{a as I}from"./chunk-3HW557B7.js";import{i as $,m as F}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Cb as A,Ic as c,Jc as s,Kb as p,Lc as C,Nb as h,Ub as n,V as v,Vb as o,Wb as l,X as T,Z as M,_b as B,dc as y,ec as m,gb as a,h as P,ha as f,pa as g,qa as d,ra as S,s as u,sa as b,wb as k,xc as w,yc as _}from"./chunk-YVEUYFCE.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=B();n(0,"div",3)(1,"p-button",4),y("onClick",function(){g(e);let r=m();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),y("onClick",function(){g(e);let r=m();return d(r.migratePaymentAccount())}),o()()}if(i&2){let e=m();a(2),p("disabled",s(3,2,e.countInBooks$)!==0)("pTooltip",s(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),c(4,"async"),S(),n(5,"svg",8),l(6,"path",9),o(),b(),l(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=m();h(_(12,q)),a(),h(_(13,q)),a(2),p("migrationCount",s(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",s(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ue=(()=>{class i{constructor(){this.migrateService=f(x),this.toastr=f(I),this.refresh$=new P(void 0),this.pageTitle="Payment Account"}ngOnInit(){let e=this.refresh$.pipe(T(()=>this.migrateService.getPaymentMethodAccountCount()),M(t=>console.log("API response:",t)),v(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.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(t){return new(t||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-payment-account"]],features:[w([x])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","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(t,r){t&1&&(n(0,"app-main-panel",2),A(1,J,5,6,"ng-template",null,0,C)(3,K,9,14,"ng-template",null,1,C),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,$,V,E,D,R,G,N,L,O,j],encapsulation:2})}}return i})();export{ue as PaymentAccountComponent};
|
package/chunk-HRPP75N7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as A}from"./chunk-54OPMMIM.js";import{a as Be}from"./chunk-G4XX7EU2.js";import{a as He,b as Oe}from"./chunk-AKMHO3LC.js";import{a as Ue}from"./chunk-DCKLQNGL.js";import{b as V}from"./chunk-GJXWL5XV.js";import"./chunk-34XRAZFC.js";import{a as ze}from"./chunk-HRQJ5DXP.js";import{a as ae}from"./chunk-P6CJ2ONT.js";import"./chunk-TQZNJ5WF.js";import"./chunk-OZACNHDP.js";import{a as z,b as H}from"./chunk-JP3F2QND.js";import{d as ke,i as Me,j as Pe,k as je}from"./chunk-TFV5QZKR.js";import{a as Ae,b as De}from"./chunk-3WB76KQC.js";import"./chunk-LTZA6IIO.js";import"./chunk-HFFH2WIX.js";import{a as Je,b as Ne}from"./chunk-TK3G2BVM.js";import"./chunk-LR2DJRRL.js";import"./chunk-CSMMP7XG.js";import"./chunk-6TA77CRR.js";import"./chunk-JMLETF7Y.js";import"./chunk-C5GEP4MM.js";import"./chunk-TC43COAE.js";import{a as be,b as Se}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import{g as Fe,h as Ve}from"./chunk-35CWG2OK.js";import{b as Ee,c as Te}from"./chunk-EXVUABTO.js";import{a as v,b as we,c as ve,d as ye,e as Re,f as Ie}from"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{n as ge,o as he,w as xe,x as Ce}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{b as le,c as me,e as pe,f as se,k as ce,l as de,o as ue,v as fe,y as _e}from"./chunk-BNI5KUDE.js";import"./chunk-35KDUCM3.js";import"./chunk-3HW557B7.js";import{c as ee,e as te,f as ie,i as ne,k as oe,m as re}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Ab as W,Cb as g,Ga as k,Ic as I,Jc as Z,Kb as c,Kc as F,Lc as w,Nb as $,Ub as r,Vb as o,Wb as b,X as N,Xc as E,Z as U,_b as y,bb as L,c as D,cb as G,dc as R,ec as _,gb as m,ha as C,pa as h,pc as p,qa as x,qc as S,rc as M,s as J,tc as q,uc as Q,vc as P,wb as K,wc as X,xc as Y,yc as j,zc as T}from"./chunk-YVEUYFCE.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var Qe={data:{data:[],totalCount:0},meta:{options:{outlets:[]},filter:{number:null,outletName:null,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4,paymentState:0}},filter:{number:null,outletName:null,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4,paymentState:0}},O=we(Ie(Qe),ve(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)),checkedARCollection:E(()=>t.data().data.filter(a=>a.checked).map(a=>a.id))})),Re(t=>{let a=C(A),e=C(V);return{updateFilter(n){v(t,i=>f(d({},i),{filter:d(d({},i.filter),n)}))},onRowSelect(n){v(t,i=>{let u=i.data.data.map(s=>s.id===n.id?f(d({},s),{checked:!0}):s);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onRowUnselect(n){v(t,i=>{let u=i.data.data.map(s=>s.id===n.id?f(d({},s),{checked:!1}):s);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onHeaderCheckboxToggle(n){v(t,i=>{let u=i.data.data.map(s=>f(d({},s),{checked:n}));return f(d({},i),{data:f(d({},i.data),{data:u})})})},getARLoader:z(D(N(()=>a.getARJournalLoader().pipe(H({next:n=>{v(t,i=>f(d({},i),{meta:n}))},error:n=>{console.error("Error fetching AR collection loader:",n)}}))))),getARCollection:z(D(J(n=>Object.entries(n).reduce((i,[u,s])=>(s!=null&&(i[u]=s),i),{})),N(n=>a.getARJournal(n).pipe(J(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}))})),H({next:i=>{v(t,u=>f(d({},u),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),ye(t=>({onInit:()=>{t.getARLoader(),t.getARCollection(t.filter)}})));var Xe=()=>({height:"calc(100vh - 70px)"}),B=t=>({"ng-invalid ng-dirty":t}),Ye=()=>({});function Ze(t,a){if(t&1){let e=y();r(0,"p-button",10),R("onClick",function(){h(e);let n=_(2);return x(n.onCreateJournal())}),o()}}function et(t,a){if(t&1&&g(0,Ze,1,0,"p-button",9),t&2){let e=_();c("ngIf",e.store.hasCheckedRows())}}function tt(t,a){t&1&&(r(0,"tr")(1,"th",12),b(2,"p-tableHeaderCheckbox"),o(),r(3,"th",13),p(4,"Outlet"),o(),r(5,"th",14),p(6,"Number"),o(),r(7,"th",15),p(8,"Customer"),o(),r(9,"th",16),p(10,"Date"),o(),r(11,"th",16),p(12,"Due"),o(),r(13,"th",15),p(14,"Note"),o(),r(15,"th",17),p(16,"Payment"),o(),b(17,"th",12),o())}function it(t,a){if(t&1&&(r(0,"tr")(1,"td"),b(2,"p-tableCheckbox",18),o(),r(3,"td"),p(4),o(),r(5,"td")(6,"a",19),p(7),o()(),r(8,"td"),p(9),o(),r(10,"td"),p(11),I(12,"date"),o(),r(13,"td"),p(14),I(15,"date"),o(),r(16,"td"),b(17,"div",20),o(),r(18,"td"),p(19),o(),r(20,"td"),b(21,"p-button",21),o()()),t&2){let e=a.$implicit,l=_(2);m(2),c("value",e),m(2),S(e.outlet),m(2),c("href",l.authService.getTenantExternalURL()+"/menu/Debt/Debt/Join_Invoice/New_Join_Invoice/Info?ID="+e.id,G),m(),M(" ",e.number," "),m(2),S(e.customer),m(2),S(F(12,12,e.date,"d MMM y")),m(3),S(e.due?F(15,15,e.due,"d MMM y hh:mm"):"-"),m(3),c("innerHTML",e.note,L),m(2),S(e.payment),m(2),c("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function nt(t,a){if(t&1&&p(0),t&2){let e=_(2);q(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function ot(t,a){t&1&&(r(0,"tr")(1,"td",22)(2,"span"),p(3,"No records found."),o()()())}function rt(t,a){if(t&1){let e=y();r(0,"p-panel")(1,"p-table",11),R("onPage",function(n){h(e);let i=_();return x(i.onPageChange(n))})("onHeaderCheckboxToggle",function(n){h(e);let i=_();return x(i.onHeaderCheckboxToggle(n))})("onRowSelect",function(n){h(e);let i=_();return x(i.onRowSelect(n))})("onRowUnselect",function(n){h(e);let i=_();return x(i.onRowUnselect(n))}),g(2,tt,18,0,"ng-template",null,3,w)(4,it,22,18,"ng-template",null,4,w)(6,nt,1,3,"ng-template",null,5,w)(8,ot,4,0,"ng-template",null,6,w),o()()}if(t&2){let e=_();$(j(9,Xe)),m(),c("value",e.store.data().data)("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}function at(t,a){if(t&1&&(r(0,"span",32),p(1),I(2,"truncate"),o()),t&2){let e=a.$implicit;c("pTooltip",e.name),m(),M(" ",F(2,2,e.name,30)," ")}}function lt(t,a){if(t&1&&(r(0,"div")(1,"span",34),p(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function mt(t,a){if(t&1&&(r(0,"div"),g(1,lt,3,1,"div",33),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("from"))}}function pt(t,a){if(t&1&&(r(0,"div")(1,"span",34),p(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function st(t,a){if(t&1&&(r(0,"div"),g(1,pt,3,1,"div",33),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("to"))}}function ct(t,a){if(t&1&&(r(0,"div")(1,"span",34),p(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function dt(t,a){if(t&1&&(r(0,"div"),g(1,ct,3,1,"div",33),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("pageSize"))}}function ut(t,a){if(t&1){let e=y();r(0,"form",23)(1,"div",24)(2,"label",25),p(3,"Outlet"),o(),r(4,"p-select",26),g(5,at,3,5,"ng-template",null,7,w),o()(),r(7,"div",24)(8,"label",25),p(9,"From"),o(),b(10,"p-datepicker",27),g(11,mt,2,1,"div",28),o(),r(12,"div",24)(13,"label",25),p(14,"To"),o(),b(15,"p-datepicker",29),g(16,st,2,1,"div",28),o(),r(17,"div",24)(18,"label",25),p(19,"Customer"),o(),r(20,"p-autocomplete",30),I(21,"async"),R("completeMethod",function(n){h(e);let i=_();return x(i.onSearchContact(n))}),o()(),r(22,"div",24)(23,"label",25),p(24,"Page Size"),o(),b(25,"input",31),g(26,dt,2,1,"div",28),o()()}if(t&2){let e=_();c("formGroup",e.form),m(4),c("virtualScrollItemSize",50)("options",e.store.meta().options.outlets),m(6),c("iconDisplay","input")("showIcon",!0)("ngClass",T(17,B,e.isInvalid("from"))),m(),c("ngIf",e.isInvalid("from")),m(4),c("iconDisplay","input")("showIcon",!0)("ngClass",T(19,B,e.isInvalid("to"))),m(),c("ngIf",e.isInvalid("to")),m(4),c("suggestions",Z(21,15,e.customerSuggestions$)),m(5),c("autoNumeric",j(21,Ye))("ngClass",T(22,B,e.isInvalid("pageSize"))),m(),c("ngIf",e.isInvalid("pageSize"))}}var ni=(()=>{class t extends Ue{constructor(){super(),this.store=C(O),this.generateJournalService=C(A),this.authService=C(ae),this.isDialogFilterVisible=k(!1),this.isInitDialogFilterVisible=k(!1),this.fb=C(fe),this.dayjsService=C(V)}ngOnInit(){this.initForm()}initForm(){let{number:e,from:l,to:n,pageNumber:i,rowCount:u,pageSize:s,export:Le,exportPageNumber:Ge,exportRowCount:Ke,outletName:We,customerID:$e,paymentState:qe}=this.store.filter();this.form=this.fb.group({number:this.fb.control(e),from:this.fb.control(this.dayjsService.from(l)?this.dayjsService.from(l).toDate():null),to:this.fb.control(this.dayjsService.from(n)?this.dayjsService.from(n).toDate():null),pageNumber:this.fb.control(i),rowCount:this.fb.control(u),pageSize:this.fb.control(s,[me.required]),export:this.fb.control(Le),exportPageNumber:this.fb.control(Ge),exportRowCount:this.fb.control(Ke),outletName:this.fb.control(We),customerID:this.fb.control($e),paymentState:this.fb.control(qe)})}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((l,[n,i])=>{switch(n){case"customerID":i||(l[n]=Be);break;case"from":typeof i=="object"?l[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null:l[n]=i!=null?String(i):null;break;case"to":typeof i=="object"?l[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null:l[n]=i!=null?String(i):null;break;default:l[n]=i===null?"":i;break}return l},{});console.log("Filter Body:",e),this.store.updateFilter(e),this.isDialogFilterVisible.set(!1)}onSearchContact(e){this.customerSuggestions$=this.generateJournalService.getCustomerSuggestions(e.query)}onSearch(e){this.store.updateFilter(f(d({},this.store.filter()),{number:e,pageNumber:1})),this.store.getARCollection(this.store.filter())}onPageChange(e){let l=e.first/e.rows;this.store.updateFilter(f(d({},this.store.filter()),{pageNumber:l+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(l=>{this.store.onRowUnselect(l)});return}else this.store.onRowUnselect(e.data)}onCreateJournal(){this.generateJournalService.createARJournal(this.store.checkedARCollection()).pipe(U(()=>this.store.getARCollection(this.store.filter))).subscribe()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=K({type:t,selectors:[["app-ar-journal"]],features:[Y([O]),W],decls:8,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["item",""],["pageTitle","AR Collection",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","14rem"],[2,"width","11rem"],[2,"width","9rem"],[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 Outlet",3,"virtualScrollItemSize","options"],["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","customerID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["type","text","pInputText","","formControlName","pageSize",3,"autoNumeric","ngClass"],[3,"pTooltip"],[4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(l,n){if(l&1){let i=y();r(0,"app-main-panel",8),X("isDialogFilterVisibleChange",function(s){return h(i),P(n.isDialogFilterVisible,s)||(n.isDialogFilterVisible=s),x(s)})("isInitDialogFilterVisibleChange",function(s){return h(i),P(n.isInitDialogFilterVisible,s)||(n.isInitDialogFilterVisible=s),x(s)}),R("filterConfirmed",function(){return h(i),x(n.onFilterOKEvent())})("search",function(s){return h(i),x(n.onSearch(s))}),g(1,et,1,1,"ng-template",null,0,w)(3,rt,10,10,"ng-template",null,1,w),p(5," <"),g(6,ut,27,24,"ng-template",null,2,w),o()}l&2&&(c("isSearchableInput",!0)("isFilterable",!0),Q("isDialogFilterVisible",n.isDialogFilterVisible)("isInitDialogFilterVisible",n.isInitDialogFilterVisible))},dependencies:[Ve,re,ee,te,ie,ne,oe,je,ke,Me,Pe,Ce,xe,Se,be,_e,ce,le,pe,se,de,ue,Ne,Je,De,Ae,Oe,He,he,ge,Fe,Te,Ee,ze],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{ni as ARJournalComponent};
|
package/chunk-JYNZPVLW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-WGZN6AN2.js";import"./chunk-P6CJ2ONT.js";import"./chunk-35KDUCM3.js";import"./chunk-3HW557B7.js";import"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import"./chunk-YVEUYFCE.js";import"./chunk-YQFG5XE2.js";var o=[{path:"",canActivate:[a],children:[{path:"",loadComponent:()=>import("./chunk-N6JCA3CN.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{o as DashboardRoutes};
|
package/chunk-K6753MGR.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as Te,b as Le}from"./chunk-AKMHO3LC.js";import{a as Ct,b as ye}from"./chunk-GJXWL5XV.js";import"./chunk-34XRAZFC.js";import{a as Fe}from"./chunk-P6CJ2ONT.js";import{a as St}from"./chunk-NRULEUE7.js";import{b as ht,c as xt}from"./chunk-NF3TF3LT.js";import{a as Ce,b as ve}from"./chunk-AOSPVPK7.js";import"./chunk-TQZNJ5WF.js";import{b as gt}from"./chunk-RT5PUZ5F.js";import"./chunk-OZACNHDP.js";import{a as oe,b as De}from"./chunk-LKZL77YR.js";import{a as H,b as Y}from"./chunk-JP3F2QND.js";import{a as ut,b as _t,d as xe,k as Se}from"./chunk-TFV5QZKR.js";import{a as ge,b as he}from"./chunk-3WB76KQC.js";import"./chunk-LTZA6IIO.js";import{a as ft}from"./chunk-N2RYBZK7.js";import{a as A}from"./chunk-B7JILYJO.js";import"./chunk-HFFH2WIX.js";import{b as Re}from"./chunk-TK3G2BVM.js";import"./chunk-LR2DJRRL.js";import"./chunk-CSMMP7XG.js";import"./chunk-6TA77CRR.js";import"./chunk-JMLETF7Y.js";import"./chunk-C5GEP4MM.js";import{e as ct}from"./chunk-TC43COAE.js";import{a as le,b as pe}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import{b as fe}from"./chunk-6ZZARVQO.js";import{f as dt,h as _e}from"./chunk-35CWG2OK.js";import"./chunk-EXVUABTO.js";import{a as V,b as me,c as ce,d as se,e as de,f as ue,g as st}from"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as re,x as ae}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{c as lt,e as X,f as Z,g as pt,i as G,k as ee,l as te,o as ie,t as mt,v as we,y as ne}from"./chunk-BNI5KUDE.js";import{a as at}from"./chunk-35KDUCM3.js";import{a as rt}from"./chunk-3HW557B7.js";import{C as ot,F as J,M as Q,c as tt,f as Ie,k as it,l as K,m as $,s as nt}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Cb as C,D as Ee,Ga as T,Ic as x,Jc as S,Kb as c,Kc as Ze,Lc as s,Nb as N,Pb as O,Qb as Je,Sb as Qe,Tb as Xe,Ub as i,V as ze,Vb as n,W as Ue,Wb as E,X as j,Xc as R,Yc as et,Z as k,_b as L,ba as Ke,c as P,cb as $e,dc as w,ec as d,gb as l,ha as h,pa as y,pc as r,qa as b,qc as u,rc as D,s as We,uc as W,vc as q,wb as M,wc as z,xc as U,yc as I,zc as F}from"./chunk-YVEUYFCE.js";import{a as g,b as v,c as Ve,e as Ye}from"./chunk-YQFG5XE2.js";var B=(()=>{class t{constructor(){this.httpService=h(at),this.authService=h(Fe)}fetchGeneralLedgerLoader(e={}){return this.httpService.post(void 0,"api/GeneralLedgerLoader/GetFilter",e)}fetchGeneralLedgerReport(e){return this.httpService.post(void 0,"api/GeneralLedger/Get",e)}exportGeneralLedger(e){let a={responseType:"blob"};return this.httpService.post(void 0,"/api/GeneralLedgerExport/GetGeneralLedgerExport",e,a)}getCustomerSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:a})}getSupplierSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:a})}getCashierSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:a})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(e,a={}){let o=new nt({fromObject:Object.fromEntries(Object.entries(e).map(([f,_])=>[f,String(_)]))}),m=g({params:o},a);return this.httpService.get(void 0,"/api/BalanceSheet",m)}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(e,a={}){return this.httpService.post(void 0,"api/IncomeStatement/List",g({},e),a)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=Ke({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gt={metadata:{filter:{categoryID:"",from:new Date().toISOString(),to:new Date().toISOString(),iDs:[],outletIDs:[]},options:{accounts:[],outlets:[]},roles:{isInEmptyOutletRole:!1}},items:{data:[],pageTitle:""},filter:{listAccountID:[],categoryID:null,OutletID:[],ContactID:null,from:null,to:null}},Me=me(ue(Gt),st("General Ledger Store"),ce(t=>({debitTotal:R(()=>t.items.data().reduce((p,e)=>p+e.data.reduce((a,o)=>a+(o.debitAmount||0),0),0)),creditTotal:R(()=>t.items.data().reduce((p,e)=>p+e.data.reduce((a,o)=>a+(o.creditAmount||0),0),0))})),de(t=>{let p=h(B),e={updateFilter:a=>{V(t,o=>v(g({},o),{filter:a}))},loadList:H(P(Ee(a=>Array.isArray(a.listAccountID)&&a.listAccountID.length>0),j(a=>p.fetchGeneralLedgerReport(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{items:o}))},error:o=>{console.error(o)}}))))),loadLoader:H(P(j(a=>p.fetchGeneralLedgerLoader(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{metadata:o,filter:v(g({},m.filter),{categoryID:o.filter.categoryID})})),e.loadList(t.filter)},error:o=>{console.error(o)}}))),A("res")))};return e}),se({onInit:t=>{t.loadLoader({})}}));var jt=()=>({height:"calc(100vh - 70px)"}),Nt=()=>({height:"calc(100vh - 100px)"}),qt=t=>["/pages/journal/journal-entry/",t],Ht=t=>({"ng-invalid ng-dirty":t}),Yt=()=>({scrollHeight:"250px"});function Wt(t,p){if(t&1){let e=L();i(0,"div",11)(1,"a",12),r(2,"Return to Accounts"),n(),i(3,"p-button",13),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function zt(t,p){if(t&1&&(i(0,"div",11)(1,"span",16)(2,"h3",17),r(3),n()(),i(4,"span",16)(5,"h3",17),r(6),n()()()),t&2){let e=d().$implicit;l(3),u(e.name),l(3),D(" (",e.chartOfAccountCode,") ")}}function Ut(t,p){t&1&&(i(0,"tr")(1,"th",18),r(2,"Outlet"),n(),i(3,"th",18),r(4,"No."),n(),i(5,"th",18),r(6,"Date"),n(),i(7,"th",18),r(8,"Name"),n(),i(9,"th",18),r(10,"Description"),n(),i(11,"th",19),r(12,"Debit"),n(),i(13,"th",20),r(14,"Credit"),n(),i(15,"th",20),r(16,"Balance"),n()())}function Kt(t,p){if(t&1&&(i(0,"td",25),r(1,"Starting Balance"),n(),i(2,"td",26),r(3),x(4,"number"),n()),t&2){let e=d(2).$implicit;l(3),D(" ",S(4,1,e.startBalance)," ")}}function $t(t,p){if(t&1&&(i(0,"tr"),C(1,Kt,5,3),n(),i(2,"tr")(3,"td",21),r(4),n(),i(5,"td",21)(6,"a",22),r(7),n()(),i(8,"td",21),r(9),x(10,"date"),n(),i(11,"td",21)(12,"a",23),r(13),n()(),E(14,"td"),i(15,"td",24),r(16),x(17,"number"),n(),i(18,"td",24),r(19),x(20,"number"),n(),i(21,"td",24),r(22),x(23,"number"),n()()),t&2){let e=p.$implicit,a=p.rowIndex,o=d(4);l(),O(a===0&&o.store.items().data.length>1?1:-1),l(3),u(e.outletName),l(2),c("routerLink",F(19,qt,e.id)),l(),u(e.number),l(2),u(Ze(10,10,e.date,"dd MMM yyyy")),l(3),c("href",o.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,$e),l(),u(e.contactName),l(3),D(" ",S(17,13,e.debitAmount)," "),l(3),D(" ",S(20,15,e.creditAmount)," "),l(3),u(S(23,17,e.balance))}}function Jt(t,p){if(t&1&&(i(0,"tr"),E(1,"td",27),i(2,"td",28),r(3,"Total"),n(),i(4,"td",28),r(5),x(6,"number"),n(),i(7,"td",28),r(8),x(9,"number"),n(),E(10,"td"),n()),t&2){let e=d().$index,a=d(3);l(5),D(" ",S(6,2,a.store.items().data[e].debitTotal)," "),l(3),D(" ",S(9,4,a.store.items().data[e].creditTotal)," ")}}function Qt(t,p){t&1&&(i(0,"tr")(1,"td",29)(2,"span"),r(3,"No records found."),n()()())}function Xt(t,p){if(t&1&&(i(0,"p-table",15),C(1,zt,7,2,"ng-template",null,3,s)(3,Ut,17,0,"ng-template",null,4,s)(5,$t,24,21,"ng-template",null,5,s)(7,Jt,11,6,"ng-template",null,6,s)(9,Qt,4,0,"ng-template",null,7,s),n()),t&2){let e=p.$implicit;c("value",e.data)("scrollable",!0)}}function Zt(t,p){if(t&1&&(i(0,"p-panel")(1,"p-scroll-panel"),Qe(2,Xt,11,2,"p-table",15,Je),n()()),t&2){let e=d(2);N(I(4,jt)),l(),N(I(5,Nt)),l(),Xe(e.store.items().data)}}function ei(t,p){if(t&1&&C(0,Zt,4,6,"p-panel",14),t&2){let e=d();c("ngIf",e.store.items()&&e.store.items().data.length)}}function ti(t,p){if(t&1&&(i(0,"div",11)(1,"div",16)(2,"span",45),r(3),n()(),i(4,"div")(5,"span"),r(6,"-"),n()(),i(7,"div",16)(8,"span",46),r(9),n()()()),t&2){let e=p.$implicit;l(3),D("(",e.code,")"),l(6),u(e.name)}}function ii(t,p){if(t&1&&(i(0,"div",11)(1,"div",16)(2,"span",45),r(3),n()(),i(4,"div")(5,"span"),r(6,"-"),n()(),i(7,"div",16)(8,"span",46),r(9),n()()()),t&2){let e=p.$implicit;l(3),D("(",e.code,")"),l(6),u(e.name)}}function ni(t,p){if(t&1&&(i(0,"div",47)(1,"div"),r(2),n()()),t&2){let e=p.$implicit;l(2),u(e.value)}}function oi(t,p){if(t&1){let e=L();i(0,"div",31)(1,"label",32),r(2,"Customer"),n(),i(3,"p-autocomplete",48),w("completeMethod",function(o){y(e);let m=d(2);return b(m.searchCustomer(o))}),n()()}if(t&2){let e=d(2);l(3),c("suggestions",e.customerSuggestions())}}function ri(t,p){if(t&1){let e=L();i(0,"div",31)(1,"label",32),r(2,"Supplier"),n(),i(3,"p-autocomplete",48),w("completeMethod",function(o){y(e);let m=d(2);return b(m.searchSupplier(o))}),n()()}if(t&2){let e=d(2);l(3),c("suggestions",e.supplierSuggestions())}}function ai(t,p){if(t&1){let e=L();i(0,"form",30)(1,"div",31)(2,"label",32),r(3,"Accounts"),n(),i(4,"p-multiselect",33),w("onChange",function(o){y(e);let m=d();return b(m.onAccountChange(o))}),C(5,ti,10,2,"ng-template",null,8,s)(7,ii,10,2,"ng-template",null,9,s),n()(),i(9,"div",31)(10,"label",32),r(11,"From"),n(),E(12,"p-datepicker",34),n(),i(13,"div",31)(14,"label",32),r(15,"To"),n(),E(16,"p-datepicker",35),n(),i(17,"div",31)(18,"label",32),r(19,"Outlets"),n(),i(20,"p-multiselect",36),C(21,ni,3,1,"ng-template",null,9,s),n()(),i(23,"div",31)(24,"label",32),r(25,"Category"),n(),i(26,"p-treeselect",37),w("onFocus",function(){y(e);let o=d();return b(o.onCategoryFocus())}),n()(),i(27,"div",31)(28,"label",38),r(29,"Contact Type"),n(),i(30,"div",39)(31,"div",40),E(32,"p-radiobutton",41),i(33,"label",42),r(34,"Customer"),n()(),i(35,"div",40),E(36,"p-radiobutton",43),i(37,"label",44),r(38,"Supplier"),n()()()(),C(39,oi,4,1,"div",31)(40,ri,4,1,"div",31),n()}if(t&2){let e=d();c("formGroup",e.generalLedgerFilterForm),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("maxlength",5)("options",e.store.metadata().options.accounts)("ngClass",F(20,Ht,e.generalLedgerFilterForm.get("listAccountID").invalid&&e.generalLedgerFilterForm.get("listAccountID").touched||e.generalLedgerFilterForm.get("listAccountID").dirty)),l(8),c("iconDisplay","input")("showIcon",!0),l(4),c("iconDisplay","input")("showIcon",!0),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets),l(6),c("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",I(22,Yt))("options",e.categoriesOptions()),l(6),c("value",0),l(4),c("value",1),l(3),O(e.generalLedgerFilterForm.get("contactType").value?40:39)}}var Rt=function(t){return t[t.Customer=0]="Customer",t[t.Supplier=1]="Supplier",t}(Rt||{}),Tt=(()=>{class t{constructor(){this.dialogFilterVisible=T(!1),this.reportService=h(B),this.coaService=h(ft),this.authService=h(Fe),this.store=h(Me),this.categoriesOptions=T([]),this.customerSuggestions=T([]),this.supplierSuggestions=T([]),this.route=h(ot),this.dayjsService=h(ye),this.initDialogVisible=T(!0),this.fb=h(we),this.toastr=h(rt)}ngOnInit(){this.generateFilterForm(),this.route.queryParamMap.pipe(We(e=>e.get("id")),k(e=>{e&&(this.initDialogVisible.update(a=>!a),this.generalLedgerFilterForm.patchValue({listAccountID:[e]}),this.store.updateFilter(v(g({},this.store.filter()),{listAccountID:[e]})))})).subscribe(),this.clearContactValueOnContactTypeChange()}clearContactValueOnContactTypeChange(){this.generalLedgerFilterForm.get("contactType")?.valueChanges.subscribe(()=>this.generalLedgerFilterForm.get("ContactID")?.setValue(""))}onAccountChange(e){console.log("Account Change Event:",e),Array.isArray(e.value)&&e.value.length>5&&this.toastr.warning("Please select at least 5 accounts for the general ledger report.","Warning")}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(A("getCachedCategoriesOptions"),k(e=>this.categoriesOptions.set(e))).subscribe()}generateFilterForm(){this.generalLedgerFilterForm=this.fb.group({listAccountID:new G([],[lt.required]),categoryID:new G(null),OutletID:new G([]),ContactID:new G(""),from:new G(null),to:new G(null),contactType:[Rt.Customer]})}onFilterEvent(e){console.log(e),this.dialogFilterVisible.update(a=>!a)}onFilterOKEvent(){let f=this.generalLedgerFilterForm.value,{from:e,to:a}=f,o=Ve(f,["from","to"]);if(this.generalLedgerFilterForm.invalid){this.generalLedgerFilterForm.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let m={categoryID:o.categoryID?.key??null,ContactID:o.ContactID.length?o.ContactID:null,OutletID:o.OutletID.length?o.OutletID:null,listAccountID:o.listAccountID,from:this.dayjsService.from(e)?this.dayjsService.from(e).format():null,to:this.dayjsService.from(a)?this.dayjsService.from(a).format():null};this.dialogFilterVisible.update(_=>!_),this.store.updateFilter(m),this.dialogFilterVisible.set(!1)}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(k(a=>this.customerSuggestions.set(a))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(k(a=>this.supplierSuggestions.set(a))).subscribe()}onExport(){let f=this.generalLedgerFilterForm.value,{from:e,to:a}=f,o=Ve(f,["from","to"]),m={categoryID:o.categoryID?.key??null,ContactID:o.ContactID.length?o.ContactID:null,OutletID:o.OutletID.length?o.OutletID:null,listAccountID:o.listAccountID,from:this.dayjsService.from(e)?this.dayjsService.from(e).format():null,to:this.dayjsService.from(a)?this.dayjsService.from(a).format():null};this.reportService.exportGeneralLedger(m).pipe(A("exportGeneralLedger"),k(_=>{St(_,`general-ledger-${this.dayjsService.now.format("D-MM-YYYY")}.${_.type.split("/")[1]}`,_.type)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-general-ledger"]],features:[U([Me])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["caption",""],["header",""],["body",""],["footer",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible"],[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-download","label","Export",3,"onClick"],[3,"style",4,"ngIf"],["scrollHeight","calc(100vh - 150px)",3,"value","scrollable"],[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"],["target","_blank",1,"link","link-primary",3,"href"],[1,"text-end","text-break"],["colspan","7",1,"text-end"],[1,"text-end"],["colspan","4"],[1,"text-end","fw-semibold"],["colspan","8"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"onChange","virtualScroll","virtualScrollItemSize","maxlength","options","ngClass"],["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","OutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","filter","","filterBy","label","formControlName","categoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","id","placeholder","Select Category",3,"onFocus","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],["for",""],[1,"d-flex","gap-3"],[1,"d-flex","align-items-center","gap-2"],["name","contactType","formControlName","contactType","inputId","customer",3,"value"],["for","customer",1,"m-0"],["name","contactType","formControlName","contactType","inputId","supplier",3,"value"],["for","supplier",1,"m-0"],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"flex","items-center","gap-2"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"]],template:function(a,o){if(a&1){let m=L();i(0,"app-main-panel",10),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.initDialogVisible,_)||(o.initDialogVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOKEvent())}),C(1,Wt,4,0,"ng-template",null,0,s)(3,ei,1,1,"ng-template",null,1,s)(5,ai,41,23,"ng-template",null,2,s),n()}a&2&&(c("pageTitle",o.store.items().pageTitle.length?o.store.items().pageTitle:"General Ledger"),W("isDialogFilterVisible",o.dialogFilterVisible),c("isFilterable",!0),W("isInitDialogFilterVisible",o.initDialogVisible))},dependencies:[_e,$,tt,Ie,K,it,fe,Se,xe,dt,ae,re,Re,he,ge,Le,Te,ne,ee,X,Z,mt,te,ie,ve,Ce,De,oe,ct,xt,ht,gt,pe,le,Q,J,_t,ut],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{padding:.75rem 1rem .75rem 0}"],changeDetection:0})}}return t})();var li={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{from:"",to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},Be=me(ue(li),ce(t=>{let p={totalCOGS:R(()=>{let e=t.data()?.data?.cogs;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),totalRevenue:R(()=>{let e=t.data()?.data?.revenue;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),totalExpense:R(()=>{let e=t.data()?.data?.expense;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),grossProfit:R(()=>Array.isArray(t.data()?.data?.cogs)&&Array.isArray(t.data()?.data?.revenue)?p.totalRevenue()-p.totalCOGS():0),profitOrLoss:R(()=>p.totalRevenue()-p.totalCOGS()-p.totalExpense()),isDataEmpty:R(()=>Object.keys(t.data()?.data??{}).length===0)};return p}),de(t=>{let p=h(B),e=h(ye),a={updateFilter(o){V(t,m=>v(g({},m),{filter:g(g({},m.filter),o)}))},getLoader:H(P(j(()=>p.getIncomeStatementLoader().pipe(Y({next:o=>{V(t,m=>v(g({},m),{loader:o,filter:v(g({},m.filter),{from:e.from(o.filter.from).format(),to:e.from(o.filter.to).format()})})),a.getIncomeStatement(t.filter)},error:o=>{console.error(o)}}))))),getIncomeStatement:H(P(j(o=>p.getIncomeStatement(o).pipe(Ue(()=>V(t,m=>v(g({},m),{isLoading:!0}))),Y({next:m=>{V(t,f=>v(g({},f),{data:m,isLoading:!1}))},error:m=>{console.error(m)}})))))};return a}),se({onInit:t=>{t.getLoader()}}));var pi=()=>({height:"calc(100vh - 70px)"}),mi=()=>({height:"calc(100vh - 150px)"}),ke=()=>({}),Oe=t=>["/pages/chart-of-account/account/",t],Ge=()=>["/pages/report/general-ledger"],Ae=t=>({id:t});function ci(t,p){if(t&1){let e=L();i(0,"div",8)(1,"p-button",9),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function si(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",16),r(6,"Total"),n()())}function di(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.accountID)),l(),u(S(9,6,e.amount))}}function ui(t,p){if(t&1&&(i(0,"tr"),E(1,"td",19),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total Revenue :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,1,e.store.totalRevenue()))}}function _i(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No revenue records available"),n()()())}function fi(t,p){if(t&1&&(i(0,"h6",12),r(1,"Revenue"),n(),i(2,"p-table",13),C(3,si,7,0,"ng-template",null,3,s)(5,di,10,13,"ng-template",null,4,s)(7,ui,9,3,"ng-template",null,5,s)(9,_i,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.revenue)}}function gi(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",25),r(6,"Total"),n()())}function hi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.AccountID)),l(),u(S(9,6,e.amount))}}function xi(t,p){if(t&1&&(i(0,"tr"),E(1,"td",26),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total COGS :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()(),i(9,"tr"),E(10,"td",26),i(11,"td",20)(12,"div",21)(13,"span",22),r(14,"Gross Profit :"),n(),i(15,"span",23),r(16),x(17,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,2,e.store.totalCOGS())),l(9),u(S(17,4,e.store.grossProfit()))}}function Si(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No COGS records available"),n()()())}function Ci(t,p){if(t&1&&(i(0,"h4",12),r(1,"COGS"),n(),i(2,"p-table",13),C(3,gi,7,0,"ng-template",null,3,s)(5,hi,10,13,"ng-template",null,4,s)(7,xi,18,6,"ng-template",null,5,s)(9,Si,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.cogs)}}function vi(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",16),r(6,"Total"),n()())}function yi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.AccountID)),l(),u(S(9,6,e.amount))}}function bi(t,p){if(t&1&&(i(0,"tr"),E(1,"td",26),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total Expense :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()(),i(9,"tr"),E(10,"td",26),i(11,"td",20)(12,"div",21)(13,"span",22),r(14,"Profit / Loss :"),n(),i(15,"span",23),r(16),x(17,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,2,e.store.totalExpense())),l(9),u(S(17,4,e.store.profitOrLoss()))}}function Ei(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No expense records available"),n()()())}function Ii(t,p){if(t&1&&(i(0,"h4",12),r(1,"Expense"),n(),i(2,"p-table",13),C(3,vi,7,0,"ng-template",null,3,s)(5,yi,10,13,"ng-template",null,4,s)(7,bi,18,6,"ng-template",null,5,s)(9,Ei,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.expense)}}function Fi(t,p){if(t&1&&(i(0,"p-scroll-panel")(1,"div",11),C(2,fi,11,1)(3,Ci,11,1)(4,Ii,11,1),n()()),t&2){let e,a,o,m=d(2);N(I(5,mi)),l(2),O(m.Object.keys((e=m.store.data().data)!==null&&e!==void 0?e:I(6,ke)).length>0?2:-1),l(),O(m.Object.keys((a=(a=m.store.data().data)==null?null:a.cogs)!==null&&a!==void 0?a:I(7,ke)).length>0?3:-1),l(),O(m.Object.keys((o=(o=m.store.data().data)==null?null:o.expense)!==null&&o!==void 0?o:I(8,ke)).length>0?4:-1)}}function wi(t,p){if(t&1&&(i(0,"p-panel"),C(1,Fi,5,9,"p-scroll-panel",10),n()),t&2){let e=d();N(I(3,pi)),l(),c("ngIf",e.store.data())}}function Di(t,p){if(t&1){let e=L();i(0,"form",27)(1,"div",28)(2,"label",29),r(3,"Outlet"),n(),E(4,"p-multiselect",30),n(),i(5,"div",28)(6,"label",29),r(7,"Cashier"),n(),i(8,"p-autocomplete",31),w("completeMethod",function(o){y(e);let m=d();return b(m.onCashierSearch(o))})("onSelect",function(o){y(e);let m=d();return b(m.onCashierSelect(o))}),n()(),i(9,"div",28)(10,"label",29),r(11,"From"),n(),E(12,"p-datepicker",32),n(),i(13,"div",28)(14,"label",29),r(15,"To"),n(),E(16,"p-datepicker",33),n()()}if(t&2){let e=d();c("formGroup",e.formFilter),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.loader().options.outlets)("showClear",!0),l(4),c("showClear",!0)("suggestions",e.cashierSuggestions())("showClear",!0)}}var Lt=(()=>{class t{constructor(){this.dayjsService=h(ye),this.store=h(Be),this.fb=h(we),this.reportService=h(B),this.isInitDialogFilterVisible=T(!1),this.dialogFilterVisible=T(!1),this.cashierSuggestions=T([]),this.cashierHashMap=new Map,this.Object=Object,et(()=>{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(A("Cashier Suggestions"),k(a=>this.cashierSuggestions.set(a))).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(),a=Object.entries(e).reduce((o,[m,f])=>(m==="from"||m==="to"?f instanceof Date&&(o[m]=this.dayjsService.from(f).format()):o[m]=f||null,o),{});this.store.updateFilter(g(g({},this.store.filter()),a)),this.dialogFilterVisible.update(o=>!o),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(A("Export Profit & Loss"),k(a=>{let o=a.type,m=[a],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:o}));let _=`profit-and-loss.${o.split("/")[1]}`;f.setAttribute("download",_),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-income-statement"]],features:[U([Be])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","isFilterable","pageTitle","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"style",4,"ngIf"],[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","2 ",1,"fw-semibold","text-end",2,"width","50%"],[1,"text-end","fw-semibold"],[1,"row"],[1,"col-9"],[1,"col"],["colspan","3",1,""],[1,"text-end",2,"min-width","10%"],["colspan","2",1,"fw-semibold"],[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"],["formControlName","from","styleClass","w-100","appendTo","body"],["formControlName","to","styleClass","w-100","appendTo","body"]],template:function(a,o){if(a&1){let m=L();i(0,"app-main-panel",7),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.isInitDialogFilterVisible,_)||(o.isInitDialogFilterVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOK())}),C(1,ci,2,0,"ng-template",null,0,s)(3,wi,2,4,"ng-template",null,1,s)(5,Di,17,8,"ng-template",null,2,s),n()}a&2&&(c("isFilterable",!0)("pageTitle",o.store.data().pageTitle),W("isDialogFilterVisible",o.dialogFilterVisible)("isInitDialogFilterVisible",o.isInitDialogFilterVisible))},dependencies:[_e,$,Ie,K,Re,he,ge,ne,ee,X,Z,te,ie,ve,Ce,fe,Se,xe,pe,le,oe,Q,J,Le,Te,ae,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Pe=Ye(Ct());var Ri={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,Pe.default)().format("YYYY-MM-DD"),listOutletParam:[]}},je=me(ue(Ri),ce(t=>({totalAsset:R(()=>t.data().asset.reduce((p,e)=>p+ +e.amount,0)),totalLiability:R(()=>t.data().liability.reduce((p,e)=>p+ +e.counterAmount,0)),totalEquity:R(()=>t.data().equity.reduce((p,e)=>p+ +e.counterAmount,0))})),de(t=>{let p=h(B),e={updateFilter:a=>{V(t,o=>v(g({},o),{filter:a}))},fetchBalanceSheet:H(P(Ee(()=>{let a=t.filter();return Object.entries(a).every(([o,m])=>m!=null&&m!=="")}),j(a=>p.getBalanceSheet(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{data:o}))},error:o=>{console.error(o)}}))),ze(1))),fetchLoader:H(P(j(()=>p.getBalanceSheetLoader().pipe(Y({next:a=>{V(t,o=>v(g({},o),{metadata:a,filter:{date:(0,Pe.default)(a.filter.to).format("YYYY-MM-DD")}})),e.fetchBalanceSheet(t.filter)},error:a=>{console.error(a)}})))))};return e}),se(t=>({onInit:()=>{t.fetchLoader()}})));var Vt=Ye(Ct());var Ti=()=>({height:"calc(100vh - 70px)"}),Li=()=>({height:"calc(100vh - 100px)"}),Ne=t=>["/pages/chart-of-account/account/",t],qe=()=>["/pages/report/general-ledger"],He=t=>({id:t});function Vi(t,p){if(t&1){let e=L();i(0,"div",9)(1,"p-button",10),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function Mi(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Asset"),n(),i(5,"th",16),r(6,"Total"),n()())}function Bi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.amount))}}function ki(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2,"Total Asset"),n(),i(3,"td",21),r(4),x(5,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,1,e.store.totalAsset())," ")}}function Oi(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No asset records found."),n()()())}function Gi(t,p){if(t&1&&(i(0,"h4",13),r(1,"Asset"),n(),i(2,"p-table",14),C(3,Mi,7,0,"ng-template",null,3,s)(5,Bi,10,13,"ng-template",null,4,s)(7,ki,6,3,"ng-template",null,5,s)(9,Oi,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().asset)}}function Ai(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Liability"),n(),i(5,"th",16),r(6,"Total"),n()())}function Pi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",24),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.counterAmount))}}function ji(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2," Total Liability "),n(),i(3,"td",21),r(4),x(5,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,1,e.store.totalLiability())," ")}}function Ni(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No liability records found."),n()()())}function qi(t,p){if(t&1&&(i(0,"h4",23),r(1,"Liability"),n(),i(2,"p-table",14),C(3,Ai,7,0,"ng-template",null,3,s)(5,Pi,10,13,"ng-template",null,4,s)(7,ji,6,3,"ng-template",null,5,s)(9,Ni,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().liability)}}function Hi(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Equity"),n(),i(5,"th",16),r(6,"Total"),n()())}function Yi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.counterAmount))}}function Wi(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2,"Total Equity"),n(),i(3,"td",21),r(4),x(5,"number"),n()(),i(6,"tr")(7,"td",20),r(8," Total Liability + Equity "),n(),i(9,"td",21),r(10),x(11,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,2,e.store.totalEquity())," "),l(6),D(" ",S(11,4,e.store.totalLiability()+e.store.totalEquity())," ")}}function zi(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No equity records found."),n()()())}function Ui(t,p){if(t&1&&(i(0,"h4",23),r(1,"Equity"),n(),i(2,"p-table",14),C(3,Hi,7,0,"ng-template",null,3,s)(5,Yi,10,13,"ng-template",null,4,s),r(7," <"),C(8,Wi,12,6,"ng-template",null,5,s)(10,zi,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().equity)}}function Ki(t,p){if(t&1&&(i(0,"p-panel",11)(1,"p-scroll-panel")(2,"div",12),C(3,Gi,11,1)(4,qi,11,1)(5,Ui,12,1),n()()()),t&2){let e=d();N(I(8,Ti)),c("showHeader",!1),l(),N(I(9,Li)),l(2),O(e.Object.keys(e.store.data().asset).length>0?3:-1),l(),O(e.Object.keys(e.store.data().liability).length>0?4:-1),l(),O(e.Object.keys(e.store.data().equity).length>0?5:-1)}}function $i(t,p){if(t&1&&(i(0,"div",30)(1,"div"),r(2),n()()),t&2){let e=p.$implicit;l(2),u(e.value)}}function Ji(t,p){if(t&1&&(i(0,"form",25)(1,"div",26)(2,"label",27),r(3,"Outlet"),n(),i(4,"p-multiselect",28),C(5,$i,3,1,"ng-template",null,7,s),n()(),i(7,"div",26)(8,"label",27),r(9,"From"),n(),E(10,"p-datepicker",29),n()()),t&2){let e=d();c("formGroup",e.filterForm),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets)("showClear",!0),l(6),c("iconDisplay","input")("showIcon",!0)}}var Mt=(()=>{class t{constructor(){this.store=h(je),this.ReportServiceStore=h(B),this.dialogFilterVisible=T(!1),this.isInitDialogFilterVisible=T(!1),this.Object=Object}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new pt({date:new G(new Date),outletID:new G([])})}onFilterOKEvent(){let{date:e,outletID:a}=this.filterForm.value;this.store.updateFilter({date:(0,Vt.default)(e).format("YYYY-MM-DD"),listOutletParam:a}),this.dialogFilterVisible.update(o=>!o)}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.ReportServiceStore.getBalanceSheet(e,{responseType:"blob"}).pipe(A("Export Balance Sheet"),k(a=>{let o=a.type,m=[a],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:o}));let _=`balance-sheet.${o.split("/")[1]}`;f.setAttribute("download",_),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-balance-sheet"]],features:[U([je])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","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(a,o){if(a&1){let m=L();i(0,"app-main-panel",8),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.isInitDialogFilterVisible,_)||(o.isInitDialogFilterVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOKEvent())}),C(1,Vi,2,0,"ng-template",null,0,s)(3,Ki,6,10,"ng-template",null,1,s)(5,Ji,11,7,"ng-template",null,2,s),n()}a&2&&(c("pageTitle",o.store.data().pageTitle)("isFilterable",!0),W("isDialogFilterVisible",o.dialogFilterVisible)("isInitDialogFilterVisible",o.isInitDialogFilterVisible))},dependencies:[_e,$,K,Se,xe,fe,ae,re,ne,ee,X,Z,te,ie,ve,Ce,he,ge,De,oe,pe,le,Q,J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Bt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-comparative-balance works!"),n(),r(2,`
|
|
2
|
-
,
|
|
3
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var kt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-cash-flow works!"),n(),r(2,`
|
|
4
|
-
,
|
|
5
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ot=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-trial-balance works!"),n(),r(2,`
|
|
6
|
-
,
|
|
7
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var sr=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:Tt},{path:"profit-loss",component:Lt},{path:"balance-sheet",component:Mt},{path:"comparative-balance",component:Bt},{path:"trial-balance",component:Ot},{path:"cash-flow",component:kt}]}];export{sr as REPORTS_ROUTES};
|