dealposbooks 5.36.5 → 5.37.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.
Files changed (110) hide show
  1. package/chunk-2EIZ76HE.js +1 -0
  2. package/{chunk-UQZHGK5W.js → chunk-2N5X42BK.js} +1 -1
  3. package/{chunk-NJO5TWIA.js → chunk-3CUYHDDG.js} +1 -1
  4. package/{chunk-2CVFKICS.js → chunk-3EH6PALU.js} +1 -1
  5. package/{chunk-XFXJAOFU.js → chunk-3OWUTEG2.js} +1 -1
  6. package/{chunk-BV4GM72W.js → chunk-3PRXAPAT.js} +1 -1
  7. package/{chunk-FLZXCWDU.js → chunk-3ZQVIJMU.js} +1 -1
  8. package/{chunk-3LJYW2Z6.js → chunk-47CQRQIP.js} +1 -1
  9. package/{chunk-ETHYZE3J.js → chunk-4GUP7433.js} +1 -1
  10. package/{chunk-C2GO6SPF.js → chunk-4TQOJBQI.js} +1 -1
  11. package/{chunk-4DOELXOP.js → chunk-4XCMTFFH.js} +1 -1
  12. package/{chunk-JMEBBWX4.js → chunk-52KGCI4Z.js} +1 -1
  13. package/{chunk-LJ7OBHK2.js → chunk-53IBQLYQ.js} +1 -1
  14. package/{chunk-LZUGPBFD.js → chunk-5JHWAF7R.js} +1 -1
  15. package/{chunk-SLHUSJER.js → chunk-5O73U6P7.js} +1 -1
  16. package/{chunk-N6HVVNKA.js → chunk-5PURHPFH.js} +1 -1
  17. package/{chunk-ZDP7IENI.js → chunk-5ZHMTEH2.js} +1 -1
  18. package/{chunk-F5XF3NTF.js → chunk-65OCC4LR.js} +1 -1
  19. package/{chunk-JF3AV7IJ.js → chunk-6T64IBSG.js} +1 -1
  20. package/{chunk-LWLJZPBI.js → chunk-6WHZBKFW.js} +1 -1
  21. package/{chunk-S6X7PJAB.js → chunk-76YIDIBJ.js} +1 -1
  22. package/{chunk-O4QM64EH.js → chunk-7FYHB5GM.js} +1 -1
  23. package/chunk-7WAZPKOK.js +1 -0
  24. package/{chunk-FTAEXYBJ.js → chunk-AIUDSJBN.js} +1 -1
  25. package/{chunk-IDW6F2F3.js → chunk-AMMK4U54.js} +1 -1
  26. package/{chunk-OZLW2N3Q.js → chunk-B5GNFDMG.js} +1 -1
  27. package/{chunk-BGOI3WIG.js → chunk-BPEU23J5.js} +1 -1
  28. package/{chunk-WA2CNBAA.js → chunk-BPQN4YWQ.js} +1 -1
  29. package/{chunk-FUZFAJGJ.js → chunk-C2YOJOPY.js} +1 -1
  30. package/{chunk-S4YVLJB2.js → chunk-C7CIUOM5.js} +1 -1
  31. package/{chunk-BY6QUHQI.js → chunk-CEN7UP6Q.js} +1 -1
  32. package/{chunk-XAWSZFE3.js → chunk-CIAGHK5E.js} +1 -1
  33. package/{chunk-2KERKGCG.js → chunk-D36YVGIB.js} +1 -1
  34. package/chunk-D4VGEGUS.js +7 -0
  35. package/{chunk-JTDJJORR.js → chunk-DE2473W5.js} +1 -1
  36. package/{chunk-5FSMHZSY.js → chunk-DGTLYGTT.js} +1 -1
  37. package/{chunk-HL7O6XIY.js → chunk-DKORHYIR.js} +1 -1
  38. package/{chunk-X22YKT5B.js → chunk-DYSMAYNT.js} +1 -1
  39. package/{chunk-J6GDRGLV.js → chunk-E4CGQOU2.js} +1 -1
  40. package/{chunk-GDX5XEV3.js → chunk-FKPQJ7WA.js} +1 -1
  41. package/{chunk-G5S5AZA7.js → chunk-FTFZVOHA.js} +1 -1
  42. package/{chunk-OSRZ3N7N.js → chunk-FWT56GXG.js} +1 -1
  43. package/{chunk-YYDAQ7AW.js → chunk-GC5XCOU5.js} +1 -1
  44. package/{chunk-Z45NTTES.js → chunk-GFOJNJA4.js} +1 -1
  45. package/{chunk-GJT7XM23.js → chunk-GRIGOPOO.js} +1 -1
  46. package/{chunk-Q23KXB3T.js → chunk-HK6C7EEJ.js} +1 -1
  47. package/{chunk-QEXHFBOM.js → chunk-HQVGMXBL.js} +1 -1
  48. package/{chunk-3VJJTR55.js → chunk-HY2XAZAH.js} +1 -1
  49. package/{chunk-YCO5HMIF.js → chunk-IRBPX3RE.js} +1 -1
  50. package/{chunk-AH57OI3Q.js → chunk-ITHIPR7R.js} +1 -1
  51. package/{chunk-ZTEDQLOG.js → chunk-J3DB5YKJ.js} +1 -1
  52. package/{chunk-7FWYBOAT.js → chunk-J6SZIJEO.js} +1 -1
  53. package/{chunk-ZVKJ5N2A.js → chunk-J7WAS2GN.js} +1 -1
  54. package/{chunk-SOU2X44E.js → chunk-JPAZOYCQ.js} +2 -2
  55. package/chunk-KEW6IMWJ.js +7 -0
  56. package/{chunk-QYEFMZX4.js → chunk-KOOYDMFN.js} +1 -1
  57. package/{chunk-CSSTHSSB.js → chunk-LEE5F54T.js} +1 -1
  58. package/{chunk-RN2UFUFZ.js → chunk-LINWFXJ3.js} +1 -1
  59. package/{chunk-B46T5XRJ.js → chunk-LLPDH7S2.js} +1 -1
  60. package/{chunk-YUNKZZ5C.js → chunk-LVCF2WZK.js} +1 -1
  61. package/{chunk-NUHS3HCR.js → chunk-LZSOBSQV.js} +1 -1
  62. package/{chunk-H57SDRPH.js → chunk-M3QTXO6B.js} +1 -1
  63. package/{chunk-ON6EWYQI.js → chunk-MH6BKDDC.js} +1 -1
  64. package/{chunk-NN4SQ4KX.js → chunk-MKHLXGRK.js} +1 -1
  65. package/{chunk-T6CSYECY.js → chunk-NA4MKIZU.js} +1 -1
  66. package/{chunk-EDGADVEY.js → chunk-NIT7TJ5P.js} +1 -1
  67. package/{chunk-SY6XFKYM.js → chunk-NNNW5RBV.js} +1 -1
  68. package/{chunk-YZ5XPCJJ.js → chunk-NU5466MQ.js} +1 -1
  69. package/{chunk-PBK76345.js → chunk-O74X6MMZ.js} +1 -1
  70. package/{chunk-BTDW4G2F.js → chunk-PAOPYGNU.js} +1 -1
  71. package/{chunk-OKCHQM5Q.js → chunk-PBVHXSHH.js} +1 -1
  72. package/{chunk-53JHETEL.js → chunk-PEETBOXD.js} +1 -1
  73. package/{chunk-PFCRFCQO.js → chunk-PGXO6FU3.js} +1 -1
  74. package/{chunk-VVUSFS6O.js → chunk-PW4323VJ.js} +1 -1
  75. package/{chunk-YPBGL37O.js → chunk-Q2WT6OSY.js} +1 -1
  76. package/{chunk-M4Z3FI3C.js → chunk-Q4TUK2EO.js} +1 -1
  77. package/chunk-QJ76JVYM.js +1 -0
  78. package/{chunk-BLQJXMNV.js → chunk-QLLOZ2EX.js} +1 -1
  79. package/{chunk-SGFG7Z6Z.js → chunk-QURNJXUA.js} +1 -1
  80. package/{chunk-2UD3D7PP.js → chunk-R4A7YDIK.js} +1 -1
  81. package/{chunk-A5HAJEPC.js → chunk-RFVPTZXE.js} +1 -1
  82. package/{chunk-VSJVZZZY.js → chunk-RVJEKOIL.js} +1 -1
  83. package/chunk-S74D2EJ3.js +1 -0
  84. package/{chunk-JXTH3OQJ.js → chunk-SHTUKWGG.js} +2 -2
  85. package/{chunk-SVXDMOLP.js → chunk-SW4SZC2K.js} +1 -1
  86. package/{chunk-T4EHT3H4.js → chunk-TXK2JSMZ.js} +1 -1
  87. package/{chunk-DLUALPHU.js → chunk-U2ZDSR5F.js} +1 -1
  88. package/{chunk-FFAHLLV4.js → chunk-U63X7T6B.js} +1 -1
  89. package/{chunk-X3WK55HF.js → chunk-UC564LFH.js} +1 -1
  90. package/{chunk-4CDAAU6Z.js → chunk-UIVUT5SZ.js} +1 -1
  91. package/{chunk-AACWH3EJ.js → chunk-UR7ARZNH.js} +1 -1
  92. package/{chunk-G6SALVOD.js → chunk-UTEKWFDP.js} +1 -1
  93. package/{chunk-DHW7UHFT.js → chunk-WA6V7JTY.js} +1 -1
  94. package/{chunk-FIYB2XQ5.js → chunk-WAVSEPCG.js} +1 -1
  95. package/{chunk-ZK3O76KI.js → chunk-WH54KYS2.js} +1 -1
  96. package/{chunk-6ZF6FOOZ.js → chunk-WU3WCPYE.js} +1 -1
  97. package/{chunk-JYCUE5HV.js → chunk-WX27CT5F.js} +1 -1
  98. package/{chunk-5XDCBC5Q.js → chunk-XSOIDS3T.js} +1 -1
  99. package/{chunk-K6FLXSFS.js → chunk-YGTWGZKQ.js} +1 -1
  100. package/{chunk-YYVQS5LF.js → chunk-YK5QR3KS.js} +1 -1
  101. package/{chunk-3NU3P6NL.js → chunk-ZHINPNBR.js} +1 -1
  102. package/index.html +2 -2
  103. package/{main-AODL3CMO.js → main-4IGHB4KX.js} +1 -1
  104. package/package.json +1 -1
  105. package/chunk-CM7KSVBU.js +0 -1
  106. package/chunk-EN4NRYW7.js +0 -1
  107. package/chunk-JP6RBSB3.js +0 -7
  108. package/chunk-JWZF3KTL.js +0 -7
  109. package/chunk-XKCLERWG.js +0 -1
  110. package/chunk-Z2DNIMTA.js +0 -1
