dealposbooks 5.46.0 → 5.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +5 -23
- package/assets/scss/components/_tables.scss +6 -4
- package/chunk-45JI5H5L.js +8 -0
- package/{chunk-3H2MG3RX.js → chunk-4IHVNLEA.js} +1 -1
- package/{chunk-6ETOXPS6.js → chunk-4ODQPLDW.js} +1 -1
- package/chunk-5GAJOO6O.js +129 -0
- package/{chunk-37MHHHLT.js → chunk-5RW6MEBV.js} +1 -1
- package/{chunk-45SKCDTK.js → chunk-6LW7PY2Z.js} +1 -1
- package/{chunk-FVWAFBXC.js → chunk-6VBTHQT3.js} +1 -1
- package/{chunk-265PINEB.js → chunk-7DJNG6VE.js} +1 -1
- package/{chunk-KJLM2JDU.js → chunk-B2BDKUAE.js} +2 -2
- package/{chunk-6KPBN6PL.js → chunk-BJBAWNDR.js} +1 -1
- package/{chunk-JDN7HSFT.js → chunk-BKLUYVDG.js} +1 -1
- package/{chunk-BEKYAQHU.js → chunk-BVXYCUBY.js} +1 -1
- package/{chunk-2G2COOKC.js → chunk-C6TI7B2G.js} +1 -1
- package/chunk-CO2UYCZ2.js +1 -0
- package/{chunk-X5TFTF7J.js → chunk-DFGIXWZK.js} +1 -1
- package/{chunk-YXJCCERT.js → chunk-EAEMBSUD.js} +1 -1
- package/{chunk-H5J2ODXS.js → chunk-ETHACYOI.js} +1 -1
- package/{chunk-RAM3BLIZ.js → chunk-EXBBFIDN.js} +1 -1
- package/chunk-FMHGC2MA.js +4 -0
- package/{chunk-6E6DIFFQ.js → chunk-G6IPI7YM.js} +1 -1
- package/{chunk-NA23LDSJ.js → chunk-G7QPRYOR.js} +1 -1
- package/{chunk-X5UUEKFM.js → chunk-GXJ3G456.js} +1 -1
- package/{chunk-MXWBKCQV.js → chunk-IV5AW2OY.js} +1 -1
- package/{chunk-YUYV2CG7.js → chunk-IWF5R5FH.js} +1 -1
- package/{chunk-7QXFTI7P.js → chunk-KS2JAY2L.js} +1 -1
- package/{chunk-5VNZJNWI.js → chunk-MJSJBCDR.js} +1 -1
- package/chunk-N4RQTE4T.js +1 -0
- package/{chunk-VDUU7T7V.js → chunk-NHIAQTUJ.js} +1 -1
- package/{chunk-DJSX32J5.js → chunk-NPAM3NOH.js} +1 -1
- package/{chunk-LVSES747.js → chunk-NQXDAWEZ.js} +1 -1
- package/{chunk-3UEIZQIL.js → chunk-OR5FLZPY.js} +1 -1
- package/{chunk-J4KTOC3S.js → chunk-PEOJDDJN.js} +1 -1
- package/{chunk-V4A5GTYQ.js → chunk-PFWNBHNC.js} +1 -1
- package/{chunk-HOHCN6MI.js → chunk-PNWKCLWA.js} +1 -1
- package/{chunk-NUAND7BZ.js → chunk-Q34IDOYA.js} +1 -1
- package/{chunk-KRHMP57P.js → chunk-QUUGFWG3.js} +1 -1
- package/chunk-RZHWMBFY.js +1 -0
- package/chunk-S7AFTSCW.js +1 -0
- package/{chunk-KXRN2WUT.js → chunk-T6OMUVQY.js} +1 -1
- package/{chunk-NCP5HSZO.js → chunk-UCDJJGO5.js} +1 -1
- package/{chunk-UOJZMQ6X.js → chunk-UH5YUPBR.js} +1 -1
- package/chunk-VKKAJODP.js +1 -0
- package/chunk-WFQQUFSS.js +1 -0
- package/{chunk-GVZFU3IL.js → chunk-WKE2HPSD.js} +1 -1
- package/{chunk-G3GX7TJT.js → chunk-WY2JNDES.js} +1 -1
- package/{chunk-6XOFO2US.js → chunk-X46QKMJY.js} +1 -1
- package/{chunk-CJMQPCRF.js → chunk-XFOCD2H7.js} +1 -1
- package/{chunk-H7WUM7IF.js → chunk-XFVMOYX7.js} +1 -1
- package/chunk-XXNDXSPP.js +1 -0
- package/{chunk-UOSXT5W7.js → chunk-Y3URGAXL.js} +1 -1
- package/{chunk-S2HTMYMU.js → chunk-YTZ3JIC5.js} +1 -1
- package/{chunk-ECB5EIQL.js → chunk-YZH7Y43Y.js} +1 -1
- package/{chunk-TN245HA6.js → chunk-ZWR2YCUC.js} +1 -1
- package/index.html +2 -2
- package/{main-6YJJH4E2.js → main-ON5LJQLR.js} +1 -1
- package/package.json +1 -1
- package/{styles-D4BND7FA.css → styles-4HAX3IDP.css} +1 -1
- package/chunk-3WWUSVNY.js +0 -1
- package/chunk-76ISI6NH.js +0 -8
- package/chunk-BXCTHZLV.js +0 -129
- package/chunk-FQIBBQO2.js +0 -1
- package/chunk-H5BCW5OG.js +0 -1
- package/chunk-JRVYSBUZ.js +0 -5
- package/chunk-NWVLHJBT.js +0 -1
- package/chunk-R4SNCEXI.js +0 -1
- package/chunk-ST5JWMO4.js +0 -1
- package/chunk-WLS2E4JE.js +0 -1
package/3rdpartylicenses.txt
CHANGED
|
@@ -152,32 +152,14 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
152
152
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
153
153
|
|
|
154
154
|
--------------------------------------------------------------------------------
|
|
155
|
-
Package:
|
|
156
|
-
License: "
|
|
157
|
-
|
|
158
|
-
Copyright 2009 Robert J. Knothe <bob@decorplanit.com> and contributors
|
|
159
|
-
|
|
155
|
+
Package: @maskito/core
|
|
156
|
+
License: "Apache-2.0"
|
|
160
157
|
|
|
161
|
-
Permission is hereby granted, free of charge, to any person
|
|
162
|
-
obtaining a copy of this software and associated documentation
|
|
163
|
-
files (the "Software"), to deal in the Software without
|
|
164
|
-
restriction, including without limitation the rights to use,
|
|
165
|
-
copy, modify, merge, publish, distribute, sub license, and/or sell
|
|
166
|
-
copies of the Software, and to permit persons to whom the
|
|
167
|
-
Software is furnished to do so, subject to the following
|
|
168
|
-
conditions:
|
|
169
158
|
|
|
170
|
-
|
|
171
|
-
|
|
159
|
+
--------------------------------------------------------------------------------
|
|
160
|
+
Package: @maskito/kit
|
|
161
|
+
License: "Apache-2.0"
|
|
172
162
|
|
|
173
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
174
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
175
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
176
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
177
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
178
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
179
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
180
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
181
163
|
|
|
182
164
|
--------------------------------------------------------------------------------
|
|
183
165
|
Package: @angular/platform-browser
|
|
@@ -60,6 +60,8 @@ table.dataTable {
|
|
|
60
60
|
|
|
61
61
|
.p-datatable-wrapper {
|
|
62
62
|
position: relative;
|
|
63
|
+
overflow: auto;
|
|
64
|
+
max-height: 600px;
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
.p-datatable-table {
|
|
@@ -73,11 +75,11 @@ table.dataTable {
|
|
|
73
75
|
z-index: 100;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
.p-datatable thead
|
|
78
|
+
.p-datatable thead th {
|
|
77
79
|
position: sticky;
|
|
78
|
-
top: 70px
|
|
79
|
-
z-index:
|
|
80
|
-
background
|
|
80
|
+
top: 0; /* or 70px if you have top navbar */
|
|
81
|
+
z-index: 10;
|
|
82
|
+
background: #fff;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.p-datatable tbody {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{a as He,b as Ke,c as Qe,d as Xe,e as Ye,f as Ze}from"./chunk-XD7VHCRC.js";import{a as Le,b as $e,c as ze,d as Ue}from"./chunk-UP67MADL.js";import{a as qe,b as We}from"./chunk-NCDT6JPP.js";import{a as je}from"./chunk-FMHGC2MA.js";import{b as we}from"./chunk-DFGIXWZK.js";import{a as Re,b as Je}from"./chunk-HG5MKVNR.js";import"./chunk-NZN6QJR3.js";import{a as Be,b as ke,k as Oe}from"./chunk-EL5BUFMO.js";import{a as Te,b as Me}from"./chunk-EQ4PLHI4.js";import"./chunk-H7Q35Y7G.js";import"./chunk-R7N6BWL5.js";import{a as Ve}from"./chunk-QF4D5YPK.js";import{a as Q,b as X}from"./chunk-VJ3IBUVO.js";import"./chunk-2AAVNIG7.js";import{a as Ge,b as Pe}from"./chunk-LFZCMZAP.js";import"./chunk-6A2KUPOG.js";import{a as Ne,b as De}from"./chunk-36OX4S7M.js";import"./chunk-Q5CVMJZC.js";import"./chunk-3GGXPPQT.js";import"./chunk-MFK5RQPJ.js";import{b as Y}from"./chunk-KJ2WX3FC.js";import"./chunk-6GN3MGBY.js";import"./chunk-Q24GCSGD.js";import{h as A}from"./chunk-WKE2HPSD.js";import"./chunk-VGNJD35F.js";import{a as R,b as J}from"./chunk-2XUSZCQL.js";import"./chunk-YV2QJ63P.js";import"./chunk-ARH3WEEF.js";import{n as K,o as F,w as O,x as V}from"./chunk-H6HNANYB.js";import"./chunk-2D2YD753.js";import{Ha as k,b as w,c as le,e as y,f as N,j as Ie,l as D,m as W,n as Ee,o as G,u as P,w as H,x as B}from"./chunk-OIBDX2CA.js";import{b as xe,e as Se,l as ye}from"./chunk-AOOG6YOT.js";import{a as Ae}from"./chunk-OR5FLZPY.js";import{a as Fe}from"./chunk-2MKKFLNJ.js";import{h as he,j as ve,k as Ce,q as _e,s as S}from"./chunk-VZ5CMS5O.js";import"./chunk-F2X3VGZZ.js";import{$b as C,Cc as q,Db as g,Dc as z,Ec as oe,Ha as j,L as se,Lb as p,Nc as re,Ob as L,Oc as ae,Rb as E,Rc as f,Tb as T,Ub as M,Vb as i,Wb as n,Xb as c,Z as ue,_ as I,ca as de,ec as _,fc as d,g as pe,hb as l,ia as u,nb as ie,qa as b,ra as h,rc as r,s as ce,sc as U,tc as $,wc as fe,xb as x,xc as ge,yc as be}from"./chunk-NMCKMUY4.js";import"./chunk-YQFG5XE2.js";var v=(()=>{class t{#e=u(Ae);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}verifyAPICredential(e){return this.#e.post(void 0,"/api/AccountConfig/Validate",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ct=()=>({height:"calc(100vh - 100px)"});function st(t,m){if(t&1){let e=C();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),_("click",function(){b(e);let a=d();return h(a.updateAccountingIntegration())}),n()()}}function ut(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),U(e)}}function dt(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",41),i(2,"label",42),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),U(e.value)}}function ft(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",43),i(3,"label",42),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),U(e.value)}}function gt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),T(4,ut,2,2,"p-tab",8,E),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),T(39,dt,4,4,"div",25,E),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),T(92,ft,5,4,"div",40,E),n()()()()()()()()()()()()),t&2){let e,o,a,s=d();L(z(8,ct)),l(2),p("value",0)("formGroup",s.form),l(2),M(s.tabs()),l(3),p("value",0),l(26),p("options",(e=s.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),M((o=s.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),M((a=s.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal)}}var tt=(()=>{class t{constructor(){this.accountingSetupService=u(v),this.fb=u(P).nonNullable,this.tabs=j(["Numbering","Journal","Report"]),this.accountingIntegration=j(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup()})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control(""),noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(I(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],["formGroupName","number",3,"value"],[1,""],[1,"fs-5"],[1,"row"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["for","",1,"fs-4"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","journalGenerate",1,"row"],[1,"col-12"],[1,"col-10"],[1,"col-md-4","mb-3"],["formControlName","transferOrder"],[1,"col-md-6","mb-4"],["formControlName","paymentDiscount"],[1,"col-12","mb-2"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,st,4,0,"ng-template",null,0,f)(3,gt,94,9,"ng-template",null,1,f),n())},dependencies:[S,Ze,Ye,Xe,Qe,He,Ke,A,Y,ke,Be,B,y,N,D,G,W,F,Pe,Ge,Je,Re,ye,Se,V,O,De,Ne,X,Q],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var ht=()=>({height:"cacl(100vh - 200px)"}),vt=()=>({height:"calc(100vh - 250px)"});function Ct(t,m){if(t&1){let e=C();i(0,"div")(1,"p-button",5),_("onClick",function(){b(e);let a=d();return h(a.submitForm())}),n()()}}function _t(t,m){t&1&&(i(0,"div",17)(1,"h3",18),r(2,"Date"),n(),c(3,"p-datePicker",19),n())}function xt(t,m){if(t&1&&(i(0,"tr",9)(1,"td",27),r(2),n(),i(3,"td"),c(4,"input",28),n(),i(5,"td"),c(6,"input",29),n()()),t&2){let e,o=m.$implicit,a=m.index,s=d(4);p("formGroupName",a),l(2),$(" ",(e=s.asFormGroup(o).get("accountName"))==null?null:e.value," ")}}function St(t,m){if(t&1&&(i(0,"div",9)(1,"h4",20),r(2),n(),i(3,"div",21)(4,"table",22)(5,"thead",23)(6,"tr")(7,"th",24),r(8,"Account Name"),n(),i(9,"th",25),r(10,"Debit"),n(),i(11,"th",25),r(12,"Credit"),n()()(),i(13,"tbody"),g(14,xt,7,2,"tr",26),n()()()()),t&2){let e=m.$implicit,o=m.$index,a=d(3);p("formGroupName",o),l(2),$(" ",e.get("name").value," "),l(12),p("ngForOf",a.getItemsArray(a.asFormGroup(e)).controls)}}function yt(t,m){if(t&1&&(i(0,"p-panel",7),g(1,_t,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",8),T(6,St,15,3,"div",9,E),n()(),i(8,"div",10)(9,"table",11)(10,"tr")(11,"td",12)(12,"p",13),r(13," Total: "),n()(),i(14,"td",14)(15,"p",15),r(16),re(17,"number"),n()(),i(18,"td",16)(19,"p",15),r(20),re(21,"number"),n()()()()()()),t&2){let e=d(2);L(z(11,ht)),p("formGroup",e.formGroups),l(4),L(z(12,vt)),l(2),M(e.formsArray.controls),l(10),$(" ",ae(17,7,e.subtotalDebit)," "),l(4),$(" ",ae(21,9,e.subtotalCredit)," ")}}function Ft(t,m){if(t&1&&g(0,yt,22,13,"p-panel",6),t&2){let e=d();p("ngIf",e.formGroups)}}var it=(()=>{class t{constructor(){this.destroy$=new pe,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=u(P),this.accSetupService=u(v),this.dayjsService=u(we),this.date=new Date,this.routes=u(xe)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(se(300),ue(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 o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}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(ce(e=>e.data),Ve("response"),I(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).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(o=>{let a=this.getItemsArray(o),s=a.controls.reduce((ee,te)=>{let ne=te.get("debitAmount").value||0;return ee+ne},0),mt=a.controls.reduce((ee,te)=>{let ne=te.get("creditAmount").value||0;return ee+ne},0);this.subtotalDebit+=s,this.subtotalCredit+=mt})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,s])=>(a==="date"?o[a]=s instanceof Date?this.dayjsService.format(s):s:a==="forms"?o.form=s:o[a]=s,o),{});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(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-acc-opening-balance-form"]],features:[q([k])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["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(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Ct,2,0,"ng-template",null,0,f)(3,Ft,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",4)),o&2&&p("scrollable",!0)},dependencies:[A,Y,S,ve,Ce,_e,Me,Te,Oe,X,Q,H,w,y,N,F,ze,V,O,J,R,je,B,D,G,W,Ee,We,qe],styles:["[_nghost-%COMP%]{display:block} .table thead tr th{border:none}"],changeDetection:0})}}return t})();var ot=t=>({"ng-invalid ng-dirty":t});function It(t,m){if(t&1){let e=C();i(0,"p-button",4),_("onClick",function(){b(e);let a=d();return h(a.verifyCredentials())}),r(1,"Verify"),n(),i(2,"p-button",4),_("onClick",function(){b(e);let a=d();return h(a.saveCredentials())}),r(3,"Update"),n()}}function Et(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Account"),n(),i(3,"small",14),r(4,"Configure Client ID and Client Secret"),n()())}function Tt(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,Et,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),r(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),r(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=d();l(4),p("formGroup",e.credentialForm),l(5),p("ngClass",oe(3,ot,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),l(5),p("ngClass",oe(5,ot,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var rt=(()=>{class t{constructor(e,o){this.fb=e,this.messageService=o,this.setupService=u(v)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(I(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[le.required]],clientSecret:["",[le.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:o=>{console.log("Verify result:",o),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:o=>{console.error("Verify failed:",o),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(o){return new(o||t)(ie(P),ie(k))}}static{this.\u0275cmp=x({type:t,selectors:[["app-api-credential"]],features:[q([k])],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(o,a){o&1&&(i(0,"app-main-panel",3),g(1,It,4,0,"ng-template",null,0,f)(3,Tt,15,7,"ng-template",null,1,f),n())},dependencies:[S,he,B,w,y,N,D,G,F,K,J,R,A,V,O,Ue],encapsulation:2})}}return t})();function Mt(t,m){if(t&1){let e=C();i(0,"button",4),_("click",function(){b(e);let a=d();return h(a.onFormatJournal())}),r(1," Format "),n()}}function wt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),r(3,"Journal Configuration"),n(),i(4,"small",15),r(5," Enter your account information to format journal entries "),n()()())}function Nt(t,m){if(t&1){let e=C();i(0,"div",5)(1,"p-panel"),g(2,wt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),be("ngModelChange",function(a){b(e);let s=d();return ge(s.subdomain,a)||(s.subdomain=a),h(a)}),n(),i(8,"label",10),r(9,"Subdomain"),n()(),i(10,"small",11),r(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=d();l(7),fe("ngModel",e.subdomain)}}var at=(()=>{class t{constructor(){this.setupService=u(v),this.subdomain=j(""),this.toastrService=u(Fe)}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(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[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(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Mt,2,0,"ng-template",null,0,f)(3,Nt,12,1,"ng-template",null,1,f),n())},dependencies:[S,H,w,y,Ie,F,K,A,J,R,$e,Le],encapsulation:2})}}return t})();var lt=()=>u(v).fetchOpeningBalanceFormConfiguration();var di=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"journal-tag",loadComponent:()=>import("./chunk-XFVMOYX7.js").then(t=>t.JournalTagComponent)},{path:"journal-tag/info",loadComponent:()=>import("./chunk-UCDJJGO5.js").then(t=>t.JournalTagInfoComponent)},{path:"journal-tag/form",loadComponent:()=>import("./chunk-PEOJDDJN.js").then(t=>t.JournalTagFormComponent)},{path:"accounting-integration",component:tt},{path:"opening-balance-form",component:it,resolve:{data:lt}},{path:"api-crendetial",component:rt},{path:"format-journal",component:at},{path:"closing-entries",loadComponent:()=>import("./chunk-5RW6MEBV.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-EXBBFIDN.js").then(t=>t.ClosingFormComponent)}]}];export{di as ACCOUNTING_SETUP_ROUTES};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as un}from"./chunk-
|
|
1
|
+
import{a as un}from"./chunk-Y3URGAXL.js";import{a as qn}from"./chunk-KIBBRAL5.js";import{a as Xn}from"./chunk-5CZNOXPC.js";import"./chunk-IGWIRCAS.js";import{a as Fn}from"./chunk-H7Q35Y7G.js";import{a as $n}from"./chunk-R7N6BWL5.js";import{b as Wn}from"./chunk-LFZCMZAP.js";import"./chunk-6A2KUPOG.js";import"./chunk-Q5CVMJZC.js";import"./chunk-MFK5RQPJ.js";import{b as jn}from"./chunk-KJ2WX3FC.js";import{a as Dn}from"./chunk-6GN3MGBY.js";import{a as Vn}from"./chunk-Q24GCSGD.js";import{b as Yn,c as Ti}from"./chunk-VGNJD35F.js";import{b as Gn}from"./chunk-2XUSZCQL.js";import{c as Mn}from"./chunk-ARH3WEEF.js";import{a as et,c as An,f as ai,o as Bn,p as Rn,t as Hn,u as Si,w as Nn,x as oi}from"./chunk-H6HNANYB.js";import"./chunk-2D2YD753.js";import{Da as si,G as Sn,Ia as Ln,J as Tn,Ja as kn,K as Pn,Ka as zn,La as ri,Ma as ge,P as Ie,Q as _t,R as Nt,S as En,Ua as Je,b as mn,e as fn,f as gn,h as hn,ia as On,j as vn,k as wn,ma as In,p as bn,q as yn,r as _n,s as Cn,w as ni,x as xn}from"./chunk-OIBDX2CA.js";import{b as rn,d as an,e as on,f as ln,l as Ht}from"./chunk-AOOG6YOT.js";import{a as cn,c as Mi}from"./chunk-OR5FLZPY.js";import{a as pn}from"./chunk-2MKKFLNJ.js";import{H as sn,h as ct,j as ii,k as Ft,l as Bt,m as Rt,n as tn,s as we,t as Oe,z as nn}from"./chunk-VZ5CMS5O.js";import{c as dn,d as _i,f as Ci,h as xi}from"./chunk-F2X3VGZZ.js";import{$b as ve,$c as Vt,Aa as We,Ab as Qi,Ba as Wi,Bb as Ke,Cc as Ze,Da as qi,Db as X,Dc as Ji,Ea as xe,Ec as pe,Fa as wt,Fc as Be,Gc as ti,Ha as Ee,Kb as Z,La as Ui,Lb as $,Nb as Ki,Nc as Dt,Ob as Qt,Oc as $t,Pb as ye,Qb as Kt,Rb as Zt,Rc as dt,Tb as Jt,Ub as ei,Vb as G,W as Xi,Wb as N,Xb as te,Yb as at,Zb as ot,_b as Me,_c as pt,ba as Yi,bd as en,ca as Ye,cb as bi,da as je,db as qe,ec as ie,fc as H,gc as bt,hb as R,hc as lt,ia as ae,kc as fe,lc as yt,mc as ne,nb as Ue,nc as se,pa as ji,qa as U,qc as Lt,ra as Q,rc as le,s as wi,sb as Ut,sc as Fe,t as Gi,tc as yi,ua as Ae,uc as Zi,wc as kt,xb as he,xc as zt,yb as Qe,yc as At}from"./chunk-NMCKMUY4.js";import{a as me,b as It}from"./chunk-YQFG5XE2.js";var sr=["*"],rr=({dt:i})=>`
|
|
2
2
|
.p-inputgroup,
|
|
3
3
|
.p-inputgroup .p-floatlabel,
|
|
4
4
|
.p-inputgroup .p-iftalabel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"",children:[{path:"users",loadComponent:()=>import("./chunk-
|
|
1
|
+
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"",children:[{path:"users",loadComponent:()=>import("./chunk-PNWKCLWA.js").then(o=>o.UserPageComponent)},{path:"groups",loadComponent:()=>import("./chunk-GXJ3G456.js").then(o=>o.GroupPageComponent)},{path:"groups/forms",loadComponent:()=>import("./chunk-BVXYCUBY.js").then(o=>o.GroupFormComponent)}]}];export{t as USERS_ROUTES};
|