dealposbooks 1.9.4 → 1.9.6

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 (148) hide show
  1. package/3rdpartylicenses.txt +374 -374
  2. package/assets/scss/layouts/_sidebar.scss +2 -2
  3. package/assets/scss/style.scss +34 -3
  4. package/assets/scss/variables/_variables.scss +1 -2
  5. package/chunk-27SWEVDU.js +1 -0
  6. package/chunk-2DV653RD.js +1 -0
  7. package/chunk-2OECREUZ.js +1 -0
  8. package/{chunk-NL5IYBHF.js → chunk-32BR7AQL.js} +1 -1
  9. package/chunk-34XRAZFC.js +1 -0
  10. package/chunk-35CWG2OK.js +180 -0
  11. package/chunk-35KDUCM3.js +1 -0
  12. package/{chunk-BGDKOH3U.js → chunk-3DN7TZCI.js} +1 -1
  13. package/chunk-3G3QSUWH.js +1 -0
  14. package/chunk-3HW557B7.js +1 -0
  15. package/chunk-3L7IWFXM.js +527 -0
  16. package/chunk-3WB76KQC.js +430 -0
  17. package/chunk-43WCLYRX.js +1 -0
  18. package/chunk-46TNY5N4.js +185 -0
  19. package/chunk-4FGQ5T64.js +2 -0
  20. package/chunk-4KXSM3HP.js +1 -0
  21. package/chunk-4QKRWFW4.js +1 -0
  22. package/{chunk-AM66YD6C.js → chunk-4S33ZRKF.js} +1 -1
  23. package/chunk-54OPMMIM.js +1 -0
  24. package/chunk-6HQX2SM2.js +1 -0
  25. package/chunk-6TA77CRR.js +1 -0
  26. package/{chunk-F7TF7ASR.js → chunk-6ZZARVQO.js} +1 -1
  27. package/{chunk-XMZ7ADZB.js → chunk-7WXXPCRV.js} +1 -1
  28. package/{chunk-5QMHSLSU.js → chunk-AKMHO3LC.js} +1 -1
  29. package/chunk-AOSPVPK7.js +231 -0
  30. package/{chunk-5OU7ECCN.js → chunk-ASK2IVMC.js} +1 -1
  31. package/chunk-B7JILYJO.js +1 -0
  32. package/chunk-BNI5KUDE.js +193 -0
  33. package/chunk-BX3CRF44.js +1 -0
  34. package/{chunk-KQAMA66M.js → chunk-BYD3JK4R.js} +1 -1
  35. package/chunk-C4LZX33Q.js +449 -0
  36. package/{chunk-7TKATLB4.js → chunk-C5GEP4MM.js} +1 -1
  37. package/chunk-C7UZ6ZYF.js +1 -0
  38. package/chunk-CSMMP7XG.js +188 -0
  39. package/chunk-CTCQB63H.js +1 -0
  40. package/chunk-DCKLQNGL.js +1 -0
  41. package/chunk-DNK2GUDB.js +1 -0
  42. package/{chunk-VKO43FOT.js → chunk-DOM7WYRM.js} +1 -1
  43. package/chunk-ELWFWCNU.js +246 -0
  44. package/{chunk-5OXHRN43.js → chunk-EXVUABTO.js} +1 -1
  45. package/chunk-G6FJQBZZ.js +1 -0
  46. package/chunk-GJXWL5XV.js +1 -0
  47. package/chunk-GNP7WGSH.js +1 -0
  48. package/chunk-GTGRV7IH.js +1 -0
  49. package/chunk-HFFH2WIX.js +98 -0
  50. package/chunk-HRPP75N7.js +1 -0
  51. package/{chunk-7XAJOA36.js → chunk-HRQJ5DXP.js} +1 -1
  52. package/{chunk-XEATX3IC.js → chunk-I3HFXOYS.js} +1 -1
  53. package/{chunk-HDO45X7Q.js → chunk-IIB2DZLA.js} +1 -1
  54. package/{chunk-FCGAJLPQ.js → chunk-J2SK4PGN.js} +1 -1
  55. package/chunk-J77A3DFB.js +1 -0
  56. package/chunk-JDW35ZB5.js +47 -0
  57. package/chunk-JMLETF7Y.js +1 -0
  58. package/{chunk-56MVOUHH.js → chunk-JP3F2QND.js} +1 -1
  59. package/chunk-JYNZPVLW.js +1 -0
  60. package/chunk-K6753MGR.js +7 -0
  61. package/chunk-LD4G6ND6.js +130 -0
  62. package/{chunk-JQ4DHNFQ.js → chunk-LKZL77YR.js} +1 -1
  63. package/chunk-LR2DJRRL.js +79 -0
  64. package/chunk-LTZA6IIO.js +1 -0
  65. package/chunk-M7MFX6BW.js +1 -0
  66. package/chunk-MCDQ2TIS.js +1 -0
  67. package/chunk-MJVSTWYY.js +1 -0
  68. package/chunk-N2RYBZK7.js +1 -0
  69. package/{chunk-HPKZYS2A.js → chunk-N6JCA3CN.js} +2 -2
  70. package/chunk-NF3TF3LT.js +397 -0
  71. package/chunk-OEJBOFI5.js +1 -0
  72. package/{chunk-7PDAUPWN.js → chunk-OEOAUJY5.js} +12 -12
  73. package/{chunk-JRYP3YPK.js → chunk-OVCTOPAO.js} +1 -1
  74. package/{chunk-4FK4QI2U.js → chunk-OZACNHDP.js} +1 -1
  75. package/chunk-P6CJ2ONT.js +1 -0
  76. package/{chunk-T2A6NORZ.js → chunk-PGECEXRR.js} +1 -1
  77. package/{chunk-ITIRJVUS.js → chunk-QPKNYNLC.js} +2 -2
  78. package/chunk-RBDJZRHY.js +1 -0
  79. package/{chunk-25XKSUYX.js → chunk-RT5PUZ5F.js} +1 -1
  80. package/{chunk-ZKXT6RSI.js → chunk-TC43COAE.js} +1 -1
  81. package/chunk-TFV5QZKR.js +947 -0
  82. package/chunk-TK3G2BVM.js +222 -0
  83. package/{chunk-R6HGHSPM.js → chunk-TQZNJ5WF.js} +1 -1
  84. package/chunk-UEOO2LYA.js +82 -0
  85. package/chunk-WEWEITR7.js +1 -0
  86. package/chunk-WGZN6AN2.js +1 -0
  87. package/chunk-WZO2ZLBL.js +1 -0
  88. package/chunk-X34Y3TVX.js +1 -0
  89. package/chunk-XFSZDZPJ.js +1 -0
  90. package/chunk-XKEV5AED.js +201 -0
  91. package/chunk-XZGFG6E3.js +1 -0
  92. package/chunk-YOEPO6LK.js +959 -0
  93. package/{chunk-D5AXB5DE.js → chunk-YVEUYFCE.js} +2 -2
  94. package/chunk-ZWHB7NI7.js +1 -0
  95. package/index.html +2 -2
  96. package/main-U5PC2W2C.js +1 -0
  97. package/package.json +1 -1
  98. package/styles-GTUKYMN7.css +1 -0
  99. package/chunk-2TUOAI22.js +0 -1
  100. package/chunk-3IHOEH5O.js +0 -1
  101. package/chunk-3VC2KAML.js +0 -1
  102. package/chunk-4J3EFT67.js +0 -1
  103. package/chunk-6J5S4UPN.js +0 -2
  104. package/chunk-7GT5MR57.js +0 -1
  105. package/chunk-7LCGNNCW.js +0 -627
  106. package/chunk-7NXTCJMX.js +0 -1
  107. package/chunk-A3NY5EYN.js +0 -1
  108. package/chunk-AH5PA2TO.js +0 -1
  109. package/chunk-B4COOFJS.js +0 -2
  110. package/chunk-BJGK47CG.js +0 -1
  111. package/chunk-BWS6U7BM.js +0 -193
  112. package/chunk-D5RQBZNF.js +0 -1
  113. package/chunk-DELPZQZH.js +0 -246
  114. package/chunk-DJUGUNXR.js +0 -503
  115. package/chunk-DSFIM36S.js +0 -1
  116. package/chunk-EHCALTHK.js +0 -1
  117. package/chunk-FUGCJNGU.js +0 -960
  118. package/chunk-GMLRRSMP.js +0 -1
  119. package/chunk-IACJNRVA.js +0 -25
  120. package/chunk-IQZ2MKLS.js +0 -1
  121. package/chunk-IXPPR5MV.js +0 -1
  122. package/chunk-J3B5HVW4.js +0 -1
  123. package/chunk-L6VKOTIV.js +0 -180
  124. package/chunk-LATJGOV3.js +0 -185
  125. package/chunk-LLV6TGMT.js +0 -1
  126. package/chunk-MNCUT4L4.js +0 -1
  127. package/chunk-NBRL2K4H.js +0 -1
  128. package/chunk-NDOZ5YES.js +0 -1
  129. package/chunk-SCEMI63T.js +0 -1
  130. package/chunk-SDTMCYSJ.js +0 -1
  131. package/chunk-TDX2HSWE.js +0 -1
  132. package/chunk-UHVZAFKN.js +0 -1
  133. package/chunk-UMYCPFK5.js +0 -1660
  134. package/chunk-UOAJWMSO.js +0 -1
  135. package/chunk-UZCNPNT7.js +0 -2
  136. package/chunk-VF7TG32T.js +0 -47
  137. package/chunk-VI3AV775.js +0 -1
  138. package/chunk-VK5TK23W.js +0 -7
  139. package/chunk-VNHXLUHA.js +0 -1
  140. package/chunk-W6UD5NO5.js +0 -2
  141. package/chunk-WUGCCSIP.js +0 -1
  142. package/chunk-X234EQET.js +0 -129
  143. package/chunk-X3FQFXUZ.js +0 -300
  144. package/chunk-XJ5BSLZV.js +0 -1
  145. package/chunk-YAKYBQQ6.js +0 -1
  146. package/chunk-YQRWSN5V.js +0 -1
  147. package/main-VQYYYR67.js +0 -1
  148. package/styles-IDKYTRGA.css +0 -1
