dealposbooks 5.50.0 → 5.51.1

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 (91) hide show
  1. package/3rdpartylicenses.txt +10 -10
  2. package/{chunk-SX4XIR77.js → chunk-2UDDXT3B.js} +1 -1
  3. package/{chunk-NHW7GVHK.js → chunk-2Z3VSENH.js} +1 -1
  4. package/{chunk-ZC2ADHDH.js → chunk-3IOJJMQE.js} +1 -1
  5. package/{chunk-KZU3VXLG.js → chunk-3O7NQ6AZ.js} +1 -1
  6. package/chunk-3PM6I5JR.js +1 -0
  7. package/{chunk-3ALAWCRA.js → chunk-4BAARBYV.js} +1 -1
  8. package/chunk-52EMI2TW.js +803 -0
  9. package/{chunk-DAM2WKDY.js → chunk-52PEVPZN.js} +1 -1
  10. package/{chunk-RBNXJUFM.js → chunk-5MLCIFDJ.js} +1 -1
  11. package/{chunk-DM45YT57.js → chunk-5SDFH3ZF.js} +1 -1
  12. package/chunk-6JWBYLFX.js +1 -0
  13. package/{chunk-VNZUZ5UI.js → chunk-7XSFPN5T.js} +1 -1
  14. package/chunk-AAKZYXG3.js +145 -0
  15. package/{chunk-BB2CNXSH.js → chunk-BBR4SZ4S.js} +1 -1
  16. package/{chunk-DAFEIZYQ.js → chunk-E2PHUSPH.js} +1 -1
  17. package/{chunk-GU4FXUJC.js → chunk-EO32GXB6.js} +1 -1
  18. package/{chunk-GAXDMEOS.js → chunk-EZXX3QNG.js} +1 -1
  19. package/chunk-FJM77N3D.js +1 -0
  20. package/{chunk-YU4Q7ASX.js → chunk-FUYYSJF7.js} +1 -1
  21. package/{chunk-KXW5NWRO.js → chunk-G25BIGG3.js} +1 -1
  22. package/{chunk-TOR7QRRB.js → chunk-G3BJCT7T.js} +1 -1
  23. package/{chunk-ON7PMYMV.js → chunk-H7YYGW7V.js} +1 -1
  24. package/{chunk-Z4XRTHAH.js → chunk-HR6W3DC4.js} +1 -1
  25. package/{chunk-PB2MFYIM.js → chunk-I3DG6HPA.js} +1 -1
  26. package/chunk-IWB6L5HR.js +1 -0
  27. package/chunk-IYV5JRCZ.js +1 -0
  28. package/{chunk-YQYRAH7V.js → chunk-JBYPGHPN.js} +1 -1
  29. package/chunk-JNPTKMYO.js +1 -0
  30. package/chunk-JRHKJYE2.js +1 -0
  31. package/chunk-KPSZN2UI.js +1 -0
  32. package/chunk-KU3G54A2.js +129 -0
  33. package/chunk-LP4UYVTQ.js +160 -0
  34. package/{chunk-XGU6GBEK.js → chunk-LZCLNB3T.js} +1 -1
  35. package/chunk-MDE76CBT.js +7 -0
  36. package/chunk-MGEVP222.js +1 -0
  37. package/chunk-N3AQU3B6.js +1 -0
  38. package/{chunk-KORGIX2B.js → chunk-OOCLTY27.js} +1 -1
  39. package/{chunk-3GYSEQ25.js → chunk-OW6NHTGL.js} +1 -1
  40. package/chunk-OZYL2K6P.js +1 -0
  41. package/chunk-PQ2NDMDD.js +202 -0
  42. package/{chunk-IMPGOCFC.js → chunk-PXAENMFN.js} +1 -1
  43. package/chunk-PZCAY2XI.js +1 -0
  44. package/{chunk-ZAMQ4RCL.js → chunk-QCGJB7O7.js} +1 -1
  45. package/{chunk-2JFOEOZ2.js → chunk-QSZKELXB.js} +1 -1
  46. package/chunk-RA2HD63W.js +1 -0
  47. package/{chunk-4IMFKRR6.js → chunk-RCHTOR4U.js} +1 -1
  48. package/{chunk-7DBOORB2.js → chunk-RGVP7KT4.js} +1 -1
  49. package/{chunk-65V5R4TS.js → chunk-RNMAINY3.js} +1 -1
  50. package/{chunk-4AGTFPOU.js → chunk-SOD2BIQR.js} +1 -1
  51. package/chunk-U52NCHP2.js +1 -0
  52. package/chunk-U7I6X4QJ.js +8 -0
  53. package/chunk-UMDFA3TV.js +1 -0
  54. package/{chunk-VKUW7E75.js → chunk-UNKPZO2B.js} +1 -1
  55. package/{chunk-56CZGYL5.js → chunk-V6BSLJMN.js} +1 -1
  56. package/chunk-VANY33VH.js +1 -0
  57. package/{chunk-A6T2KR7U.js → chunk-VYR5D7SO.js} +1 -1
  58. package/{chunk-XULSWUMO.js → chunk-VZHZFGQ2.js} +1 -1
  59. package/chunk-WNEAYP2J.js +1 -0
  60. package/{chunk-SJOOTBQ5.js → chunk-X7I6QMMX.js} +1 -1
  61. package/{chunk-LBXNL7E4.js → chunk-Y4SHAFGQ.js} +1 -1
  62. package/{chunk-J3HFAWXU.js → chunk-YI5IYWUO.js} +1 -1
  63. package/{chunk-SOYJAYJK.js → chunk-YKZN6T5N.js} +1 -1
  64. package/{chunk-RVUOVLL5.js → chunk-YZ76QE4R.js} +1 -1
  65. package/{chunk-SXNOZOOP.js → chunk-Z2MDQN57.js} +1 -1
  66. package/chunk-ZM7C3PCP.js +1 -0
  67. package/index.html +2 -2
  68. package/{main-UCTZ3G6L.js → main-ARGVLXJ4.js} +1 -1
  69. package/package.json +1 -1
  70. package/chunk-27SC6O47.js +0 -1
  71. package/chunk-47G2N7SA.js +0 -1
  72. package/chunk-4RBG4SFN.js +0 -1
  73. package/chunk-5N5QHECN.js +0 -1
  74. package/chunk-6GO647AV.js +0 -1
  75. package/chunk-AF6G72MJ.js +0 -1
  76. package/chunk-BOQI2TMP.js +0 -8
  77. package/chunk-BTFX33U6.js +0 -947
  78. package/chunk-COSMZ2AH.js +0 -1
  79. package/chunk-FHXTQXB7.js +0 -160
  80. package/chunk-HQHEWKLC.js +0 -1
  81. package/chunk-I2OULINE.js +0 -1
  82. package/chunk-JERRSTLA.js +0 -1
  83. package/chunk-OOCCZG53.js +0 -129
  84. package/chunk-SASRJPT7.js +0 -1
  85. package/chunk-URGN4QVD.js +0 -1
  86. package/chunk-UTOLWW4T.js +0 -1
  87. package/chunk-VJROOSEO.js +0 -7
  88. package/chunk-WYLIU52Q.js +0 -1
  89. package/chunk-XN4CDKDI.js +0 -1
  90. package/chunk-Z3ZKNQZS.js +0 -1
  91. package/chunk-ZWNKUBMG.js +0 -202