package/chunk-JWZF3KTL.js DELETED
@@ -1,7 +0,0 @@
1
- import{a as rt}from"./chunk-SMZ363LC.js";import{a as Ie,b as Te}from"./chunk-AACWH3EJ.js";import{a as At,b as ce}from"./chunk-7FWYBOAT.js";import{a as xe}from"./chunk-GJT7XM23.js";import{b as Bt,c as nt,d as ot}from"./chunk-5XDCBC5Q.js";import{a as me,b as se}from"./chunk-YYVQS5LF.js";import"./chunk-FLZXCWDU.js";import{b as it}from"./chunk-Q23KXB3T.js";import"./chunk-DHW7UHFT.js";import{a as ie}from"./chunk-BY6QUHQI.js";import"./chunk-C2GO6SPF.js";import{a as ve,b as ye}from"./chunk-O4QM64EH.js";import{a as Ze,b as et,d as le,k as pe}from"./chunk-SVXDMOLP.js";import{a as re,b as ae}from"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import{a as tt}from"./chunk-S4YVLJB2.js";import{a as Ve}from"./chunk-XKCLERWG.js";import{b as Ce}from"./chunk-H57SDRPH.js";import"./chunk-GDX5XEV3.js";import{a as Nt,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 oe}from"./chunk-4CDAAU6Z.js";import{e as Je,f as Qe,h as ne}from"./chunk-YUNKZZ5C.js";import"./chunk-X22YKT5B.js";import{a as Ue,b as te}from"./chunk-JYCUE5HV.js";import{a as O,b as We,c as Ke,d as Ye,e as $e,f as Xe}from"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import{n as ze,o as qe,w as Z,x as ee}from"./chunk-5FSMHZSY.js";import{b as Se}from"./chunk-A5HAJEPC.js";import{b as je,c as Mt,e as K,f as Y,g as kt,i as lt,k as $,l as X,o as J,u as be,x as Q}from"./chunk-G5S5AZA7.js";import{b as Pe,e as U,l as W}from"./chunk-Z45NTTES.js";import{a as Lt,b as at}from"./chunk-VSJVZZZY.js";import{a as Oe}from"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{h as Ae,k as z,p as Ge,q,r as H,x as Ft,y as Vt}from"./chunk-OKCHQM5Q.js";import{Ac as F,Bc as Rt,Cb as b,D as Me,Ga as y,Jc as C,Kb as s,Kc as v,Lc as Be,Mc as d,Nb as ke,Pb as M,Qb as we,Sb as De,Tb as Re,Ub as o,V as It,Vb as r,W as Tt,Wb as T,X as ge,Yc as R,Z as L,Zc as de,_b as w,ba as wt,bb as j,c as fe,cb as he,dc as I,ec as c,gb as l,ha as S,hc as Dt,pa as h,qa as x,qc as a,rc as f,s as Le,sc as D,tc as Fe,vc as A,wb as N,wc as B,xc as P,yc as Ne,zc as V}from"./chunk-JP6RBSB3.js";import{a as g,b as E,c as _e,e as Et}from"./chunk-YQFG5XE2.js";var G=(()=>{class t{constructor(){this.httpService=S(Lt),this.authService=S(xe)}fetchGeneralLedgerLoader(e="single"){return this.httpService.get(void 0,`api/GeneralLedgerLoader/${e==="single"?"GetFilterSingle":"GetFilter"}`)}getGLCount(e){return this.httpService.post(void 0,"api/GeneralLedger/GetSingleCount",e)}fetchGeneralLedgerReport(e,n="single"){return this.httpService.post(void 0,`api/GeneralLedger/${n==="single"?"GetSingle":"Get"}`,e)}exportGeneralLedger(e,n={}){let i=g({responseType:"blob"},n);return this.httpService.post(void 0,"/api/GeneralLedgerExport/GetGeneralLedgerExport",e,i)}getCustomerSuggestions(e){let n={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:n})}getSupplierSuggestions(e){let n={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:n})}getCashierSuggestions(e){let n={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:n})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(e,n={}){let i=new Vt({fromObject:Object.fromEntries(Object.entries(e).map(([_,k])=>[_,String(k)]))}),p=new Ft({"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"}),u=g({params:i,headers:p},n);return this.httpService.get(void 0,"/api/BalanceSheet",u)}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(e,n={}){return this.httpService.post(void 0,"api/IncomeStatement/List",g({},e),n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=wt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Jt=()=>({width:"30vw"}),Qt=()=>({"1199px":"75vw","575px":"90vw"}),Zt=t=>["/pages/journal/journal-entry/",t],ei=t=>({"ng-dirty ng-invalid":t});function ti(t,m){if(t&1){let e=w();o(0,"p-button",17),I("onClick",function(){h(e);let i=c(2);return x(i.onToggleExportDialog())}),r()}}function ii(t,m){if(t&1&&(o(0,"div",14)(1,"a",15),a(2,"Return to Accounts"),r(),b(3,ti,1,0,"p-button",16),r()),t&2){let e=c();l(3),s("ngIf",e.roleService.global.export)}}function ni(t,m){if(t&1&&(o(0,"div",14)(1,"span",24)(2,"h2",25),a(3),r()(),o(4,"span",24)(5,"h2",25),a(6),r()()()),t&2){let e=c(3);l(3),f(e.items().data.name),l(3),D(" (",e.items().data.chartOfAccountCode,") ")}}function oi(t,m){t&1&&(o(0,"tr")(1,"th",26),a(2,"Outlet"),r(),o(3,"th",26),a(4,"No."),r(),o(5,"th",26),a(6,"Date"),r(),o(7,"th"),a(8,"Contact / Note"),r(),o(9,"th",27),a(10,"Debit"),r(),o(11,"th",28),a(12,"Credit"),r(),o(13,"th",28),a(14,"Balance"),r()())}function ri(t,m){if(t&1&&(o(0,"div",31)(1,"a",32),a(2),r(),T(3,"div",34),o(4,"span",35),a(5),r()()),t&2){let e=c().$implicit,n=c(3);l(),s("href",n.authService.getTenantExternalURL()+n.buildReferenceUrl(e),he),l(),f(e.referenceText),l(),s("innerHTML",e.journalNote,j),l(2),D("",e.note," ")}}function ai(t,m){if(t&1&&(o(0,"div",31),T(1,"span",34)(2,"div",34),o(3,"span",35),a(4),r()()),t&2){let e=c().$implicit;l(),s("innerHTML",e.referenceText,j),l(),s("innerHTML",e.journalNote,j),l(2),D("",e.note," ")}}function li(t,m){if(t&1&&(o(0,"tr")(1,"td",29),a(2),r(),o(3,"td",29)(4,"a",30),a(5),r()(),o(6,"td",29),a(7),C(8,"date"),r(),o(9,"td",29)(10,"div",31)(11,"a",32),a(12),r(),b(13,ri,6,4,"div",31)(14,ai,5,3,"div",31),r()(),o(15,"td",33),a(16),C(17,"number"),r(),o(18,"td",33),a(19),C(20,"number"),r(),o(21,"td",33),a(22),C(23,"number"),r()()),t&2){let e=m.$implicit,n=c(3);l(2),f(e.outletName),l(2),s("routerLink",F(19,Zt,e.id)),l(),f(e.number),l(2),f(Be(8,10,e.date,"dd MMM yyyy")),l(4),s("href",n.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,he),l(),f(e.contactName),l(),M(n.buildReferenceUrl(e)?13:14),l(3),D(" ",v(17,13,e.debitAmount)," "),l(3),D(" ",v(20,15,e.creditAmount)," "),l(3),f(v(23,17,e.balance))}}function pi(t,m){if(t&1&&(o(0,"tr"),T(1,"td",36),o(2,"td",37),a(3,"Total"),r(),o(4,"td",37),a(5),C(6,"number"),r(),o(7,"td",37),a(8),C(9,"number"),r(),T(10,"td"),r()),t&2){let e=c(3);l(5),f(v(6,2,e.debitSubTotal())),l(3),D(" ",v(9,4,e.creditSubTotal())," ")}}function mi(t,m){t&1&&(o(0,"tr")(1,"td",38)(2,"span"),a(3,"No records found."),r()()())}function si(t,m){if(t&1){let e=w();o(0,"button",39),I("click",function(){h(e);let i=c(3);return x(i.getGLCount())})("keyup.enter",function(){h(e);let i=c(3);return x(i.getGLCount())}),r()}}function ci(t,m){if(t&1&&a(0),t&2){let e=c(3);D(" ",e.count()," ")}}function di(t,m){if(t&1){let e=w();o(0,"p-button",40),I("onClick",function(){h(e);let i=c(3);return x(i.onNextPage())}),r()}}function ui(t,m){if(t&1&&(o(0,"div",19)(1,"p-table",20),b(2,ni,7,2,"ng-template",null,5,d)(4,oi,15,0,"ng-template",null,6,d)(6,li,24,21,"ng-template",null,7,d)(8,pi,11,6,"ng-template",null,4,d)(10,mi,4,0,"ng-template",null,8,d),r(),o(12,"div",21)(13,"div"),a(14),b(15,si,1,0,"button",22)(16,ci,1,1),a(17," entries "),r(),o(18,"div",14),b(19,di,1,0,"p-button",23),r()()()),t&2){let e=c(2);l(),s("value",e.items().data.data),l(13),Fe(" Showing ",e.pagination().first," to ",e.pagination().end," of "),l(),M(e.totalRecords()===-1?15:16),l(4),M(e.pagination().hasNext?19:-1)}}function _i(t,m){if(t&1&&b(0,ui,20,5,"div",18),t&2){let e=c();s("ngIf",e.items()&&e.items().data)}}function fi(t,m){if(t&1&&(o(0,"div",14)(1,"div",24)(2,"span",59),a(3),r()(),o(4,"div")(5,"span"),a(6,"-"),r()(),o(7,"div",24)(8,"span",60),a(9),r()()()),t&2){let e=m.$implicit;l(3),D("(",e.code,")"),l(6),f(e.name)}}function gi(t,m){if(t&1&&(o(0,"div",14)(1,"div",24)(2,"span",59),a(3),r()(),o(4,"div")(5,"span"),a(6,"-"),r()(),o(7,"div",24)(8,"span",60),a(9),r()()()),t&2){let e=m.$implicit;l(3),D("(",e.code,")"),l(6),f(e.name)}}function hi(t,m){t&1&&(o(0,"div",61),a(1," Account is required. "),r())}function xi(t,m){if(t&1&&(o(0,"div",62)(1,"div"),a(2),r()()),t&2){let e=m.$implicit;l(2),f(e.value)}}function bi(t,m){if(t&1&&(o(0,"div",52)(1,"div",53),T(2,"p-radiobutton",63),o(3,"label",64),a(4),r()()()),t&2){let e=m.$implicit;l(2),s("value",e.key)("inputId",e.key),l(),s("for",e.key),l(),f(e.value)}}function Si(t,m){if(t&1){let e=w();o(0,"div",31)(1,"label",43),a(2,"Customer"),r(),o(3,"p-autocomplete",65),I("completeMethod",function(i){h(e);let p=c(3);return x(p.searchCustomer(i))}),r()()}if(t&2){let e=c(3);l(3),s("suggestions",e.customerSuggestions())}}function Ci(t,m){if(t&1){let e=w();o(0,"div",31)(1,"label",43),a(2,"Supplier"),r(),o(3,"p-autocomplete",66),I("completeMethod",function(i){h(e);let p=c(3);return x(p.searchSupplier(i))}),r()()}if(t&2){let e=c(3);l(3),s("suggestions",e.supplierSuggestions())}}function vi(t,m){if(t&1){let e=w();o(0,"div",31)(1,"label",43),a(2,"Customer"),r(),o(3,"p-autocomplete",65),I("completeMethod",function(i){h(e);let p=c(3);return x(p.searchCustomer(i))}),r()()}if(t&2){let e=c(3);l(3),s("suggestions",e.customerSuggestions())}}function yi(t,m){if(t&1&&(o(0,"form",42)(1,"div",31)(2,"label",43),a(3,"Accounts"),r(),o(4,"p-select",44),b(5,fi,10,2,"ng-template",null,9,d)(7,gi,10,2,"ng-template",null,10,d),r(),b(9,hi,2,0,"div",45),r(),o(10,"div",31)(11,"label",43),a(12,"From"),r(),o(13,"div",46),T(14,"p-datepicker",47)(15,"p-datepicker",48),r()(),o(16,"div",31)(17,"label",43),a(18,"Outlets"),r(),o(19,"p-multiselect",49),b(20,xi,3,1,"ng-template",null,10,d),r()(),o(22,"div",31)(23,"label",50),a(24,"Contact Type"),r(),o(25,"div",51),De(26,bi,5,4,"div",52,we),r()(),o(28,"div",31)(29,"label",50),a(30,"Sort order"),r(),o(31,"div",51)(32,"div",52)(33,"div",53),T(34,"p-radiobutton",54),o(35,"label",55),a(36,"Asc"),r()()(),o(37,"div",56)(38,"div",53),T(39,"p-radiobutton",57),o(40,"label",58),a(41,"Desc"),r()()()()(),b(42,Si,4,1,"div",31)(43,Ci,4,1,"div",31)(44,vi,4,1,"div",31),r()),t&2){let e,n,i,p=c(2);s("formGroup",p.form),l(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",p.loaderMetadata().options.accounts)("ngClass",F(16,ei,((e=p.form.get("accountID"))==null?null:e.invalid)&&(((e=p.form.get("accountID"))==null?null:e.touched)||((e=p.form.get("accountID"))==null?null:e.dirty)))),l(5),s("ngIf",((n=p.form.get("accountID"))==null?null:n.invalid)&&(((n=p.form.get("accountID"))==null?null:n.touched)||((n=p.form.get("accountID"))==null?null:n.dirty))),l(5),s("iconDisplay","input")("showIcon",!0),l(),s("iconDisplay","input")("showIcon",!0),l(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",p.loaderMetadata().options.outlets),l(7),Re(p.loaderMetadata().options.contactTypeOptions),l(8),s("value",!0),l(5),s("value",!1),l(3),M((i=p.form.controls.contactType.value)===1?42:i===2?43:44)}}function Ei(t,m){if(t&1&&b(0,yi,45,18,"form",41),t&2){let e=c();s("ngIf",e.loaderMetadata())}}function Ii(t,m){if(t&1&&(o(0,"div",67)(1,"div",68)(2,"div",69)(3,"div",51)(4,"div",70)(5,"label",50),a(6,"Page"),r()(),o(7,"div",70),T(8,"input",71),r()()()(),o(9,"div",72)(10,"div",53),T(11,"i",73),o(12,"span",74),a(13),C(14,"number"),C(15,"number"),r()()()()),t&2){let e=c();l(),s("formGroup",e.form),l(12),Fe("Exporting data from ",v(14,3,e.filter().exportPageNumber)," - ",v(15,5,e.filter().exportPageSize),"")}}function Ti(t,m){if(t&1){let e=w();o(0,"p-button",75),I("onClick",function(){h(e);let i=c();return x(i.onToggleExportDialog())}),r()}t&2&&s("rounded",!0)("text",!0)}function wi(t,m){if(t&1){let e=w();o(0,"p-button",76),I("click",function(){h(e);let i=c();return x(i.onToggleExportDialog())}),r(),o(1,"p-button",77),I("click",function(){h(e);let i=c();return x(i.onExport())}),r()}}var Pt=(()=>{class t{getGLCount(){this.reportService.getGLCount(this.filter()).pipe(L(({count:e})=>{this.totalRecords.set(e)})).subscribe()}onToggleExportDialog(){this.isDialogExportVisible.update(e=>!e)}get pageTitle(){return this.items()&&this.items().pageTitle?this.items().pageTitle:"General Ledger"}constructor(){this.reportService=S(G),this.route=S(Pe),this.roleService=S(ie),this.authService=S(xe),this.fb=S(be),this.coaService=S(tt),this.toastr=S(Oe),this.dayjsService=S(ce),this.metadata=y(null),this.items=y(null),this.totalRecords=y(-1),this.dialogFilterVisible=y(!0),this.initDialogVisible=y(!1),this.isDialogExportVisible=y(!1),this.customerSuggestions=y([]),this.supplierSuggestions=y([]),this.categoriesOptions=y([]),this.localFilter=y({}),this.count=R(()=>this.totalRecords()<0?1/0:this.totalRecords()),this.lastGetDataLength=y(0),this.pagination=R(()=>{let e=this.filter(),n=this.totalRecords()!=null&&this.totalRecords()>=0?this.totalRecords():1/0,i=this.items()?.data?.data?.length||0,p=i==n||this.lastGetDataLength()<e.pageSize;return{first:1,end:e.pageSize>0?i:0,total:n,page:e.pageNumber,pageSize:e.pageSize,hasPrev:e.pageNumber>1,hasNext:!p}}),this.loaderMetadata=Se(this.reportService.fetchGeneralLedgerLoader(),{initialValue:null}),this.baseFilter=R(()=>{let e=this.loaderMetadata();return e?e.filter:null}),this.exportFileTypes=y([{key:0,value:"CSV"},{key:1,value:"Excel"}]),this.queryFilter=Se(this.route.queryParamMap.pipe(Le(e=>({accountID:e.get("id"),to:e.get("to")}))),{initialValue:null}),this.filter=R(()=>{let e=this.baseFilter(),n=this.queryFilter(),i=this.localFilter();return e?g(g(g({},e),n??{}),i):null}),this.creditSubTotal=R(()=>(this.items()?.data?.data??[]).reduce((n,i)=>n+(Number(i.creditAmount)||0),0)),this.debitSubTotal=R(()=>(this.items()?.data?.data??[]).reduce((n,i)=>n+(Number(i.debitAmount)||0),0)),this.initializeForm(),de(()=>{let e=this.filter();e&&(at.IsEmpty(this.form.value.accountID)||this.form.value.accountID!==e.accountID)&&this.form.patchValue(this.transformFilterToFormValue(e),{emitEvent:!1})}),de(()=>{let e=this.filter(),n=this.form.value.accountID;!e||at.IsEmpty(n)||this.reportService.fetchGeneralLedgerReport(e).subscribe(i=>{this.lastGetDataLength.set(i.data?.data?.length),this.items.update(p=>e.pageNumber===1?i:E(g({},i),{data:E(g({},i.data),{data:[...p?.data.data??[],...i.data.data]})}))})})}buildReferenceUrl(e){return rt(e)}ngOnInit(){this.route.queryParamMap.pipe(Me(e=>e.keys.length>0)).subscribe({next:()=>this.initDialogVisible.set(!0)})}initializeForm(){this.form=this.fb.group({accountID:this.fb.control(null,[Mt.required]),from:this.fb.control(null),to:this.fb.control(new Date),contactType:this.fb.control(null),contactID:this.fb.control(""),listOutletID:this.fb.control([]),pageNumber:this.fb.control(1),pageSize:this.fb.control(50),sortAscending:this.fb.control(!0),listAccountID:this.fb.control([]),export:this.fb.control(!1),exportPageNumber:this.fb.control(1),exportPageSize:this.fb.control(0)})}findNodeByKey(e,n){for(let i of e){if(i.key===n)return i;if(i.children){let p=this.findNodeByKey(i.children,n);if(p)return p}}return null}transformFilterToFormValue(e){return Object.entries(e).reduce((n,[i,p])=>{switch(i){case"from":break;case"to":n[i]=p&&(typeof p=="string"||typeof p=="number"||p instanceof Date)?this.dayjsService.from(p)?.toDate():this.dayjsService.now.toDate();break;case"listCategoryID":Array.isArray(p)?n[i]=p.map(u=>this.findNodeByKey(this.categoriesOptions(),u)).filter(u=>!!u):n[i]=[];break;case"listOutletID":case"listAccountID":n[i]=Array.isArray(p)?p:[];break;case"pageNumber":case"pageSize":case"exportPageNumber":case"exportPageSize":n[i]=p!=null?Number(p):0;break;case"sortAscending":case"export":n[i]=!!p;break;case"contactType":n[i]=p!=null?Number(p):null;break;default:n[i]=p}return n},{})}clearContactValueOnContactTypeChange(){this.form.get("contactType")?.valueChanges.subscribe(()=>this.form.get("contactID")?.setValue(""))}isEmpty(e){return e==null||typeof e=="string"&&e.trim().length===0}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(L(e=>this.categoriesOptions.set(e))).subscribe()}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(L(n=>this.customerSuggestions.set(n))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(L(n=>this.supplierSuggestions.set(n))).subscribe()}onAccountChange(e){Array.isArray(e.value)&&e.value.length>=1&&this.toastr.warning("Please select at least 1 accounts for the general ledger report.","Warning")}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let e=this.buildFilterBody();this.dialogFilterVisible.set(!1),this.localFilter.set(e),this.totalRecords()!==-1&&this.getGLCount()}buildFilterBody(){let p=this.form.getRawValue(),{from:e,to:n}=p,i=_e(p,["from","to"]);return E(g({},this.filter()),{pageNumber:i.pageNumber,pageSize:i.pageSize,sortAscending:i.sortAscending,accountID:i.accountID,contactID:i.contactID?.length===0?null:i.contactID,listOutletID:i.listOutletID??[],listAccountID:i.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(n)?this.dayjsService.format(n):null,contactType:i.contactType})}onExport(){let e=this.buildExportBody();this.performExport(e)}performExport(e){this.reportService.exportGeneralLedger(e,{responseType:"blob",observe:"response"}).pipe(L(n=>this.handleExportResponse(n))).subscribe()}handleExportResponse(e){let n=e.headers,i=n.get("Content-Disposition")??n.get("content-disposition"),p="download.csv";if(i){let _=i.match(/filename\*?=(?:UTF-8'')?"?([^;\r\n"]+)/i);_?.[1]&&(p=decodeURIComponent(_[1].replace(/"/g,"")))}let u=e.body;ot(u,p,u.type)}buildExportBody(){let p=this.form.value,{from:e,to:n}=p,i=_e(p,["from","to"]);return E(g({},this.filter()),{exportPageNumber:+i.exportPageNumber,pageNumber:i.pageNumber,pageSize:i.pageSize,sortAscending:i.sortAscending,accountID:i.accountID,contactID:i.contactID?.length===0?null:i.contactID,listOutletID:i.listOutletID??[],listAccountID:i.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(n)?this.dayjsService.format(n):null,contactType:i.contactType,export:!0})}onNextPage(){this.localFilter.update(e=>{let n=e.pageNumber??this.baseFilter()?.pageNumber??1;return E(g({},e),{pageNumber:n+1,balance:this.items().data.data[this.items().data.data.length-1]?.balance??0})})}onPrevPage(){this.localFilter.update(e=>{let n=e.pageNumber??this.baseFilter()?.pageNumber??1;return E(g({},e),{pageNumber:Math.max(1,n-1)})})}goToPage(e){this.localFilter.update(n=>E(g({},n),{pageNumber:e}))}goToLastPage(){let e=this.filter();if(!e)return;let n=this.totalRecords();if(n===-1||!isFinite(n)){this.toastr.info("Please load total records before going to the last page","Info");return}let i=Math.ceil(n/e.pageSize);if(e.pageNumber>=i){this.toastr.warning("You are already on the last page","Warning");return}this.localFilter.update(p=>E(g({},p),{pageNumber:i}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-general-ledger"]],decls:13,vars:13,consts:[["actionButton",""],["content",""],["filters",""],["closeIconTemplate",""],["footer",""],["caption",""],["header",""],["body",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible","scrollable"],["header","Export Journal Entry",3,"visibleChange","modal","visible","breakpoints"],["class","d-flex flex-column gap-3",4,"ngIf"],[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 h-100 bg-white border-top",4,"ngIf"],[1,"px-3","h-100","bg-white","border-top"],[3,"value"],[1,"d-flex","justify-content-between","align-items-center","my-2"],["type","button","aria-label","Get journal entry count","tabindex","0",1,"fa-solid","fa-circle-question","cursor-pointer","p-0","border-0","bg-transparent"],["variant","outlined","severity","secondary","icon","fa-solid fa-angle-right","size","small","label","next"],[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"],[1,"text-end","text-break"],[3,"innerHTML"],[2,"width","300px","white-space","normal","word-break","break-word"],["colspan","3"],[1,"text-end","fw-semibold"],["colspan","8"],["type","button","aria-label","Get journal entry count","tabindex","0",1,"fa-solid","fa-circle-question","cursor-pointer","p-0","border-0","bg-transparent",3,"click","keyup.enter"],["variant","outlined","severity","secondary","icon","fa-solid fa-angle-right","size","small","label","next",3,"onClick"],["class","d-flex flex-column row-gap-3",3,"formGroup",4,"ngIf"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","accountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"virtualScroll","virtualScrollItemSize","options","ngClass"],["class","text-danger",4,"ngIf"],[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"],["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,"text-danger"],[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"],[1,"d-flex","flex-column","gap-3"],[1,"row",3,"formGroup"],[1,"col-8"],[1,"col"],["type","text","formControlName","exportPageNumber","fluid","","pInputText","","pSize","small"],["role","alert",1,"alert","alert-primary","m-0","p-2"],[1,"fa-solid","fa-circle-info"],[1,"fs-2","text-dark","fw-semibold"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click"]],template:function(n,i){if(n&1){let p=w();o(0,"app-main-panel",11),P("isDialogFilterVisibleChange",function(_){return h(p),B(i.dialogFilterVisible,_)||(i.dialogFilterVisible=_),x(_)})("isInitDialogFilterVisibleChange",function(_){return h(p),B(i.initDialogVisible,_)||(i.initDialogVisible=_),x(_)}),I("filterConfirmed",function(){return h(p),x(i.onFilterOKEvent())}),b(1,ii,4,1,"ng-template",null,0,d)(3,_i,1,1,"ng-template",null,1,d)(5,Ei,1,1,"ng-template",null,2,d),r(),o(7,"p-dialog",12),P("visibleChange",function(_){return h(p),B(i.isDialogExportVisible,_)||(i.isDialogExportVisible=_),x(_)}),b(8,Ii,16,7,"div",13)(9,Ti,1,2,"ng-template",null,3,d)(11,wi,2,0,"ng-template",null,4,d),r()}n&2&&(s("pageTitle",i.pageTitle),A("isDialogFilterVisible",i.dialogFilterVisible),s("isFilterable",!0),A("isInitDialogFilterVisible",i.initDialogVisible),s("scrollable",!0),l(7),ke(V(11,Jt)),s("modal",!0),A("visible",i.isDialogExportVisible),s("breakpoints",V(12,Qt)),l(),s("ngIf",i.form&&i.filter()))},dependencies:[ne,H,Ae,z,q,Ge,oe,pe,le,Qe,Je,ee,Z,Ee,Nt,ae,re,Te,Ie,Q,$,je,K,Y,X,J,se,me,Ce,He,nt,it,te,W,U,et,Ze,qe,ze],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{padding:.75rem 1rem .75rem 0}"],changeDetection:0})}}return t})();var Di={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{from:"",to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},ft=We(Xe(Di),Ke(t=>{let m={totalCOGS:R(()=>{let e=t.data()?.data?.cogs;return Array.isArray(e)?e.reduce((n,i)=>n+(i?.amount??0),0):0}),totalRevenue:R(()=>{let e=t.data()?.data?.revenue;return Array.isArray(e)?e.reduce((n,i)=>n+(i?.amount??0),0):0}),totalExpense:R(()=>{let e=t.data()?.data?.expense;return Array.isArray(e)?e.reduce((n,i)=>n+(i?.amount??0),0):0}),grossProfit:R(()=>Array.isArray(t.data()?.data?.cogs)&&Array.isArray(t.data()?.data?.revenue)?m.totalRevenue()-m.totalCOGS():0),profitOrLoss:R(()=>m.totalRevenue()-m.totalCOGS()-m.totalExpense()),isDataEmpty:R(()=>Object.keys(t.data()?.data??{}).length===0)};return m}),$e(t=>{let m=S(G),e=S(ce),n={updateFilter(i){O(t,p=>E(g({},p),{filter:g(g({},p.filter),i)}))},getLoader:ve(fe(ge(()=>m.getIncomeStatementLoader().pipe(ye({next:i=>{O(t,p=>E(g({},p),{loader:i,filter:E(g({},p.filter),{from:e.from(i.filter.from).format(),to:e.from(i.filter.to).format()})})),n.getIncomeStatement(t.filter)},error:i=>{console.error(i)}}))))),getIncomeStatement:ve(fe(ge(i=>m.getIncomeStatement(i).pipe(Tt(()=>O(t,p=>E(g({},p),{isLoading:!0}))),ye({next:p=>{O(t,u=>E(g({},u),{data:p,isLoading:!1}))},error:p=>{console.error(p)}})))))};return n}),Ye({onInit:t=>{t.getLoader()}}));var gt=()=>({}),ht=t=>["/pages/chart-of-account/account/",t],xt=()=>["/pages/report/general-ledger"],bt=t=>({id:t});function Fi(t,m){if(t&1){let e=w();o(0,"p-button",10),I("onClick",function(){h(e);let i=c(2);return x(i.onExport())}),r()}}function Vi(t,m){if(t&1&&(o(0,"div",8),b(1,Fi,1,0,"p-button",9),r()),t&2){let e=c();l(),s("ngIf",e.roleService.global.export)}}function Li(t,m){t&1&&(o(0,"tr")(1,"th",14),a(2,"Code"),r(),o(3,"th",15),a(4,"Name"),r(),o(5,"th",16),a(6,"Total"),r()())}function Mi(t,m){if(t&1&&(o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"a",17),a(5),r()(),o(6,"td",16)(7,"a",18),a(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;l(2),f(e.code),l(2),s("routerLink",F(8,ht,e.accountID)),l(),f(e.name),l(2),s("routerLink",V(10,xt))("queryParams",F(11,bt,e.accountID)),l(),f(v(9,6,e.amount))}}function ki(t,m){if(t&1&&(o(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),a(4,"Total Revenue :"),r(),o(5,"span",22),a(6),C(7,"number"),r()()()()),t&2){let e=c(3);l(6),f(v(7,1,e.store.totalRevenue()))}}function Ni(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),a(3,"No revenue records available"),r()()())}function Bi(t,m){if(t&1&&(o(0,"h6",12),a(1,"Revenue"),r(),o(2,"p-table",13),b(3,Li,7,0,"ng-template",null,3,d)(5,Mi,10,13,"ng-template",null,4,d)(7,ki,8,3,"ng-template",null,5,d)(9,Ni,4,0,"ng-template",null,6,d),r()),t&2){let e,n=c(2);l(2),s("value",(e=n.store.data())==null||e.data==null?null:e.data.revenue)}}function Ai(t,m){t&1&&(o(0,"tr")(1,"th",14),a(2,"Code"),r(),o(3,"th",15),a(4,"Name"),r(),o(5,"th",24),a(6,"Total"),r()())}function Gi(t,m){if(t&1&&(o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"a",17),a(5),r()(),o(6,"td",16)(7,"a",18),a(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;l(2),f(e.code),l(2),s("routerLink",F(8,ht,e.accountID)),l(),f(e.name),l(2),s("routerLink",V(10,xt))("queryParams",F(11,bt,e.accountID)),l(),f(v(9,6,e.amount))}}function Pi(t,m){if(t&1&&(o(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),a(4,"Total COGS :"),r(),o(5,"span",22),a(6),C(7,"number"),r()()()(),o(8,"tr")(9,"td",19)(10,"div",20)(11,"span",21),a(12,"Gross Profit :"),r(),o(13,"span",22),a(14),C(15,"number"),r()()()()),t&2){let e=c(3);l(6),f(v(7,2,e.store.totalCOGS())),l(8),f(v(15,4,e.store.grossProfit()))}}function Oi(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),a(3,"No COGS records available"),r()()())}function ji(t,m){if(t&1&&(o(0,"h4",12),a(1,"COGS"),r(),o(2,"p-table",13),b(3,Ai,7,0,"ng-template",null,3,d)(5,Gi,10,13,"ng-template",null,4,d)(7,Pi,16,6,"ng-template",null,5,d)(9,Oi,4,0,"ng-template",null,6,d),r()),t&2){let e,n=c(2);l(2),s("value",(e=n.store.data())==null||e.data==null?null:e.data.cogs)}}function zi(t,m){t&1&&(o(0,"tr")(1,"th",14),a(2,"Code"),r(),o(3,"th",15),a(4,"Name"),r(),o(5,"th",16),a(6,"Total"),r()())}function qi(t,m){if(t&1&&(o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"a",17),a(5),r()(),o(6,"td",16)(7,"a",18),a(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;l(2),f(e.code),l(2),s("routerLink",F(8,ht,e.accountID)),l(),f(e.name),l(2),s("routerLink",V(10,xt))("queryParams",F(11,bt,e.accountID)),l(),f(v(9,6,e.amount))}}function Hi(t,m){if(t&1&&(o(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),a(4,"Total Expense :"),r(),o(5,"span",22),a(6),C(7,"number"),r()()()(),o(8,"tr")(9,"td",19)(10,"div",20)(11,"span",21),a(12,"Profit / Loss :"),r(),o(13,"span",22),a(14),C(15,"number"),r()()()()),t&2){let e=c(3);l(6),f(v(7,2,e.store.totalExpense())),l(8),f(v(15,4,e.store.profitOrLoss()))}}function Ui(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),a(3,"No expense records available"),r()()())}function Wi(t,m){if(t&1&&(o(0,"h4",12),a(1,"Expense"),r(),o(2,"p-table",13),b(3,zi,7,0,"ng-template",null,3,d)(5,qi,10,13,"ng-template",null,4,d)(7,Hi,16,6,"ng-template",null,5,d)(9,Ui,4,0,"ng-template",null,6,d),r()),t&2){let e,n=c(2);l(2),s("value",(e=n.store.data())==null||e.data==null?null:e.data.expense)}}function Ki(t,m){if(t&1&&(o(0,"p-panel")(1,"div",11),b(2,Bi,11,1)(3,ji,11,1)(4,Wi,11,1),r()()),t&2){let e,n,i,p=c();l(2),M(p.Object.keys((e=p.store.data().data)!==null&&e!==void 0?e:V(3,gt)).length>0?2:-1),l(),M(p.Object.keys((n=(n=p.store.data().data)==null?null:n.cogs)!==null&&n!==void 0?n:V(4,gt)).length>0?3:-1),l(),M(p.Object.keys((i=(i=p.store.data().data)==null?null:i.expense)!==null&&i!==void 0?i:V(5,gt)).length>0?4:-1)}}function Yi(t,m){if(t&1){let e=w();o(0,"form",25)(1,"div",26)(2,"label",27),a(3,"Outlet"),r(),T(4,"p-multiselect",28),r(),o(5,"div",26)(6,"label",27),a(7,"Cashier"),r(),o(8,"p-autocomplete",29),I("completeMethod",function(i){h(e);let p=c();return x(p.onCashierSearch(i))})("onSelect",function(i){h(e);let p=c();return x(p.onCashierSelect(i))}),r()(),o(9,"div",26)(10,"label",30),a(11,"From - To"),r(),o(12,"div",31),T(13,"p-datepicker",32)(14,"p-datepicker",33),r()()()}if(t&2){let e=c();s("formGroup",e.formFilter),l(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.loader().options.outlets)("showClear",!0),l(4),s("showClear",!0)("suggestions",e.cashierSuggestions())("showClear",!0),l(5),s("iconDisplay","input")("showIcon",!0),l(),s("iconDisplay","input")("showIcon",!0)}}var Ot=(()=>{class t{constructor(){this.dayjsService=S(ce),this.store=S(ft),this.fb=S(be),this.reportService=S(G),this.roleService=S(ie),this.isInitDialogFilterVisible=y(!1),this.dialogFilterVisible=y(!1),this.cashierSuggestions=y([]),this.cashierHashMap=new Map,this.Object=Object,de(()=>{this.store.filter()&&this.initForm()})}ngOnInit(){this.initForm(),console.log(this.cashierHashMap.entries())}onSearch(e){this.store.updateFilter(E(g({},this.store.filter()),{Text:e}))}onCashierSearch(e){this.reportService.getCashierSuggestions(e.query).pipe(Ve("Cashier Suggestions"),L(n=>this.cashierSuggestions.set(n))).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(),n=Object.entries(e).reduce((i,[p,u])=>(p==="from"||p==="to"?u instanceof Date&&(i[p]=this.dayjsService.from(u).format()):i[p]=u||null,i),{});this.store.updateFilter(g(g({},this.store.filter()),n)),this.dialogFilterVisible.update(i=>!i),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=E(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportPageSize:1e4});this.reportService.getIncomeStatement(e,{responseType:"blob"}).pipe(Ve("Export Profit & Loss"),L(n=>{let i=n.type,p=[n],u=document.createElement("a");u.href=window.URL.createObjectURL(new Blob(p,{type:i}));let _=`profit-and-loss.${i.split("/")[1]}`;u.setAttribute("download",_),document.body.appendChild(u),u.click(),document.body.removeChild(u)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-income-statement"]],features:[Ne([ft])],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(n,i){if(n&1){let p=w();o(0,"app-main-panel",7),P("isDialogFilterVisibleChange",function(_){return h(p),B(i.dialogFilterVisible,_)||(i.dialogFilterVisible=_),x(_)})("isInitDialogFilterVisibleChange",function(_){return h(p),B(i.isInitDialogFilterVisible,_)||(i.isInitDialogFilterVisible=_),x(_)}),I("filterConfirmed",function(){return h(p),x(i.onFilterOK())}),b(1,Vi,2,1,"ng-template",null,0,d)(3,Ki,5,6,"ng-template",null,1,d)(5,Yi,15,12,"ng-template",null,2,d),r()}n&2&&(s("isFilterable",!0)("pageTitle",i.store.data().pageTitle),A("isDialogFilterVisible",i.dialogFilterVisible)("isInitDialogFilterVisible",i.isInitDialogFilterVisible),s("scrollable",!0))},dependencies:[ne,H,z,q,Ee,ae,re,Q,$,K,Y,X,J,se,me,oe,pe,le,te,Ue,W,U,Te,Ie,ee,Z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var St=Et(At());var $i={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,St.default)().format("YYYY-MM-DD"),listOutletParam:[]}},Ct=We(Xe($i),Ke(t=>({totalAsset:R(()=>t.data().asset.reduce((m,e)=>m+ +e.amount,0)),totalLiability:R(()=>t.data().liability.reduce((m,e)=>m+ +e.counterAmount,0)),totalEquity:R(()=>t.data().equity.reduce((m,e)=>m+ +e.counterAmount,0))})),$e(t=>{let m=S(G),e={updateFilter:n=>{O(t,i=>E(g({},i),{filter:n}))},fetchBalanceSheet:ve(fe(Me(()=>{let n=t.filter();return Object.entries(n).every(([i,p])=>p!=null&&p!=="")}),ge(n=>m.getBalanceSheet(n).pipe(ye({next:i=>{O(t,p=>E(g({},p),{data:i}))},error:i=>{console.error(i)}}))),It(1))),fetchLoader:ve(fe(ge(()=>m.getBalanceSheetLoader().pipe(ye({next:n=>{O(t,i=>E(g({},i),{metadata:n,filter:{date:(0,St.default)(n.filter.to).format("YYYY-MM-DD")}})),e.fetchBalanceSheet(t.filter)},error:n=>{console.error(n)}})))))};return e}),Ye(t=>({onInit:()=>{t.fetchLoader()}})));var jt=Et(At());var vt=t=>["/pages/chart-of-account/account/",t],yt=()=>["/pages/report/general-ledger"],Xi=(t,m)=>({id:t,to:m}),zt=t=>({id:t});function Ji(t,m){if(t&1){let e=w();o(0,"p-button",11),I("onClick",function(){h(e);let i=c(2);return x(i.onExport())}),r()}}function Qi(t,m){if(t&1&&(o(0,"div",9),b(1,Ji,1,0,"p-button",10),r()),t&2){let e=c();l(),s("ngIf",e.roleService.global.export)}}function Zi(t,m){t&1&&(o(0,"tr")(1,"th",16),a(2,"Code"),r(),o(3,"th"),a(4,"Asset"),r(),o(5,"th",17),a(6,"Total"),r()())}function en(t,m){if(t&1&&(o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"a",18),a(5),r()(),o(6,"td",19)(7,"a",20),a(8),C(9,"number"),r()()()),t&2){let e=m.$implicit,n=c(3);l(2),f(e.code),l(2),s("routerLink",F(8,vt,e.accountID)),l(),f(e.name),l(2),s("routerLink",V(10,yt))("queryParams",Rt(11,Xi,e.accountID,n.store.filter().date)),l(),f(v(9,6,e.amount))}}function tn(t,m){if(t&1&&(o(0,"tr")(1,"td",21),a(2,"Total Asset"),r(),o(3,"td",22),a(4),C(5,"number"),r()()),t&2){let e=c(3);l(4),D(" ",v(5,1,e.store.totalAsset())," ")}}function nn(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),a(3,"No asset records found."),r()()())}function on(t,m){if(t&1&&(o(0,"h4",14),a(1,"Asset"),r(),o(2,"p-table",15),b(3,Zi,7,0,"ng-template",null,3,d)(5,en,10,14,"ng-template",null,4,d)(7,tn,6,3,"ng-template",null,5,d)(9,nn,4,0,"ng-template",null,6,d),r()),t&2){let e=c(2);l(2),s("value",e.store.data().asset)}}function rn(t,m){t&1&&(o(0,"tr")(1,"th",16),a(2,"Code"),r(),o(3,"th"),a(4,"Liability"),r(),o(5,"th",17),a(6,"Total"),r()())}function an(t,m){if(t&1&&(o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"a",25),a(5),r()(),o(6,"td",19)(7,"a",20),a(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;l(2),f(e.code),l(2),s("routerLink",F(8,vt,e.accountID)),l(),f(e.name),l(2),s("routerLink",V(10,yt))("queryParams",F(11,zt,e.accountID)),l(),f(v(9,6,e.counterAmount))}}function ln(t,m){if(t&1&&(o(0,"tr")(1,"td",21),a(2," Total Liability "),r(),o(3,"td",22),a(4),C(5,"number"),r()()),t&2){let e=c(3);l(4),D(" ",v(5,1,e.store.totalLiability())," ")}}function pn(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),a(3,"No liability records found."),r()()())}function mn(t,m){if(t&1&&(o(0,"h4",24),a(1,"Liability"),r(),o(2,"p-table",15),b(3,rn,7,0,"ng-template",null,3,d)(5,an,10,13,"ng-template",null,4,d)(7,ln,6,3,"ng-template",null,5,d)(9,pn,4,0,"ng-template",null,6,d),r()),t&2){let e=c(2);l(2),s("value",e.store.data().liability)}}function sn(t,m){t&1&&(o(0,"tr")(1,"th",16),a(2,"Code"),r(),o(3,"th"),a(4,"Equity"),r(),o(5,"th",17),a(6,"Total"),r()())}function cn(t,m){if(t&1&&(o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"a",18),a(5),r()(),o(6,"td",19)(7,"a",20),a(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;l(2),f(e.code),l(2),s("routerLink",F(8,vt,e.accountID)),l(),f(e.name),l(2),s("routerLink",V(10,yt))("queryParams",F(11,zt,e.accountID)),l(),f(v(9,6,e.counterAmount))}}function dn(t,m){if(t&1&&(o(0,"tr")(1,"td",21),a(2,"Total Equity"),r(),o(3,"td",22),a(4),C(5,"number"),r()(),o(6,"tr")(7,"td",21),a(8," Total Liability + Equity "),r(),o(9,"td",22),a(10),C(11,"number"),r()()),t&2){let e=c(3);l(4),D(" ",v(5,2,e.store.totalEquity())," "),l(6),D(" ",v(11,4,e.store.totalLiability()+e.store.totalEquity())," ")}}function un(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),a(3,"No equity records found."),r()()())}function _n(t,m){if(t&1&&(o(0,"h4",24),a(1,"Equity"),r(),o(2,"p-table",15),b(3,sn,7,0,"ng-template",null,3,d)(5,cn,10,13,"ng-template",null,4,d),a(7," <"),b(8,dn,12,6,"ng-template",null,5,d)(10,un,4,0,"ng-template",null,6,d),r()),t&2){let e=c(2);l(2),s("value",e.store.data().equity)}}function fn(t,m){if(t&1&&(o(0,"p-panel",12)(1,"div",13),b(2,on,11,1)(3,mn,11,1)(4,_n,12,1),r()()),t&2){let e=c();s("showHeader",!1),l(2),M(e.Object.keys(e.store.data().asset).length>0?2:-1),l(),M(e.Object.keys(e.store.data().liability).length>0?3:-1),l(),M(e.Object.keys(e.store.data().equity).length>0?4:-1)}}function gn(t,m){if(t&1&&(o(0,"div",31)(1,"div"),a(2),r()()),t&2){let e=m.$implicit;l(2),f(e.value)}}function hn(t,m){if(t&1&&(o(0,"form",26)(1,"div",27)(2,"label",28),a(3,"Outlet"),r(),o(4,"p-multiselect",29),b(5,gn,3,1,"ng-template",null,7,d),r()(),o(7,"div",27)(8,"label",28),a(9,"From"),r(),T(10,"p-datepicker",30),r()()),t&2){let e=c();s("formGroup",e.filterForm),l(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets)("showClear",!0),l(6),s("iconDisplay","input")("showIcon",!0)}}var qt=(()=>{class t{constructor(){this.store=S(Ct),this.ReportServiceStore=S(G),this.dialogFilterVisible=y(!1),this.isInitDialogFilterVisible=y(!1),this.roleService=S(ie),this.Object=Object}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new kt({date:new lt(new Date),outletID:new lt([])})}onFilterOKEvent(){let{date:e,outletID:n}=this.filterForm.value;this.store.updateFilter({date:(0,jt.default)(e).format("YYYY-MM-DD"),listOutletParam:n}),this.dialogFilterVisible.update(i=>!i)}onExport(){let e=E(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportPageSize:1e4});this.ReportServiceStore.getBalanceSheet(e,{responseType:"blob"}).pipe(Ve("Export Balance Sheet"),L(n=>{let i=n.type,p=[n],u=document.createElement("a");u.href=window.URL.createObjectURL(new Blob(p,{type:i}));let _=`balance-sheet.${i.split("/")[1]}`;u.setAttribute("download",_),document.body.appendChild(u),u.click(),document.body.removeChild(u)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-balance-sheet"]],features:[Ne([Ct])],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(n,i){if(n&1){let p=w();o(0,"app-main-panel",8),P("isDialogFilterVisibleChange",function(_){return h(p),B(i.dialogFilterVisible,_)||(i.dialogFilterVisible=_),x(_)})("isInitDialogFilterVisibleChange",function(_){return h(p),B(i.isInitDialogFilterVisible,_)||(i.isInitDialogFilterVisible=_),x(_)}),I("filterConfirmed",function(){return h(p),x(i.onFilterOKEvent())}),b(1,Qi,2,1,"ng-template",null,0,d)(3,fn,5,4,"ng-template",null,1,d)(5,hn,11,7,"ng-template",null,2,d),r()}n&2&&(s("pageTitle",i.store.data().pageTitle)("isFilterable",!0),A("isDialogFilterVisible",i.dialogFilterVisible)("isInitDialogFilterVisible",i.isInitDialogFilterVisible),s("scrollable",!0))},dependencies:[ne,H,z,q,pe,le,oe,ee,Z,Q,$,K,Y,X,J,se,me,ae,re,Ce,te,Ue,W,U],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ht=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(n,i){n&1&&(o(0,"p"),a(1,"report-comparative-balance works!"),r(),a(2,`
2
- ,
3
- `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ut=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(n,i){n&1&&(o(0,"p"),a(1,"report-cash-flow works!"),r(),a(2,`
4
- ,
5
- `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Wt=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(n,i){n&1&&(o(0,"p"),a(1,"report-trial-balance works!"),r(),a(2,`
6
- ,
7
- `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var xn=()=>({width:"30vw"}),bn=()=>({"1199px":"75vw","575px":"90vw"}),Sn=t=>["/pages/journal/journal-entry/",t],Cn=t=>({"ng-dirty ng-invalid":t}),vn=()=>({scrollHeight:"250px"});function yn(t,m){if(t&1){let e=w();o(0,"p-button",27),I("onClick",function(){h(e);let i=c(2);return x(i.onToggleExportDialog())}),r()}}function En(t,m){if(t&1&&(o(0,"div",24)(1,"a",25),a(2,"Return to Accounts"),r(),b(3,yn,1,0,"p-button",26),r()),t&2){let e=c();l(3),s("ngIf",e.roleService.global.export)}}function In(t,m){if(t&1&&(o(0,"div",24)(1,"span",31)(2,"h2",32),a(3),r()(),o(4,"span",31)(5,"h2",32),a(6),r()()()),t&2){let e=c().$implicit;l(3),f(e.name),l(3),D(" (",e.chartOfAccountCode,") ")}}function Tn(t,m){t&1&&(o(0,"tr")(1,"th",33),a(2,"Outlet"),r(),o(3,"th",33),a(4,"No."),r(),o(5,"th",33),a(6,"Date"),r(),o(7,"th"),a(8,"Contact / Note"),r(),o(9,"th",34),a(10,"Debit"),r(),o(11,"th",35),a(12,"Credit"),r(),o(13,"th",35),a(14,"Balance"),r()())}function wn(t,m){if(t&1&&(o(0,"div",38)(1,"a",39),a(2),r(),T(3,"div",41),o(4,"span",42),a(5),r()()),t&2){let e=c().$implicit,n=c(4);l(),s("href",n.authService.getTenantExternalURL()+n.buildReferenceUrl(e),he),l(),f(e.referenceText),l(),s("innerHTML",e.journalNote,j),l(2),D("",e.note," ")}}function Dn(t,m){if(t&1&&(o(0,"div",38),T(1,"span",41)(2,"div",41),o(3,"span",42),a(4),r()()),t&2){let e=c().$implicit;l(),s("innerHTML",e.referenceText,j),l(),s("innerHTML",e.journalNote,j),l(2),D("",e.note," ")}}function Rn(t,m){if(t&1&&(o(0,"tr")(1,"td",36),a(2),r(),o(3,"td",36)(4,"a",37),a(5),r()(),o(6,"td",36),a(7),C(8,"date"),r(),o(9,"td",36)(10,"div",38)(11,"a",39),a(12),r(),b(13,wn,6,4,"div",38)(14,Dn,5,3,"div",38),r()(),o(15,"td",40),a(16),C(17,"number"),r(),o(18,"td",40),a(19),C(20,"number"),r(),o(21,"td",40),a(22),C(23,"number"),r()()),t&2){let e=m.$implicit,n=c(4);l(2),f(e.outletName),l(2),s("routerLink",F(19,Sn,e.id)),l(),f(e.number),l(2),f(Be(8,10,e.date,"dd MMM yyyy")),l(4),s("href",n.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,he),l(),f(e.contactName),l(),M(n.buildReferenceUrl(e)?13:14),l(3),D(" ",v(17,13,e.debitAmount)," "),l(3),D(" ",v(20,15,e.creditAmount)," "),l(3),f(v(23,17,e.balance))}}function Fn(t,m){if(t&1&&(o(0,"tr"),T(1,"td",43),o(2,"td",44),a(3,"Total"),r(),o(4,"td",44),a(5),C(6,"number"),r(),o(7,"td",44),a(8),C(9,"number"),r(),T(10,"td"),r()),t&2){let e=c().$index,n=c(3);l(5),D(" ",v(6,2,n.items().data[e].debitTotal)," "),l(3),D(" ",v(9,4,n.items().data[e].creditTotal)," ")}}function Vn(t,m){t&1&&(o(0,"tr")(1,"td",45)(2,"span"),a(3,"No records found."),r()()())}function Ln(t,m){if(t&1&&(o(0,"p-table",30),b(1,In,7,2,"ng-template",null,5,d)(3,Tn,15,0,"ng-template",null,6,d)(5,Rn,24,21,"ng-template",null,7,d)(7,Fn,11,6,"ng-template",null,4,d)(9,Vn,4,0,"ng-template",null,8,d),r()),t&2){let e=m.$implicit;s("value",e.data)}}function Mn(t,m){if(t&1&&(o(0,"div",29),De(1,Ln,11,1,"p-table",30,we),r()),t&2){let e=c(2);l(),Re(e.items().data)}}function kn(t,m){if(t&1&&b(0,Mn,3,0,"div",28),t&2){let e=c();s("ngIf",e.items()&&e.items().data)}}function Nn(t,m){if(t&1&&(o(0,"div",24)(1,"div",31)(2,"span",61),a(3),r()(),o(4,"div")(5,"span"),a(6,"-"),r()(),o(7,"div",31)(8,"span",62),a(9),r()()()),t&2){let e=m.$implicit;l(3),D("(",e.code,")"),l(6),f(e.name)}}function Bn(t,m){if(t&1&&(o(0,"div",24)(1,"div",31)(2,"span",61),a(3),r()(),o(4,"div")(5,"span"),a(6,"-"),r()(),o(7,"div",31)(8,"span",62),a(9),r()()()),t&2){let e=m.$implicit;l(3),D("(",e.code,")"),l(6),f(e.name)}}function An(t,m){t&1&&(o(0,"div",63),a(1," Account is required. "),r())}function Gn(t,m){if(t&1&&(o(0,"div",64)(1,"div"),a(2),r()()),t&2){let e=m.$implicit;l(2),f(e.value)}}function Pn(t,m){if(t&1&&(o(0,"div",55)(1,"div",21),T(2,"p-radiobutton",65),o(3,"label",66),a(4),r()()()),t&2){let e=m.$implicit;l(2),s("value",e.key)("inputId",e.key),l(),Dt("for",e.key),l(),f(e.value)}}function On(t,m){if(t&1){let e=w();o(0,"div",38)(1,"label",47),a(2,"Customer"),r(),o(3,"p-autocomplete",67),I("completeMethod",function(i){h(e);let p=c(2);return x(p.searchCustomer(i))}),r()()}if(t&2){let e=c(2);l(3),s("suggestions",e.customerSuggestions())}}function jn(t,m){if(t&1){let e=w();o(0,"div",38)(1,"label",47),a(2,"Supplier"),r(),o(3,"p-autocomplete",68),I("completeMethod",function(i){h(e);let p=c(2);return x(p.searchSupplier(i))}),r()()}if(t&2){let e=c(2);l(3),s("suggestions",e.supplierSuggestions())}}function zn(t,m){if(t&1){let e=w();o(0,"div",38)(1,"label",47),a(2,"Customer"),r(),o(3,"p-autocomplete",67),I("completeMethod",function(i){h(e);let p=c(2);return x(p.searchCustomer(i))}),r()()}if(t&2){let e=c(2);l(3),s("suggestions",e.customerSuggestions())}}function qn(t,m){if(t&1){let e=w();o(0,"form",46)(1,"div",38)(2,"label",47),a(3,"Accounts"),r(),o(4,"p-multiselect",48),I("onChange",function(i){h(e);let p=c();return x(p.onAccountChange(i))}),b(5,Nn,10,2,"ng-template",null,9,d)(7,Bn,10,2,"ng-template",null,10,d),r(),b(9,An,2,0,"div",49),r(),o(10,"div",38)(11,"label",47),a(12,"From"),r(),o(13,"div",50),T(14,"p-datepicker",51)(15,"p-datepicker",52),r()(),o(16,"div",38)(17,"label",47),a(18,"Outlets"),r(),o(19,"p-multiselect",53),b(20,Gn,3,1,"ng-template",null,10,d),r()(),o(22,"div",38)(23,"label",47),a(24,"Category"),r(),o(25,"p-treeselect",54),I("onFocus",function(){h(e);let i=c();return x(i.onCategoryFocus())}),r()(),o(26,"div",38)(27,"label",18),a(28,"Contact Type"),r(),o(29,"div",16),De(30,Pn,5,4,"div",55,we),r()(),o(32,"div",38)(33,"label",18),a(34,"Sort order"),r(),o(35,"div",16)(36,"div",55)(37,"div",21),T(38,"p-radiobutton",56),o(39,"label",57),a(40,"Asc"),r()()(),o(41,"div",58)(42,"div",21),T(43,"p-radiobutton",59),o(44,"label",60),a(45,"Desc"),r()()()()(),b(46,On,4,1,"div",38)(47,jn,4,1,"div",38)(48,zn,4,1,"div",38),r()}if(t&2){let e,n,i,p,u,_,k=c();s("formGroup",k.form),l(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",(e=k.loaderMetadata())==null||e.options==null?null:e.options.accounts)("selectionLimit",5)("ngClass",F(22,Cn,((n=k.form.get("listAccountID"))==null?null:n.invalid)&&(((n=k.form.get("listAccountID"))==null?null:n.touched)||((n=k.form.get("listAccountID"))==null?null:n.dirty)))),l(5),s("ngIf",((i=k.form.get("listAccountID"))==null?null:i.invalid)&&(((i=k.form.get("listAccountID"))==null?null:i.touched)||((i=k.form.get("listAccountID"))==null?null:i.dirty))),l(5),s("iconDisplay","input")("showIcon",!0),l(),s("iconDisplay","input")("showIcon",!0),l(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",(p=k.loaderMetadata())==null||p.options==null?null:p.options.outlets),l(6),s("metaKeySelection",!1)("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",V(24,vn))("options",k.categoriesOptions()),l(5),Re((u=k.loaderMetadata())==null||u.options==null?null:u.options.contactTypeOptions),l(8),s("value",!0),l(5),s("value",!1),l(3),M((_=k.form.controls.contactType.value)===1?46:_===2?47:48)}}function Hn(t,m){if(t&1){let e=w();o(0,"p-button",69),I("onClick",function(){h(e);let i=c();return x(i.onToggleExportDialog())}),r()}t&2&&s("rounded",!0)("text",!0)}function Un(t,m){if(t&1){let e=w();o(0,"p-button",70),I("click",function(){h(e);let i=c();return x(i.onToggleExportDialog())}),r(),o(1,"p-button",71),I("click",function(){h(e);let i=c();return x(i.onExport())}),r()}}var Kt=(()=>{class t{buildReferenceUrl(e){return rt(e)}getGLCount(){this.reportService.getGLCount(this.filter()).pipe(L(({count:e})=>{this.totalRecords.set(e)})).subscribe()}onToggleExportDialog(){this.isDialogExportVisible.update(e=>!e)}get pageTitle(){return this.items()&&this.items().pageTitle?this.items().pageTitle:"General Ledger"}constructor(){this.reportService=S(G),this.route=S(Pe),this.roleService=S(ie),this.authService=S(xe),this.fb=S(be),this.coaService=S(tt),this.toastr=S(Oe),this.dayjsService=S(ce),this.infinity=1/0,this.metadata=y(null),this.items=y(null),this.totalRecords=y(-1),this.dialogFilterVisible=y(!0),this.initDialogVisible=y(!1),this.isDialogExportVisible=y(!1),this.customerSuggestions=y([]),this.supplierSuggestions=y([]),this.categoriesOptions=y([]),this.localFilter=y({}),this.count=R(()=>this.totalRecords()<0?1/0:this.totalRecords()),this.pagination=R(()=>{let e=this.filter(),n=this.totalRecords()!=null&&this.totalRecords()>=0?this.totalRecords():1/0,i=Math.min(e.pageNumber*e.pageSize,isFinite(n)?n:e.pageNumber*e.pageSize);return{first:1,end:e.pageSize>0?i:0,total:n,page:e.pageNumber,pageSize:e.pageSize,hasPrev:e.pageNumber>1,hasNext:isFinite(n)?e.pageNumber*e.pageSize<n:!0}}),this.loaderMetadata=Se(this.reportService.fetchGeneralLedgerLoader("multiple"),{initialValue:null}),this.baseFilter=R(()=>{let e=this.loaderMetadata();return e?e.filter:null}),this.exportFileTypes=y([{key:0,value:"CSV"},{key:1,value:"Excel"}]),this.queryFilter=Se(this.route.queryParamMap.pipe(Le(e=>({accountID:e.get("id"),to:e.get("to")}))),{initialValue:null}),this.filter=R(()=>{let e=this.baseFilter(),n=this.queryFilter(),i=this.localFilter();return e?g(g(g({},e),n??{}),i):null}),this.creditSubTotal=R(()=>0),this.debitSubTotal=R(()=>0),this.initializeForm(),de(()=>{let e=this.filter();e&&(e.listAccountID.length>0||e.listCategoryID.length>0)&&(this.form.patchValue(this.transformFilterToFormValue(e),{emitEvent:!1}),this.reportService.fetchGeneralLedgerReport(e,"multiple").pipe().subscribe(n=>{this.items.set(n)}))})}initializeForm(){this.form=this.fb.group({accountID:this.fb.control(null),from:this.fb.control(null),to:this.fb.control(null),contactType:this.fb.control(null),contactID:this.fb.control(""),listOutletID:this.fb.control([]),pageNumber:this.fb.control(1),pageSize:this.fb.control(50),sortAscending:this.fb.control(!0),listCategoryID:this.fb.control([]),listAccountID:this.fb.control([]),export:this.fb.control(!1),exportPageNumber:this.fb.control(1),exportPageSize:this.fb.control(0)})}findNodeByKey(e,n){for(let i of e){if(i.key===n)return i;if(i.children){let p=this.findNodeByKey(i.children,n);if(p)return p}}return null}transformFilterToFormValue(e){return Object.entries(e).reduce((n,[i,p])=>{switch(i){case"from":break;case"to":n[i]=p&&(typeof p=="string"||typeof p=="number"||p instanceof Date)?this.dayjsService.from(p)?.toDate():this.dayjsService.now.toDate();break;case"listCategoryID":Array.isArray(p)?n[i]=p.map(u=>this.findNodeByKey(this.categoriesOptions(),u)).filter(u=>!!u):n[i]=[];break;case"listOutletID":case"listAccountID":n[i]=Array.isArray(p)?p:[];break;case"pageNumber":case"pageSize":case"exportPageNumber":case"exportPageSize":n[i]=p!=null?Number(p):0;break;case"sortAscending":case"export":n[i]=!!p;break;case"contactType":n[i]=p!=null?Number(p):null;break;default:n[i]=p}return n},{})}clearContactValueOnContactTypeChange(){this.form.get("contactType")?.valueChanges.subscribe(()=>this.form.get("contactID")?.setValue(""))}onFormValueChange(){let e=this.form.controls.listAccountID.value,n=this.form.controls.listCategoryID.value;e.length<=0&&n.length<=0?(this.form.controls.listAccountID.enable({emitEvent:!1}),this.form.controls.listCategoryID.enable({emitEvent:!1})):e.length>0?(this.form.controls.listAccountID.enable({emitEvent:!1}),this.form.controls.listCategoryID.disable({emitEvent:!1})):n.length>0&&(this.form.controls.listAccountID.disable({emitEvent:!1}),this.form.controls.listCategoryID.enable({emitEvent:!1}))}isEmpty(e){return e==null||typeof e=="string"&&e.trim().length===0}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(L(e=>this.categoriesOptions.set(e))).subscribe()}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(L(n=>this.customerSuggestions.set(n))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(L(n=>this.supplierSuggestions.set(n))).subscribe()}onAccountChange(e){Array.isArray(e.value)&&e.value.length>5&&this.toastr.warning("Please select at most 5 accounts for the general ledger report.","Warning")}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let e=this.buildFilterBody();this.dialogFilterVisible.set(!1),this.localFilter.set(e)}buildFilterBody(){let p=this.form.value,{from:e,to:n}=p,i=_e(p,["from","to"]);return E(g({},this.filter()),{pageNumber:i.pageNumber,pageSize:i.pageSize,sortAscending:i.sortAscending,accountID:i.accountID,listCategoryID:i.listCategoryID?.map(u=>u.key)??[],contactID:i.contactID?.length===0?null:i.contactID,listOutletID:i.listOutletID??[],listAccountID:i.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(n)?this.dayjsService.format(n):null,contactType:i.contactType})}onExport(){let e=this.buildExportBody();this.performExport(e)}performExport(e){this.reportService.exportGeneralLedger(e,{responseType:"blob",observe:"response"}).pipe(L(n=>this.handleExportResponse(n))).subscribe()}handleExportResponse(e){let n=e.headers,i=n.get("Content-Disposition")??n.get("content-disposition"),p="download.csv";if(i){let _=i.match(/filename\*?=(?:UTF-8'')?"?([^;\r\n"]+)/i);_?.[1]&&(p=decodeURIComponent(_[1].replace(/"/g,"")))}let u=e.body;ot(u,p,u.type)}buildExportBody(){let p=this.form.value,{from:e,to:n}=p,i=_e(p,["from","to"]);return E(g({},this.filter()),{exportPageNumber:+i.exportPageNumber,pageNumber:i.pageNumber,pageSize:i.pageSize,sortAscending:i.sortAscending,accountID:i.accountID,listCategoryID:i.listCategoryID?.map(u=>u.key)??[],contactID:i.contactID?.length===0?null:i.contactID,listOutletID:i.listOutletID??[],listAccountID:i.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(n)?this.dayjsService.format(n):null,contactType:i.contactType,export:!0})}onNextPage(){this.localFilter.update(e=>{let n=e.pageNumber??this.baseFilter()?.pageNumber??1;return E(g({},e),{pageNumber:n+1})})}onPrevPage(){this.localFilter.update(e=>{let n=e.pageNumber??this.baseFilter()?.pageNumber??1;return E(g({},e),{pageNumber:Math.max(1,n-1)})})}goToPage(e){this.localFilter.update(n=>E(g({},n),{pageNumber:e}))}goToLastPage(){let e=this.filter();if(!e)return;let n=this.totalRecords();if(n===-1||!isFinite(n)){this.toastr.info("Please load total records before going to the last page","Info");return}let i=Math.ceil(n/e.pageSize);if(e.pageNumber>=i){this.toastr.warning("You are already on the last page","Warning");return}this.localFilter.update(p=>E(g({},p),{pageNumber:i}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-multiple-ledger"]],decls:28,vars:19,consts:[["actionButton",""],["content",""],["filters",""],["closeIconTemplate",""],["footer",""],["caption",""],["header",""],["body",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible","scrollable"],["header","Export Journal Entry",3,"visibleChange","modal","visible","breakpoints"],[1,"d-flex","flex-column","gap-3"],[1,"row",3,"formGroup"],[1,"col-8"],[1,"row"],[1,"col"],["for",""],["type","text","formControlName","exportPageNumber","fluid","","pInputText","","pSize","small"],["role","alert",1,"alert","alert-primary","m-0","p-2"],[1,"d-flex","align-items-center","gap-2"],[1,"fa-solid","fa-circle-info"],[1,"fs-2","text-dark","fw-semibold"],[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 h-100 bg-white border-top",4,"ngIf"],[1,"px-3","h-100","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"],[1,"text-end","text-break"],[3,"innerHTML"],[2,"width","300px","white-space","normal","word-break","break-word"],["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","ngClass"],["class","text-danger",4,"ngIf"],[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","key","placeholder","Select Category",3,"onFocus","metaKeySelection","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],[1,"col-4"],["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,"text-danger"],[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"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click"]],template:function(n,i){if(n&1){let p=w();o(0,"app-main-panel",11),P("isDialogFilterVisibleChange",function(_){return h(p),B(i.dialogFilterVisible,_)||(i.dialogFilterVisible=_),x(_)})("isInitDialogFilterVisibleChange",function(_){return h(p),B(i.initDialogVisible,_)||(i.initDialogVisible=_),x(_)}),I("filterConfirmed",function(){return h(p),x(i.onFilterOKEvent())}),b(1,En,4,1,"ng-template",null,0,d)(3,kn,1,1,"ng-template",null,1,d)(5,qn,49,25,"ng-template",null,2,d),r(),o(7,"p-dialog",12),P("visibleChange",function(_){return h(p),B(i.isDialogExportVisible,_)||(i.isDialogExportVisible=_),x(_)}),o(8,"div",13)(9,"div",14)(10,"div",15)(11,"div",16)(12,"div",17)(13,"label",18),a(14,"Page"),r()(),o(15,"div",17),T(16,"input",19),r()()()(),o(17,"div",20)(18,"div",21),T(19,"i",22),o(20,"span",23),a(21),C(22,"number"),C(23,"number"),r()()()(),b(24,Hn,1,2,"ng-template",null,3,d)(26,Un,2,0,"ng-template",null,4,d),r()}if(n&2){let p;s("pageTitle",i.pageTitle),A("isDialogFilterVisible",i.dialogFilterVisible),s("isFilterable",!0),A("isInitDialogFilterVisible",i.initDialogVisible),s("scrollable",!0),l(7),ke(V(17,xn)),s("modal",!0),A("visible",i.isDialogExportVisible),s("breakpoints",V(18,bn)),l(2),s("formGroup",i.form),l(12),Fe("Exporting data from ",v(22,13,(p=i.filter())==null?null:p.exportPageNumber)," - ",v(23,15,(p=i.filter())==null?null:p.exportPageSize),"")}},dependencies:[ne,H,Ae,z,q,Ge,oe,pe,le,Qe,Je,ee,Z,Ee,ae,re,Te,Ie,Q,$,je,K,Y,X,J,se,me,Ce,He,nt,Bt,it,te,W,U,et,Ze,qe,ze],styles:["[_nghost-%COMP%]{display:block} .p-datatable .p-datatable-header{padding-left:0!important}"],changeDetection:0})}}return t})();var ka=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:Pt},{path:"multiple-general-ledger",component:Kt},{path:"profit-loss",component:Ot},{path:"balance-sheet",component:qt},{path:"comparative-balance",component:Ht},{path:"trial-balance",component:Wt},{path:"cash-flow",component:Ut}]}];export{ka as REPORTS_ROUTES};
package/chunk-XKCLERWG.js DELETED
@@ -1 +0,0 @@
1
- import{Z as o}from"./chunk-JP6RBSB3.js";function i(e="emit"){return r=>r.pipe(o(t=>console.log(`${e}`,t)))}export{i as a};
package/chunk-Z2DNIMTA.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-3LJYW2Z6.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-QEXHFBOM.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-FIYB2XQ5.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-HL7O6XIY.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-NUHS3HCR.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-YZ5XPCJJ.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-ZDP7IENI.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-PBK76345.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-X3WK55HF.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};