@@ -0,0 +1 @@
1
+ import{a as C,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 l,Kb as p,Lc as T,Nb as x,Ub as n,V as y,Vb as o,Wb as m,X as M,Z as S,_b as P,dc as h,ec as s,gb as a,h as v,ha as f,pa as g,qa as d,ra as b,s as u,sa as k,wb as B,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=P();n(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),h("onClick",function(){g(e);let r=s();return d(r.onMigrate())}),o()()}if(i&2){let e=s();a(2),p("disabled",l(3,2,e.countInBooks$)!==0)("pTooltip",l(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),m(3,"app-migration-cards",7),c(4,"async"),b(),n(5,"svg",8),m(6,"path",9),o(),k(),m(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=s();x(_(12,q)),a(),x(_(13,q)),a(2),p("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ue=(()=>{class i{constructor(){this.migrateService=f(C),this.toastr=f(I),this.refresh$=new v(void 0),this.pageTitle="Tax Account"}ngOnInit(){let e=this.refresh$.pipe(M(()=>this.migrateService.getTaxAccountCount()),S(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-tax-account"]],features:[w([C])],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,T)(3,K,9,14,"ng-template",null,1,T),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 TaxAccountComponent};
@@ -0,0 +1 @@
1
+ import{a as v,b as A}from"./chunk-JP3F2QND.js";import{d as V,k as W}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 j,b as G}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import{b as Q}from"./chunk-6ZZARVQO.js";import{h as J}from"./chunk-35CWG2OK.js";import"./chunk-EXVUABTO.js";import{a as S,b as H,c as K,d as U,e as q,f as $,g as z}from"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{x as N}from"./chunk-BNI5KUDE.js";import{a as O}from"./chunk-35KDUCM3.js";import"./chunk-3HW557B7.js";import{F as R,M as F,l as I,m as L}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Cb as C,Ic as k,Jc as B,Kb as m,Lc as c,Nb as b,Ub as n,Vb as a,Wb as M,X as u,Xc as D,ba as y,c as h,ec as g,gb as l,ha as p,pc as i,qc as s,rc as T,wb as P,xc as w,yc as _,zc as x}from"./chunk-YVEUYFCE.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var X=(()=>{class t{constructor(){this.httpService=p(O)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(){return this.httpService.get("","api/CashAndBank/GetCashAndBank")}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var et={data:[],filter:[],options:{hasGeneralLedger:!1}},E=H(z("cash-bank-store"),$(et),K(t=>({totalBalance:D(()=>t.data().reduce((o,e)=>o+e.balance,0))})),q(t=>{let o=p(X);return{loadCashAndBankLoader:v(h(u(()=>o.fetchCashAndBankLoader().pipe(A({next:e=>{console.log("response",e),S(t,r=>f(d({},r),{options:e.options}))},error:e=>{console.log("error",e)}}))))),loadCashAndBankData:v(h(u(()=>o.fetchCashAndBankData().pipe(A({next:e=>{console.log("response",e),S(t,r=>f(d({},r),{data:e}))},error:e=>{console.log("error",e)}})))))}}),U({onInit(t){t.loadCashAndBankLoader(),t.loadCashAndBankData()}}));var nt=["class","page"],at=()=>({height:"calc(100vh - 70px)"}),ot=t=>[t],it=()=>["/pages/report/general-ledger"],rt=t=>({id:t});function lt(t,o){t&1&&(n(0,"tr")(1,"th"),i(2,"Code"),a(),n(3,"th"),i(4,"Name"),a(),n(5,"th",7),i(6,"Balance"),a()())}function pt(t,o){if(t&1&&(n(0,"tr")(1,"td"),i(2),a(),n(3,"td")(4,"a",8),i(5),a()(),n(6,"td",7)(7,"a",9),i(8),k(9,"number"),a()()()),t&2){let e=o.$implicit;l(2),s(e.code),l(2),m("routerLink",x(8,ot,"/pages/chart-of-account/account/"+e.accountID)),l(),s(e.name),l(2),m("routerLink",_(10,it))("queryParams",x(11,rt,e.accountID)),l(),s(B(9,6,e.balance))}}function ct(t,o){if(t&1&&(n(0,"tr"),M(1,"td"),n(2,"td",10),i(3,"Total"),a(),n(4,"td",11),i(5),k(6,"number"),a()()),t&2){let e=g(2);l(5),T(" ",B(6,1,e.store.totalBalance())," ")}}function mt(t,o){t&1&&(n(0,"tr")(1,"td",12)(2,"span"),i(3,"No records found."),a()()())}function st(t,o){if(t&1&&(n(0,"p-panel")(1,"p-table",6),C(2,lt,7,0,"ng-template",null,1,c)(4,pt,10,13,"ng-template",null,2,c)(6,ct,7,3,"ng-template",null,3,c)(8,mt,4,0,"ng-template",null,4,c),a()()),t&2){let e=g();b(_(3,at)),l(),m("value",e.store.data())}}var Y=(()=>{class t{constructor(){this.store=p(E),this.routeInfo=Z}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-cash-bank",8,"page"]],features:[w([E])],attrs:nt,decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["footer",""],["emptymessage",""],["pageTitle","Cash and Bank"],[3,"value"],[1,"text-end"],[1,"link","link-primary",3,"routerLink"],[1,"link","link-primary",3,"routerLink","queryParams"],[1,"fw-bold"],[1,"text-end","fw-bold"],["colspan","3"]],template:function(r,dt){r&1&&(n(0,"app-main-panel",5),C(1,st,10,4,"ng-template",null,0,c),a())},dependencies:[L,I,J,N,W,V,Q,F,R,G,j],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return t})();var qt=[{path:"",component:Y,children:[]}],Z={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{qt as CASH_BANK_ROUTES,Z as CASH_BANK_ROUTE_PAGE};
@@ -0,0 +1 @@
1
+ import{a as V,b as oe}from"./chunk-G6FJQBZZ.js";import"./chunk-GJXWL5XV.js";import"./chunk-34XRAZFC.js";import{a as K,b as Q}from"./chunk-LKZL77YR.js";import{a as te,b as ie}from"./chunk-3WB76KQC.js";import"./chunk-LTZA6IIO.js";import{a as ne,b as re}from"./chunk-CSMMP7XG.js";import"./chunk-6TA77CRR.js";import"./chunk-JMLETF7Y.js";import{a as Y,b as Z}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import{b as ee}from"./chunk-6ZZARVQO.js";import{h as $}from"./chunk-35CWG2OK.js";import"./chunk-EXVUABTO.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as U,x as X}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{e as G,j as H,x as q}from"./chunk-BNI5KUDE.js";import"./chunk-35KDUCM3.js";import{a as A}from"./chunk-3HW557B7.js";import{i as z,m as R}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Cb as L,Ga as b,Ic as T,Jc as P,Kb as u,Lc as M,Nb as S,Ub as r,V as E,Vb as o,Wb as C,X as B,Z as W,_b as h,dc as f,ec as m,gb as s,h as J,ha as x,pa as l,pc as _,qa as p,ra as I,s as y,sa as N,uc as c,vc as g,wb as O,wc as d,xc as j,yc as F}from"./chunk-YVEUYFCE.js";import{a as D}from"./chunk-YQFG5XE2.js";var ae=()=>({height:"calc(100vh - 100px)"});function le(a,v){if(a&1){let t=h();r(0,"div",4)(1,"p-button",5),f("onClick",function(){l(t);let e=m();return p(e.onFormat())}),o(),r(2,"p-button",6),f("onClick",function(){l(t);let e=m();return p(e.openMigrateDialog())}),o()()}}function pe(a,v){if(a&1){let t=h();r(0,"div",7)(1,"div",8)(2,"label",9),_(3,"From"),o(),r(4,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().From,e)||(n.filter().From=e),p(e)}),o()(),r(5,"div",8)(6,"label",9),_(7,"To"),o(),r(8,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().To,e)||(n.filter().To=e),p(e)}),o()(),r(9,"div",8)(10,"label",9),_(11,"Page Number"),o(),r(12,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageNumber,e)||(n.filter().PageNumber=e),p(e)}),o()(),r(13,"div",8)(14,"label",9),_(15,"Page Size"),o(),r(16,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageSize,e)||(n.filter().PageSize=e),p(e)}),o()()()}if(a&2){let t=m();s(4),u("showIcon",!0),c("ngModel",t.filter().From),s(4),u("showIcon",!0),c("ngModel",t.filter().To),s(4),c("ngModel",t.filter().PageNumber),s(4),c("ngModel",t.filter().PageSize)}}function me(a,v){if(a&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",12),C(3,"app-migration-cards",13),T(4,"async"),I(),r(5,"svg",14),C(6,"path",15),o(),N(),C(7,"app-migration-cards",16),T(8,"async"),o()()()),a&2){let t=m();S(F(12,ae)),s(),S(F(13,ae)),s(2),u("migrationCount",P(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),s(4),u("migrationCount",P(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var We=(()=>{class a{constructor(){this.migrateService=x(V),this.refresh$=new J(void 0),this.toastr=x(A),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:50,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null}ngOnInit(){let t=this.refresh$.pipe(B(()=>this.migrateService.getManualJournalCount()),E(1));this.countInPOS$=t.pipe(y(i=>Number(i.pos))),this.countInBooks$=t.pipe(y(i=>Number(i.books)))}openMigrateDialog(){this.previousFilter=D({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(W(()=>{this.isFilterDialogOpen.update(t=>!t),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=O({type:a,selectors:[["app-manual-journal"]],features:[j([V])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,e){if(i&1){let n=h();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(n),p(e.onMigrate())}),d("isDialogFilterVisibleChange",function(w){return l(n),g(e.isFilterDialogOpen,w)||(e.isFilterDialogOpen=w),p(w)}),f("filterCanceled",function(){return l(n),p(e.onFilterCanceled())}),L(1,le,3,0,"ng-template",null,0,M)(3,pe,17,6,"ng-template",null,1,M)(5,me,9,14,"ng-template",null,2,M),o()}i&2&&(u("pageTitle",e.pageTitle),c("isDialogFilterVisible",e.isFilterDialogOpen))},dependencies:[$,R,z,ee,X,U,Q,K,Z,Y,oe,ie,te,q,G,H,re,ne],encapsulation:2})}}return a})();export{We as ManualJournalComponent};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-35KDUCM3.js";import{ba as o,ha as n,i as c}from"./chunk-YVEUYFCE.js";import{a as i}from"./chunk-YQFG5XE2.js";var C=(()=>{class r{constructor(){this.httpService=n(a),this.categoryOptionsCache$=new c(1),this.isInitialized=!1}getChartOfAccountLoader(){return this.httpService.get("","api/ChartOfAccountLoader")}getPaginatedChartAccounts(t){let e=i({},t);return this.httpService.post("","api/ChartOfAccount/GetPaginatedList",e)}getChartAccountForm(){return this.httpService.get("","api/ChartOfAccount/Form")}getChartAccountById(t){return this.httpService.get("",`api/ChartOfAccount/Info/${t}`)}getChartAccountFormById(t){return this.httpService.get("",`api/ChartOfAccount/Form/${t}`)}submitChartAccount(t,e={}){return this.httpService.post("","api/ChartOfAccount/Submit",t,e)}deleteChartAccount(t){if(t.length>1){let e={body:t};return this.httpService.delete("","api/ChartOfAccount/Batch",e)}else return this.httpService.delete("",`api/ChartOfAccount/${t[0]}`)}fetchCategoryOptions(){return this.httpService.get("","api/ChartOfAccount/CategoryOptions")}getCachedCategoriesOptions(){return this.isInitialized||(this.isInitialized=!0,this.fetchCategoryOptions().subscribe({next:t=>this.categoryOptionsCache$.next(t),error:t=>this.categoryOptionsCache$.error(t)})),this.categoryOptionsCache$.asObservable()}exportChartOfAccounts(t){return this.httpService.post(void 0,"api/ChartOfAccountExport/export",t,{responseType:"blob"})}importPreviewChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importpreview",t)}importConfirmChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importconfirm",t)}discountedChartAccounts(t,e){return this.httpService.put(void 0,`/api/ChartOfAccount/${t}/discontinued`,e)}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{C as a};