@@ -1 +1 @@
1
- import{a as E}from"./chunk-BT7Y4ADP.js";import{b as w}from"./chunk-DZCJWJUG.js";import{a as k}from"./chunk-TOR7QRRB.js";import"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{s as v,u as y}from"./chunk-DM2JLWKE.js";import{Eb as p,Oc as P,Pc as M,Rb as _,Sb as f,Ub as s,Vb as u,Wb as e,Xb as n,Yb as O,ca as x,gc as C,ia as l,ib as a,s as b,sc as i,tc as m,uc as r,yb as h}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function z(t,d){if(t&1&&(e(0,"div",3)(1,"div",5)(2,"div",26)(3,"div",27)(4,"div",28)(5,"table",11)(6,"tbody")(7,"tr",13)(8,"td",14),i(9),n()()()()()()()()()),t&2){let o=C();a(9),r(" To: ",o.printData.contactName," ")}}function T(t,d){t&1&&(e(0,"th"),i(1,"Tag"),n())}function A(t,d){if(t&1&&(e(0,"td",14),i(1),n()),t&2){let o=C();a(),m(o.printData.journalTag)}}function N(t,d){if(t&1&&(O(0,"br"),e(1,"small",30),i(2),n()),t&2){let o=C().$implicit;a(2),r(" ",o.charttOfAccountNote," ")}}function R(t,d){if(t&1&&(e(0,"tr")(1,"td",14),i(2),n(),e(3,"td",14),i(4),p(5,N,3,1),n(),e(6,"td",29),i(7),P(8,"number"),n(),e(9,"td",29),i(10),P(11,"number"),n()()),t&2){let o=d.$implicit;a(2),m(o.chartOfAccountCode),a(2),r(" ",o.chartOfAccountName," "),a(),_(o.charttOfAccountNote?5:-1),a(2),r(" ",M(8,5,o.debitAmount)," "),a(3),r(" ",M(11,7,o.creditAmount)," ")}}function B(t,d){if(t&1&&(e(0,"div",9)(1,"div",31)(2,"table",32)(3,"tr")(4,"th",12),i(5,"Journal Note"),n(),e(6,"td",33),i(7),n()()()()()),t&2){let o=C();a(7),r(" ",o.printData.journalNote," ")}}var S=(()=>{class t{constructor(){this.route=l(w)}ngOnInit(){this.route.data.subscribe(({print:o})=>{o&&(this.printData=o)})}static{this.\u0275fac=function(g){return new(g||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-journal-entry-print"]],decls:62,vars:12,consts:[[1,"print_container","print-normal"],[1,"invoice_print_container","printing","d-print-block"],[1,"row","g-0","py-3","d-flex","justify-content-between","align-items-stretch","header","overflow-hidden"],[1,"col","p-0","m-0","header_left","d-flex","flex-column"],[1,"col","p-0","m-0","header_right","ms-auto","d-flex","flex-column"],[1,"row","me-0","invoice_number","h-100"],[1,"w-100","d-flex","justify-content-end"],[1,"h3","fw-bolder"],[1,"h3"],[1,"row"],[1,"col-12","d-flex","justify-content-end"],[1,"table","table-bordered","w-auto","float-none","mb-0"],[1,"bg-light-gray"],[1,"border"],[1,"text-black"],[1,"row","d-print-block","g-0"],[1,"col-md-12","cartItems"],[1,"w-100","table","table-sm","table-bordered","plain",2,"table-layout","fixed"],[2,"width","50px"],[2,"width","150px"],[2,"background","#fdf3c6"],[1,"text-end"],[1,"border-0"],["colspan","2",1,"border-0"],[1,"d-flex","justify-content-end","gap-2","fw-bold","mb-2","fw-bolder","text-black"],[1,"border-0","fw-bolder","text-black","text-end",2,"vertical-align","baseline"],[1,"w-100","d-flex","justify-content-start","h-100"],[1,"row","flex-grow-1","h-100"],[1,"col-12","d-flex","justify-content-start","mt-auto"],[1,"number","text-black"],[1,"text-muted","text-black"],[1,"col-auto"],[1,"table","table-sm","table-bordered","table-secondary","info","w-auto",2,"table-layout","auto"],[1,"w-auto",2,"white-space","nowrap","width","auto"]],template:function(g,c){g&1&&(e(0,"div",0)(1,"div",1)(2,"div",2),p(3,z,10,1,"div",3),e(4,"div",4)(5,"div",5),O(6,"div",6),e(7,"div",6)(8,"strong",7),i(9," Journal\xA0 "),n(),e(10,"span",8),i(11),n()(),e(12,"div",6)(13,"div",9)(14,"div",10)(15,"table",11)(16,"thead",12)(17,"tr")(18,"th"),i(19,"Date"),n(),p(20,T,2,0,"th"),n()(),e(21,"tbody")(22,"tr",13)(23,"td",14),i(24),n(),p(25,A,2,1,"td",14),n()()()()()()()()(),e(26,"div",15)(27,"div",16)(28,"table",17)(29,"colgroup"),O(30,"col",18)(31,"col",19)(32,"col",18)(33,"col",18),n(),e(34,"thead",20)(35,"tr")(36,"th"),i(37,"Code"),n(),e(38,"th"),i(39,"Account"),n(),e(40,"th",21),i(41,"Debit"),n(),e(42,"th",21),i(43,"Credit"),n()()(),e(44,"tbody"),s(45,R,12,9,"tr",null,f),n(),e(47,"tfoot")(48,"tr",22)(49,"td",23)(50,"div",24)(51,"span"),i(52,"Total"),n(),e(53,"span"),i(54,":"),n()()(),e(55,"td",25),i(56),P(57,"number"),n(),e(58,"td",25),i(59),P(60,"number"),n()()()()()(),p(61,B,8,1,"div",9),n()()),g&2&&(a(3),_(c.printData.contactName&&c.printData.contactName.trim()!==""?3:-1),a(8),r("#",c.printData.number,""),a(9),_(c.printData.journalTag&&c.printData.journalTag.trim()!==""?20:-1),a(4),m(c.printData.date),a(),_(c.printData.journalTag&&c.printData.journalTag.trim()!==""?25:-1),a(20),u(c.printData.listJournalItems),a(11),r(" ",M(57,8,c.printData.debitTotal)," "),a(3),r(" ",M(60,10,c.printData.creditTotal)," "),a(2),_(c.printData.journalNote&&c.printData.journalNote.trim()!==""?61:-1))},dependencies:[y,v],styles:['div.print_container[_ngcontent-%COMP%]{margin:0 auto!important;text-align:left;color:#000;position:relative}div.mode[_ngcontent-%COMP%]{color:gray;text-align:right;height:20px;padding-top:2px;font-size:10px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{float:left;display:block;margin:0 5px 0 0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0 5px 0 0;padding:0 5px 0 0;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-right:none}div.header[_ngcontent-%COMP%]{width:100%;overflow:auto}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.note[_ngcontent-%COMP%]{position:relative}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px;text-align:left}.special-TinyMCE[_ngcontent-%COMP%]{padding-top:10px!important}@media print{body[_ngcontent-%COMP%]{font-family:Arial;color:#000}}@-moz-document url-prefix(){}div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{padding:0;font-size:12px}a.linkMini[_ngcontent-%COMP%]{left:130px;position:absolute;top:.5px;text-decoration:none;color:#3b5998}div.print_container[_ngcontent-%COMP%]{margin:0 auto;width:900px;text-align:left;color:#000;position:relative}div.print_container[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important;background-color:#fff}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-right:5px;margin-right:5px;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] div.printer[_ngcontent-%COMP%]{float:left}div.mode[_ngcontent-%COMP%] div.template[_ngcontent-%COMP%]{float:right}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#3b5998;text-decoration:none}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:gray}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:hover{text-decoration:none}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 5px}div.header_left[_ngcontent-%COMP%]{float:left;padding:5px 0 0 5px}div.header_left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:5px 0 0;padding:0;font-size:18px}div.header_right[_ngcontent-%COMP%]{float:right;padding:0 5px 0 0;max-width:425px}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;padding:0;text-align:right}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin:0 5px 0 0;text-transform:uppercase}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:18px;font-weight:400}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{float:right;border-collapse:collapse}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #9e9e9e;padding:4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f6f6f6}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:6px}div.header[_ngcontent-%COMP%] img.float[_ngcontent-%COMP%]{margin:5px 0 0 5px;float:left}div.header[_ngcontent-%COMP%] div.company[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:0 0 8px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%]{float:left}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:0;padding:0}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:11px;text-align:left;font-weight:400}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%]{margin-top:3px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.address[_ngcontent-%COMP%]{float:left;min-width:125px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.number[_ngcontent-%COMP%]{margin-right:5px;min-width:160px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%]{width:max-content;overflow:auto;border:solid 1px #9e9e9e;padding:5px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700;float:left}div.cartItems[_ngcontent-%COMP%]{padding:10px 3px 2px 5px}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.topNote[_ngcontent-%COMP%]{clear:both;text-align:right}div.invoiceNote[_ngcontent-%COMP%]{padding:10px 0 0 7px}div.note[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:12px;margin:0 0 3px;padding:0}div.note[_ngcontent-%COMP%] div.single[_ngcontent-%COMP%]{width:895px!important}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:5px 0 0;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:2px 0 5px;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:440px;border-left:solid 1px #cacaca;padding-left:8px;margin-right:5px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h3.closing[_ngcontent-%COMP%]{margin-top:10px;text-align:right}div.note-info[_ngcontent-%COMP%]{margin:auto;width:23%}table.info[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:5px;margin-left:5px}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px;border:solid 1px #d8d8d8}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6}div.fullContainer[_ngcontent-%COMP%] div.print_container[_ngcontent-%COMP%]{min-height:970px;position:relative}.clearfix[_ngcontent-%COMP%]:before, .clearfix[_ngcontent-%COMP%]:after{content:"";display:table}.clearfix[_ngcontent-%COMP%]:after{clear:both}.clearfix[_ngcontent-%COMP%]{zoom:1}div.reportMargin[_ngcontent-%COMP%]{margin:20px 0 0}@media print{div.mode[_ngcontent-%COMP%], .linkMini[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}thead[_ngcontent-%COMP%]{display:table-header-group}}small.timestamp[_ngcontent-%COMP%], small.creator[_ngcontent-%COMP%], small.printed[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;font-style:italic;padding:2px 0}small.creator[_ngcontent-%COMP%]{padding:2px 0 20px;font-style:normal}span.titleJB[_ngcontent-%COMP%]{font-weight:700;padding:10px 0 7px 8px;display:block}.topHolder[_ngcontent-%COMP%]{margin-top:15px!important}h1.jobOrderHeader[_ngcontent-%COMP%]{text-align:center}.shippingAddress[_ngcontent-%COMP%]{text-align:right;min-width:240px;clear:both}.shippingAddress[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-align:left;font-weight:700}.packingSlip[_ngcontent-%COMP%]{min-width:150px}.customer_info[_ngcontent-%COMP%]{min-width:310px}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #c8d3df;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #bbbbbb!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #c8d3df;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.full-mode[_ngcontent-%COMP%]{min-height:970px;position:relative}.receipt-copy[_ngcontent-%COMP%]{position:absolute;width:100%;margin-left:auto;margin-right:auto;left:0;right:0}.receipt-copy-text[_ngcontent-%COMP%]{border:.5px solid;border-radius:4px}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle}']})}}return t})();var j=(()=>{class t{constructor(){this._httpService=l(k)}getPrintData(o,g){let c={ID:o};return this._httpService.get("",g,{params:c})}static{this.\u0275fac=function(g){return new(g||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var I=t=>{let d=l(j),o=t.queryParamMap.get("ID");return d.getPrintData(o,"/api/journal/print").pipe(E("print-data"),b(g=>g))};var J=[{path:"",children:[{path:"journal",component:S,resolve:{print:I}}]}],ot=J;export{ot as default};
1
+ import{a as E}from"./chunk-BT7Y4ADP.js";import{b as w}from"./chunk-DZCJWJUG.js";import{a as k}from"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{s as v,u as y}from"./chunk-DM2JLWKE.js";import{Eb as p,Oc as P,Pc as M,Rb as _,Sb as f,Ub as s,Vb as u,Wb as e,Xb as n,Yb as O,ca as x,gc as C,ia as l,ib as a,s as b,sc as i,tc as m,uc as r,yb as h}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function z(t,d){if(t&1&&(e(0,"div",3)(1,"div",5)(2,"div",26)(3,"div",27)(4,"div",28)(5,"table",11)(6,"tbody")(7,"tr",13)(8,"td",14),i(9),n()()()()()()()()()),t&2){let o=C();a(9),r(" To: ",o.printData.contactName," ")}}function T(t,d){t&1&&(e(0,"th"),i(1,"Tag"),n())}function A(t,d){if(t&1&&(e(0,"td",14),i(1),n()),t&2){let o=C();a(),m(o.printData.journalTag)}}function N(t,d){if(t&1&&(O(0,"br"),e(1,"small",30),i(2),n()),t&2){let o=C().$implicit;a(2),r(" ",o.charttOfAccountNote," ")}}function R(t,d){if(t&1&&(e(0,"tr")(1,"td",14),i(2),n(),e(3,"td",14),i(4),p(5,N,3,1),n(),e(6,"td",29),i(7),P(8,"number"),n(),e(9,"td",29),i(10),P(11,"number"),n()()),t&2){let o=d.$implicit;a(2),m(o.chartOfAccountCode),a(2),r(" ",o.chartOfAccountName," "),a(),_(o.charttOfAccountNote?5:-1),a(2),r(" ",M(8,5,o.debitAmount)," "),a(3),r(" ",M(11,7,o.creditAmount)," ")}}function B(t,d){if(t&1&&(e(0,"div",9)(1,"div",31)(2,"table",32)(3,"tr")(4,"th",12),i(5,"Journal Note"),n(),e(6,"td",33),i(7),n()()()()()),t&2){let o=C();a(7),r(" ",o.printData.journalNote," ")}}var S=(()=>{class t{constructor(){this.route=l(w)}ngOnInit(){this.route.data.subscribe(({print:o})=>{o&&(this.printData=o)})}static{this.\u0275fac=function(g){return new(g||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-journal-entry-print"]],decls:62,vars:12,consts:[[1,"print_container","print-normal"],[1,"invoice_print_container","printing","d-print-block"],[1,"row","g-0","py-3","d-flex","justify-content-between","align-items-stretch","header","overflow-hidden"],[1,"col","p-0","m-0","header_left","d-flex","flex-column"],[1,"col","p-0","m-0","header_right","ms-auto","d-flex","flex-column"],[1,"row","me-0","invoice_number","h-100"],[1,"w-100","d-flex","justify-content-end"],[1,"h3","fw-bolder"],[1,"h3"],[1,"row"],[1,"col-12","d-flex","justify-content-end"],[1,"table","table-bordered","w-auto","float-none","mb-0"],[1,"bg-light-gray"],[1,"border"],[1,"text-black"],[1,"row","d-print-block","g-0"],[1,"col-md-12","cartItems"],[1,"w-100","table","table-sm","table-bordered","plain",2,"table-layout","fixed"],[2,"width","50px"],[2,"width","150px"],[2,"background","#fdf3c6"],[1,"text-end"],[1,"border-0"],["colspan","2",1,"border-0"],[1,"d-flex","justify-content-end","gap-2","fw-bold","mb-2","fw-bolder","text-black"],[1,"border-0","fw-bolder","text-black","text-end",2,"vertical-align","baseline"],[1,"w-100","d-flex","justify-content-start","h-100"],[1,"row","flex-grow-1","h-100"],[1,"col-12","d-flex","justify-content-start","mt-auto"],[1,"number","text-black"],[1,"text-muted","text-black"],[1,"col-auto"],[1,"table","table-sm","table-bordered","table-secondary","info","w-auto",2,"table-layout","auto"],[1,"w-auto",2,"white-space","nowrap","width","auto"]],template:function(g,c){g&1&&(e(0,"div",0)(1,"div",1)(2,"div",2),p(3,z,10,1,"div",3),e(4,"div",4)(5,"div",5),O(6,"div",6),e(7,"div",6)(8,"strong",7),i(9," Journal\xA0 "),n(),e(10,"span",8),i(11),n()(),e(12,"div",6)(13,"div",9)(14,"div",10)(15,"table",11)(16,"thead",12)(17,"tr")(18,"th"),i(19,"Date"),n(),p(20,T,2,0,"th"),n()(),e(21,"tbody")(22,"tr",13)(23,"td",14),i(24),n(),p(25,A,2,1,"td",14),n()()()()()()()()(),e(26,"div",15)(27,"div",16)(28,"table",17)(29,"colgroup"),O(30,"col",18)(31,"col",19)(32,"col",18)(33,"col",18),n(),e(34,"thead",20)(35,"tr")(36,"th"),i(37,"Code"),n(),e(38,"th"),i(39,"Account"),n(),e(40,"th",21),i(41,"Debit"),n(),e(42,"th",21),i(43,"Credit"),n()()(),e(44,"tbody"),s(45,R,12,9,"tr",null,f),n(),e(47,"tfoot")(48,"tr",22)(49,"td",23)(50,"div",24)(51,"span"),i(52,"Total"),n(),e(53,"span"),i(54,":"),n()()(),e(55,"td",25),i(56),P(57,"number"),n(),e(58,"td",25),i(59),P(60,"number"),n()()()()()(),p(61,B,8,1,"div",9),n()()),g&2&&(a(3),_(c.printData.contactName&&c.printData.contactName.trim()!==""?3:-1),a(8),r("#",c.printData.number,""),a(9),_(c.printData.journalTag&&c.printData.journalTag.trim()!==""?20:-1),a(4),m(c.printData.date),a(),_(c.printData.journalTag&&c.printData.journalTag.trim()!==""?25:-1),a(20),u(c.printData.listJournalItems),a(11),r(" ",M(57,8,c.printData.debitTotal)," "),a(3),r(" ",M(60,10,c.printData.creditTotal)," "),a(2),_(c.printData.journalNote&&c.printData.journalNote.trim()!==""?61:-1))},dependencies:[y,v],styles:['div.print_container[_ngcontent-%COMP%]{margin:0 auto!important;text-align:left;color:#000;position:relative}div.mode[_ngcontent-%COMP%]{color:gray;text-align:right;height:20px;padding-top:2px;font-size:10px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{float:left;display:block;margin:0 5px 0 0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0 5px 0 0;padding:0 5px 0 0;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-right:none}div.header[_ngcontent-%COMP%]{width:100%;overflow:auto}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.note[_ngcontent-%COMP%]{position:relative}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px;text-align:left}.special-TinyMCE[_ngcontent-%COMP%]{padding-top:10px!important}@media print{body[_ngcontent-%COMP%]{font-family:Arial;color:#000}}@-moz-document url-prefix(){}div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{padding:0;font-size:12px}a.linkMini[_ngcontent-%COMP%]{left:130px;position:absolute;top:.5px;text-decoration:none;color:#3b5998}div.print_container[_ngcontent-%COMP%]{margin:0 auto;width:900px;text-align:left;color:#000;position:relative}div.print_container[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important;background-color:#fff}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-right:5px;margin-right:5px;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] div.printer[_ngcontent-%COMP%]{float:left}div.mode[_ngcontent-%COMP%] div.template[_ngcontent-%COMP%]{float:right}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#3b5998;text-decoration:none}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:gray}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:hover{text-decoration:none}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 5px}div.header_left[_ngcontent-%COMP%]{float:left;padding:5px 0 0 5px}div.header_left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:5px 0 0;padding:0;font-size:18px}div.header_right[_ngcontent-%COMP%]{float:right;padding:0 5px 0 0;max-width:425px}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;padding:0;text-align:right}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin:0 5px 0 0;text-transform:uppercase}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:18px;font-weight:400}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{float:right;border-collapse:collapse}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #9e9e9e;padding:4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f6f6f6}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:6px}div.header[_ngcontent-%COMP%] img.float[_ngcontent-%COMP%]{margin:5px 0 0 5px;float:left}div.header[_ngcontent-%COMP%] div.company[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:0 0 8px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%]{float:left}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:0;padding:0}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:11px;text-align:left;font-weight:400}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%]{margin-top:3px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.address[_ngcontent-%COMP%]{float:left;min-width:125px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.number[_ngcontent-%COMP%]{margin-right:5px;min-width:160px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%]{width:max-content;overflow:auto;border:solid 1px #9e9e9e;padding:5px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700;float:left}div.cartItems[_ngcontent-%COMP%]{padding:10px 3px 2px 5px}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.topNote[_ngcontent-%COMP%]{clear:both;text-align:right}div.invoiceNote[_ngcontent-%COMP%]{padding:10px 0 0 7px}div.note[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:12px;margin:0 0 3px;padding:0}div.note[_ngcontent-%COMP%] div.single[_ngcontent-%COMP%]{width:895px!important}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:5px 0 0;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:2px 0 5px;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:440px;border-left:solid 1px #cacaca;padding-left:8px;margin-right:5px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h3.closing[_ngcontent-%COMP%]{margin-top:10px;text-align:right}div.note-info[_ngcontent-%COMP%]{margin:auto;width:23%}table.info[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:5px;margin-left:5px}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px;border:solid 1px #d8d8d8}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6}div.fullContainer[_ngcontent-%COMP%] div.print_container[_ngcontent-%COMP%]{min-height:970px;position:relative}.clearfix[_ngcontent-%COMP%]:before, .clearfix[_ngcontent-%COMP%]:after{content:"";display:table}.clearfix[_ngcontent-%COMP%]:after{clear:both}.clearfix[_ngcontent-%COMP%]{zoom:1}div.reportMargin[_ngcontent-%COMP%]{margin:20px 0 0}@media print{div.mode[_ngcontent-%COMP%], .linkMini[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}thead[_ngcontent-%COMP%]{display:table-header-group}}small.timestamp[_ngcontent-%COMP%], small.creator[_ngcontent-%COMP%], small.printed[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;font-style:italic;padding:2px 0}small.creator[_ngcontent-%COMP%]{padding:2px 0 20px;font-style:normal}span.titleJB[_ngcontent-%COMP%]{font-weight:700;padding:10px 0 7px 8px;display:block}.topHolder[_ngcontent-%COMP%]{margin-top:15px!important}h1.jobOrderHeader[_ngcontent-%COMP%]{text-align:center}.shippingAddress[_ngcontent-%COMP%]{text-align:right;min-width:240px;clear:both}.shippingAddress[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-align:left;font-weight:700}.packingSlip[_ngcontent-%COMP%]{min-width:150px}.customer_info[_ngcontent-%COMP%]{min-width:310px}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #c8d3df;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #bbbbbb!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #c8d3df;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.full-mode[_ngcontent-%COMP%]{min-height:970px;position:relative}.receipt-copy[_ngcontent-%COMP%]{position:absolute;width:100%;margin-left:auto;margin-right:auto;left:0;right:0}.receipt-copy-text[_ngcontent-%COMP%]{border:.5px solid;border-radius:4px}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle}']})}}return t})();var j=(()=>{class t{constructor(){this._httpService=l(k)}getPrintData(o,g){let c={ID:o};return this._httpService.get("",g,{params:c})}static{this.\u0275fac=function(g){return new(g||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var I=t=>{let d=l(j),o=t.queryParamMap.get("ID");return d.getPrintData(o,"/api/journal/print").pipe(E("print-data"),b(g=>g))};var J=[{path:"",children:[{path:"journal",component:S,resolve:{print:I}}]}],ot=J;export{ot as default};
@@ -1 +1 @@
1
- import{a as y,b as J}from"./chunk-VKUW7E75.js";import"./chunk-LBXNL7E4.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as j,b as R}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-ALLR2NXQ.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-TOR7QRRB.js";import{a as I}from"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{p as F,u as E}from"./chunk-DM2JLWKE.js";import{Dc as $,Eb as _,Ec as b,Mb as c,Oc as l,Pb as h,Pc as s,Rb as x,Sc as S,W as M,Wb as o,Xb as n,Y as k,Yb as u,_ as w,ac as v,fc as T,gc as a,h as A,ia as m,ib as r,qa as g,ra as C,s as d,sa as B,ta as O,yb as P}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(e,f){if(e&1){let t=v();o(0,"p-button",6),T("onClick",function(){g(t);let p=a(2);return C(p.onFormatCOA())}),n()}}function U(e,f){if(e&1){let t=v();o(0,"p-button",7),l(1,"async"),l(2,"async"),T("onClick",function(){g(t);let p=a(2);return C(p.onMigrateCoaAccount())}),n()}if(e&2){let t=a(2);c("disabled",s(1,2,t.countInBooks$)!==0)("pTooltip",s(2,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(e,f){if(e&1&&(o(0,"div",3),_(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),n()),e&2){let t=a();r(),x(t.roleService.permissions().migrate.delete?1:-1),r(),x(t.roleService.permissions().migrate.create?2:-1)}}function X(e,f){if(e&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),l(4,"async"),B(),o(5,"svg",10),u(6,"path",11),n(),O(),u(7,"app-migration-cards",12),l(8,"async"),n()()()),e&2){let t=a();h(b(12,K)),r(),h(b(13,K)),r(2),c("migrationCount",s(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),r(4),c("migrationCount",s(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var xt=(()=>{class e{constructor(){this.migrateService=m(y),this.toastr=m(I),this.refresh$=new A(void 0),this.pageTitle="Chart of Account",this.roleService=m(V)}ngOnInit(){let t=this.refresh$.pipe(k(()=>this.migrateService.getCOACount()),w(i=>console.log("API response:",i)),M(1));this.countInPOS$=t.pipe(d(i=>Number(i.pos))),this.countInBooks$=t.pipe(d(i=>Number(i.books)))}onMigrateCoaAccount(){this.migrateService.migrateCoaAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormatCOA(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualCOA().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=P({type:e,selectors:[["app-chart-of-account"]],features:[$([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,p){i&1&&(o(0,"app-main-panel",2),_(1,W,3,2,"ng-template",null,0,S)(3,X,9,14,"ng-template",null,1,S),n()),i&2&&c("pageTitle",p.pageTitle)},dependencies:[z,E,F,J,N,D,R,j,H,G,q,L],encapsulation:2})}}return e})();export{xt as ChartOfAccountComponent};
1
+ import{a as y,b as J}from"./chunk-UNKPZO2B.js";import"./chunk-Y4SHAFGQ.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as j,b as R}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-YI5IYWUO.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-YZ76QE4R.js";import"./chunk-G3BJCT7T.js";import{a as I}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as F,u as E}from"./chunk-DM2JLWKE.js";import{Dc as $,Eb as _,Ec as b,Mb as c,Oc as l,Pb as h,Pc as s,Rb as x,Sc as S,W as M,Wb as o,Xb as n,Y as k,Yb as u,_ as w,ac as v,fc as T,gc as a,h as A,ia as m,ib as r,qa as g,ra as C,s as d,sa as B,ta as O,yb as P}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(e,f){if(e&1){let t=v();o(0,"p-button",6),T("onClick",function(){g(t);let p=a(2);return C(p.onFormatCOA())}),n()}}function U(e,f){if(e&1){let t=v();o(0,"p-button",7),l(1,"async"),l(2,"async"),T("onClick",function(){g(t);let p=a(2);return C(p.onMigrateCoaAccount())}),n()}if(e&2){let t=a(2);c("disabled",s(1,2,t.countInBooks$)!==0)("pTooltip",s(2,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(e,f){if(e&1&&(o(0,"div",3),_(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),n()),e&2){let t=a();r(),x(t.roleService.permissions().migrate.delete?1:-1),r(),x(t.roleService.permissions().migrate.create?2:-1)}}function X(e,f){if(e&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),l(4,"async"),B(),o(5,"svg",10),u(6,"path",11),n(),O(),u(7,"app-migration-cards",12),l(8,"async"),n()()()),e&2){let t=a();h(b(12,K)),r(),h(b(13,K)),r(2),c("migrationCount",s(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),r(4),c("migrationCount",s(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var xt=(()=>{class e{constructor(){this.migrateService=m(y),this.toastr=m(I),this.refresh$=new A(void 0),this.pageTitle="Chart of Account",this.roleService=m(V)}ngOnInit(){let t=this.refresh$.pipe(k(()=>this.migrateService.getCOACount()),w(i=>console.log("API response:",i)),M(1));this.countInPOS$=t.pipe(d(i=>Number(i.pos))),this.countInBooks$=t.pipe(d(i=>Number(i.books)))}onMigrateCoaAccount(){this.migrateService.migrateCoaAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormatCOA(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualCOA().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=P({type:e,selectors:[["app-chart-of-account"]],features:[$([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,p){i&1&&(o(0,"app-main-panel",2),_(1,W,3,2,"ng-template",null,0,S)(3,X,9,14,"ng-template",null,1,S),n()),i&2&&c("pageTitle",p.pageTitle)},dependencies:[z,E,F,J,N,D,R,j,H,G,q,L],encapsulation:2})}}return e})();export{xt as ChartOfAccountComponent};
@@ -1 +1 @@
1
- import{a as y,b as C,e as F,f as M}from"./chunk-TAN6GLIH.js";import{b as T}from"./chunk-GIRWHO6Q.js";import{d as L,e as S}from"./chunk-DZCJWJUG.js";import{a as G}from"./chunk-TOR7QRRB.js";import{u as U}from"./chunk-DM2JLWKE.js";import{Fc as g,Mb as n,Qb as l,Ub as m,Vb as f,Wb as a,Xb as p,ca as c,gc as h,ia as i,ib as s,sc as v,tc as b,yb as d}from"./chunk-6QJHEOXN.js";var $=(()=>{class t{constructor(){this.httpService=i(G)}getUserLoaderList(){return this.httpService.get(void 0,"api/UserLoader/List")}getUsers(e){return this.httpService.post(void 0,"api/User/List",e)}getUserFormMeta(e){return this.httpService.post(void 0,"api/UserLoader/Form",{ID:e})}inviteUser(e){return this.httpService.post(void 0,"api/User/Submit",e)}deleteUser(e){return this.httpService.post(void 0,"api/User/Delete",{ListID:e})}getGroupLoader(){return this.httpService.get(void 0,"api/UserGroupLoader/List")}getGroupList(e){return this.httpService.post(void 0,"api/UserGroup/List",e)}getGroupFormMeta(e){return this.httpService.get(void 0,e?`api/UserGroup/Form/${e}`:"api/UserGroup/Form")}assignGroupRole(e){return this.httpService.post(void 0,"api/UserGroup/AssignRole",e)}deleteGroup(e){return this.httpService.post(void 0,"api/UserGroup/Delete",{ListID:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var k=t=>({"ps-0":t}),x=(t,o)=>o.route;function _(t,o){if(t&1&&(a(0,"p-tab",2)(1,"span"),v(2),p()()),t&2){let e=o.$implicit,r=h();l(g(5,k,r.router.url.includes("forms"))),n("value",e.route)("routerLink",e.route),s(2),b(e.label)}}var B=(()=>{class t{constructor(){this.router=i(L),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}get activeTab(){return this.tabs.find(r=>this.router.url.startsWith(r.route)).route||this.tabs[0].route}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-user-tabs"]],decls:4,vars:1,consts:[[3,"value"],[3,"value","routerLink","class"],[3,"value","routerLink"]],template:function(r,u){r&1&&(a(0,"p-tabs",0)(1,"p-tablist"),m(2,_,3,7,"p-tab",1,x),p()()),r&2&&(n("value",u.activeTab),s(2),f(u.tabs))},dependencies:[M,F,y,C,S,T,U],styles:["[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding:0 1.125rem .6rem 0!important}"],changeDetection:0})}}return t})();export{$ as a,B as b};
1
+ import{a as y,b as C,e as F,f as M}from"./chunk-TAN6GLIH.js";import{b as T}from"./chunk-GIRWHO6Q.js";import{d as L,e as S}from"./chunk-DZCJWJUG.js";import{a as G}from"./chunk-G3BJCT7T.js";import{u as U}from"./chunk-DM2JLWKE.js";import{Fc as g,Mb as n,Qb as l,Ub as m,Vb as f,Wb as a,Xb as p,ca as c,gc as h,ia as i,ib as s,sc as v,tc as b,yb as d}from"./chunk-6QJHEOXN.js";var $=(()=>{class t{constructor(){this.httpService=i(G)}getUserLoaderList(){return this.httpService.get(void 0,"api/UserLoader/List")}getUsers(e){return this.httpService.post(void 0,"api/User/List",e)}getUserFormMeta(e){return this.httpService.post(void 0,"api/UserLoader/Form",{ID:e})}inviteUser(e){return this.httpService.post(void 0,"api/User/Submit",e)}deleteUser(e){return this.httpService.post(void 0,"api/User/Delete",{ListID:e})}getGroupLoader(){return this.httpService.get(void 0,"api/UserGroupLoader/List")}getGroupList(e){return this.httpService.post(void 0,"api/UserGroup/List",e)}getGroupFormMeta(e){return this.httpService.get(void 0,e?`api/UserGroup/Form/${e}`:"api/UserGroup/Form")}assignGroupRole(e){return this.httpService.post(void 0,"api/UserGroup/AssignRole",e)}deleteGroup(e){return this.httpService.post(void 0,"api/UserGroup/Delete",{ListID:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var k=t=>({"ps-0":t}),x=(t,o)=>o.route;function _(t,o){if(t&1&&(a(0,"p-tab",2)(1,"span"),v(2),p()()),t&2){let e=o.$implicit,r=h();l(g(5,k,r.router.url.includes("forms"))),n("value",e.route)("routerLink",e.route),s(2),b(e.label)}}var B=(()=>{class t{constructor(){this.router=i(L),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}get activeTab(){return this.tabs.find(r=>this.router.url.startsWith(r.route)).route||this.tabs[0].route}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-user-tabs"]],decls:4,vars:1,consts:[[3,"value"],[3,"value","routerLink","class"],[3,"value","routerLink"]],template:function(r,u){r&1&&(a(0,"p-tabs",0)(1,"p-tablist"),m(2,_,3,7,"p-tab",1,x),p()()),r&2&&(n("value",u.activeTab),s(2),f(u.tabs))},dependencies:[M,F,y,C,S,T,U],styles:["[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding:0 1.125rem .6rem 0!important}"],changeDetection:0})}}return t})();export{$ as a,B as b};
@@ -0,0 +1 @@
1
+ import{a as be}from"./chunk-QSZKELXB.js";import{b as Ve}from"./chunk-5VKDAA74.js";import{m as xe}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as Q,b as X}from"./chunk-3VQUNDVT.js";import{b as Y,g as Ie,h as Me,i as Z}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as Re,b as Fe}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as Ne}from"./chunk-BT7Y4ADP.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import{b as ke}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as q}from"./chunk-YI5IYWUO.js";import"./chunk-VM56C6ZV.js";import{a as j,b as H}from"./chunk-ISIYG4D5.js";import{b as S,c as L,d as G,e as Ee,f as K,g as W}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{o as Ue,w as O,x as A}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as Ce,f as Se,k as Te,m as we,p as ve,v as ye,y as Pe}from"./chunk-MGIEURA2.js";import{e as B,l as ge}from"./chunk-DZCJWJUG.js";import"./chunk-YZ76QE4R.js";import{a as he}from"./chunk-G3BJCT7T.js";import{a as _e}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{d as $}from"./chunk-KL3TPLRB.js";import{m as ue,r as fe,s as J,u as z}from"./chunk-DM2JLWKE.js";import{Dc as D,Eb as T,Ec as R,Fc as se,Ha as ae,Mb as g,Oc as v,Pb as M,Pc as E,Qc as de,Rb as le,Sc as _,Wb as o,Xb as a,Y as N,Yb as k,_ as ie,ac as U,bd as y,c as F,ca as oe,eb as re,fc as w,gc as d,ia as f,ib as c,qa as x,ra as C,s as ne,sc as r,tc as h,wc as V,xc as pe,yb as I,yc as me,zc as ce}from"./chunk-6QJHEOXN.js";import{a as m,b as s}from"./chunk-YQFG5XE2.js";var P=(()=>{class t{constructor(){this.httpService=f(he)}getGenerateCoa(e){let n={params:new $().set("PageNumber",e.PageNumber).set("PageSize",e.PageSize)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(e={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,e)}getUnbalanceJournal(e){let i=new $,n=(u,b)=>{b!=null&&b!==""&&(i=i.set(u,String(b)))};n("pageNumber",e.PageNumber),n("pageSize",e.PageSize),n("from",e.From),n("to",e.To),n("numberSearch",e.Number);let l=i.keys().length?{params:i}:{};return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal",l)}loadInitialUnbalanceJournal(){return this.httpService.get(void 0,"api/ToolsLoader/UnbalanceJurnal")}updateUnbalanceJournal(e){let i={ListID:e};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=oe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Be={filter:{PageNumber:1,PageSize:20},data:{data:[],count:0}},ee=L(W(Be),G(t=>({first:y(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:y(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().count))})),K(t=>{let p=f(P);return{updateFilter:i=>{S(t,n=>s(m({},n),{filter:m(m({},n.filter),i)}))},getUpdateCOA:Q(F(N(i=>p.getGenerateCoa(i).pipe(X({next:n=>{S(t,l=>s(m({},l),{data:n}))},error:n=>{console.error(n)}})))))}}),Ee({onInit(t){t.getUpdateCOA(t.filter)}}));var Le=()=>({height:"calc(100vh - 70px)"}),Ge=()=>({"min-width":"50rem"});function Ke(t,p){if(t&1){let e=U();o(0,"p-button",8),w("onClick",function(){x(e);let n=d(2);return C(n.updateCoaBalance())}),a()}}function We(t,p){if(t&1&&T(0,Ke,1,0,"p-button",7),t&2){let e=d();le(e.roleService.permissions().tools.edit?0:-1)}}function qe(t,p){t&1&&(o(0,"tr")(1,"th"),r(2,"Code"),a(),o(3,"th"),r(4,"Name"),a(),o(5,"th"),r(6,"Tag"),a(),o(7,"th",10),r(8,"COA Balance"),a(),o(9,"th",10),r(10,"Correct Balance"),a()())}function Qe(t,p){if(t&1&&(o(0,"tr")(1,"td"),r(2),a(),o(3,"td")(4,"a",11),r(5),a()(),o(6,"td"),r(7),a(),o(8,"td",10),r(9),v(10,"number"),a(),o(11,"td",10),r(12),v(13,"number"),a()()),t&2){let e=p.$implicit;c(2),h(e.Code),c(2),g("routerLink","/pages/chart-of-account/account/"+e.ID),c(),h(e.Name),c(2),h(e.OutletName),c(2),h(E(10,6,e.Balance)),c(3),h(E(13,8,e.CorrectBalance))}}function Xe(t,p){if(t&1&&(o(0,"div",12)(1,"p",13),r(2),a()()),t&2){let e=d(2);c(2),V(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function Ye(t,p){t&1&&(o(0,"tr")(1,"td",14)(2,"span"),r(3,"No records found."),a()()())}function Ze(t,p){if(t&1){let e=U();o(0,"p-panel")(1,"p-table",9),w("onPage",function(n){x(e);let l=d();return C(l.onPageChange(n))}),T(2,qe,11,0,"ng-template",null,2,_)(4,Qe,14,10,"ng-template",null,3,_)(6,Xe,3,3,"ng-template",null,4,_)(8,Ye,4,0,"ng-template",null,5,_),a()()}if(t&2){let e=d();M(R(8,Le)),c(),g("paginator",!0)("lazy",!0)("totalRecords",e.store.data().count)("rows",e.store.filter().PageSize)("value",e.store.data().data)("tableStyle",R(9,Ge))}}var Je=(()=>{class t{constructor(){this.store=f(ee),this.coaService=f(P),this.toastrService=f(_e),this.roleService=f(xe)}onPageChange(e){this.store.updateFilter(s(m({},this.store.filter()),{PageNumber:Math.floor(e.first/e.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(Ne("Update COA Balance"),ie(()=>{this.store.updateFilter(this.store.filter())})).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-tools-update-coa"]],features:[D([ee])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Update COA Balance",3,"scrollable"],["label","Update"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","rows","value","tableStyle"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(i,n){i&1&&(o(0,"app-main-panel",6),T(1,We,1,1,"ng-template",null,0,_)(3,Ze,10,10,"ng-template",null,1,_),a()),i&2&&g("scrollable",!0)},dependencies:[q,Z,Y,ke,z,J,A,O,H,j,B],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit} .p-paginator .p-paginator-pages .p-paginator-page{font-size:14px}.custom-font-footer[_ngcontent-%COMP%]{font-size:.875rem}"],changeDetection:0})}}return t})();var $e={data:{count:0,data:[]},filter:{PageNumber:1,PageSize:20,From:"",To:"",Number:null}},te=L(W($e),G(t=>({first:y(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:y(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().count)),selectedItems:y(()=>t.data().data.filter(p=>p.checked)),hasCheckedRows:y(()=>t.data().data.some(p=>p.checked))})),K(t=>{let p=f(P);return{updateFilter(i){S(t,n=>s(m({},n),{filter:m(m({},n.filter),i)}))},onRowSelect(i){S(t,n=>{let l=n.data.data.map(u=>u.id===i.id?s(m({},u),{checked:!0}):u);return s(m({},n),{data:s(m({},n.data),{data:l})})})},onRowUnselect(i){S(t,n=>{let l=n.data.data.map(u=>u.id===i.id?s(m({},u),{checked:!1}):u);return s(m({},n),{data:s(m({},n.data),{data:l})})})},onHeaderCheckboxToggle(i){S(t,n=>{let l=n.data.data.map(u=>s(m({},u),{checked:i}));return s(m({},n),{data:s(m({},n.data),{data:l})})})},loadData:Q(F(N(i=>p.getUnbalanceJournal(i).pipe(ne(n=>s(m({},n),{data:n.data.map(l=>s(m({},l),{checked:!1}))})),X({next:n=>{S(t,l=>s(m({},l),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}));var et=()=>({height:"calc(100vh - 70px)"}),tt=t=>["/pages/journal/journal-entry",t];function nt(t,p){if(t&1){let e=U();o(0,"div",9),k(1,"p-button",10),o(2,"p-button",11),w("onClick",function(){x(e);let n=d(2);return C(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),a()()}}function it(t,p){if(t&1&&T(0,nt,4,0,"div",8),t&2){let e=d();g("ngIf",e.store.hasCheckedRows())}}function ot(t,p){t&1&&(o(0,"tr")(1,"th",13),k(2,"p-tableHeaderCheckbox"),a(),o(3,"th"),r(4,"Date"),a(),o(5,"th"),r(6,"Number"),a(),o(7,"th",14),r(8,"Debit SUM"),a(),o(9,"th",14),r(10,"Credit SUM"),a(),o(11,"th",14),r(12,"Difference"),a(),o(13,"th"),r(14,"Reference"),a(),o(15,"th"),r(16,"Tag"),a()())}function at(t,p){if(t&1&&(o(0,"tr")(1,"td"),k(2,"p-tableCheckbox",15),a(),o(3,"td"),r(4),v(5,"date"),a(),o(6,"td")(7,"a",16),r(8),a()(),o(9,"td",14),r(10),v(11,"number"),a(),o(12,"td",14),r(13),v(14,"number"),a(),o(15,"td",14),r(16),v(17,"number"),a(),o(18,"td")(19,"a",17),r(20),a()(),o(21,"td"),r(22),a()()),t&2){let e=p.$implicit,i=d(2);c(2),g("value",e),c(2),h(de(5,10,e.date,"dd MMM yyyy")),c(3),g("routerLink",se(19,tt,e.id)),c(),h(e.number),c(2),h(E(11,13,e.debitSum)),c(3),h(E(14,15,e.creditSum)),c(3),h(E(17,17,e.differences)),c(3),g("href",i.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+e.id,re),c(),h(e.referenceText),c(2),h(e.outletName)}}function rt(t,p){if(t&1&&r(0),t&2){let e=d(2);V(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function lt(t,p){t&1&&(o(0,"tr")(1,"td",18)(2,"span"),r(3,"No records found."),a()()())}function pt(t,p){if(t&1){let e=U();o(0,"p-panel")(1,"p-table",12),w("onPage",function(n){x(e);let l=d();return C(l.onPageChange(n))})("onRowSelect",function(n){x(e);let l=d();return C(l.onRowSelect(n))})("onRowUnselect",function(n){x(e);let l=d();return C(l.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){x(e);let l=d();return C(l.onHeaderCheckboxToggle(n))}),T(2,ot,17,0,"ng-template",null,3,_)(4,at,23,21,"ng-template",null,4,_)(6,rt,1,3,"ng-template",null,5,_)(8,lt,4,0,"ng-template",null,6,_),a()()}if(t&2){let e=d();M(R(7,et)),c(),g("value",e.store.data().data)("lazy",!0)("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().count)}}function mt(t,p){if(t&1&&(o(0,"form",19)(1,"div",20)(2,"label",21),r(3,"From - To"),a(),o(4,"div",22),k(5,"p-datepicker",23)(6,"p-datepicker",24),a()()()),t&2){let e=d();g("formGroup",e.form),c(5),g("iconDisplay","input")("showIcon",!0),c(),g("iconDisplay","input")("showIcon",!0)}}var ze=(()=>{class t{constructor(){this.store=f(te),this.toolsService=f(P),this.authService=f(be),this.fb=f(ye),this.isFilterVisible=ae(!1)}ngOnInit(){this.initForm(),this.toolsService.loadInitialUnbalanceJournal().subscribe({next:e=>{let i=e?.filter;i&&(this.store.updateFilter({PageNumber:i.pageNumber??this.store.filter().PageNumber,PageSize:i.pageSize??this.store.filter().PageSize,From:i.from??this.store.filter().From,To:i.to??this.store.filter().To,Number:i.numberSearch??this.store.filter().Number}),this.form&&this.form.patchValue({PageNumber:i.pageNumber??this.form.value.PageNumber,PageSize:i.pageSize??this.form.value.PageSize,from:i.from??this.form.value.from,to:i.to??this.form.value.to,number:i.numberSearch??this.form.value.number}))}})}initForm(){this.form=this.fb.group({PageNumber:this.fb.control(1),PageSize:this.fb.control(20),from:this.fb.control(null),to:this.fb.control(null),number:this.fb.control(null)}),this.form&&this.isFilterVisible.set(!0)}onPageChange(e){console.log("Page changed:",e);let i=e.first/e.rows;this.store.updateFilter({PageNumber:i+1})}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(i=>{this.store.onRowUnselect(i)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}regenerateUnbalanceJournal(){let i=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(i).subscribe()}onFilterOKEvent(){let{PageNumber:e,PageSize:i,from:n,to:l,number:u}=this.form.value;this.store.updateFilter({PageNumber:e??this.store.filter().PageNumber,PageSize:i??this.store.filter().PageSize,From:n??this.store.filter().From,To:l??this.store.filter().To,Number:u??this.store.filter().Number}),this.store.loadData(this.store.filter()),this.isFilterVisible.update(b=>!b)}onSearch(e){this.store.updateFilter({Number:e}),this.store.loadData(this.store.filter())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-unbalance-journal"]],features:[D([te])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal",3,"filterConfirmed","isDialogFilterVisibleChange","search","scrollable","isFilterable","isDialogFilterVisible","isSearchableInput"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],[2,"width","1rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"],[1,"d-flex","flex-column",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"]],template:function(i,n){if(i&1){let l=U();o(0,"app-main-panel",7),w("filterConfirmed",function(){return x(l),C(n.onFilterOKEvent())}),ce("isDialogFilterVisibleChange",function(b){return x(l),me(n.isFilterVisible,b)||(n.isFilterVisible=b),C(b)}),w("search",function(b){return x(l),C(n.onSearch(b))}),T(1,it,1,1,"ng-template",null,0,_)(3,pt,10,8,"ng-template",null,1,_)(5,mt,7,5,"ng-template",null,2,_),a()}i&2&&(g("scrollable",!0)("isFilterable",!0),pe("isDialogFilterVisible",n.isFilterVisible),g("isSearchableInput",!0))},dependencies:[q,Z,Y,Ie,Me,Ve,Ue,z,ue,J,fe,Pe,Te,Ce,Se,we,ve,A,O,H,j,ge,B,Fe,Re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var bn=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:Je},{path:"unbalance-journal",component:ze}];export{bn as TOOLS_ROUTES};
@@ -0,0 +1,8 @@
1
+ import{a as Oe,b as je,c as Je,d as ze}from"./chunk-SLD7RSX6.js";import{a as Ue,b as He}from"./chunk-GIRWHO6Q.js";import{a as Ge}from"./chunk-SVGPDGYN.js";import{a as v}from"./chunk-52PEVPZN.js";import{b as Ne}from"./chunk-Y4SHAFGQ.js";import"./chunk-ZC7ZENN7.js";import{m as J}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{b as Pe,g as Ve,h as Be,i as Q}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as Ie,b as Me}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as Re}from"./chunk-BT7Y4ADP.js";import{a as De,b as Ee}from"./chunk-5U7KZJ3H.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import{b as ke}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as S}from"./chunk-YI5IYWUO.js";import"./chunk-VM56C6ZV.js";import{a as I,b as M}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{n as q,o as E,w as k,x as K}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{Ia as D,b as T,c as ce,e as A,f as z,j as we,m as U,n as Te,o as Ae,p as H,v as W,x as $,y as L}from"./chunk-MGIEURA2.js";import{b as ve}from"./chunk-DZCJWJUG.js";import"./chunk-YZ76QE4R.js";import{a as ye}from"./chunk-G3BJCT7T.js";import{a as Fe}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as ge,l as xe,m as be,s as Se,u as w}from"./chunk-DM2JLWKE.js";import{Dc as j,Eb as d,Ec as oe,Fc as ie,Ha as B,L as pe,Mb as f,Oc as re,Pb as ne,Pc as ae,Rb as y,Sb as fe,Sc as u,Ub as he,Vb as _e,Wb as i,Xb as r,Yb as C,Z as de,_ as V,ac as g,bd as le,ca as ue,fc as x,g as me,gc as l,ia as p,ib as s,ob as te,qa as h,ra as _,s as se,sc as a,tc as Ce,uc as F,xc as N,yb as b,yc as G,zc as O}from"./chunk-6QJHEOXN.js";import{a as R,b as P}from"./chunk-YQFG5XE2.js";var it=()=>({height:"cacl(100vh - 200px)"}),rt=()=>({height:"calc(100vh - 250px)"});function at(t,c){if(t&1){let e=g();i(0,"p-button",6),x("onClick",function(){h(e);let o=l(2);return _(o.submitForm())}),r()}}function lt(t,c){if(t&1&&(i(0,"div"),d(1,at,1,0,"p-button",5),r()),t&2){let e=l();s(),y(e.roleService.permissions().accountingSetup.create?1:-1)}}function ct(t,c){t&1&&(i(0,"div",18)(1,"h3",19),a(2,"Date"),r(),C(3,"p-datePicker",20),r())}function mt(t,c){if(t&1&&(i(0,"tr",10)(1,"td",28),a(2),r(),i(3,"td"),C(4,"input",29),r(),i(5,"td"),C(6,"input",30),r()()),t&2){let e,n=c.$implicit,o=c.index,m=l(4);f("formGroupName",o),s(2),F(" ",(e=m.asFormGroup(n).get("accountName"))==null?null:e.value," ")}}function st(t,c){if(t&1&&(i(0,"div",10)(1,"h4",21),a(2),r(),i(3,"div",22)(4,"table",23)(5,"thead",24)(6,"tr")(7,"th",25),a(8,"Account Name"),r(),i(9,"th",26),a(10,"Debit"),r(),i(11,"th",26),a(12,"Credit"),r()()(),i(13,"tbody"),d(14,mt,7,2,"tr",27),r()()()()),t&2){let e=c.$implicit,n=c.$index,o=l(3);f("formGroupName",n),s(2),F(" ",e.get("name").value," "),s(12),f("ngForOf",o.getItemsArray(o.asFormGroup(e)).controls)}}function pt(t,c){if(t&1&&(i(0,"p-panel",8),d(1,ct,4,0,"ng-template",null,2,u),C(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",9),he(6,st,15,3,"div",10,fe),r()(),i(8,"div",11)(9,"table",12)(10,"tr")(11,"td",13)(12,"p",14),a(13," Total: "),r()(),i(14,"td",15)(15,"p",16),a(16),re(17,"number"),r()(),i(18,"td",17)(19,"p",16),a(20),re(21,"number"),r()()()()()()),t&2){let e=l(2);ne(oe(11,it)),f("formGroup",e.formGroups),s(4),ne(oe(12,rt)),s(2),_e(e.formsArray.controls),s(10),F(" ",ae(17,7,e.subtotalDebit)," "),s(4),F(" ",ae(21,9,e.subtotalCredit)," ")}}function dt(t,c){if(t&1&&d(0,pt,22,13,"p-panel",7),t&2){let e=l();f("ngIf",e.formGroups)}}var Le=(()=>{class t{constructor(){this.destroy$=new me,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=p(W),this.accSetupService=p(v),this.dayjsService=p(Ne),this.date=new Date,this.routes=p(ve),this.roleService=p(J)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(pe(300),de(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let n=e.map(o=>this.createItemGroup(o));return this.fb.array(n)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(se(e=>e.data),Re("response"),V(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(o=>o.items&&o.items.length>0).forEach(o=>{this.formsArray.push(this.createFormGroup(o))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(n=>{let o=this.getItemsArray(n),m=o.controls.reduce((Y,Z)=>{let ee=Z.get("debitAmount").value||0;return Y+ee},0),tt=o.controls.reduce((Y,Z)=>{let ee=Z.get("creditAmount").value||0;return Y+ee},0);this.subtotalDebit+=m,this.subtotalCredit+=tt})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((n,[o,m])=>(o==="date"?n[o]=m instanceof Date?this.dayjsService.format(m):m:o==="forms"?n.form=m:n[o]=m,n),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-acc-opening-balance-form"]],features:[j([D])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit"],["label","Submit",3,"onClick"],[3,"formGroup","style",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[2,"position","fixed","bottom","0","left","241px",`/* offset from the left edge (assuming 250px sidebar) */
2
+ width`,`calc(
3
+ 100% - 243px
4
+ )`,`/* adjust width to fit the remaining space */
5
+ z-index`,"91","background-color","white",`/* added background */
6
+ /* box-shadow`,"0 -2px 5px rgba(0, 0, 0, 0.1)",`*/ /* added subtle shadow */
7
+ padding`,"8px 0",`/* added padding for height */
8
+ border-top`,"1px solid #e0e0e0"],[1,"w-100","px-4"],[1,"ps-5"],[1,"fw-semibold","fs-4","m-0","text-end",2,"margin-right","10px !important"],[1,"",2,"width","200px"],[1,"fw-semibold","fs-4","m-0","text-start"],[1,"pe-5",2,"width","200px"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],[1,"table"],[1,"table-secondary"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],[3,"formGroupName",4,"ngFor","ngForOf"],[1,"fs-3","text-dark"],["appMaskNumber","","formControlName","debitAmount",1,"fs-3","form-control","text-dark"],["appMaskNumber","","formControlName","creditAmount",1,"fs-3","form-control","text-dark"]],template:function(n,o){n&1&&(i(0,"app-main-panel",3),d(1,lt,2,1,"ng-template",null,0,u)(3,dt,1,1,"ng-template",null,1,u),r(),C(5,"p-toast",4)),n&2&&f("scrollable",!0)},dependencies:[S,ke,w,xe,be,Se,Me,Ie,Q,Ee,De,$,T,A,z,E,Je,K,k,M,I,Ge,L,U,H,Te,Ae,He,Ue],styles:["[_nghost-%COMP%]{display:block} .table thead tr th{border:none}"],changeDetection:0})}}return t})();var qe=t=>({"ng-invalid ng-dirty":t});function ft(t,c){if(t&1){let e=g();i(0,"p-button",4),x("onClick",function(){h(e);let o=l();return _(o.verifyCredentials())}),a(1,"Verify"),r(),i(2,"p-button",4),x("onClick",function(){h(e);let o=l();return _(o.saveCredentials())}),a(3,"Update"),r()}}function ht(t,c){t&1&&(i(0,"div",12)(1,"h3",13),a(2,"Account"),r(),i(3,"small",14),a(4,"Configure Client ID and Client Secret"),r()())}function _t(t,c){if(t&1&&(i(0,"div",5)(1,"p-panel"),d(2,ht,5,0,"ng-template",null,2,u),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),a(8,"Client ID"),r(),C(9,"input",10),r()(),i(10,"div",7)(11,"div",8)(12,"label",9),a(13,"Client Secret"),r(),C(14,"input",11),r()()()()()),t&2){let e=l();s(4),f("formGroup",e.credentialForm),s(5),f("ngClass",ie(3,qe,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),s(5),f("ngClass",ie(5,qe,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var Ke=(()=>{class t{constructor(e,n){this.fb=e,this.messageService=n,this.setupService=p(v)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(V(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[ce.required]],clientSecret:["",[ce.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}verifyCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Verifying credentials:",e),this.setupService.verifyAPICredential(e).subscribe({next:n=>{console.log("Verify result:",n),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:n=>{console.error("Verify failed:",n),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(n){return new(n||t)(te(W),te(D))}}static{this.\u0275cmp=b({type:t,selectors:[["app-api-credential"]],features:[j([D])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(n,o){n&1&&(i(0,"app-main-panel",3),d(1,ft,4,0,"ng-template",null,0,u)(3,_t,15,7,"ng-template",null,1,u),r())},dependencies:[w,ge,L,T,A,z,U,H,E,q,M,I,S,K,k,ze],encapsulation:2})}}return t})();function Ct(t,c){if(t&1){let e=g();i(0,"button",5),x("click",function(){h(e);let o=l(2);return _(o.onFormatJournal())}),a(1," Format "),r()}}function gt(t,c){if(t&1&&d(0,Ct,2,0,"button",4),t&2){let e=l();y(e.roleService.permissions().accountingSetup.delete?0:-1)}}function xt(t,c){t&1&&(i(0,"div",13)(1,"div",14)(2,"h4",15),a(3,"Journal Configuration"),r(),i(4,"small",16),a(5," Enter your account information to format journal entries "),r()()())}function bt(t,c){if(t&1){let e=g();i(0,"div",6)(1,"p-panel"),d(2,xt,6,0,"ng-template",null,2,u),i(4,"div",7)(5,"div",8)(6,"p-floatlabel",9)(7,"input",10),O("ngModelChange",function(o){h(e);let m=l();return G(m.subdomain,o)||(m.subdomain=o),_(o)}),r(),i(8,"label",11),a(9,"Subdomain"),r()(),i(10,"small",12),a(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),r()()()()()}if(t&2){let e=l();s(7),N("ngModel",e.subdomain)}}var Qe=(()=>{class t{constructor(){this.setupService=p(v),this.subdomain=B(""),this.toastrService=p(Fe),this.roleService=p(J)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded"],[1,"btn","btn-success","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"row","ps-2"],[1,"col-12","d-flex","flex-column"],[1,"mb-1","fw-bold"],[1,"fst-italic","text-muted"]],template:function(n,o){n&1&&(i(0,"app-main-panel",3),d(1,gt,1,1,"ng-template",null,0,u)(3,bt,12,1,"ng-template",null,1,u),r())},dependencies:[w,$,T,A,we,E,q,S,M,I,je,Oe],encapsulation:2})}}return t})();var Xe=()=>p(v).fetchOpeningBalanceFormConfiguration();var Ye=(()=>{class t{constructor(){this._httpService=p(ye)}flushCache(e){e.forEach(n=>{this.flushCacheByEndPoint(n.endPoint)})}flushCacheByEndPoint(e){this._httpService.delete("","/api/FlushCache"+e).subscribe(()=>{console.log(`Cache flushed for endpoint: ${e}`)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ze=[{endPoint:"/AccessToken",label:"Access Token",description:"Remove token pos in Books",checked:!1},{endPoint:"/Outlet",label:"Outlets",description:"Remove cached for update outlets",checked:!1},{endPoint:"/Payment",label:"Payment Method",description:"Remove cached for payment method",checked:!1},{endPoint:"/Tax",label:"Tax Type",description:"Remove cached for tax type",checked:!1},{endPoint:"/WriteOff",label:"Write Off",description:"Remove cached for write off",checked:!1}];function St(t,c){if(t&1){let e=g();i(0,"div",5)(1,"p-button",6),x("onClick",function(){h(e);let o=l(2);return _(o.onFlushCached())}),r()()}}function vt(t,c){if(t&1&&d(0,St,2,0,"div",5),t&2){let e=l();y(e.isAnyCacheSelected?0:-1)}}function Ft(t,c){t&1&&(i(0,"tr")(1,"th",8),C(2,"p-tableHeaderCheckbox"),r(),i(3,"th"),a(4,"Cache"),r(),i(5,"th"),a(6,"Description"),r()())}function yt(t,c){if(t&1&&(i(0,"tr")(1,"td"),C(2,"p-tableCheckbox",9),r(),i(3,"td"),a(4),r(),i(5,"td"),a(6),r()()),t&2){let e=c.$implicit;s(2),f("value",e),s(2),F(" ",e.label," "),s(2),Ce(e.description)}}function wt(t,c){if(t&1){let e=g();i(0,"p-table",7),x("onRowSelect",function(o){h(e);let m=l();return _(m.onRowSelect(o))})("onRowUnselect",function(o){h(e);let m=l();return _(m.onRowUnselect(o))})("onHeaderCheckboxToggle",function(o){h(e);let m=l();return _(m.onHeaderCheckboxToggle(o))}),O("selectionChange",function(o){h(e);let m=l();return G(m.selectedRows,o)||(m.selectedRows=o),_(o)}),d(1,Ft,7,0,"ng-template",null,2,u)(3,yt,7,3,"ng-template",null,3,u),r()}if(t&2){let e=l();f("value",e.cachedData)("totalRecords",e.cachedData.length)("lazy",!0)("rows",e.params().pageSize)("scrollable",!0),N("selection",e.selectedRows)}}var et=(()=>{class t{constructor(){this.flushCachedService=p(Ye),this.cachedData=Ze,this.selectedRows=[],this.params=B({pageNumber:1,pageSize:100}),this.first=le(()=>(this.params().pageNumber-1)*this.params().pageSize+1),this.end=le(()=>Math.min(this.params().pageNumber*this.params().pageSize,this.cachedData.length||100))}onRowSelect(e){if(Array.isArray(e.data))return;let n=e.data;n?.endPoint&&this.updateCheckedRows([n.endPoint],!0)}updateCheckedRows(e,n){this.cachedData=this.cachedData.map(o=>e.includes(o.endPoint)?P(R({},o),{checked:n}):o),this.selectedRows=this.cachedData.filter(o=>o.checked)}onRowUnselect(e){if(Array.isArray(e.data))return;let n=e.data;n?.endPoint&&this.updateCheckedRows([n.endPoint],!1)}onHeaderCheckboxToggle(e){this.cachedData=this.cachedData.map(n=>P(R({},n),{checked:e.checked})),this.selectedRows=e.checked?[...this.cachedData]:[]}onFlushCached(){let e=this.cachedData.filter(n=>n.checked);this.flushCachedService.flushCache(e),this.cachedData=this.cachedData.map(n=>P(R({},n),{checked:!1})),this.selectedRows=[]}get isAnyCacheSelected(){return this.cachedData.some(e=>e.checked)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-flush-cached"]],decls:5,vars:2,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Flush Cache",3,"overflowScroll","showCancelButton"],[1,"d-flex","gap-2"],["label","Flush Cache",3,"onClick"],["dataKey","endPoint","selectionMode","multiple","styleClass","d-flex flex-column justify-content-between h-100",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","selectionChange","value","totalRecords","lazy","rows","scrollable","selection"],[2,"width","1rem"],[3,"value"]],template:function(n,o){n&1&&(i(0,"app-main-panel",4),d(1,vt,1,1,"ng-template",null,0,u)(3,wt,5,6,"ng-template",null,1,u),r()),n&2&&f("overflowScroll",!0)("showCancelButton",!1)},dependencies:[S,Q,Pe,Ve,Be,k],encapsulation:2})}}return t})();var Qn=[{path:"",redirectTo:"timezone",pathMatch:"full"},{path:"",children:[{path:"timezone",loadComponent:()=>import("./chunk-HR6W3DC4.js").then(t=>t.TimezoneComponent)},{path:"journal-tag",loadComponent:()=>import("./chunk-VANY33VH.js").then(t=>t.JournalTagComponent)},{path:"journal-tag/info",loadComponent:()=>import("./chunk-X7I6QMMX.js").then(t=>t.JournalTagInfoComponent)},{path:"journal-tag/form",loadComponent:()=>import("./chunk-MGEVP222.js").then(t=>t.JournalTagFormComponent)},{path:"journal-number",loadComponent:()=>import("./chunk-ZM7C3PCP.js").then(t=>t.JournalNumberComponent)},{path:"advanced",loadComponent:()=>import("./chunk-N3AQU3B6.js").then(t=>t.AdvancedComponent)},{path:"opening-balance-form",component:Le,resolve:{data:Xe}},{path:"api-crendetial",component:Ke},{path:"flush-cached",component:et},{path:"format-journal",component:Qe},{path:"closing-entries",loadComponent:()=>import("./chunk-IWB6L5HR.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-E2PHUSPH.js").then(t=>t.ClosingFormComponent)}]}];export{Qn as ACCOUNTING_SETUP_ROUTES};
@@ -0,0 +1 @@
1
+ import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-5SDFH3ZF.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-RNMAINY3.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-VZHZFGQ2.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-EZXX3QNG.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-VYR5D7SO.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-2UDDXT3B.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-I3DG6HPA.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-2Z3VSENH.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-LZCLNB3T.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};
@@ -1 +1 @@
1
- import{b as E}from"./chunk-LBXNL7E4.js";import{b as w}from"./chunk-5U7KZJ3H.js";import{a as T,b as j}from"./chunk-FHJOSHI3.js";import{b as P}from"./chunk-ISIYG4D5.js";import{x as b}from"./chunk-O44DI62I.js";import{a as y}from"./chunk-TOR7QRRB.js";import{d as _}from"./chunk-KL3TPLRB.js";import{s as O,u as A}from"./chunk-DM2JLWKE.js";import{Ea as c,Eb as C,Oc as M,Qc as S,Sc as a,Wb as i,Xb as r,Yb as x,ca as s,gc as m,ia as g,ib as u,sc as p,tc as v,uc as l,yb as h}from"./chunk-6QJHEOXN.js";var N=(()=>{class t{constructor(){this.httpService=g(y),this.dayjs=g(E)}migrateTaxAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/tax",{})}getManualJournalCount(){return this.httpService.get(void 0,"api/migrate/accounting/journalheader-count",{})}getCOACount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountcount",{})}getCOAConfigurationCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountConfigcount",{})}getCOACategoryCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountCategorycount",{})}getOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/outletaccount-count",{})}getPaymentMethodAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/paymentmethodaccountcount",{})}getWriteOffOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/writeoffoutletaccountCount",{})}getTaxAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/taxcount",{})}getExpenseAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/expenseaccountcount",{})}migrateCoaAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccount",{})}migrateCoaConfig(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountConfig",{})}migrateCoaCategory(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountCategory",{})}migrateOutletAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/outletaccount",{})}migrateManualJournal(e){let n={From:e.From?this.dayjs.from(e.From).format():null,To:e.To?this.dayjs.from(e.To).format():null,PageNumber:e.PageNumber||1,PageSize:e.PageSize||50},o=new _;return Object.keys(n).forEach(f=>{o=o.append(f,n[f])}),this.httpService.get(void 0,"api/migrate/accounting/journalheader",{params:o})}formatManualCOA(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa",{})}formatExpenseAccount(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-expenseaccount",{})}formatWriteOff(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-writeoff",{})}formatManualCOAConfig(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa-config",{})}formatOutletAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-outlet-account",{})}formatPaymentAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-paymentmethod",{})}formatTaxAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-tax",{})}formatManualJournal(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-journal",{})}formatManualCOACategory(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-coag",{})}migratePaymentMethod(){return this.httpService.post(void 0,"api/Migrate/accounting/paymentmethodaccount",{})}migrateWriteOffOutlet(){return this.httpService.post(void 0,"api/Migrate/accounting/writeoffoutletaccount",{})}migrateExpenseAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/expenseaccount",{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac})}}return t})();function F(t,d){t&1&&(i(0,"div",5)(1,"div",6),x(2,"i",7),r()())}function I(t,d){if(t&1&&(i(0,"div",8),p(1),M(2,"number"),r()),t&2){let e=m();u(),l(" ",S(2,1,e.migrationCount(),"1.0-0")," ")}}function D(t,d){if(t&1&&(i(0,"div",9),p(1),r()),t&2){let e=m();u(),l(" ",e.migrationTitle()," ")}}function R(t,d){if(t&1&&(i(0,"div",10)(1,"div",11),p(2),r()()),t&2){let e=m();u(2),v(e.migrationPlace())}}var q=(()=>{class t{constructor(){this.migrationTitle=c(),this.migrationCount=c(),this.migrationPlace=c()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-migration-cards"]],inputs:{migrationTitle:[1,"migrationTitle"],migrationCount:[1,"migrationCount"],migrationPlace:[1,"migrationPlace"]},decls:9,vars:0,consts:[["header",""],["title",""],["subtitle",""],["footer",""],[1,"text-center","flex","flex-column","justify-content-center","align-items-center","card-shadow","responsive-card"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","mt-4",2,"width","60px","height","60px","background-color","#e0f0ff","border-radius","50%"],[1,"icon","fa-file-lines","fa-light",2,"font-size","25px","color","#007bff"],[1,"bigscale","fw-bold"],[1,"text-sm","text-secondary"],[1,"flex","mt-5"],[1,"p-6","fs-7","fw-bold"]],template:function(n,o){n&1&&(i(0,"p-card",4),C(1,F,3,0,"ng-template",null,0,a)(3,I,3,4,"ng-template",null,1,a)(5,D,2,1,"ng-template",null,2,a)(7,R,3,1,"ng-template",null,3,a),r())},dependencies:[A,O,j,T,b,w,P],styles:["[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}[_nghost-%COMP%] .p-card{box-shadow:0 .25rem 1.25rem #0000001a!important;width:21.875rem!important;height:25rem!important}@media (max-width: 85rem){[_nghost-%COMP%] .p-card{width:18.875rem!important;height:21rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:2rem!important;margin-top:1rem!important}}@media (min-width: 85.001rem) and (max-width: 97.999rem){[_nghost-%COMP%] .p-card{width:21rem!important;height:25rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}}@media (min-width: 98rem){[_nghost-%COMP%] .p-card{width:25rem!important;height:28rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:5rem!important;margin-top:2rem!important}}"]})}}return t})();export{N as a,q as b};
1
+ import{b as E}from"./chunk-Y4SHAFGQ.js";import{b as w}from"./chunk-5U7KZJ3H.js";import{a as T,b as j}from"./chunk-FHJOSHI3.js";import{b as P}from"./chunk-ISIYG4D5.js";import{x as b}from"./chunk-O44DI62I.js";import{a as y}from"./chunk-G3BJCT7T.js";import{d as _}from"./chunk-KL3TPLRB.js";import{s as O,u as A}from"./chunk-DM2JLWKE.js";import{Ea as c,Eb as C,Oc as M,Qc as S,Sc as a,Wb as i,Xb as r,Yb as x,ca as s,gc as m,ia as g,ib as u,sc as p,tc as v,uc as l,yb as h}from"./chunk-6QJHEOXN.js";var N=(()=>{class t{constructor(){this.httpService=g(y),this.dayjs=g(E)}migrateTaxAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/tax",{})}getManualJournalCount(){return this.httpService.get(void 0,"api/migrate/accounting/journalheader-count",{})}getCOACount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountcount",{})}getCOAConfigurationCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountConfigcount",{})}getCOACategoryCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountCategorycount",{})}getOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/outletaccount-count",{})}getPaymentMethodAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/paymentmethodaccountcount",{})}getWriteOffOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/writeoffoutletaccountCount",{})}getTaxAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/taxcount",{})}getExpenseAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/expenseaccountcount",{})}migrateCoaAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccount",{})}migrateCoaConfig(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountConfig",{})}migrateCoaCategory(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountCategory",{})}migrateOutletAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/outletaccount",{})}migrateManualJournal(e){let n={From:e.From?this.dayjs.from(e.From).format():null,To:e.To?this.dayjs.from(e.To).format():null,PageNumber:e.PageNumber||1,PageSize:e.PageSize||50},o=new _;return Object.keys(n).forEach(f=>{o=o.append(f,n[f])}),this.httpService.get(void 0,"api/migrate/accounting/journalheader",{params:o})}formatManualCOA(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa",{})}formatExpenseAccount(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-expenseaccount",{})}formatWriteOff(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-writeoff",{})}formatManualCOAConfig(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa-config",{})}formatOutletAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-outlet-account",{})}formatPaymentAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-paymentmethod",{})}formatTaxAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-tax",{})}formatManualJournal(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-journal",{})}formatManualCOACategory(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-coag",{})}migratePaymentMethod(){return this.httpService.post(void 0,"api/Migrate/accounting/paymentmethodaccount",{})}migrateWriteOffOutlet(){return this.httpService.post(void 0,"api/Migrate/accounting/writeoffoutletaccount",{})}migrateExpenseAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/expenseaccount",{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac})}}return t})();function F(t,d){t&1&&(i(0,"div",5)(1,"div",6),x(2,"i",7),r()())}function I(t,d){if(t&1&&(i(0,"div",8),p(1),M(2,"number"),r()),t&2){let e=m();u(),l(" ",S(2,1,e.migrationCount(),"1.0-0")," ")}}function D(t,d){if(t&1&&(i(0,"div",9),p(1),r()),t&2){let e=m();u(),l(" ",e.migrationTitle()," ")}}function R(t,d){if(t&1&&(i(0,"div",10)(1,"div",11),p(2),r()()),t&2){let e=m();u(2),v(e.migrationPlace())}}var q=(()=>{class t{constructor(){this.migrationTitle=c(),this.migrationCount=c(),this.migrationPlace=c()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-migration-cards"]],inputs:{migrationTitle:[1,"migrationTitle"],migrationCount:[1,"migrationCount"],migrationPlace:[1,"migrationPlace"]},decls:9,vars:0,consts:[["header",""],["title",""],["subtitle",""],["footer",""],[1,"text-center","flex","flex-column","justify-content-center","align-items-center","card-shadow","responsive-card"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","mt-4",2,"width","60px","height","60px","background-color","#e0f0ff","border-radius","50%"],[1,"icon","fa-file-lines","fa-light",2,"font-size","25px","color","#007bff"],[1,"bigscale","fw-bold"],[1,"text-sm","text-secondary"],[1,"flex","mt-5"],[1,"p-6","fs-7","fw-bold"]],template:function(n,o){n&1&&(i(0,"p-card",4),C(1,F,3,0,"ng-template",null,0,a)(3,I,3,4,"ng-template",null,1,a)(5,D,2,1,"ng-template",null,2,a)(7,R,3,1,"ng-template",null,3,a),r())},dependencies:[A,O,j,T,b,w,P],styles:["[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}[_nghost-%COMP%] .p-card{box-shadow:0 .25rem 1.25rem #0000001a!important;width:21.875rem!important;height:25rem!important}@media (max-width: 85rem){[_nghost-%COMP%] .p-card{width:18.875rem!important;height:21rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:2rem!important;margin-top:1rem!important}}@media (min-width: 85.001rem) and (max-width: 97.999rem){[_nghost-%COMP%] .p-card{width:21rem!important;height:25rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}}@media (min-width: 98rem){[_nghost-%COMP%] .p-card{width:25rem!important;height:28rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:5rem!important;margin-top:2rem!important}}"]})}}return t})();export{N as a,q as b};
@@ -1 +1 @@
1
- import{a as X,b as Z,c as Q,d as Y,e as C,f as T,g as ee,h as te,i as ae,j as f,k as se,l as ne}from"./chunk-Q4XWXOWE.js";import{Aa as m,Bb as W,Ha as n,J,N,W as A,Wc as $,Y as O,ca as c,da as G,fa as y,h as K,ha as o,m as u,o as d,ob as I,s as k,ua as j,w as E,x as P,y as B,zb as z}from"./chunk-6QJHEOXN.js";import{a as S}from"./chunk-YQFG5XE2.js";var L=class{},ie=(()=>{class a extends L{getTranslation(e){return u({})}static \u0275fac=(()=>{let e;return function(s){return(e||(e=j(a)))(s||a)}})();static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})(),D=class{},le=(()=>{class a{handle(e){return e.key}static \u0275fac=function(t){return new(t||a)};static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})();function H(a,r){if(a===r)return!0;if(a===null||r===null)return!1;if(a!==a&&r!==r)return!0;let e=typeof a,t=typeof r,s,i,l;if(e==t&&e=="object")if(Array.isArray(a)){if(!Array.isArray(r))return!1;if((s=a.length)==r.length){for(i=0;i<s;i++)if(!H(a[i],r[i]))return!1;return!0}}else{if(Array.isArray(r))return!1;l=Object.create(null);for(i in a){if(!H(a[i],r[i]))return!1;l[i]=!0}for(i in r)if(!(i in l)&&typeof r[i]<"u")return!1;return!0}return!1}function h(a){return typeof a<"u"&&a!==null}function M(a){return a&&typeof a=="object"&&!Array.isArray(a)}function ue(a,r){let e=Object.assign({},a);return M(a)&&M(r)&&Object.keys(r).forEach(t=>{M(r[t])?t in a?e[t]=ue(a[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}var v=class{},re=(()=>{class a extends v{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,t){let s;return typeof e=="string"?s=this.interpolateString(e,t):typeof e=="function"?s=this.interpolateFunction(e,t):s=e,s}getValue(e,t){let s=typeof t=="string"?t.split("."):[t];t="";do t+=s.shift(),h(e)&&h(e[t])&&(typeof e[t]=="object"||!s.length)?(e=e[t],t=""):s.length?t+=".":e=void 0;while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,i)=>{let l=this.getValue(t,i);return h(l)?l:s}):e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=j(a)))(s||a)}})();static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})(),x=class{},oe=(()=>{class a extends x{compile(e,t){return e}compileTranslations(e,t){return e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=j(a)))(s||a)}})();static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})(),R=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new m;onLangChange=new m;onDefaultLangChange=new m},q=new y("USE_STORE"),V=new y("USE_DEFAULT_LANG"),_=new y("DEFAULT_LANGUAGE"),F=new y("USE_EXTEND"),U=(()=>{class a{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new m;_onLangChange=new m;_onDefaultLangChange=new m;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,t,s,i,l,g=!0,p=!1,b=!1,w){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=i,this.missingTranslationHandler=l,this.useDefaultLang=g,this.isolate=p,this.extend=b,w&&this.setDefaultLang(w)}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(N(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return u(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe(N(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),u(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;let t=this.currentLoader.getTranslation(e).pipe(A(1),N(1));return this.loadingTranslations=t.pipe(k(s=>this.compiler.compileTranslations(s,e)),A(1),N(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?S(S({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),(s||this.extend)&&this.translations[e]?this.translations[e]=ue(this.translations[e],t):this.translations[e]=t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{this.langs.indexOf(t)===-1&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let i;if(t instanceof Array){let l={},g=!1;for(let p of t)l[p]=this.getParsedResult(e,p,s),d(l[p])&&(g=!0);if(g){let p=t.map(b=>d(l[b])?l[b]:u(l[b]));return B(p).pipe(k(b=>{let w={};return b.forEach((fe,de)=>{w[t[de]]=fe}),w}))}return l}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof i>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof i>"u"){let l={key:t,translateService:this};typeof s<"u"&&(l.interpolateParams=s),i=this.missingTranslationHandler.handle(l)}return typeof i<"u"?i:t}get(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(J(s=>(s=this.getParsedResult(s,e,t),d(s)?s:u(s))));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return d(s)?s:u(s)}}getStreamOnTranslationChange(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');return E(P(()=>this.get(e,t)),this.onTranslationChange.pipe(O(s=>{let i=this.getParsedResult(s.translations,e,t);return typeof i.subscribe=="function"?i:u(i)})))}stream(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');return E(P(()=>this.get(e,t)),this.onLangChange.pipe(O(s=>{let i=this.getParsedResult(s.translations,e,t);return d(i)?i:u(i)})))}instant(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(d(s)){if(e instanceof Array){let i={};return e.forEach((l,g)=>{i[e[g]]=e[g]}),i}return e}else return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;if(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof e>"u"))return e.indexOf("-")!==-1&&(e=e.split("-")[0]),e.indexOf("_")!==-1&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}static \u0275fac=function(t){return new(t||a)(o(R),o(L),o(x),o(v),o(D),o(V),o(q),o(F),o(_))};static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})();var De=(()=>{class a{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,t){this.translate=e,this._ref=t}updateValue(e,t,s){let i=l=>{this.value=l!==void 0?l:e,this.lastKey=e,this._ref.markForCheck()};if(s){let l=this.translate.getParsedResult(s,e,t);d(l.subscribe)?l.subscribe(i):i(l)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(H(e,this.lastKey)&&H(t,this.lastParams))return this.value;let s;if(h(t[0])&&t.length)if(typeof t[0]=="string"&&t[0].length){let i=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(i)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else typeof t[0]=="object"&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{this.lastKey&&i.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(t){return new(t||a)(I(U,16),I($,16))};static \u0275pipe=W({name:"translate",type:a,pure:!1,standalone:!1});static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})(),je=(()=>{class a{static forRoot(e={}){return{ngModule:a,providers:[e.loader||{provide:L,useClass:ie},e.compiler||{provide:x,useClass:oe},e.parser||{provide:v,useClass:re},e.missingTranslationHandler||{provide:D,useClass:le},R,{provide:q,useValue:e.isolate},{provide:V,useValue:e.useDefaultLang},{provide:F,useValue:e.extend},{provide:_,useValue:e.defaultLanguage},U]}}static forChild(e={}){return{ngModule:a,providers:[e.loader||{provide:L,useClass:ie},e.compiler||{provide:x,useClass:oe},e.parser||{provide:v,useClass:re},e.missingTranslationHandler||{provide:D,useClass:le},{provide:q,useValue:e.isolate},{provide:V,useValue:e.useDefaultLang},{provide:F,useValue:e.extend},{provide:_,useValue:e.defaultLanguage},U]}}static \u0275fac=function(t){return new(t||a)};static \u0275mod=z({type:a});static \u0275inj=G({})}return a})();var ce=[{path:"/pages/dashboard",title:"Dashboard",iconName:"fa-light fa-display-chart-up",class:"",extralink:!1,label:"",labelClass:"",submenu:[],requiredRoles:[X.view],isHidden:n(!1)},{path:"/pages/cash-bank",title:"Cash and Bank",requiredRoles:[Z.view],iconName:"fa-light fa-building-columns",class:"",extralink:!1,label:"",labelClass:"",submenu:[],isHidden:n(!1)},{path:"",title:"COA",iconName:"fa-light fa-calculator",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[Y.view],submenu:[{path:"/pages/chart-of-account/account",title:"Accounts",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/chart-of-account/coa-types",title:"Category",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/journal",title:"Journal",iconName:"fa-light fa-file-lines",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[T.view],submenu:[{path:"/pages/journal/journal-entry",title:"Manual Journal",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[]},{path:"/pages/journal/record-expense",title:"Record Expense",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[T.create]},{path:"/pages/journal/receive-money",title:"Receive Money",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[T.create]}],isHidden:n(!1)},{path:"/pages/report",title:"Reports",iconName:"fa-light fa-chart-column",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[f.finance,f.ledger],submenu:[{path:"/pages/report/general-ledger",title:"General Ledger",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,requiredRoles:[f.ledger,f.finance],submenu:[],isHidden:n(!1)},{path:"/pages/report/multiple-general-ledger",title:"Multi Ledger",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,requiredRoles:[f.ledger,f.finance],submenu:[],isHidden:n(!1)},{path:"/pages/report/profit-loss",title:"Profit & Loss",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,requiredRoles:[f.finance],submenu:[],isHidden:n(!1)},{path:"/pages/report/balance-sheet",title:"Balance Sheet",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,requiredRoles:[f.finance],submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"",title:"Recurring",iconName:"fa-light fa-money-bill-1",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[ae.view],submenu:[{path:"/pages/recurring/recurring-expense",title:"Recurring Expenses",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/recurring/asset-value",title:"Asset Value",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/recurring/post-to-journal",title:"Post Recurring Expenses",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"",title:"Tools",iconName:"fa-light fa-wrench",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[se.view],submenu:[{path:"/pages/tools/generate-coa",title:"Update COA Balance",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/tools/unbalance-journal",title:"Unbalance Journal",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/migrate",title:"Migrate",iconName:"fa-light fa-paste",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[ee.view],submenu:[{path:"/pages/migrate/chart-of-account",title:"Chart of Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/coa-category",title:"COA Category",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/coa-configuration",title:"COA Configuration",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/outlet-account",title:"COA Outlet Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/payment-account",title:"Payment Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/writeoff-outlet",title:"Write Off Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/tax-account",title:"Tax Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/expense-account",title:"Expense Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/manual-journal",title:"Manual Journals",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/ticket",title:"Generate Journal",iconName:"fa-light fa-book",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[],submenu:[{path:"/pages/generate-journal/invoice",title:"Customer Invoice",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.invoice]},{path:"/pages/generate-journal/supplier-bill",title:"Supplier Bill",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]},{path:"/pages/generate-journal/shift",title:"Shift",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]},{path:"/pages/generate-journal/adjustment",title:"Adjustment",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]},{path:"/pages/generate-journal/join-invoice",title:"Join Invoce",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]},{path:"/pages/generate-journal/join-bill",title:"Join Bill",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]}],isHidden:n(!1)},{path:"/pages/pos-setup",title:"POS Setup",iconName:"fa-light fa-gears",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[te.view],submenu:[{path:"/pages/pos-setup/global",title:"Global",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/outlets",title:"Outlet",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/payments",title:"Payments",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/taxs",title:"Tax",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/expense-option",title:"Expense Option",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/writeoff",title:"Write Off",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/ticket",title:"Accounting Setup",iconName:"fa-light fa-gears",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[Q.view],submenu:[{path:"/pages/accounting-setup/timezone",title:"Timezone",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/journal-tag",title:"Tag",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/accounting-integration",title:"Configuration",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/closing-entries",title:"Closing",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/format-journal",title:"Format Journal",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/opening-balance-form",title:"Opening Balance",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/api-crendetial",title:"API Credential",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/flush-cached",title:"Flush Cached",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/users",title:"Users",iconName:"fa-light fa-user",class:"",label:"",labelClass:"",extralink:!1,submenu:[],requiredRoles:[ne.view],isHidden:n(!1)}];var Ae=(()=>{class a{constructor(){this.collapseSidebar=!1,this.fullScreen=!1,this.MENUITEMS=ce,this.items=new K(this.MENUITEMS)}static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275prov=c({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{L as a,De as b,je as c,Ae as d};
1
+ import{a as X,b as Z,c as Q,d as Y,e as C,f as T,g as ee,h as te,i as ae,j as f,k as se,l as ne}from"./chunk-Q4XWXOWE.js";import{Aa as m,Bb as W,Ha as n,J,N,W as P,Wc as $,Y as O,ca as c,da as G,fa as y,h as K,ha as o,m as u,o as d,ob as I,s as k,ua as j,w as E,x as A,y as B,zb as z}from"./chunk-6QJHEOXN.js";import{a as S}from"./chunk-YQFG5XE2.js";var v=class{},ie=(()=>{class a extends v{getTranslation(e){return u({})}static \u0275fac=(()=>{let e;return function(s){return(e||(e=j(a)))(s||a)}})();static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})(),D=class{},le=(()=>{class a{handle(e){return e.key}static \u0275fac=function(t){return new(t||a)};static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})();function H(a,r){if(a===r)return!0;if(a===null||r===null)return!1;if(a!==a&&r!==r)return!0;let e=typeof a,t=typeof r,s,i,l;if(e==t&&e=="object")if(Array.isArray(a)){if(!Array.isArray(r))return!1;if((s=a.length)==r.length){for(i=0;i<s;i++)if(!H(a[i],r[i]))return!1;return!0}}else{if(Array.isArray(r))return!1;l=Object.create(null);for(i in a){if(!H(a[i],r[i]))return!1;l[i]=!0}for(i in r)if(!(i in l)&&typeof r[i]<"u")return!1;return!0}return!1}function h(a){return typeof a<"u"&&a!==null}function M(a){return a&&typeof a=="object"&&!Array.isArray(a)}function ue(a,r){let e=Object.assign({},a);return M(a)&&M(r)&&Object.keys(r).forEach(t=>{M(r[t])?t in a?e[t]=ue(a[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}var L=class{},re=(()=>{class a extends L{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,t){let s;return typeof e=="string"?s=this.interpolateString(e,t):typeof e=="function"?s=this.interpolateFunction(e,t):s=e,s}getValue(e,t){let s=typeof t=="string"?t.split("."):[t];t="";do t+=s.shift(),h(e)&&h(e[t])&&(typeof e[t]=="object"||!s.length)?(e=e[t],t=""):s.length?t+=".":e=void 0;while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,i)=>{let l=this.getValue(t,i);return h(l)?l:s}):e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=j(a)))(s||a)}})();static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})(),x=class{},oe=(()=>{class a extends x{compile(e,t){return e}compileTranslations(e,t){return e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=j(a)))(s||a)}})();static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})(),R=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new m;onLangChange=new m;onDefaultLangChange=new m},q=new y("USE_STORE"),V=new y("USE_DEFAULT_LANG"),_=new y("DEFAULT_LANGUAGE"),F=new y("USE_EXTEND"),U=(()=>{class a{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new m;_onLangChange=new m;_onDefaultLangChange=new m;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,t,s,i,l,g=!0,p=!1,b=!1,w){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=i,this.missingTranslationHandler=l,this.useDefaultLang=g,this.isolate=p,this.extend=b,w&&this.setDefaultLang(w)}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(N(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return u(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe(N(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),u(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;let t=this.currentLoader.getTranslation(e).pipe(P(1),N(1));return this.loadingTranslations=t.pipe(k(s=>this.compiler.compileTranslations(s,e)),P(1),N(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?S(S({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),(s||this.extend)&&this.translations[e]?this.translations[e]=ue(this.translations[e],t):this.translations[e]=t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{this.langs.indexOf(t)===-1&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let i;if(t instanceof Array){let l={},g=!1;for(let p of t)l[p]=this.getParsedResult(e,p,s),d(l[p])&&(g=!0);if(g){let p=t.map(b=>d(l[b])?l[b]:u(l[b]));return B(p).pipe(k(b=>{let w={};return b.forEach((fe,de)=>{w[t[de]]=fe}),w}))}return l}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof i>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof i>"u"){let l={key:t,translateService:this};typeof s<"u"&&(l.interpolateParams=s),i=this.missingTranslationHandler.handle(l)}return typeof i<"u"?i:t}get(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(J(s=>(s=this.getParsedResult(s,e,t),d(s)?s:u(s))));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return d(s)?s:u(s)}}getStreamOnTranslationChange(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');return E(A(()=>this.get(e,t)),this.onTranslationChange.pipe(O(s=>{let i=this.getParsedResult(s.translations,e,t);return typeof i.subscribe=="function"?i:u(i)})))}stream(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');return E(A(()=>this.get(e,t)),this.onLangChange.pipe(O(s=>{let i=this.getParsedResult(s.translations,e,t);return d(i)?i:u(i)})))}instant(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(d(s)){if(e instanceof Array){let i={};return e.forEach((l,g)=>{i[e[g]]=e[g]}),i}return e}else return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;if(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof e>"u"))return e.indexOf("-")!==-1&&(e=e.split("-")[0]),e.indexOf("_")!==-1&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}static \u0275fac=function(t){return new(t||a)(o(R),o(v),o(x),o(L),o(D),o(V),o(q),o(F),o(_))};static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})();var De=(()=>{class a{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,t){this.translate=e,this._ref=t}updateValue(e,t,s){let i=l=>{this.value=l!==void 0?l:e,this.lastKey=e,this._ref.markForCheck()};if(s){let l=this.translate.getParsedResult(s,e,t);d(l.subscribe)?l.subscribe(i):i(l)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(H(e,this.lastKey)&&H(t,this.lastParams))return this.value;let s;if(h(t[0])&&t.length)if(typeof t[0]=="string"&&t[0].length){let i=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(i)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else typeof t[0]=="object"&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{this.lastKey&&i.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(t){return new(t||a)(I(U,16),I($,16))};static \u0275pipe=W({name:"translate",type:a,pure:!1,standalone:!1});static \u0275prov=c({token:a,factory:a.\u0275fac})}return a})(),je=(()=>{class a{static forRoot(e={}){return{ngModule:a,providers:[e.loader||{provide:v,useClass:ie},e.compiler||{provide:x,useClass:oe},e.parser||{provide:L,useClass:re},e.missingTranslationHandler||{provide:D,useClass:le},R,{provide:q,useValue:e.isolate},{provide:V,useValue:e.useDefaultLang},{provide:F,useValue:e.extend},{provide:_,useValue:e.defaultLanguage},U]}}static forChild(e={}){return{ngModule:a,providers:[e.loader||{provide:v,useClass:ie},e.compiler||{provide:x,useClass:oe},e.parser||{provide:L,useClass:re},e.missingTranslationHandler||{provide:D,useClass:le},{provide:q,useValue:e.isolate},{provide:V,useValue:e.useDefaultLang},{provide:F,useValue:e.extend},{provide:_,useValue:e.defaultLanguage},U]}}static \u0275fac=function(t){return new(t||a)};static \u0275mod=z({type:a});static \u0275inj=G({})}return a})();var ce=[{path:"/pages/dashboard",title:"Dashboard",iconName:"fa-light fa-display-chart-up",class:"",extralink:!1,label:"",labelClass:"",submenu:[],requiredRoles:[X.view],isHidden:n(!1)},{path:"/pages/cash-bank",title:"Cash and Bank",requiredRoles:[Z.view],iconName:"fa-light fa-building-columns",class:"",extralink:!1,label:"",labelClass:"",submenu:[],isHidden:n(!1)},{path:"",title:"COA",iconName:"fa-light fa-calculator",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[Y.view],submenu:[{path:"/pages/chart-of-account/account",title:"Accounts",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/chart-of-account/coa-types",title:"Category",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/journal",title:"Journal",iconName:"fa-light fa-file-lines",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[T.view],submenu:[{path:"/pages/journal/journal-entry",title:"Manual Journal",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[]},{path:"/pages/journal/record-expense",title:"Record Expense",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[T.create]},{path:"/pages/journal/receive-money",title:"Receive Money",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[T.create]}],isHidden:n(!1)},{path:"/pages/report",title:"Reports",iconName:"fa-light fa-chart-column",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[f.finance,f.ledger],submenu:[{path:"/pages/report/general-ledger",title:"General Ledger",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,requiredRoles:[f.ledger,f.finance],submenu:[],isHidden:n(!1)},{path:"/pages/report/multiple-general-ledger",title:"Multi Ledger",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,requiredRoles:[f.ledger,f.finance],submenu:[],isHidden:n(!1)},{path:"/pages/report/profit-loss",title:"Profit & Loss",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,requiredRoles:[f.finance],submenu:[],isHidden:n(!1)},{path:"/pages/report/balance-sheet",title:"Balance Sheet",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,requiredRoles:[f.finance],submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"",title:"Recurring",iconName:"fa-light fa-money-bill-1",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[ae.view],submenu:[{path:"/pages/recurring/recurring-expense",title:"Recurring Expenses",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/recurring/asset-value",title:"Asset Value",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/recurring/post-to-journal",title:"Post Recurring Expenses",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"",title:"Tools",iconName:"fa-light fa-wrench",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[se.view],submenu:[{path:"/pages/tools/generate-coa",title:"Update COA Balance",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/tools/unbalance-journal",title:"Unbalance Journal",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/migrate",title:"Migrate",iconName:"fa-light fa-paste",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[ee.view],submenu:[{path:"/pages/migrate/chart-of-account",title:"Chart of Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/coa-category",title:"COA Category",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/coa-configuration",title:"COA Configuration",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/outlet-account",title:"COA Outlet Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/payment-account",title:"Payment Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/writeoff-outlet",title:"Write Off Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/tax-account",title:"Tax Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/expense-account",title:"Expense Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/migrate/manual-journal",title:"Manual Journals",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/ticket",title:"Generate Journal",iconName:"fa-light fa-book",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[],submenu:[{path:"/pages/generate-journal/invoice",title:"Customer Invoice",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.invoice]},{path:"/pages/generate-journal/supplier-bill",title:"Supplier Bill",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]},{path:"/pages/generate-journal/shift",title:"Shift",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]},{path:"/pages/generate-journal/adjustment",title:"Adjustment",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]},{path:"/pages/generate-journal/join-invoice",title:"Join Invoce",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]},{path:"/pages/generate-journal/join-bill",title:"Join Bill",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1),requiredRoles:[C.nonInvoice]}],isHidden:n(!1)},{path:"/pages/pos-setup",title:"POS Setup",iconName:"fa-light fa-gears",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[te.view],submenu:[{path:"/pages/pos-setup/global",title:"Global",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/outlets",title:"Outlet",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/payments",title:"Payments",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/taxs",title:"Tax",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/expense-option",title:"Expense Option",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/pos-setup/writeoff",title:"Write Off",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/ticket",title:"Accounting Setup",iconName:"fa-light fa-gears",class:"has-arrow",label:"",labelClass:"",extralink:!1,requiredRoles:[Q.view],submenu:[{path:"/pages/accounting-setup/journal-number",title:"Journal Number",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/journal-tag",title:"Tag",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/timezone",title:"Timezone",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/opening-balance-form",title:"Opening Balance",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/closing-entries",title:"Closing",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/api-crendetial",title:"API Credential",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/advanced",title:"Advanced",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/format-journal",title:"Format Journal",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)},{path:"/pages/accounting-setup/flush-cached",title:"Flush Cached",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[],isHidden:n(!1)}],isHidden:n(!1)},{path:"/pages/users",title:"Users",iconName:"fa-light fa-user",class:"",label:"",labelClass:"",extralink:!1,submenu:[],requiredRoles:[ne.view],isHidden:n(!1)}];var Pe=(()=>{class a{constructor(){this.collapseSidebar=!1,this.fullScreen=!1,this.MENUITEMS=ce,this.items=new K(this.MENUITEMS)}static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275prov=c({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{v as a,De as b,je as c,Pe as d};
@@ -0,0 +1 @@
1
+ import{a as Y}from"./chunk-QCGJB7O7.js";import{m as O}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{b as K,g as G,h as Q,i as X}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as q}from"./chunk-BT7Y4ADP.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as W}from"./chunk-YI5IYWUO.js";import"./chunk-VM56C6ZV.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as U}from"./chunk-O44DI62I.js";import{a as B,b as A}from"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import{e as N}from"./chunk-DZCJWJUG.js";import"./chunk-YZ76QE4R.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{m as L}from"./chunk-DM2JLWKE.js";import{Eb as g,Fc as P,Ha as w,L as v,Mb as C,Rb as T,Sc as f,Wb as a,Xb as o,Y as D,Yb as S,_ as j,ac as h,bd as k,cd as H,fc as b,gc as l,ia as J,ib as m,qa as _,ra as u,s as R,sc as p,tc as y,wc as F,xc as M,yb as E,yc as z,zc as I}from"./chunk-6QJHEOXN.js";import{a as c,b as d}from"./chunk-YQFG5XE2.js";var Z=["class","component"],$=t=>({id:t});function ee(t,r){if(t&1){let e=h();a(0,"p-button",10),b("onClick",function(){_(e);let n=l(2);return u(n.onMigrate())}),o()}}function te(t,r){if(t&1){let e=h();a(0,"p-button",14),b("onClick",function(){_(e);let n=l(3);return u(n.onJournalTagDelete())}),o()}}function ne(t,r){if(t&1&&(g(0,te,1,0,"p-button",11),a(1,"a",12),S(2,"i",13),p(3," Add"),o()),t&2){let e=l(2);C("ngIf",e.journalTagsChecked().length>0)}}function ie(t,r){if(t&1&&(a(0,"div",8),g(1,ee,1,0,"p-button",9)(2,ne,4,1),o()),t&2){let e=l();m(),T(e.roleService.permissions().accountingSetup.delete?1:-1),m(),T(e.roleService.permissions().accountingSetup.create?2:-1)}}function ae(t,r){t&1&&(a(0,"div",15)(1,"h3",16),p(2," We will copy POS Outlet that are not yet registered as Tag in books.dealpos.app "),o()())}function oe(t,r){t&1&&(a(0,"th",19),S(1,"p-tableHeaderCheckbox"),o())}function le(t,r){if(t&1&&(a(0,"tr"),g(1,oe,2,0,"th",19),a(2,"th"),p(3,"Tag"),o(),a(4,"th"),p(5,"Description"),o(),a(6,"th"),p(7,"Type ID"),o()()),t&2){let e=l(3);m(),T(e.roleService.permissions().accountingSetup.delete?1:-1)}}function re(t,r){if(t&1&&(a(0,"td"),S(1,"p-tableCheckbox",21),o()),t&2){let e=l().$implicit;m(),C("value",e)}}function se(t,r){if(t&1&&(a(0,"tr"),g(1,re,2,1,"td"),a(2,"td")(3,"a",20),p(4),o()(),a(5,"td"),p(6),o(),a(7,"td"),p(8),o()()),t&2){let e=r.$implicit,i=l(3);m(),T(i.roleService.permissions().accountingSetup.delete?1:-1),m(2),C("queryParams",P(5,$,e.id)),m(),y(e.name),m(2),y(e.description),m(2),y(e.typeID===0?"Generic":"Outlet")}}function pe(t,r){if(t&1&&p(0),t&2){let e=l(3);F(" Showing ",e.first()," to ",e.end()," of ",e.journalTags().count," entries ")}}function ce(t,r){t&1&&(a(0,"tr")(1,"td",22)(2,"span"),p(3," No journal entries found. "),o()()())}function me(t,r){if(t&1){let e=h();a(0,"p-table",18),b("onHeaderCheckboxToggle",function(n){_(e);let s=l(2);return u(s.onHeaderCheckboxToggle(n))})("onPage",function(n){_(e);let s=l(2);return u(s.onPageChange(n))})("onRowSelect",function(n){_(e);let s=l(2);return u(s.onRowSelect(n))})("onRowUnselect",function(n){_(e);let s=l(2);return u(s.onRowUnselect(n))}),g(1,le,8,1,"ng-template",null,3,f)(3,se,9,7,"ng-template",null,4,f)(5,pe,1,3,"ng-template",null,5,f)(7,ce,4,0,"ng-template",null,6,f),o()}if(t&2){let e=l(2);C("lazy",!0)("paginator",!0)("rows",e.params().pageSize)("scrollable",!0)("totalRecords",e.journalTags().count)("value",e.journalTags().data)}}function _e(t,r){if(t&1&&g(0,me,9,6,"p-table",17),t&2){let e=l();T(e.journalTags()?0:-1)}}var Je=(()=>{class t{constructor(){this.journalTagService=J(Y),this.isDialogFilterVisible=w(!1),this.params=w({pageNumber:1,pageSize:100}),this.roleService=J(O),this.first=k(()=>(this.params().pageNumber-1)*this.params().pageSize+1),this.end=k(()=>Math.min(this.params().pageNumber*this.params().pageSize,this.journalTags().count||100)),this.journalTagsSource=A(B(this.params).pipe(v(300),D(e=>this.journalTagService.journalTagList(e).pipe(R(i=>d(c({},i),{data:i.data.map(n=>d(c({},n),{checked:!1}))}))))),{initialValue:null}),this.journalTags=w(null),this.journalTagsChecked=k(()=>this.journalTags()?this.journalTags().data.filter(e=>e.checked):[]),H(()=>{let e=this.journalTagsSource();e&&this.journalTags.set(e)})}ngOnInit(){this.journalTagService.journalTagList({pageNumber:1,pageSize:100}).pipe(q("response")).subscribe()}onPageChange(e){this.params.update(i=>d(c({},i),{pageNumber:e.first/e.rows+1,pageSize:e.rows}))}onRowSelect(e){if(Array.isArray(e.data)){let i=e.data.map(n=>n.id);this.updateCheckedRows(i,!0)}else e.data&&this.updateCheckedRows([e.data.id],!0)}onRowUnselect(e){if(Array.isArray(e.data)){let i=e.data.map(n=>n.id);this.updateCheckedRows(i,!1)}else e.data&&this.updateCheckedRows([e.data.id],!1)}updateCheckedRows(e,i){this.journalTags.update(n=>{if(!n)return n;let s=n.data.map(x=>e.includes(x.id)?d(c({},x),{checked:i}):x);return d(c({},n),{data:s})})}onHeaderCheckboxToggle(e){this.journalTags.update(i=>d(c({},i),{data:i.data.map(n=>d(c({},n),{checked:e.checked}))}))}onJournalTagDelete(){this.journalTagService.journalTagBulkDelete(this.journalTagsChecked().map(e=>e.id)).pipe(j(()=>this.params.update(e=>c({},e)))).subscribe()}onMigrate(){this.isDialogFilterVisible.update(e=>!e)}onFilterConfirmed(){this.journalTagService.journalTagMigrate().pipe(j(()=>{this.isDialogFilterVisible.update(e=>!e),this.params.update(e=>c({},e))})).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-journal-tag",8,"component"]],attrs:Z,decls:7,vars:3,consts:[["actionButton",""],["filters",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["dialogTitle","Migrate Outlet as Tag","pageTitle","Journal Tag List",3,"filterConfirmed","isDialogFilterVisibleChange","isDialogFilterVisible","overflowScroll","showCancelButton"],[1,"d-flex","gap-2"],["label","Migrate","variant","outlined"],["label","Migrate","variant","outlined",3,"onClick"],["icon","fa-solid fa-trash","label","Delete","severity","danger",3,"onClick",4,"ngIf"],["routerLink","form",1,"p-button"],[1,"fa-solid","fa-plus"],["icon","fa-solid fa-trash","label","Delete","severity","danger",3,"onClick"],[1,"h-full","d-flex","align-items-center"],[1,"fs-3"],["dataKey","id","selectionMode","single","styleClass","d-flex flex-column justify-content-between h-100",3,"lazy","paginator","rows","scrollable","totalRecords","value"],["dataKey","id","selectionMode","single","styleClass","d-flex flex-column justify-content-between h-100",3,"onHeaderCheckboxToggle","onPage","onRowSelect","onRowUnselect","lazy","paginator","rows","scrollable","totalRecords","value"],[2,"width","1rem"],["routerLink","form",1,"link","link-primary",3,"queryParams"],[3,"value"],["colspan","5"]],template:function(i,n){if(i&1){let s=h();a(0,"app-main-panel",7),b("filterConfirmed",function(){return _(s),u(n.onFilterConfirmed())}),I("isDialogFilterVisibleChange",function(V){return _(s),z(n.isDialogFilterVisible,V)||(n.isDialogFilterVisible=V),u(V)}),g(1,ie,3,2,"ng-template",null,0,f)(3,ae,3,0,"ng-template",null,1,f)(5,_e,1,1,"ng-template",null,2,f),o()}i&2&&(M("isDialogFilterVisible",n.isDialogFilterVisible),C("overflowScroll",!0)("showCancelButton",!1))},dependencies:[W,X,K,G,Q,U,L,N],styles:[".container-wrapper .p-datatable .p-datatable-thead>tr>th{position:sticky;top:0;z-index:1050;background:#f6f6f6!important}"],changeDetection:0})}}return t})();export{Je as JournalTagComponent};
@@ -1 +1 @@
1
- import{a as S,b as z}from"./chunk-VKUW7E75.js";import"./chunk-LBXNL7E4.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as A,b as j}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as q}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import{a as N,b as G}from"./chunk-ISIYG4D5.js";import"./chunk-ALLR2NXQ.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{w as R,x as D,y as H,z as L}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-TOR7QRRB.js";import{a as E}from"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{p as F,u as I}from"./chunk-DM2JLWKE.js";import{Dc as $,Eb as _,Ec as x,Mb as l,Oc as s,Pb as h,Pc as m,Rb as W,Sc as O,W as b,Wb as o,Xb as r,Y as k,Yb as f,_ as M,ac as C,fc as v,gc as p,h as T,ia as c,ib as n,qa as g,ra as d,s as u,sa as w,ta as B,yb as P}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var J=()=>({height:"calc(100vh - 100px)"});function K(t,y){if(t&1){let e=C();o(0,"p-button",6),v("onClick",function(){g(e);let a=p(2);return d(a.onFormat())}),r()}}function Q(t,y){if(t&1){let e=C();o(0,"div",3),_(1,K,1,0,"p-button",4),o(2,"p-button",5),s(3,"async"),s(4,"async"),v("onClick",function(){g(e);let a=p();return d(a.migrateWriteoffOutlet())}),r()()}if(t&2){let e=p();n(),W(e.roleService.permissions().migrate.delete?1:-1),n(),l("disabled",m(3,3,e.countInBooks$)!==0)("pTooltip",m(4,5,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function U(t,y){if(t&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",7),f(3,"app-migration-cards",8),s(4,"async"),w(),o(5,"svg",9),f(6,"path",10),r(),B(),f(7,"app-migration-cards",11),s(8,"async"),r()()()),t&2){let e=p();h(x(12,J)),n(),h(x(13,J)),n(2),l("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),n(4),l("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=c(S),this.toastr=c(E),this.refresh$=new T(void 0),this.pageTitle="Write-Off Outlet",this.roleService=c(V)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getWriteOffOutletAccountCount()),M(i=>console.log("API response:",i)),b(1));this.countInPOS$=e.pipe(u(i=>Number(i.pos))),this.countInBooks$=e.pipe(u(i=>Number(i.books)))}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatWriteOff().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-writeoff-outlet"]],features:[$([S])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],[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,a){i&1&&(o(0,"app-main-panel",2),_(1,Q,5,7,"ng-template",null,0,O)(3,U,9,14,"ng-template",null,1,O),r()),i&2&&l("pageTitle",a.pageTitle)},dependencies:[q,I,F,j,A,G,N,L,H,z,D,R],encapsulation:2})}}return t})();export{_e as WriteOffOutletComponent};
1
+ import{a as S,b as z}from"./chunk-UNKPZO2B.js";import"./chunk-Y4SHAFGQ.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as A,b as j}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as q}from"./chunk-YI5IYWUO.js";import"./chunk-VM56C6ZV.js";import{a as N,b as G}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as R,x as D,y as H,z as L}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-YZ76QE4R.js";import"./chunk-G3BJCT7T.js";import{a as E}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as F,u as I}from"./chunk-DM2JLWKE.js";import{Dc as $,Eb as _,Ec as x,Mb as l,Oc as s,Pb as h,Pc as m,Rb as W,Sc as O,W as b,Wb as o,Xb as r,Y as k,Yb as f,_ as M,ac as C,fc as v,gc as p,h as T,ia as c,ib as n,qa as g,ra as d,s as u,sa as w,ta as B,yb as P}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var J=()=>({height:"calc(100vh - 100px)"});function K(t,y){if(t&1){let e=C();o(0,"p-button",6),v("onClick",function(){g(e);let a=p(2);return d(a.onFormat())}),r()}}function Q(t,y){if(t&1){let e=C();o(0,"div",3),_(1,K,1,0,"p-button",4),o(2,"p-button",5),s(3,"async"),s(4,"async"),v("onClick",function(){g(e);let a=p();return d(a.migrateWriteoffOutlet())}),r()()}if(t&2){let e=p();n(),W(e.roleService.permissions().migrate.delete?1:-1),n(),l("disabled",m(3,3,e.countInBooks$)!==0)("pTooltip",m(4,5,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function U(t,y){if(t&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",7),f(3,"app-migration-cards",8),s(4,"async"),w(),o(5,"svg",9),f(6,"path",10),r(),B(),f(7,"app-migration-cards",11),s(8,"async"),r()()()),t&2){let e=p();h(x(12,J)),n(),h(x(13,J)),n(2),l("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),n(4),l("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=c(S),this.toastr=c(E),this.refresh$=new T(void 0),this.pageTitle="Write-Off Outlet",this.roleService=c(V)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getWriteOffOutletAccountCount()),M(i=>console.log("API response:",i)),b(1));this.countInPOS$=e.pipe(u(i=>Number(i.pos))),this.countInBooks$=e.pipe(u(i=>Number(i.books)))}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatWriteOff().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-writeoff-outlet"]],features:[$([S])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],[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,a){i&1&&(o(0,"app-main-panel",2),_(1,Q,5,7,"ng-template",null,0,O)(3,U,9,14,"ng-template",null,1,O),r()),i&2&&l("pageTitle",a.pageTitle)},dependencies:[q,I,F,j,A,G,N,L,H,z,D,R],encapsulation:2})}}return t})();export{_e as WriteOffOutletComponent};
@@ -1 +1 @@
1
- import{a as D,b as le}from"./chunk-VKUW7E75.js";import"./chunk-LBXNL7E4.js";import{m as H}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as ne,b as oe}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as U,b as X}from"./chunk-5U7KZJ3H.js";import{a as re,b as ae}from"./chunk-CN6AT4LE.js";import{b as ie}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as te}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import{a as $,b as ee}from"./chunk-ISIYG4D5.js";import"./chunk-ALLR2NXQ.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{w as Y,x as Z}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as q,j as K,x as Q}from"./chunk-MGIEURA2.js";import"./chunk-TOR7QRRB.js";import{a as G}from"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{p as R,u as A}from"./chunk-DM2JLWKE.js";import{Dc as z,Eb as F,Ec as P,Ha as b,Mb as u,Oc as V,Pb as T,Pc as k,Rb as v,Sc as x,W,Wb as r,Xb as a,Y as I,Yb as w,_ as N,ac as _,fc as f,gc as s,h as B,ia as M,ib as m,qa as l,ra as p,s as S,sa as O,sc as C,ta as L,xc as c,yb as j,yc as g,zc as d}from"./chunk-6QJHEOXN.js";import{a as E}from"./chunk-YQFG5XE2.js";var pe=()=>({height:"calc(100vh - 100px)"});function me(i,h){if(i&1){let e=_();r(0,"p-button",7),f("onClick",function(){l(e);let t=s(2);return p(t.onFormat())}),a()}}function se(i,h){if(i&1){let e=_();r(0,"p-button",8),f("onClick",function(){l(e);let t=s(2);return p(t.openMigrateDialog())}),a()}}function ue(i,h){if(i&1&&(r(0,"div",4),F(1,me,1,0,"p-button",5)(2,se,1,0,"p-button",6),a()),i&2){let e=s();m(),v(e.roleService.permissions().migrate.delete?1:-1),m(),v(e.roleService.permissions().migrate.create?2:-1)}}function ce(i,h){if(i&1){let e=_();r(0,"div",9)(1,"div",10)(2,"label",11),C(3,"From"),a(),r(4,"p-datepicker",12),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().From,t)||(o.filter().From=t),p(t)}),a()(),r(5,"div",10)(6,"label",11),C(7,"To"),a(),r(8,"p-datepicker",12),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().To,t)||(o.filter().To=t),p(t)}),a()(),r(9,"div",10)(10,"label",11),C(11,"Page Number"),a(),r(12,"p-inputnumber",13),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().PageNumber,t)||(o.filter().PageNumber=t),p(t)}),a()(),r(13,"div",10)(14,"label",11),C(15,"Page Size"),a(),r(16,"p-inputnumber",13),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().PageSize,t)||(o.filter().PageSize=t),p(t)}),a()()()}if(i&2){let e=s();m(4),u("showIcon",!0),c("ngModel",e.filter().From),m(4),u("showIcon",!0),c("ngModel",e.filter().To),m(4),c("ngModel",e.filter().PageNumber),m(4),c("ngModel",e.filter().PageSize)}}function ge(i,h){if(i&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",14),w(3,"app-migration-cards",15),V(4,"async"),O(),r(5,"svg",16),w(6,"path",17),a(),L(),w(7,"app-migration-cards",18),V(8,"async"),a()()()),i&2){let e=s();T(P(12,pe)),m(),T(P(13,pe)),m(2),u("migrationCount",k(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),m(4),u("migrationCount",k(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var je=(()=>{class i{constructor(){this.migrateService=M(D),this.refresh$=new B(void 0),this.toastr=M(G),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null,this.roleService=M(H)}ngOnInit(){let e=this.refresh$.pipe(I(()=>this.migrateService.getManualJournalCount()),W(1));this.countInPOS$=e.pipe(S(n=>Number(n.pos))),this.countInBooks$=e.pipe(S(n=>Number(n.books)))}openMigrateDialog(){this.previousFilter=E({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(N(()=>{this.isFilterDialogOpen.update(e=>!e),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(n=>{this.refresh$.next(),this.toastr.success(n.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=j({type:i,selectors:[["app-manual-journal"]],features:[z([D])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create"],["label","Format","severity","danger",3,"onClick"],["label","Create",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(n,t){if(n&1){let o=_();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(o),p(t.onMigrate())}),d("isDialogFilterVisibleChange",function(y){return l(o),g(t.isFilterDialogOpen,y)||(t.isFilterDialogOpen=y),p(y)}),f("filterCanceled",function(){return l(o),p(t.onFilterCanceled())}),F(1,ue,3,2,"ng-template",null,0,x)(3,ce,17,6,"ng-template",null,1,x)(5,ge,9,14,"ng-template",null,2,x),a()}n&2&&(u("pageTitle",t.pageTitle),c("isDialogFilterVisible",t.isFilterDialogOpen))},dependencies:[te,A,R,ie,Z,Y,X,U,ee,$,le,oe,ne,Q,q,K,ae,re],encapsulation:2})}}return i})();export{je as ManualJournalComponent};
1
+ import{a as D,b as le}from"./chunk-UNKPZO2B.js";import"./chunk-Y4SHAFGQ.js";import{m as H}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as ne,b as oe}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as U,b as X}from"./chunk-5U7KZJ3H.js";import{a as re,b as ae}from"./chunk-CN6AT4LE.js";import{b as ie}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as te}from"./chunk-YI5IYWUO.js";import"./chunk-VM56C6ZV.js";import{a as $,b as ee}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as Y,x as Z}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as q,j as K,x as Q}from"./chunk-MGIEURA2.js";import"./chunk-YZ76QE4R.js";import"./chunk-G3BJCT7T.js";import{a as G}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as R,u as A}from"./chunk-DM2JLWKE.js";import{Dc as z,Eb as F,Ec as P,Ha as b,Mb as u,Oc as V,Pb as T,Pc as k,Rb as v,Sc as x,W,Wb as r,Xb as a,Y as I,Yb as w,_ as N,ac as _,fc as f,gc as s,h as B,ia as M,ib as m,qa as l,ra as p,s as S,sa as O,sc as C,ta as L,xc as c,yb as j,yc as g,zc as d}from"./chunk-6QJHEOXN.js";import{a as E}from"./chunk-YQFG5XE2.js";var pe=()=>({height:"calc(100vh - 100px)"});function me(i,h){if(i&1){let e=_();r(0,"p-button",7),f("onClick",function(){l(e);let t=s(2);return p(t.onFormat())}),a()}}function se(i,h){if(i&1){let e=_();r(0,"p-button",8),f("onClick",function(){l(e);let t=s(2);return p(t.openMigrateDialog())}),a()}}function ue(i,h){if(i&1&&(r(0,"div",4),F(1,me,1,0,"p-button",5)(2,se,1,0,"p-button",6),a()),i&2){let e=s();m(),v(e.roleService.permissions().migrate.delete?1:-1),m(),v(e.roleService.permissions().migrate.create?2:-1)}}function ce(i,h){if(i&1){let e=_();r(0,"div",9)(1,"div",10)(2,"label",11),C(3,"From"),a(),r(4,"p-datepicker",12),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().From,t)||(o.filter().From=t),p(t)}),a()(),r(5,"div",10)(6,"label",11),C(7,"To"),a(),r(8,"p-datepicker",12),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().To,t)||(o.filter().To=t),p(t)}),a()(),r(9,"div",10)(10,"label",11),C(11,"Page Number"),a(),r(12,"p-inputnumber",13),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().PageNumber,t)||(o.filter().PageNumber=t),p(t)}),a()(),r(13,"div",10)(14,"label",11),C(15,"Page Size"),a(),r(16,"p-inputnumber",13),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().PageSize,t)||(o.filter().PageSize=t),p(t)}),a()()()}if(i&2){let e=s();m(4),u("showIcon",!0),c("ngModel",e.filter().From),m(4),u("showIcon",!0),c("ngModel",e.filter().To),m(4),c("ngModel",e.filter().PageNumber),m(4),c("ngModel",e.filter().PageSize)}}function ge(i,h){if(i&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",14),w(3,"app-migration-cards",15),V(4,"async"),O(),r(5,"svg",16),w(6,"path",17),a(),L(),w(7,"app-migration-cards",18),V(8,"async"),a()()()),i&2){let e=s();T(P(12,pe)),m(),T(P(13,pe)),m(2),u("migrationCount",k(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),m(4),u("migrationCount",k(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var je=(()=>{class i{constructor(){this.migrateService=M(D),this.refresh$=new B(void 0),this.toastr=M(G),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null,this.roleService=M(H)}ngOnInit(){let e=this.refresh$.pipe(I(()=>this.migrateService.getManualJournalCount()),W(1));this.countInPOS$=e.pipe(S(n=>Number(n.pos))),this.countInBooks$=e.pipe(S(n=>Number(n.books)))}openMigrateDialog(){this.previousFilter=E({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(N(()=>{this.isFilterDialogOpen.update(e=>!e),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(n=>{this.refresh$.next(),this.toastr.success(n.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=j({type:i,selectors:[["app-manual-journal"]],features:[z([D])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create"],["label","Format","severity","danger",3,"onClick"],["label","Create",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(n,t){if(n&1){let o=_();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(o),p(t.onMigrate())}),d("isDialogFilterVisibleChange",function(y){return l(o),g(t.isFilterDialogOpen,y)||(t.isFilterDialogOpen=y),p(y)}),f("filterCanceled",function(){return l(o),p(t.onFilterCanceled())}),F(1,ue,3,2,"ng-template",null,0,x)(3,ce,17,6,"ng-template",null,1,x)(5,ge,9,14,"ng-template",null,2,x),a()}n&2&&(u("pageTitle",t.pageTitle),c("isDialogFilterVisible",t.isFilterDialogOpen))},dependencies:[te,A,R,ie,Z,Y,X,U,ee,$,le,oe,ne,Q,q,K,ae,re],encapsulation:2})}}return i})();export{je as ManualJournalComponent};