dealposbooks 1.9.9 → 5.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +52 -52
- package/assets/scss/style.scss +7 -0
- package/{chunk-6JMIM647.js → chunk-253IFSMV.js} +1 -1
- package/chunk-2BCAGP7R.js +1 -0
- package/chunk-2FU3LWGL.js +1 -0
- package/{chunk-6KUGZE4D.js → chunk-2KB4NNVP.js} +1 -1
- package/chunk-33YEAYJV.js +1 -0
- package/{chunk-RSBHWSQP.js → chunk-3LDYJV3L.js} +1 -1
- package/chunk-3WD3CTYC.js +1 -0
- package/{chunk-AAV2CBYL.js → chunk-42UIGXWH.js} +1 -1
- package/chunk-4ANXHXE3.js +7 -0
- package/{chunk-XSV3RUSY.js → chunk-4LGDNQMZ.js} +1 -1
- package/chunk-56GDP75Z.js +1 -0
- package/{chunk-VLOOUXSK.js → chunk-5R3XKSDM.js} +1 -1
- package/chunk-63YXSI43.js +1 -0
- package/{chunk-BOLQVS6Y.js → chunk-67VPWIWW.js} +51 -51
- package/chunk-6ACYDH2N.js +1 -0
- package/{chunk-EUZRP4IL.js → chunk-6DRYMDZA.js} +1 -1
- package/{chunk-RDNX4GB3.js → chunk-6LENP6AB.js} +1 -1
- package/{chunk-RSNWAAG7.js → chunk-6NGIQJIP.js} +2 -2
- package/chunk-6OQPMZXU.js +1 -0
- package/{chunk-5CKNZSY2.js → chunk-6UGXXSQ3.js} +1 -1
- package/chunk-74MJ3NFN.js +1 -0
- package/chunk-7EJVMM7V.js +252 -0
- package/chunk-7EZGTYA2.js +1 -0
- package/chunk-7VQQO4OE.js +1 -0
- package/{chunk-3XHIVI4R.js → chunk-A7EGGUJQ.js} +1 -1
- package/{chunk-UGW4WHZE.js → chunk-ABBBWSSO.js} +1 -1
- package/{chunk-6IIHHTGW.js → chunk-AIZN44RL.js} +2 -2
- package/{chunk-EFM3IZ4E.js → chunk-AZUQDRJU.js} +1 -1
- package/chunk-B5JORMF2.js +1 -0
- package/{chunk-7SS54GTW.js → chunk-B7WHT2EP.js} +1 -1
- package/{chunk-GW67NFVX.js → chunk-BLJMNWUM.js} +1 -1
- package/{chunk-7EZ4X3EY.js → chunk-BMBVCXB4.js} +1 -1
- package/chunk-BQXWTZHK.js +129 -0
- package/chunk-C2GO6SPF.js +1 -0
- package/{chunk-7F26ZTCS.js → chunk-C6U3U6SW.js} +1 -1
- package/{chunk-I7SRN7BD.js → chunk-C7LM5UCK.js} +1 -1
- package/{chunk-WKMCO5GR.js → chunk-EDCDR4RJ.js} +1 -1
- package/{chunk-B6WHUOA5.js → chunk-EW3R2HAB.js} +1 -1
- package/{chunk-CQFTV5NO.js → chunk-F5Z3IX4J.js} +1 -1
- package/{chunk-WJ2UEWWN.js → chunk-FBEBMNVC.js} +1 -1
- package/{chunk-QTHCFSIO.js → chunk-GH5Z5SPB.js} +1 -1
- package/chunk-GORMHEMA.js +1 -0
- package/{chunk-ZZJ3I6VU.js → chunk-HAZ77TED.js} +1 -1
- package/{chunk-CLLHHYX6.js → chunk-HHDFSN55.js} +1 -1
- package/{chunk-PCSX3PMT.js → chunk-HHJMN4BS.js} +1 -1
- package/chunk-INXSCWN3.js +1 -0
- package/{chunk-GMAMEQ3J.js → chunk-IU2PF53V.js} +1 -1
- package/{chunk-2U35WLGR.js → chunk-J4XRJAME.js} +1 -1
- package/chunk-JPP5O2O5.js +1 -0
- package/{chunk-VWCH5LXN.js → chunk-KJ6CKUEI.js} +1 -1
- package/chunk-L725MUU2.js +160 -0
- package/{chunk-GQALHR6D.js → chunk-LRRVQSMI.js} +1 -1
- package/chunk-MFH4UZ6J.js +1 -0
- package/chunk-MXBBJHYA.js +202 -0
- package/{chunk-7Z3LI5KJ.js → chunk-NA5YXAMJ.js} +1 -1
- package/{chunk-E4IYO245.js → chunk-OLOVFS3Y.js} +1 -1
- package/{chunk-KZWUDERE.js → chunk-OYHHWU2W.js} +1 -1
- package/{chunk-MP3KNNAP.js → chunk-P3V7Z3A6.js} +1 -1
- package/{chunk-KOLMNCWR.js → chunk-PKN47FQE.js} +2 -2
- package/chunk-PV3NLUKC.js +1 -0
- package/chunk-Q33XIUDN.js +1 -0
- package/chunk-QCLAOAVG.js +1 -0
- package/chunk-QLUQTLSH.js +1 -0
- package/{chunk-7EIOX5NB.js → chunk-QSWSGP4B.js} +1 -1
- package/{chunk-LETMLT3U.js → chunk-QYXQYPHB.js} +1 -1
- package/chunk-RBTNUVT5.js +130 -0
- package/chunk-REXWFSN3.js +1 -0
- package/chunk-RMRYZWCP.js +1 -0
- package/chunk-SEGRH6C4.js +1 -0
- package/chunk-TT745CJN.js +1 -0
- package/{chunk-QDMJKW6E.js → chunk-TVNXFJII.js} +1 -1
- package/chunk-UWNAF5OL.js +1 -0
- package/{chunk-ZJXOMTHP.js → chunk-UYC454VQ.js} +1 -1
- package/{chunk-MFLZ4HZM.js → chunk-VFEEFGWW.js} +1 -1
- package/chunk-VVHTNAHQ.js +1 -0
- package/{chunk-ZD25QBHW.js → chunk-VYK2CQ72.js} +1 -1
- package/{chunk-IZLAA63M.js → chunk-W24I5WPW.js} +1 -1
- package/{chunk-GNCW5Q2A.js → chunk-W4SAEISC.js} +12 -12
- package/chunk-WSZ5MU6V.js +1 -0
- package/{chunk-CEGCR3XO.js → chunk-XILGARZ5.js} +1 -1
- package/chunk-XJEZJFWN.js +1 -0
- package/chunk-XKI7WLHE.js +1 -0
- package/chunk-YDEVG4CR.js +1 -0
- package/{chunk-RFFPFL5K.js → chunk-YO23YVSC.js} +1 -1
- package/{chunk-EDULXXOB.js → chunk-YOUPD27G.js} +1 -1
- package/{chunk-Q4RMIZY5.js → chunk-YRCXWYJC.js} +1 -1
- package/chunk-ZNIFAG4O.js +1 -0
- package/index.html +4 -4
- package/main-OTYR5DFR.js +1 -0
- package/package.json +1 -1
- package/{styles-6GJ4BYO3.css → styles-TTHIY3OR.css} +1 -1
- package/chunk-7BNTEMFA.js +0 -1
- package/chunk-BVWHK6FQ.js +0 -1
- package/chunk-BZKPOL7V.js +0 -1
- package/chunk-CF5CCUC7.js +0 -1
- package/chunk-CYY5JJLN.js +0 -1
- package/chunk-D7VZOVPI.js +0 -130
- package/chunk-DCKLQNGL.js +0 -1
- package/chunk-G7JKAPFA.js +0 -160
- package/chunk-HERTD63G.js +0 -1
- package/chunk-I4KQVYMH.js +0 -1
- package/chunk-J6QKJ5IE.js +0 -1
- package/chunk-JKTB4WTW.js +0 -1
- package/chunk-JPZJ6KUM.js +0 -1
- package/chunk-KYPFNXXK.js +0 -1
- package/chunk-LNWZEFKE.js +0 -1
- package/chunk-LW5XWJJA.js +0 -1
- package/chunk-M3N34WLW.js +0 -1
- package/chunk-O3H5V64X.js +0 -1
- package/chunk-OW2GYBXF.js +0 -7
- package/chunk-QLPEPLQ4.js +0 -1
- package/chunk-UD2JTFXA.js +0 -1
- package/chunk-UQMQ34KD.js +0 -1
- package/chunk-VH4SDRSP.js +0 -129
- package/chunk-W223GVMJ.js +0 -1
- package/chunk-WKDV7R2E.js +0 -1
- package/chunk-WPUAF2DP.js +0 -1
- package/chunk-WXJP4ZEP.js +0 -1
- package/chunk-Y3JWOPHT.js +0 -1
- package/chunk-ZEMTTJBT.js +0 -1
- package/main-SDHARJTN.js +0 -1
package/chunk-JPZJ6KUM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{J as K,N as v,Qc as H,V as E,X as A,ba as u,ca as B,ea as x,ga as r,h as F,m as o,mb as O,o as c,s as T,ta as N,w as S,x as k,xb as J,y as U,za as d,zb as G}from"./chunk-JP6RBSB3.js";import{a as j}from"./chunk-YQFG5XE2.js";var b=class{},W=(()=>{class a extends b{getTranslation(e){return o({})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=N(a)))(n||a)}})();static \u0275prov=u({token:a,factory:a.\u0275fac})}return a})(),w=class{},$=(()=>{class a{handle(e){return e.key}static \u0275fac=function(t){return new(t||a)};static \u0275prov=u({token:a,factory:a.\u0275fac})}return a})();function y(a,l){if(a===l)return!0;if(a===null||l===null)return!1;if(a!==a&&l!==l)return!0;let e=typeof a,t=typeof l,n,s,i;if(e==t&&e=="object")if(Array.isArray(a)){if(!Array.isArray(l))return!1;if((n=a.length)==l.length){for(s=0;s<n;s++)if(!y(a[s],l[s]))return!1;return!0}}else{if(Array.isArray(l))return!1;i=Object.create(null);for(s in a){if(!y(a[s],l[s]))return!1;i[s]=!0}for(s in l)if(!(s in i)&&typeof l[s]<"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 z(a,l){let e=Object.assign({},a);return M(a)&&M(l)&&Object.keys(l).forEach(t=>{M(l[t])?t in a?e[t]=z(a[t],l[t]):Object.assign(e,{[t]:l[t]}):Object.assign(e,{[t]:l[t]})}),e}var m=class{},q=(()=>{class a extends m{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,t){let n;return typeof e=="string"?n=this.interpolateString(e,t):typeof e=="function"?n=this.interpolateFunction(e,t):n=e,n}getValue(e,t){let n=typeof t=="string"?t.split("."):[t];t="";do t+=n.shift(),h(e)&&h(e[t])&&(typeof e[t]=="object"||!n.length)?(e=e[t],t=""):n.length?t+=".":e=void 0;while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(n,s)=>{let i=this.getValue(t,s);return h(i)?i:n}):e}static \u0275fac=(()=>{let e;return function(n){return(e||(e=N(a)))(n||a)}})();static \u0275prov=u({token:a,factory:a.\u0275fac})}return a})(),C=class{},X=(()=>{class a extends C{compile(e,t){return e}compileTranslations(e,t){return e}static \u0275fac=(()=>{let e;return function(n){return(e||(e=N(a)))(n||a)}})();static \u0275prov=u({token:a,factory:a.\u0275fac})}return a})(),D=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new d;onLangChange=new d;onDefaultLangChange=new d},P=new x("USE_STORE"),R=new x("USE_DEFAULT_LANG"),I=new x("DEFAULT_LANGUAGE"),V=new x("USE_EXTEND"),_=(()=>{class a{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new d;_onLangChange=new d;_onDefaultLangChange=new d;_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,n,s,i,f=!0,g=!1,p=!1,L){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=s,this.missingTranslationHandler=i,this.useDefaultLang=f,this.isolate=g,this.extend=p,L&&this.setDefaultLang(L)}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(v(1)).subscribe(n=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return o(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe(v(1)).subscribe(n=>{this.changeLang(e)}),t):(this.changeLang(e),o(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(E(1),v(1));return this.loadingTranslations=t.pipe(T(n=>this.compiler.compileTranslations(n,e)),E(1),v(1)),this.loadingTranslations.subscribe({next:n=>{this.translations[e]=this.extend&&this.translations[e]?j(j({},n),this.translations[e]):n,this.updateLangs(),this.pending=!1},error:n=>{this.pending=!1}}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),(n||this.extend)&&this.translations[e]?this.translations[e]=z(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,n){let s;if(t instanceof Array){let i={},f=!1;for(let g of t)i[g]=this.getParsedResult(e,g,n),c(i[g])&&(f=!0);if(f){let g=t.map(p=>c(i[p])?i[p]:o(i[p]));return U(g).pipe(T(p=>{let L={};return p.forEach((Q,Y)=>{L[t[Y]]=Q}),L}))}return i}if(e&&(s=this.parser.interpolate(this.parser.getValue(e,t),n)),typeof s>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),typeof s>"u"){let i={key:t,translateService:this};typeof n<"u"&&(i.interpolateParams=n),s=this.missingTranslationHandler.handle(i)}return typeof s<"u"?s:t}get(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(K(n=>(n=this.getParsedResult(n,e,t),c(n)?n:o(n))));{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return c(n)?n:o(n)}}getStreamOnTranslationChange(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');return S(k(()=>this.get(e,t)),this.onTranslationChange.pipe(A(n=>{let s=this.getParsedResult(n.translations,e,t);return typeof s.subscribe=="function"?s:o(s)})))}stream(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');return S(k(()=>this.get(e,t)),this.onLangChange.pipe(A(n=>{let s=this.getParsedResult(n.translations,e,t);return c(s)?s:o(s)})))}instant(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(c(n)){if(e instanceof Array){let s={};return e.forEach((i,f)=>{s[e[f]]=e[f]}),s}return e}else return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}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)(r(D),r(b),r(C),r(m),r(w),r(R),r(P),r(V),r(I))};static \u0275prov=u({token:a,factory:a.\u0275fac})}return a})();var fe=(()=>{class a{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,t){this.translate=e,this._ref=t}updateValue(e,t,n){let s=i=>{this.value=i!==void 0?i:e,this.lastKey=e,this._ref.markForCheck()};if(n){let i=this.translate.getParsedResult(n,e,t);c(i.subscribe)?i.subscribe(s):s(i)}this.translate.get(e,t).subscribe(s)}transform(e,...t){if(!e||!e.length)return e;if(y(e,this.lastKey)&&y(t,this.lastParams))return this.value;let n;if(h(t[0])&&t.length)if(typeof t[0]=="string"&&t[0].length){let s=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(s)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else typeof t[0]=="object"&&!Array.isArray(t[0])&&(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,s.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n))})),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)(O(_,16),O(H,16))};static \u0275pipe=G({name:"translate",type:a,pure:!1,standalone:!1});static \u0275prov=u({token:a,factory:a.\u0275fac})}return a})(),ge=(()=>{class a{static forRoot(e={}){return{ngModule:a,providers:[e.loader||{provide:b,useClass:W},e.compiler||{provide:C,useClass:X},e.parser||{provide:m,useClass:q},e.missingTranslationHandler||{provide:w,useClass:$},D,{provide:P,useValue:e.isolate},{provide:R,useValue:e.useDefaultLang},{provide:V,useValue:e.extend},{provide:I,useValue:e.defaultLanguage},_]}}static forChild(e={}){return{ngModule:a,providers:[e.loader||{provide:b,useClass:W},e.compiler||{provide:C,useClass:X},e.parser||{provide:m,useClass:q},e.missingTranslationHandler||{provide:w,useClass:$},{provide:P,useValue:e.isolate},{provide:R,useValue:e.useDefaultLang},{provide:V,useValue:e.extend},{provide:I,useValue:e.defaultLanguage},_]}}static \u0275fac=function(t){return new(t||a)};static \u0275mod=J({type:a});static \u0275inj=B({})}return a})();var Z=[{path:"/pages/dashboard",title:"Dashboard",iconName:"fa-light fa-display-chart-up",class:"",extralink:!1,label:"",labelClass:"",submenu:[]},{path:"/pages/cash-bank",title:"Cash and Bank",iconName:"fa-light fa-building-columns",class:"",extralink:!1,label:"",labelClass:"",submenu:[]},{path:"",title:"COA",iconName:"fa-light fa-calculator",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/chart-of-account/account",title:"Accounts",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/chart-of-account/coa-types",title:"Category",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]},{path:"/pages/journal",title:"Journal",iconName:"fa-light fa-file-lines",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/journal/journal-entry",title:"Manual Journal",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/journal/record-expense",title:"Record Expense",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/journal/receive-money",title:"Receive Money",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]},{path:"/pages/report",title:"Reports",iconName:"fa-light fa-chart-column",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/report/general-ledger",title:"General Ledger",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/report/profit-loss",title:"Profit & Loss",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/report/balance-sheet",title:"Balance Sheet",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]},{path:"",title:"Recurring",iconName:"fa-light fa-money-bill-1",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/recurring/recurring-expense",title:"Recurring Expenses",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/recurring/asset-value",title:"Asset Value",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/recurring/post-to-journal",title:"Post Recurring Expenses",iconName:"",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]},{path:"",title:"Tools",iconName:"fa-light fa-wrench",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/tools/generate-coa",title:"Update COA Balance",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/tools/unbalance-journal",title:"Unbalance Journal",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]},{path:"/pages/migrate",title:"Migrate",iconName:"fa-light fa-paste",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/migrate/coa-category",title:"COA Category",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/migrate/chart-of-account",title:"Chart of Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/migrate/coa-configuration",title:"COA Configuration",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/migrate/outlet-account",title:"COA Outlet Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/migrate/payment-account",title:"Payment Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/migrate/writeoff-outlet",title:"Write Off Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/migrate/tax-account",title:"Tax Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/migrate/expense-account",title:"Expense Account",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/migrate/manual-journal",title:"Manual Journals",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]},{path:"/pages/ticket",title:"Generate Journal",iconName:"fa-light fa-book",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/generate-journal/invoice",title:"Customer Invoice",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/generate-journal/supplier-bill",title:"Supplier Bill",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/generate-journal/shift",title:"Shift",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/generate-journal/adjustment",title:"Adjustment",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/generate-journal/join-invoice",title:"Join Invoce",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/generate-journal/join-bill",title:"Join Bill",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]},{path:"/pages/pos-setup",title:"POS Setup",iconName:"fa-light fa-gears",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/pos-setup/global",title:"Global",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/pos-setup/outlets",title:"Outlet",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/pos-setup/payments",title:"Payments",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/pos-setup/taxs",title:"Tax",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/pos-setup/expense-option",title:"Expense Option",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/pos-setup/writeoff",title:"Write Off",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]},{path:"/pages/ticket",title:"Accounting Setup",iconName:"fa-light fa-gears",class:"has-arrow",label:"",labelClass:"",extralink:!1,submenu:[{path:"/pages/accounting-setup/accounting-integration",title:"Configuration",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/accounting-setup/closing-entries",title:"Closing",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/accounting-setup/format-journal",title:"Format Journal",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/accounting-setup/opening-balance-form",title:"Opening Balance",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"/pages/accounting-setup/api-crendetial",title:"API Credential",iconName:"solar:stop-circle-line-duotone",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}]}];var Le=(()=>{class a{constructor(){this.collapseSidebar=!1,this.fullScreen=!1,this.MENUITEMS=Z,this.items=new F(this.MENUITEMS)}static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275prov=u({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{b as a,fe as b,ge as c,Le as d};
|
package/chunk-KYPFNXXK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,b as A}from"./chunk-O4QM64EH.js";import{d as V,k as W}from"./chunk-B6WHUOA5.js";import"./chunk-E4IYO245.js";import"./chunk-CF5CCUC7.js";import"./chunk-KOLMNCWR.js";import"./chunk-GQALHR6D.js";import"./chunk-AAV2CBYL.js";import"./chunk-7Z3LI5KJ.js";import"./chunk-6JMIM647.js";import"./chunk-LETMLT3U.js";import"./chunk-WJ2UEWWN.js";import"./chunk-RSNWAAG7.js";import{b as Q}from"./chunk-VLOOUXSK.js";import{h as J}from"./chunk-ZJXOMTHP.js";import"./chunk-I7SRN7BD.js";import{a as N,b as j}from"./chunk-2U35WLGR.js";import{a as S,b as G,c as K,d as U,e as q,f as $,g as z}from"./chunk-JBSIAXM5.js";import"./chunk-QTHCFSIO.js";import"./chunk-BOLQVS6Y.js";import"./chunk-BHV2HCJY.js";import{x as H}from"./chunk-FMVCTBCQ.js";import{a as O}from"./chunk-MP3KNNAP.js";import"./chunk-MFLZ4HZM.js";import{G as R,N as F,l as I,m as L}from"./chunk-B63BKC6F.js";import"./chunk-F2X3VGZZ.js";import{Ac as x,Cb as g,Jc as k,Kb as m,Kc as B,Mc as c,Nb as b,Ub as n,Vb as a,Wb as M,X as u,Yc as D,ba as y,c as f,ec as C,gb as l,ha as p,qc as i,rc as s,sc as T,wb as P,yc as w,zc as _}from"./chunk-JP6RBSB3.js";import{a as d,b as h}from"./chunk-YQFG5XE2.js";var X=(()=>{class t{constructor(){this.httpService=p(O)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(){return this.httpService.get("","api/CashAndBank/GetCashAndBank")}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var et={data:[],filter:[],options:{hasGeneralLedger:!1}},E=G(z("cash-bank-store"),$(et),K(t=>({totalBalance:D(()=>t.data().reduce((o,e)=>o+e.balance,0))})),q(t=>{let o=p(X);return{loadCashAndBankLoader:v(f(u(()=>o.fetchCashAndBankLoader().pipe(A({next:e=>{console.log("response",e),S(t,r=>h(d({},r),{options:e.options}))},error:e=>{console.log("error",e)}}))))),loadCashAndBankData:v(f(u(()=>o.fetchCashAndBankData().pipe(A({next:e=>{console.log("response",e),S(t,r=>h(d({},r),{data:e}))},error:e=>{console.log("error",e)}})))))}}),U({onInit(t){t.loadCashAndBankLoader(),t.loadCashAndBankData()}}));var nt=["class","page"],at=()=>({height:"calc(100vh - 70px)"}),ot=t=>[t],it=()=>["/pages/report/general-ledger"],rt=t=>({id:t});function lt(t,o){t&1&&(n(0,"tr")(1,"th"),i(2,"Code"),a(),n(3,"th"),i(4,"Name"),a(),n(5,"th",7),i(6,"Balance"),a()())}function pt(t,o){if(t&1&&(n(0,"tr")(1,"td"),i(2),a(),n(3,"td")(4,"a",8),i(5),a()(),n(6,"td",7)(7,"a",9),i(8),k(9,"number"),a()()()),t&2){let e=o.$implicit;l(2),s(e.code),l(2),m("routerLink",x(8,ot,"/pages/chart-of-account/account/"+e.accountID)),l(),s(e.name),l(2),m("routerLink",_(10,it))("queryParams",x(11,rt,e.accountID)),l(),s(B(9,6,e.balance))}}function ct(t,o){if(t&1&&(n(0,"tr"),M(1,"td"),n(2,"td",10),i(3,"Total"),a(),n(4,"td",11),i(5),k(6,"number"),a()()),t&2){let e=C(2);l(5),T(" ",B(6,1,e.store.totalBalance())," ")}}function mt(t,o){t&1&&(n(0,"tr")(1,"td",12)(2,"span"),i(3,"No records found."),a()()())}function st(t,o){if(t&1&&(n(0,"p-panel")(1,"p-table",6),g(2,lt,7,0,"ng-template",null,1,c)(4,pt,10,13,"ng-template",null,2,c)(6,ct,7,3,"ng-template",null,3,c)(8,mt,4,0,"ng-template",null,4,c),a()()),t&2){let e=C();b(_(4,at)),l(),m("value",e.store.data())("scrollHeight","calc(100vh - 100px)")}}var Y=(()=>{class t{constructor(){this.store=p(E),this.routeInfo=Z}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-cash-bank",8,"page"]],features:[w([E])],attrs:nt,decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["footer",""],["emptymessage",""],["pageTitle","Cash and Bank"],["scrollable","",3,"value","scrollHeight"],[1,"text-end"],[1,"link","link-primary",3,"routerLink"],[1,"link","link-primary",3,"routerLink","queryParams"],[1,"fw-bold"],[1,"text-end","fw-bold"],["colspan","3"]],template:function(r,dt){r&1&&(n(0,"app-main-panel",5),g(1,st,10,5,"ng-template",null,0,c),a())},dependencies:[L,I,J,H,W,V,Q,F,R,j,N],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return t})();var qt=[{path:"",component:Y,children:[]}],Z={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{qt as CASH_BANK_ROUTES,Z as CASH_BANK_ROUTE_PAGE};
|
package/chunk-LNWZEFKE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ke,b as Qe,c as Xe,d as Ye,e as Ze,f as et}from"./chunk-WKMCO5GR.js";import{a as ze,b as Ue,c as qe}from"./chunk-7SS54GTW.js";import{a as We,b as He}from"./chunk-CLLHHYX6.js";import{a as Le}from"./chunk-MDH73MG3.js";import{b as $e}from"./chunk-CEGCR3XO.js";import"./chunk-LW5XWJJA.js";import{a as Ve,b as je}from"./chunk-RFFPFL5K.js";import"./chunk-EFM3IZ4E.js";import{a as Pe,b as Oe,d as ke,k as Re}from"./chunk-B6WHUOA5.js";import{a as Ne,b as Me}from"./chunk-E4IYO245.js";import"./chunk-CF5CCUC7.js";import{a as Je}from"./chunk-XKCLERWG.js";import{a as K,b as Q}from"./chunk-XSV3RUSY.js";import"./chunk-KOLMNCWR.js";import{a as Ge,b as Be}from"./chunk-GQALHR6D.js";import"./chunk-AAV2CBYL.js";import{a as De,b as we}from"./chunk-7Z3LI5KJ.js";import"./chunk-6JMIM647.js";import"./chunk-LETMLT3U.js";import"./chunk-WJ2UEWWN.js";import"./chunk-RSNWAAG7.js";import{b as X}from"./chunk-VLOOUXSK.js";import{h as M}from"./chunk-ZJXOMTHP.js";import"./chunk-I7SRN7BD.js";import{a as j,b as $}from"./chunk-2U35WLGR.js";import"./chunk-JBSIAXM5.js";import"./chunk-QTHCFSIO.js";import{n as H,o as N,w as J,x as V}from"./chunk-BOLQVS6Y.js";import"./chunk-BHV2HCJY.js";import{Ia as Ie,Ma as Te,b as G,c as re,e as T,f as B,j as Ae,l as P,m as q,n as Ee,o as O,v as k,x as W,y as R}from"./chunk-FMVCTBCQ.js";import{a as Fe}from"./chunk-MP3KNNAP.js";import{a as ye}from"./chunk-MFLZ4HZM.js";import{D as he,G as xe,N as Se,c as _e,f as be,l as Ce,m as I}from"./chunk-B63BKC6F.js";import"./chunk-F2X3VGZZ.js";import{Ac as ne,Cb as g,Ga as z,Jc as ie,Kb as p,Kc as oe,L as pe,Mc as f,Nb as U,Qb as y,Sb as F,Tb as A,Ub as i,Vb as n,Wb as c,Y as ce,Z as w,_b as h,ba as ue,dc as E,ec as s,g as le,gb as a,ha as u,mb as se,pa as b,qa as C,qc as o,rc as x,s as me,sc as te,vc as de,wb as S,wc as fe,xc as ge,yc as ve,zc as D}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var _=(()=>{class t{#e=u(Fe);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)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ut=()=>({height:"calc(100vh - 100px)"});function st(t,m){if(t&1){let e=h();i(0,"div",4)(1,"a",5),o(2,"Cancel"),n(),i(3,"p-button",6),E("click",function(){b(e);let l=s();return C(l.updateAccountingIntegration())}),n()()}}function dt(t,m){if(t&1&&(i(0,"p-tab",8),o(1),n()),t&2){let e=m.$implicit,r=m.$index;p("value",r),a(),x(e)}}function ft(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",43),i(2,"label",44),o(3),n()()),t&2){let e=m.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),x(e.value)}}function gt(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",45),i(3,"label",44),o(4),n()()()),t&2){let e=m.$implicit;a(2),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),x(e.value)}}function vt(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",46),i(3,"label",44),o(4),n()()()),t&2){let e=m.$implicit;a(2),p("value",e.key)("inputId",e.key.toString()),a(),p("for",e.key),a(),x(e.value)}}function _t(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",47),i(3,"label",44),o(4),n()()()),t&2){let e=m.$implicit;a(2),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),x(e.value)}}function bt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),F(4,dt,2,2,"p-tab",8,y),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),o(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),o(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),o(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),o(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),o(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),o(37,"Reset Every"),n(),i(38,"div",24),F(39,ft,4,4,"div",25,y),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),o(45,"Journal Generate"),n(),i(46,"p"),o(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),o(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),o(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),o(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),o(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),o(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),o(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),o(88,"Audit Journal Transaction"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),F(92,gt,5,4,"div",40,y),n()()()(),i(94,"div")(95,"label",41),o(96,"Accounting For Treatment"),n(),i(97,"div",12)(98,"div",39)(99,"div",12),F(100,vt,5,4,"div",40,y),n()()()(),i(102,"div")(103,"label",42),o(104,"Configure Report Access Control in COA"),n(),i(105,"div",12)(106,"div",39)(107,"div",12),F(108,_t,5,4,"div",40,y),n()()()()()()()()()()()()),t&2){let e,r,l,d,L,v=s();U(D(8,ut)),a(2),p("value",0)("formGroup",v.form),a(2),A(v.tabs()),a(3),p("value",0),a(26),p("options",(e=v.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),a(6),A((r=v.accountingIntegration())==null||r.options==null?null:r.options.resetPeriods),a(2),p("value",1),a(38),p("value",2),a(13),A((l=v.accountingIntegration())==null||l.options==null?null:l.options.auditType),a(8),A((d=v.accountingIntegration())==null||d.options==null?null:d.options.generatePrepaidJournal),a(8),A((L=v.accountingIntegration())==null||L.options==null?null:L.options.entityAccess)}}var nt=(()=>{class t{constructor(){this.accountingSetupService=u(_),this.fb=u(k).nonNullable,this.tabs=z(["Numbering","Journal","Report"]),this.accountingIntegration=z(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(w(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(r){return new(r||t)}}static{this.\u0275cmp=S({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","accountingAuditType",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],["for","accountingEntityAccess",1,"fs-4","mb-2"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","accountingAuditType","formControlName","accountingAuditType",3,"value","inputId"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(r,l){r&1&&(i(0,"app-main-panel",3),g(1,st,4,0,"ng-template",null,0,f)(3,bt,110,9,"ng-template",null,1,f),n())},dependencies:[I,et,Ze,Ye,Xe,Ke,Qe,M,X,Oe,Pe,R,T,B,P,O,q,N,Be,Ge,je,Ve,Se,xe,V,J,we,De,Q,K],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:"calc(100vh - 250px)"}),xt=()=>[],it=()=>({});function St(t,m){if(t&1){let e=h();i(0,"div")(1,"p-button",6),E("onClick",function(){b(e);let l=s();return C(l.submitForm())}),n()()}}function yt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Date"),n(),c(3,"p-datePicker",14),n())}function Ft(t,m){t&1&&(i(0,"tr")(1,"th",20),o(2,"Account Name"),n(),i(3,"th",21),o(4,"Debit"),n(),i(5,"th",21),o(6,"Credit"),n()())}function At(t,m){if(t&1&&(i(0,"tr",10)(1,"td",20),o(2),n(),i(3,"td"),c(4,"input",22),n(),i(5,"td"),c(6,"input",23),n()()),t&2){let e,r=m.$implicit,l=m.rowIndex,d=s(4);p("formGroupName",l),a(2),te(" ",(e=d.asFormGroup(r).get("accountName"))==null?null:e.value," "),a(2),p("autoNumeric",D(4,it)),a(2),p("autoNumeric",D(5,it))}}function Et(t,m){if(t&1&&(i(0,"div",10)(1,"h4",15),o(2),n(),i(3,"div",16)(4,"p-table",17),g(5,Ft,7,0,"ng-template",18)(6,At,7,6,"ng-template",19),n()()()),t&2){let e=m.$implicit,r=m.$index,l=s(3);p("formGroupName",r),a(2),te(" ",e.get("name").value," "),a(2),p("value",l.getItemsArray(l.asFormGroup(e)).controls)}}function It(t,m){if(t&1&&(i(0,"tr")(1,"td")(2,"p",24),o(3,"Total"),n()(),i(4,"td",25)(5,"p",24),o(6),ie(7,"number"),n()(),i(8,"td",25)(9,"p",24),o(10),ie(11,"number"),n()()()),t&2){let e=s(3);a(6),x(oe(7,2,e.subtotalDebit)),a(4),x(oe(11,4,e.subtotalCredit))}}function Tt(t,m){if(t&1&&(i(0,"p-panel",8),g(1,yt,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",9),F(6,Et,7,3,"div",10,y),n()(),i(8,"p-table",11),g(9,It,12,6,"ng-template",null,3,f),n()()),t&2){let e=s(2);p("formGroup",e.formGroups),a(4),U(D(4,ht)),a(2),A(e.formsArray.controls),a(2),p("value",D(5,xt))}}function Nt(t,m){if(t&1&&g(0,Tt,11,6,"p-panel",7),t&2){let e=s();p("ngIf",e.formGroups)}}var rt=(()=>{class t{constructor(){this.destroy$=new le,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=u(k),this.accSetupService=u(_),this.dayjsService=u($e),this.date=new Date,this.routes=u(he)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(pe(300),ce(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 r=e.map(l=>this.createItemGroup(l));return this.fb.array(r)}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(me(e=>e.data),Je("response"),w(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(l=>l.items&&l.items.length>0).forEach(l=>{this.formsArray.push(this.createFormGroup(l))})})).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(r=>{let l=this.getItemsArray(r),d=l.controls.reduce((v,Z)=>{let ee=Z.get("debitAmount").value||0;return v+ee},0),L=l.controls.reduce((v,Z)=>{let ee=Z.get("creditAmount").value||0;return v+ee},0);this.subtotalDebit+=d,this.subtotalCredit+=L})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((r,[l,d])=>(l==="date"?r[l]=d instanceof Date?this.dayjsService.format(d):d:l==="forms"?r.form=d:r[l]=d,r),{});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(r){return new(r||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-acc-opening-balance-form"]],features:[ve([Ie])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["header",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[3,"value"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],["dataKey","id",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],["formControlName","debitAmount",1,"fs-3","form-control",3,"autoNumeric"],["formControlName","creditAmount",1,"fs-3","form-control",3,"autoNumeric"],[1,"fw-semibold","fs-4"],[1,"text-end",2,"width","200px"]],template:function(r,l){r&1&&(i(0,"app-main-panel",4),g(1,St,2,0,"ng-template",null,0,f)(3,Nt,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",5))},dependencies:[M,X,Te,I,be,Ce,Me,Ne,Re,ke,Q,K,W,G,T,B,N,qe,V,J,$,j,Le,R,P,O,q,Ee,He,We],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var at=t=>({"ng-invalid ng-dirty":t});function Dt(t,m){if(t&1){let e=h();i(0,"p-button",4),E("onClick",function(){b(e);let l=s();return C(l.saveCredentials())}),o(1,"Update"),n()}}function wt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Account"),n(),i(3,"small",14),o(4,"Configure Client ID and Client Secret"),n()())}function Gt(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,wt,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=s();a(4),p("formGroup",e.credentialForm),a(5),p("ngClass",ne(3,at,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),a(5),p("ngClass",ne(5,at,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var lt=(()=>{class t{constructor(e){this.fb=e,this.setupService=u(_)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(w(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[re.required]],clientSecret:["",[re.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()}static{this.\u0275fac=function(r){return new(r||t)(se(k))}}static{this.\u0275cmp=S({type:t,selectors:[["app-api-credential"]],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(r,l){r&1&&(i(0,"app-main-panel",3),g(1,Dt,2,0,"ng-template",null,0,f)(3,Gt,15,7,"ng-template",null,1,f),n())},dependencies:[I,_e,R,G,T,B,P,O,N,H,$,j,M,V,J],encapsulation:2})}}return t})();function Bt(t,m){if(t&1){let e=h();i(0,"button",4),E("click",function(){b(e);let l=s();return C(l.onFormatJournal())}),o(1," Format "),n()}}function Pt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),o(3,"Journal Configuration"),n(),i(4,"small",15),o(5," Enter your account information to format journal entries "),n()()())}function Ot(t,m){if(t&1){let e=h();i(0,"div",5)(1,"p-panel"),g(2,Pt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),ge("ngModelChange",function(l){b(e);let d=s();return fe(d.subdomain,l)||(d.subdomain=l),C(l)}),n(),i(8,"label",10),o(9,"Subdomain"),n()(),i(10,"small",11),o(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=s();a(7),de("ngModel",e.subdomain)}}var mt=(()=>{class t{constructor(){this.setupService=u(_),this.subdomain=z(""),this.toastrService=u(ye)}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(r){return new(r||t)}}static{this.\u0275cmp=S({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(r,l){r&1&&(i(0,"app-main-panel",3),g(1,Bt,2,0,"ng-template",null,0,f)(3,Ot,12,1,"ng-template",null,1,f),n())},dependencies:[I,W,G,T,Ae,N,H,M,$,j,Ue,ze],encapsulation:2})}}return t})();var pt=()=>u(_).fetchOpeningBalanceFormConfiguration();var _i=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:nt},{path:"opening-balance-form",component:rt,resolve:{data:pt}},{path:"api-crendetial",component:lt},{path:"format-journal",component:mt},{path:"closing-entries",loadComponent:()=>import("./chunk-CYY5JJLN.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-WPUAF2DP.js").then(t=>t.ClosingFormComponent)}]}];export{_i as ACCOUNTING_SETUP_ROUTES};
|
package/chunk-LW5XWJJA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={production:!0,version:"1.9.9",changelogUrl:"https://changelog.dealpos.com/?categories=cat_O6pYAT7GI1mts",defaultTimezone:"Asia/Jakarta"};export{e as a};
|
package/chunk-M3N34WLW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as V,b as oe}from"./chunk-ZD25QBHW.js";import"./chunk-CEGCR3XO.js";import"./chunk-LW5XWJJA.js";import{a as te,b as ie}from"./chunk-E4IYO245.js";import"./chunk-CF5CCUC7.js";import{a as K,b as Q}from"./chunk-XSV3RUSY.js";import{a as ne,b as re}from"./chunk-7Z3LI5KJ.js";import"./chunk-6JMIM647.js";import"./chunk-LETMLT3U.js";import{b as ee}from"./chunk-VLOOUXSK.js";import{h as $}from"./chunk-ZJXOMTHP.js";import"./chunk-I7SRN7BD.js";import{a as Y,b as Z}from"./chunk-2U35WLGR.js";import"./chunk-JBSIAXM5.js";import"./chunk-QTHCFSIO.js";import{w as U,x as X}from"./chunk-BOLQVS6Y.js";import"./chunk-BHV2HCJY.js";import{e as G,j as H,x as q}from"./chunk-FMVCTBCQ.js";import"./chunk-MP3KNNAP.js";import{a as A}from"./chunk-MFLZ4HZM.js";import{i as z,m as R}from"./chunk-B63BKC6F.js";import"./chunk-F2X3VGZZ.js";import{Cb as L,Ga as b,Jc as T,Kb as u,Kc as P,Mc as M,Nb as S,Ub as r,V as E,Vb as o,Wb as C,X as B,Z as W,_b as h,dc as f,ec as m,gb as s,h as J,ha as x,pa as l,qa as p,qc as _,ra as I,s as y,sa as N,vc as c,wb as O,wc as g,xc as d,yc as j,zc as F}from"./chunk-JP6RBSB3.js";import{a as D}from"./chunk-YQFG5XE2.js";var ae=()=>({height:"calc(100vh - 100px)"});function le(a,v){if(a&1){let t=h();r(0,"div",4)(1,"p-button",5),f("onClick",function(){l(t);let e=m();return p(e.onFormat())}),o(),r(2,"p-button",6),f("onClick",function(){l(t);let e=m();return p(e.openMigrateDialog())}),o()()}}function pe(a,v){if(a&1){let t=h();r(0,"div",7)(1,"div",8)(2,"label",9),_(3,"From"),o(),r(4,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().From,e)||(n.filter().From=e),p(e)}),o()(),r(5,"div",8)(6,"label",9),_(7,"To"),o(),r(8,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().To,e)||(n.filter().To=e),p(e)}),o()(),r(9,"div",8)(10,"label",9),_(11,"Page Number"),o(),r(12,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageNumber,e)||(n.filter().PageNumber=e),p(e)}),o()(),r(13,"div",8)(14,"label",9),_(15,"Page Size"),o(),r(16,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageSize,e)||(n.filter().PageSize=e),p(e)}),o()()()}if(a&2){let t=m();s(4),u("showIcon",!0),c("ngModel",t.filter().From),s(4),u("showIcon",!0),c("ngModel",t.filter().To),s(4),c("ngModel",t.filter().PageNumber),s(4),c("ngModel",t.filter().PageSize)}}function me(a,v){if(a&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",12),C(3,"app-migration-cards",13),T(4,"async"),I(),r(5,"svg",14),C(6,"path",15),o(),N(),C(7,"app-migration-cards",16),T(8,"async"),o()()()),a&2){let t=m();S(F(12,ae)),s(),S(F(13,ae)),s(2),u("migrationCount",P(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),s(4),u("migrationCount",P(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var We=(()=>{class a{constructor(){this.migrateService=x(V),this.refresh$=new J(void 0),this.toastr=x(A),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null}ngOnInit(){let t=this.refresh$.pipe(B(()=>this.migrateService.getManualJournalCount()),E(1));this.countInPOS$=t.pipe(y(i=>Number(i.pos))),this.countInBooks$=t.pipe(y(i=>Number(i.books)))}openMigrateDialog(){this.previousFilter=D({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(W(()=>{this.isFilterDialogOpen.update(t=>!t),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=O({type:a,selectors:[["app-manual-journal"]],features:[j([V])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,e){if(i&1){let n=h();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(n),p(e.onMigrate())}),d("isDialogFilterVisibleChange",function(w){return l(n),g(e.isFilterDialogOpen,w)||(e.isFilterDialogOpen=w),p(w)}),f("filterCanceled",function(){return l(n),p(e.onFilterCanceled())}),L(1,le,3,0,"ng-template",null,0,M)(3,pe,17,6,"ng-template",null,1,M)(5,me,9,14,"ng-template",null,2,M),o()}i&2&&(u("pageTitle",e.pageTitle),c("isDialogFilterVisible",e.isFilterDialogOpen))},dependencies:[$,R,z,ee,X,U,Q,K,Z,Y,oe,ie,te,q,G,H,re,ne],encapsulation:2})}}return a})();export{We as ManualJournalComponent};
|
package/chunk-O3H5V64X.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x,b as L}from"./chunk-ZD25QBHW.js";import"./chunk-CEGCR3XO.js";import"./chunk-LW5XWJJA.js";import{a as E,b as O}from"./chunk-XSV3RUSY.js";import"./chunk-VLOOUXSK.js";import{h as H}from"./chunk-ZJXOMTHP.js";import{b as N,c as G}from"./chunk-I7SRN7BD.js";import{a as R,b as D}from"./chunk-2U35WLGR.js";import"./chunk-JBSIAXM5.js";import"./chunk-QTHCFSIO.js";import{w as V,x as j}from"./chunk-BOLQVS6Y.js";import"./chunk-BHV2HCJY.js";import"./chunk-FMVCTBCQ.js";import"./chunk-MP3KNNAP.js";import{a as I}from"./chunk-MFLZ4HZM.js";import{i as $,m as F}from"./chunk-B63BKC6F.js";import"./chunk-F2X3VGZZ.js";import{Cb as P,Jc as l,Kb as p,Kc as m,Mc as h,Nb as d,Ub as o,V as T,Vb as n,Wb as c,X as M,Z as S,_b as w,dc as y,ec as s,gb as a,h as v,ha as u,pa as C,qa as f,ra as b,s as g,sa as k,wb as B,yc as A,zc as _}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=w();o(0,"div",3)(1,"p-button",4),y("onClick",function(){C(e);let r=s();return f(r.onFormatCOACategory())}),n(),o(2,"p-button",5),l(3,"async"),l(4,"async"),y("onClick",function(){C(e);let r=s();return f(r.onMigrateCoaCategory())}),n()()}if(i&2){let e=s();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),l(4,"async"),b(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),l(8,"async"),n()()()),i&2){let e=s();d(_(12,q)),a(),d(_(13,q)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ge=(()=>{class i{constructor(){this.migrateService=u(x),this.toastr=u(I),this.refresh$=new v(void 0),this.pageTitle="Chart of Account Category"}ngOnInit(){let e=this.refresh$.pipe(M(()=>this.migrateService.getCOACategoryCount()),S(t=>console.log("API response:",t)),T(1));this.countInPOS$=e.pipe(g(t=>Number(t.pos))),this.countInBooks$=e.pipe(g(t=>Number(t.books)))}onMigrateCoaCategory(){this.migrateService.migrateCoaCategory().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormatCOACategory(){confirm("Are you sure you want to format?")&&this.migrateService.formatManualCOACategory().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-coa-configuration"]],features:[A([x])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(o(0,"app-main-panel",2),P(1,J,5,6,"ng-template",null,0,h)(3,K,9,14,"ng-template",null,1,h),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,$,j,V,O,E,D,R,G,N,L],encapsulation:2})}}return i})();export{ge as CoaCategoryComponent};
|
package/chunk-OW2GYBXF.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as Te,b as Le}from"./chunk-PCSX3PMT.js";import{a as Ct,b as ye}from"./chunk-CEGCR3XO.js";import"./chunk-LW5XWJJA.js";import{a as Fe}from"./chunk-UD2JTFXA.js";import{b as ht,c as xt,d as St}from"./chunk-VWCH5LXN.js";import{a as Se,b as Ce}from"./chunk-Q4RMIZY5.js";import"./chunk-EDULXXOB.js";import{b as gt}from"./chunk-RFFPFL5K.js";import"./chunk-EFM3IZ4E.js";import{a as q,b as H}from"./chunk-O4QM64EH.js";import{a as ut,b as _t,d as he,k as xe}from"./chunk-B6WHUOA5.js";import{a as fe,b as ge}from"./chunk-E4IYO245.js";import"./chunk-CF5CCUC7.js";import{a as ft}from"./chunk-7F26ZTCS.js";import{a as be}from"./chunk-XKCLERWG.js";import{a as ne,b as De}from"./chunk-XSV3RUSY.js";import"./chunk-KOLMNCWR.js";import{b as Re}from"./chunk-GQALHR6D.js";import"./chunk-AAV2CBYL.js";import"./chunk-7Z3LI5KJ.js";import"./chunk-6JMIM647.js";import"./chunk-LETMLT3U.js";import"./chunk-WJ2UEWWN.js";import{e as ct}from"./chunk-RSNWAAG7.js";import{b as _e}from"./chunk-VLOOUXSK.js";import{f as dt,h as ue}from"./chunk-ZJXOMTHP.js";import"./chunk-I7SRN7BD.js";import{a as ae,b as le}from"./chunk-2U35WLGR.js";import{a as V,b as pe,c as me,d as ce,e as se,f as de,g as st}from"./chunk-JBSIAXM5.js";import"./chunk-QTHCFSIO.js";import{w as oe,x as re}from"./chunk-BOLQVS6Y.js";import"./chunk-BHV2HCJY.js";import{e as Q,f as X,g as pt,i as G,k as Z,l as ee,o as te,t as mt,v as we,y as ie}from"./chunk-FMVCTBCQ.js";import{a as lt}from"./chunk-MP3KNNAP.js";import{a as at}from"./chunk-MFLZ4HZM.js";import{D as rt,G as $,N as J,f as Ie,k as nt,l as z,m as U,s as ot}from"./chunk-B63BKC6F.js";import"./chunk-F2X3VGZZ.js";import{Ac as F,Cb as C,D as Ee,Ga as L,Jc as x,Kb as c,Kc as S,L as $e,Lc as tt,Mc as s,Nb as j,Pb as O,Qb as Me,Sb as ke,Tb as Be,Ub as n,V as Je,Vb as i,W as Qe,Wb as I,X as P,Yc as T,Z as M,Zc as it,_b as D,ba as Xe,c as A,cb as Ze,dc as w,ec as d,gb as l,ha as h,hc as et,pa as v,qa as b,qc as a,rc as _,s as Ue,sc as R,vc as Y,wb as k,wc as N,xc as W,yc as K,zc as E}from"./chunk-JP6RBSB3.js";import{a as g,b as y,c as Ve,e as ze}from"./chunk-YQFG5XE2.js";var B=(()=>{class t{constructor(){this.httpService=h(lt),this.authService=h(Fe)}fetchGeneralLedgerLoader(){return this.httpService.get(void 0,"api/GeneralLedgerLoader/GetFilter")}fetchGeneralLedgerReport(e){return this.httpService.post(void 0,"api/GeneralLedger/Get",e)}exportGeneralLedger(e){let o={responseType:"blob"};return this.httpService.post(void 0,"/api/GeneralLedgerExport/GetGeneralLedgerExport",e,o)}getCustomerSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:o})}getSupplierSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:o})}getCashierSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:o})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(e,o={}){let r=new ot({fromObject:Object.fromEntries(Object.entries(e).map(([f,u])=>[f,String(u)]))}),m=g({params:r},o);return this.httpService.get(void 0,"/api/BalanceSheet",m)}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(e,o={}){return this.httpService.post(void 0,"api/IncomeStatement/List",g({},e),o)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=Xe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ot={metadata:{filter:{listAccountID:[],from:null,to:null,listOutletID:[],listCategoryID:[],contactType:0,contactID:""},options:{accounts:[],outlets:[],contactTypeOptions:[]},roles:{isInEmptyOutletRole:!1}},items:{data:[],pageTitle:""},filter:{listAccountID:[],from:null,to:null,listOutletID:[],listCategoryID:[],contactType:1,contactID:null}},Oe=pe(de(Ot),st("General Ledger Store"),me(t=>({debitTotal:T(()=>t.items.data().reduce((p,e)=>p+e.data.reduce((o,r)=>o+(r.debitAmount||0),0),0)),creditTotal:T(()=>t.items.data().reduce((p,e)=>p+e.data.reduce((o,r)=>o+(r.creditAmount||0),0),0))})),se(t=>{let p=h(B),e={updateFilter:o=>{V(t,r=>y(g({},r),{filter:o}))},loadList:q(A(Ee(o=>o.listAccountID.length>0),P(o=>p.fetchGeneralLedgerReport(o).pipe(H({next:r=>{V(t,m=>y(g({},m),{items:r}))},error:r=>{console.error(r)}}))))),loadLoader:q(A(P(()=>p.fetchGeneralLedgerLoader().pipe(H({next:o=>{V(t,r=>y(g({},r),{metadata:o,filter:y(g({},r.filter),{listCategoryID:o.filter.listCategoryID})})),e.loadList(t.filter)},error:o=>{console.error(o)}})))))};return e}),ce({onInit:t=>{t.loadLoader()}}));var Pt=()=>({height:"calc(100vh - 70px)"}),jt=()=>({height:"calc(100vh - 100px)"}),Nt=t=>["/pages/journal/journal-entry/",t],qt=()=>({scrollHeight:"250px"});function Ht(t,p){if(t&1){let e=D();n(0,"div",11)(1,"a",12),a(2,"Return to Accounts"),i(),n(3,"p-button",13),w("onClick",function(){v(e);let r=d();return b(r.onExport())}),i()()}}function Yt(t,p){if(t&1&&(n(0,"div",11)(1,"span",16)(2,"h2",17),a(3),i()(),n(4,"span",16)(5,"h2",17),a(6),i()()()),t&2){let e=d().$implicit;l(3),_(e.name),l(3),R(" (",e.chartOfAccountCode,") ")}}function Wt(t,p){t&1&&(n(0,"tr")(1,"th",18),a(2,"Outlet"),i(),n(3,"th",18),a(4,"No."),i(),n(5,"th",18),a(6,"Date"),i(),n(7,"th",18),a(8,"Name"),i(),n(9,"th",18),a(10,"Description"),i(),n(11,"th",19),a(12,"Debit"),i(),n(13,"th",20),a(14,"Credit"),i(),n(15,"th",20),a(16,"Balance"),i()())}function Kt(t,p){if(t&1&&(n(0,"td",25),a(1,"Starting Balance"),i(),n(2,"td",26),a(3),x(4,"number"),i()),t&2){let e=d(2).$implicit;l(3),R(" ",S(4,1,e.startBalance)," ")}}function zt(t,p){if(t&1&&(n(0,"tr"),C(1,Kt,5,3),i(),n(2,"tr")(3,"td",21),a(4),i(),n(5,"td",21)(6,"a",22),a(7),i()(),n(8,"td",21),a(9),x(10,"date"),i(),n(11,"td",21)(12,"a",23),a(13),i()(),I(14,"td"),n(15,"td",24),a(16),x(17,"number"),i(),n(18,"td",24),a(19),x(20,"number"),i(),n(21,"td",24),a(22),x(23,"number"),i()()),t&2){let e=p.$implicit,o=p.rowIndex,r=d(4);l(),O(o===0&&r.store.items().data.length>1?1:-1),l(3),_(e.outletName),l(2),c("routerLink",F(19,Nt,e.id)),l(),_(e.number),l(2),_(tt(10,10,e.date,"dd MMM yyyy")),l(3),c("href",r.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,Ze),l(),_(e.contactName),l(3),R(" ",S(17,13,e.debitAmount)," "),l(3),R(" ",S(20,15,e.creditAmount)," "),l(3),_(S(23,17,e.balance))}}function Ut(t,p){if(t&1&&(n(0,"tr"),I(1,"td",27),n(2,"td",28),a(3,"Total"),i(),n(4,"td",28),a(5),x(6,"number"),i(),n(7,"td",28),a(8),x(9,"number"),i(),I(10,"td"),i()),t&2){let e=d().$index,o=d(3);l(5),R(" ",S(6,2,o.store.items().data[e].debitTotal)," "),l(3),R(" ",S(9,4,o.store.items().data[e].creditTotal)," ")}}function $t(t,p){t&1&&(n(0,"tr")(1,"td",29)(2,"span"),a(3,"No records found."),i()()())}function Jt(t,p){if(t&1&&(n(0,"p-table",15),C(1,Yt,7,2,"ng-template",null,3,s)(3,Wt,17,0,"ng-template",null,4,s)(5,zt,24,21,"ng-template",null,5,s)(7,Ut,11,6,"ng-template",null,6,s)(9,$t,4,0,"ng-template",null,7,s),i()),t&2){let e=p.$implicit;c("value",e.data)("scrollable",!0)}}function Qt(t,p){if(t&1&&(n(0,"p-panel")(1,"p-scroll-panel"),ke(2,Jt,11,2,"p-table",15,Me),i()()),t&2){let e=d(2);j(E(4,Pt)),l(),j(E(5,jt)),l(),Be(e.store.items().data)}}function Xt(t,p){if(t&1&&C(0,Qt,4,6,"p-panel",14),t&2){let e=d();c("ngIf",e.store.items()&&e.store.items().data.length)}}function Zt(t,p){if(t&1&&(n(0,"div",11)(1,"div",16)(2,"span",41),a(3),i()(),n(4,"div")(5,"span"),a(6,"-"),i()(),n(7,"div",16)(8,"span",42),a(9),i()()()),t&2){let e=p.$implicit;l(3),R("(",e.code,")"),l(6),_(e.name)}}function ei(t,p){if(t&1&&(n(0,"div",11)(1,"div",16)(2,"span",41),a(3),i()(),n(4,"div")(5,"span"),a(6,"-"),i()(),n(7,"div",16)(8,"span",42),a(9),i()()()),t&2){let e=p.$implicit;l(3),R("(",e.code,")"),l(6),_(e.name)}}function ti(t,p){if(t&1&&(n(0,"div",43)(1,"div"),a(2),i()()),t&2){let e=p.$implicit;l(2),_(e.value)}}function ii(t,p){if(t&1&&(n(0,"div",40),I(1,"p-radiobutton",44),n(2,"label",45),a(3),i()()),t&2){let e=p.$implicit;l(),c("value",e.key)("inputId",e.key),l(),et("for",e.key),l(),_(e.value)}}function ni(t,p){if(t&1){let e=D();n(0,"div",31)(1,"label",32),a(2,"Customer"),i(),n(3,"p-autocomplete",46),w("completeMethod",function(r){v(e);let m=d(2);return b(m.searchCustomer(r))}),i()()}if(t&2){let e=d(2);l(3),c("suggestions",e.customerSuggestions())}}function oi(t,p){if(t&1){let e=D();n(0,"div",31)(1,"label",32),a(2,"Supplier"),i(),n(3,"p-autocomplete",47),w("completeMethod",function(r){v(e);let m=d(2);return b(m.searchSupplier(r))}),i()()}if(t&2){let e=d(2);l(3),c("suggestions",e.supplierSuggestions())}}function ri(t,p){if(t&1){let e=D();n(0,"div",31)(1,"label",32),a(2,"Customer"),i(),n(3,"p-autocomplete",46),w("completeMethod",function(r){v(e);let m=d(2);return b(m.searchCustomer(r))}),i()()}if(t&2){let e=d(2);l(3),c("suggestions",e.customerSuggestions())}}function ai(t,p){if(t&1){let e=D();n(0,"form",30)(1,"div",31)(2,"label",32),a(3,"Accounts"),i(),n(4,"p-multiselect",33),w("onChange",function(r){v(e);let m=d();return b(m.onAccountChange(r))}),C(5,Zt,10,2,"ng-template",null,8,s)(7,ei,10,2,"ng-template",null,9,s),i()(),n(9,"div",31)(10,"label",32),a(11,"From"),i(),I(12,"p-datepicker",34),i(),n(13,"div",31)(14,"label",32),a(15,"To"),i(),I(16,"p-datepicker",35),i(),n(17,"div",31)(18,"label",32),a(19,"Outlets"),i(),n(20,"p-multiselect",36),C(21,ti,3,1,"ng-template",null,9,s),i()(),n(23,"div",31)(24,"label",32),a(25,"Category"),i(),n(26,"p-treeselect",37),w("onFocus",function(){v(e);let r=d();return b(r.onCategoryFocus())}),i()(),n(27,"div",31)(28,"label",38),a(29,"Contact Type"),i(),n(30,"div",39),ke(31,ii,4,4,"div",40,Me),i()(),C(33,ni,4,1,"div",31)(34,oi,4,1,"div",31)(35,ri,4,1,"div",31),i()}if(t&2){let e,o=d();c("formGroup",o.generalLedgerFilterForm),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("maxlength",5)("options",o.store.metadata().options.accounts),l(8),c("iconDisplay","input")("showIcon",!0),l(4),c("iconDisplay","input")("showIcon",!0),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",o.store.metadata().options.outlets),l(6),c("metaKeySelection",!1)("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",E(18,qt))("options",o.categoriesOptions()),l(5),Be(o.store.metadata().options.contactTypeOptions),l(2),O((e=o.generalLedgerFilterForm.controls.contactType.value)===1?33:e===2?34:35)}}var Rt=(()=>{class t{constructor(){this.dialogFilterVisible=L(!1),this.reportService=h(B),this.coaService=h(ft),this.authService=h(Fe),this.store=h(Oe),this.categoriesOptions=L([]),this.customerSuggestions=L([]),this.supplierSuggestions=L([]),this.route=h(rt),this.dayjsService=h(ye),this.initDialogVisible=L(!0),this.fb=h(we),this.toastr=h(at)}ngOnInit(){this.generateFilterForm(),this.route.queryParamMap.pipe(Ue(e=>e.get("id")),M(e=>{e&&(this.initDialogVisible.update(o=>!o),this.generalLedgerFilterForm.patchValue({listAccountID:[e]}),this.store.updateFilter(y(g({},this.store.filter()),{listAccountID:[e]})))})).subscribe(),this.clearContactValueOnContactTypeChange(),this.generalLedgerFilterForm.valueChanges.pipe($e(500),M(e=>{Array.isArray(e.listAccountID)&&e.listAccountID.length>0?this.generalLedgerFilterForm.controls.listCategoryID.disable():this.generalLedgerFilterForm.controls.listCategoryID.enable(),e.listCategoryID&&e.listCategoryID.filter(o=>o.key).length>0?this.generalLedgerFilterForm.controls.listAccountID.disable():this.generalLedgerFilterForm.controls.listAccountID.enable()})).subscribe()}clearContactValueOnContactTypeChange(){this.generalLedgerFilterForm.get("contactType")?.valueChanges.subscribe(()=>this.generalLedgerFilterForm.get("contactID")?.setValue(""))}onAccountChange(e){Array.isArray(e.value)&&e.value.length>5&&this.toastr.warning("Please select at least 5 accounts for the general ledger report.","Warning")}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(M(e=>this.categoriesOptions.set(e))).subscribe()}generateFilterForm(){this.generalLedgerFilterForm=this.fb.group({listAccountID:new G([]),listCategoryID:new G([]),listOutletID:new G([]),contactID:new G(""),from:new G(""),to:new G(""),contactType:new G(1)})}onFilterOKEvent(){let f=this.generalLedgerFilterForm.value,{from:e,to:o}=f,r=Ve(f,["from","to"]);if(this.generalLedgerFilterForm.invalid){this.generalLedgerFilterForm.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let m={listCategoryID:r.listCategoryID?r.listCategoryID.map(u=>u.key):[],contactID:r.contactID.length===0?null:r.contactID,listOutletID:r.listOutletID?r.listOutletID:[],listAccountID:r.listAccountID?r.listAccountID:[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(o)?this.dayjsService.format(o):null,contactType:r.contactType};this.dialogFilterVisible.update(u=>!u),this.store.updateFilter(m),this.dialogFilterVisible.set(!1)}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(M(o=>this.customerSuggestions.set(o))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(M(o=>this.supplierSuggestions.set(o))).subscribe()}onExport(){let f=this.generalLedgerFilterForm.value,{from:e,to:o}=f,r=Ve(f,["from","to"]),m={listCategoryID:r.listCategoryID?r.listCategoryID.map(u=>u.key):[],contactID:r.contactID.length===0?null:r.contactID,listOutletID:r.listOutletID?r.listOutletID:[],listAccountID:r.listAccountID?r.listAccountID:[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(o)?this.dayjsService.format(o):null,contactType:r.contactType};this.reportService.exportGeneralLedger(m).pipe(M(u=>{St(u,`general-ledger-${this.dayjsService.now.format("D-MM-YYYY")}.${u.type.split("/")[1]}`,u.type)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-general-ledger"]],features:[K([Oe])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["caption",""],["header",""],["body",""],["footer",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["routerLink","/pages/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined","fs-3"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],[3,"style",4,"ngIf"],["scrollHeight","calc(100vh - 150px)",3,"value","scrollable"],[1,""],[1,"fs-5","fw-semibold"],[2,"width","10%"],[1,"text-end",2,"width","10%"],[1,"text-end",2,"width","20%"],[1,"text-break"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],[1,"text-end","text-break"],["colspan","7",1,"text-end"],[1,"text-end"],["colspan","4"],[1,"text-end","fw-semibold"],["colspan","8"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"onChange","virtualScroll","virtualScrollItemSize","maxlength","options"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","display","chip","formControlName","listOutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","display","chip","selectionMode","multiple","filter","","filterBy","label","formControlName","listCategoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","id","placeholder","Select Category",3,"onFocus","metaKeySelection","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],["for",""],[1,"d-flex","gap-3"],[1,"d-flex","align-items-center","gap-2"],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"flex","items-center","gap-2"],["name","contactType","formControlName","contactType",3,"value","inputId"],[1,"m-0",3,"for"],["formControlName","contactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"]],template:function(o,r){if(o&1){let m=D();n(0,"app-main-panel",10),W("isDialogFilterVisibleChange",function(u){return v(m),N(r.dialogFilterVisible,u)||(r.dialogFilterVisible=u),b(u)})("isInitDialogFilterVisibleChange",function(u){return v(m),N(r.initDialogVisible,u)||(r.initDialogVisible=u),b(u)}),w("filterConfirmed",function(){return v(m),b(r.onFilterOKEvent())}),C(1,Ht,4,0,"ng-template",null,0,s)(3,Xt,1,1,"ng-template",null,1,s)(5,ai,36,19,"ng-template",null,2,s),i()}o&2&&(c("pageTitle",r.store.items().pageTitle.length?r.store.items().pageTitle:"General Ledger"),Y("isDialogFilterVisible",r.dialogFilterVisible),c("isFilterable",!0),Y("isInitDialogFilterVisible",r.initDialogVisible))},dependencies:[ue,U,Ie,z,nt,_e,xe,he,dt,re,oe,Re,ge,fe,Le,Te,ie,Z,Q,X,mt,ee,te,Ce,Se,De,ne,ct,xt,ht,gt,le,ae,J,$,_t,ut],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{padding:.75rem 1rem .75rem 0}"],changeDetection:0})}}return t})();var li={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{from:"",to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},Ge=pe(de(li),me(t=>{let p={totalCOGS:T(()=>{let e=t.data()?.data?.cogs;return Array.isArray(e)?e.reduce((o,r)=>o+(r?.amount??0),0):0}),totalRevenue:T(()=>{let e=t.data()?.data?.revenue;return Array.isArray(e)?e.reduce((o,r)=>o+(r?.amount??0),0):0}),totalExpense:T(()=>{let e=t.data()?.data?.expense;return Array.isArray(e)?e.reduce((o,r)=>o+(r?.amount??0),0):0}),grossProfit:T(()=>Array.isArray(t.data()?.data?.cogs)&&Array.isArray(t.data()?.data?.revenue)?p.totalRevenue()-p.totalCOGS():0),profitOrLoss:T(()=>p.totalRevenue()-p.totalCOGS()-p.totalExpense()),isDataEmpty:T(()=>Object.keys(t.data()?.data??{}).length===0)};return p}),se(t=>{let p=h(B),e=h(ye),o={updateFilter(r){V(t,m=>y(g({},m),{filter:g(g({},m.filter),r)}))},getLoader:q(A(P(()=>p.getIncomeStatementLoader().pipe(H({next:r=>{V(t,m=>y(g({},m),{loader:r,filter:y(g({},m.filter),{from:e.from(r.filter.from).format(),to:e.from(r.filter.to).format()})})),o.getIncomeStatement(t.filter)},error:r=>{console.error(r)}}))))),getIncomeStatement:q(A(P(r=>p.getIncomeStatement(r).pipe(Qe(()=>V(t,m=>y(g({},m),{isLoading:!0}))),H({next:m=>{V(t,f=>y(g({},f),{data:m,isLoading:!1}))},error:m=>{console.error(m)}})))))};return o}),ce({onInit:t=>{t.getLoader()}}));var pi=()=>({height:"calc(100vh - 70px)"}),mi=()=>({height:"calc(100vh - 150px)"}),Ae=()=>({}),Pe=t=>["/pages/chart-of-account/account/",t],je=()=>["/pages/report/general-ledger"],Ne=t=>({id:t});function ci(t,p){if(t&1){let e=D();n(0,"div",8)(1,"p-button",9),w("onClick",function(){v(e);let r=d();return b(r.onExport())}),i()()}}function si(t,p){t&1&&(n(0,"tr")(1,"th",14),a(2,"Code"),i(),n(3,"th",15),a(4,"Name"),i(),n(5,"th",16),a(6,"Total"),i()())}function di(t,p){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",17),a(5),i()(),n(6,"td",16)(7,"a",18),a(8),x(9,"number"),i()()()),t&2){let e=p.$implicit;l(2),_(e.code),l(2),c("routerLink",F(8,Pe,e.accountID)),l(),_(e.name),l(2),c("routerLink",E(10,je))("queryParams",F(11,Ne,e.accountID)),l(),_(S(9,6,e.amount))}}function ui(t,p){if(t&1&&(n(0,"tr"),I(1,"td",19),n(2,"td",20)(3,"div",21)(4,"span",22),a(5,"Total Revenue :"),i(),n(6,"span",23),a(7),x(8,"number"),i()()()()),t&2){let e=d(4);l(7),_(S(8,1,e.store.totalRevenue()))}}function _i(t,p){t&1&&(n(0,"tr")(1,"td",24)(2,"span"),a(3,"No revenue records available"),i()()())}function fi(t,p){if(t&1&&(n(0,"h6",12),a(1,"Revenue"),i(),n(2,"p-table",13),C(3,si,7,0,"ng-template",null,3,s)(5,di,10,13,"ng-template",null,4,s)(7,ui,9,3,"ng-template",null,5,s)(9,_i,4,0,"ng-template",null,6,s),i()),t&2){let e,o=d(3);l(2),c("value",(e=o.store.data())==null||e.data==null?null:e.data.revenue)}}function gi(t,p){t&1&&(n(0,"tr")(1,"th",14),a(2,"Code"),i(),n(3,"th",15),a(4,"Name"),i(),n(5,"th",25),a(6,"Total"),i()())}function hi(t,p){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",17),a(5),i()(),n(6,"td",16)(7,"a",18),a(8),x(9,"number"),i()()()),t&2){let e=p.$implicit;l(2),_(e.code),l(2),c("routerLink",F(8,Pe,e.accountID)),l(),_(e.name),l(2),c("routerLink",E(10,je))("queryParams",F(11,Ne,e.AccountID)),l(),_(S(9,6,e.amount))}}function xi(t,p){if(t&1&&(n(0,"tr"),I(1,"td",26),n(2,"td",20)(3,"div",21)(4,"span",22),a(5,"Total COGS :"),i(),n(6,"span",23),a(7),x(8,"number"),i()()()(),n(9,"tr"),I(10,"td",26),n(11,"td",20)(12,"div",21)(13,"span",22),a(14,"Gross Profit :"),i(),n(15,"span",23),a(16),x(17,"number"),i()()()()),t&2){let e=d(4);l(7),_(S(8,2,e.store.totalCOGS())),l(9),_(S(17,4,e.store.grossProfit()))}}function Si(t,p){t&1&&(n(0,"tr")(1,"td",24)(2,"span"),a(3,"No COGS records available"),i()()())}function Ci(t,p){if(t&1&&(n(0,"h4",12),a(1,"COGS"),i(),n(2,"p-table",13),C(3,gi,7,0,"ng-template",null,3,s)(5,hi,10,13,"ng-template",null,4,s)(7,xi,18,6,"ng-template",null,5,s)(9,Si,4,0,"ng-template",null,6,s),i()),t&2){let e,o=d(3);l(2),c("value",(e=o.store.data())==null||e.data==null?null:e.data.cogs)}}function yi(t,p){t&1&&(n(0,"tr")(1,"th",14),a(2,"Code"),i(),n(3,"th",15),a(4,"Name"),i(),n(5,"th",16),a(6,"Total"),i()())}function vi(t,p){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",17),a(5),i()(),n(6,"td",16)(7,"a",18),a(8),x(9,"number"),i()()()),t&2){let e=p.$implicit;l(2),_(e.code),l(2),c("routerLink",F(8,Pe,e.accountID)),l(),_(e.name),l(2),c("routerLink",E(10,je))("queryParams",F(11,Ne,e.AccountID)),l(),_(S(9,6,e.amount))}}function bi(t,p){if(t&1&&(n(0,"tr"),I(1,"td",26),n(2,"td",20)(3,"div",21)(4,"span",22),a(5,"Total Expense :"),i(),n(6,"span",23),a(7),x(8,"number"),i()()()(),n(9,"tr"),I(10,"td",26),n(11,"td",20)(12,"div",21)(13,"span",22),a(14,"Profit / Loss :"),i(),n(15,"span",23),a(16),x(17,"number"),i()()()()),t&2){let e=d(4);l(7),_(S(8,2,e.store.totalExpense())),l(9),_(S(17,4,e.store.profitOrLoss()))}}function Ei(t,p){t&1&&(n(0,"tr")(1,"td",24)(2,"span"),a(3,"No expense records available"),i()()())}function Ii(t,p){if(t&1&&(n(0,"h4",12),a(1,"Expense"),i(),n(2,"p-table",13),C(3,yi,7,0,"ng-template",null,3,s)(5,vi,10,13,"ng-template",null,4,s)(7,bi,18,6,"ng-template",null,5,s)(9,Ei,4,0,"ng-template",null,6,s),i()),t&2){let e,o=d(3);l(2),c("value",(e=o.store.data())==null||e.data==null?null:e.data.expense)}}function Fi(t,p){if(t&1&&(n(0,"p-scroll-panel")(1,"div",11),C(2,fi,11,1)(3,Ci,11,1)(4,Ii,11,1),i()()),t&2){let e,o,r,m=d(2);j(E(5,mi)),l(2),O(m.Object.keys((e=m.store.data().data)!==null&&e!==void 0?e:E(6,Ae)).length>0?2:-1),l(),O(m.Object.keys((o=(o=m.store.data().data)==null?null:o.cogs)!==null&&o!==void 0?o:E(7,Ae)).length>0?3:-1),l(),O(m.Object.keys((r=(r=m.store.data().data)==null?null:r.expense)!==null&&r!==void 0?r:E(8,Ae)).length>0?4:-1)}}function wi(t,p){if(t&1&&(n(0,"p-panel"),C(1,Fi,5,9,"p-scroll-panel",10),i()),t&2){let e=d();j(E(3,pi)),l(),c("ngIf",e.store.data())}}function Di(t,p){if(t&1){let e=D();n(0,"form",27)(1,"div",28)(2,"label",29),a(3,"Outlet"),i(),I(4,"p-multiselect",30),i(),n(5,"div",28)(6,"label",29),a(7,"Cashier"),i(),n(8,"p-autocomplete",31),w("completeMethod",function(r){v(e);let m=d();return b(m.onCashierSearch(r))})("onSelect",function(r){v(e);let m=d();return b(m.onCashierSelect(r))}),i()(),n(9,"div",28)(10,"label",29),a(11,"From"),i(),I(12,"p-datepicker",32),i(),n(13,"div",28)(14,"label",29),a(15,"To"),i(),I(16,"p-datepicker",33),i()()}if(t&2){let e=d();c("formGroup",e.formFilter),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.loader().options.outlets)("showClear",!0),l(4),c("showClear",!0)("suggestions",e.cashierSuggestions())("showClear",!0)}}var Tt=(()=>{class t{constructor(){this.dayjsService=h(ye),this.store=h(Ge),this.fb=h(we),this.reportService=h(B),this.isInitDialogFilterVisible=L(!1),this.dialogFilterVisible=L(!1),this.cashierSuggestions=L([]),this.cashierHashMap=new Map,this.Object=Object,it(()=>{this.store.filter()&&this.initForm()})}ngOnInit(){this.initForm(),console.log(this.cashierHashMap.entries())}onSearch(e){this.store.updateFilter(y(g({},this.store.filter()),{Text:e}))}onCashierSearch(e){this.reportService.getCashierSuggestions(e.query).pipe(be("Cashier Suggestions"),M(o=>this.cashierSuggestions.set(o))).subscribe()}initForm(){let e=this.store.filter();console.log("initForm",this.cashierHashMap.get(e.CashierID)),this.formFilter=this.fb.group({EntityID:this.fb.control(e.EntityID??[]),CashierID:this.fb.control(this.cashierHashMap.get(e.CashierID)??""),Text:this.fb.control(e.Text??""),from:this.fb.control(e.from?this.dayjsService.from(e.from).toDate():null),to:this.fb.control(e.to?this.dayjsService.from(e.to).toDate():null)})}onFilterOK(){let e=this.formFilter.getRawValue(),o=Object.entries(e).reduce((r,[m,f])=>(m==="from"||m==="to"?f instanceof Date&&(r[m]=this.dayjsService.from(f).format()):r[m]=f||null,r),{});this.store.updateFilter(g(g({},this.store.filter()),o)),this.dialogFilterVisible.update(r=>!r),console.log("body",e)}onCashierSelect(e){console.log("Cashier selected:",e),!this.cashierHashMap.has(e.value.Key)&&(this.cashierHashMap.set(e.value.Key,e.value.Value),console.log("Cashier HashMap:",this.cashierHashMap))}onExport(){let e=y(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.reportService.getIncomeStatement(e,{responseType:"blob"}).pipe(be("Export Profit & Loss"),M(o=>{let r=o.type,m=[o],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:r}));let u=`profit-and-loss.${r.split("/")[1]}`;f.setAttribute("download",u),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-income-statement"]],features:[K([Ge])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","isFilterable","pageTitle","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"style",4,"ngIf"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold"],[3,"value"],[2,"width","20%"],[2,"width","30%"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2 ",1,"fw-semibold","text-end",2,"width","50%"],[1,"text-end","fw-semibold"],[1,"row"],[1,"col-9"],[1,"col"],["colspan","3",1,""],[1,"text-end",2,"min-width","10%"],["colspan","2",1,"fw-semibold"],[1,"d-flex","flex-column","gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["formControlName","EntityID","filterBy","value","appendTo","body","display","chip","optionLabel","value","optionValue","key","placeholder","Select an Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["appendTo","body","formControlName","CashierID","optionLabel","Value","optionValue","Key","styleClass","w-100","inputStyleClass","w-100","field","Value","placeholder","Search a cashier",3,"completeMethod","onSelect","showClear","suggestions"],["formControlName","from","styleClass","w-100","appendTo","body"],["formControlName","to","styleClass","w-100","appendTo","body"]],template:function(o,r){if(o&1){let m=D();n(0,"app-main-panel",7),W("isDialogFilterVisibleChange",function(u){return v(m),N(r.dialogFilterVisible,u)||(r.dialogFilterVisible=u),b(u)})("isInitDialogFilterVisibleChange",function(u){return v(m),N(r.isInitDialogFilterVisible,u)||(r.isInitDialogFilterVisible=u),b(u)}),w("filterConfirmed",function(){return v(m),b(r.onFilterOK())}),C(1,ci,2,0,"ng-template",null,0,s)(3,wi,2,4,"ng-template",null,1,s)(5,Di,17,8,"ng-template",null,2,s),i()}o&2&&(c("isFilterable",!0)("pageTitle",r.store.data().pageTitle),Y("isDialogFilterVisible",r.dialogFilterVisible)("isInitDialogFilterVisible",r.isInitDialogFilterVisible))},dependencies:[ue,U,Ie,z,Re,ge,fe,ie,Z,Q,X,ee,te,Ce,Se,_e,xe,he,le,ae,ne,J,$,Le,Te,re,oe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var qe=ze(Ct());var Ri={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,qe.default)().format("YYYY-MM-DD"),listOutletParam:[]}},He=pe(de(Ri),me(t=>({totalAsset:T(()=>t.data().asset.reduce((p,e)=>p+ +e.amount,0)),totalLiability:T(()=>t.data().liability.reduce((p,e)=>p+ +e.counterAmount,0)),totalEquity:T(()=>t.data().equity.reduce((p,e)=>p+ +e.counterAmount,0))})),se(t=>{let p=h(B),e={updateFilter:o=>{V(t,r=>y(g({},r),{filter:o}))},fetchBalanceSheet:q(A(Ee(()=>{let o=t.filter();return Object.entries(o).every(([r,m])=>m!=null&&m!=="")}),P(o=>p.getBalanceSheet(o).pipe(H({next:r=>{V(t,m=>y(g({},m),{data:r}))},error:r=>{console.error(r)}}))),Je(1))),fetchLoader:q(A(P(()=>p.getBalanceSheetLoader().pipe(H({next:o=>{V(t,r=>y(g({},r),{metadata:o,filter:{date:(0,qe.default)(o.filter.to).format("YYYY-MM-DD")}})),e.fetchBalanceSheet(t.filter)},error:o=>{console.error(o)}})))))};return e}),ce(t=>({onInit:()=>{t.fetchLoader()}})));var Lt=ze(Ct());var Ti=()=>({height:"calc(100vh - 70px)"}),Li=()=>({height:"calc(100vh - 100px)"}),Ye=t=>["/pages/chart-of-account/account/",t],We=()=>["/pages/report/general-ledger"],Ke=t=>({id:t});function Vi(t,p){if(t&1){let e=D();n(0,"div",9)(1,"p-button",10),w("onClick",function(){v(e);let r=d();return b(r.onExport())}),i()()}}function Mi(t,p){t&1&&(n(0,"tr")(1,"th",15),a(2,"Code"),i(),n(3,"th"),a(4,"Asset"),i(),n(5,"th",16),a(6,"Total"),i()())}function ki(t,p){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",17),a(5),i()(),n(6,"td",18)(7,"a",19),a(8),x(9,"number"),i()()()),t&2){let e=p.$implicit;l(2),_(e.code),l(2),c("routerLink",F(8,Ye,e.accountID)),l(),_(e.name),l(2),c("routerLink",E(10,We))("queryParams",F(11,Ke,e.accountID)),l(),_(S(9,6,e.amount))}}function Bi(t,p){if(t&1&&(n(0,"tr")(1,"td",20),a(2,"Total Asset"),i(),n(3,"td",21),a(4),x(5,"number"),i()()),t&2){let e=d(3);l(4),R(" ",S(5,1,e.store.totalAsset())," ")}}function Oi(t,p){t&1&&(n(0,"tr")(1,"td",22)(2,"span"),a(3,"No asset records found."),i()()())}function Gi(t,p){if(t&1&&(n(0,"h4",13),a(1,"Asset"),i(),n(2,"p-table",14),C(3,Mi,7,0,"ng-template",null,3,s)(5,ki,10,13,"ng-template",null,4,s)(7,Bi,6,3,"ng-template",null,5,s)(9,Oi,4,0,"ng-template",null,6,s),i()),t&2){let e=d(2);l(2),c("value",e.store.data().asset)}}function Ai(t,p){t&1&&(n(0,"tr")(1,"th",15),a(2,"Code"),i(),n(3,"th"),a(4,"Liability"),i(),n(5,"th",16),a(6,"Total"),i()())}function Pi(t,p){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",24),a(5),i()(),n(6,"td",18)(7,"a",19),a(8),x(9,"number"),i()()()),t&2){let e=p.$implicit;l(2),_(e.code),l(2),c("routerLink",F(8,Ye,e.accountID)),l(),_(e.name),l(2),c("routerLink",E(10,We))("queryParams",F(11,Ke,e.accountID)),l(),_(S(9,6,e.counterAmount))}}function ji(t,p){if(t&1&&(n(0,"tr")(1,"td",20),a(2," Total Liability "),i(),n(3,"td",21),a(4),x(5,"number"),i()()),t&2){let e=d(3);l(4),R(" ",S(5,1,e.store.totalLiability())," ")}}function Ni(t,p){t&1&&(n(0,"tr")(1,"td",22)(2,"span"),a(3,"No liability records found."),i()()())}function qi(t,p){if(t&1&&(n(0,"h4",23),a(1,"Liability"),i(),n(2,"p-table",14),C(3,Ai,7,0,"ng-template",null,3,s)(5,Pi,10,13,"ng-template",null,4,s)(7,ji,6,3,"ng-template",null,5,s)(9,Ni,4,0,"ng-template",null,6,s),i()),t&2){let e=d(2);l(2),c("value",e.store.data().liability)}}function Hi(t,p){t&1&&(n(0,"tr")(1,"th",15),a(2,"Code"),i(),n(3,"th"),a(4,"Equity"),i(),n(5,"th",16),a(6,"Total"),i()())}function Yi(t,p){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",17),a(5),i()(),n(6,"td",18)(7,"a",19),a(8),x(9,"number"),i()()()),t&2){let e=p.$implicit;l(2),_(e.code),l(2),c("routerLink",F(8,Ye,e.accountID)),l(),_(e.name),l(2),c("routerLink",E(10,We))("queryParams",F(11,Ke,e.accountID)),l(),_(S(9,6,e.counterAmount))}}function Wi(t,p){if(t&1&&(n(0,"tr")(1,"td",20),a(2,"Total Equity"),i(),n(3,"td",21),a(4),x(5,"number"),i()(),n(6,"tr")(7,"td",20),a(8," Total Liability + Equity "),i(),n(9,"td",21),a(10),x(11,"number"),i()()),t&2){let e=d(3);l(4),R(" ",S(5,2,e.store.totalEquity())," "),l(6),R(" ",S(11,4,e.store.totalLiability()+e.store.totalEquity())," ")}}function Ki(t,p){t&1&&(n(0,"tr")(1,"td",22)(2,"span"),a(3,"No equity records found."),i()()())}function zi(t,p){if(t&1&&(n(0,"h4",23),a(1,"Equity"),i(),n(2,"p-table",14),C(3,Hi,7,0,"ng-template",null,3,s)(5,Yi,10,13,"ng-template",null,4,s),a(7," <"),C(8,Wi,12,6,"ng-template",null,5,s)(10,Ki,4,0,"ng-template",null,6,s),i()),t&2){let e=d(2);l(2),c("value",e.store.data().equity)}}function Ui(t,p){if(t&1&&(n(0,"p-panel",11)(1,"p-scroll-panel")(2,"div",12),C(3,Gi,11,1)(4,qi,11,1)(5,zi,12,1),i()()()),t&2){let e=d();j(E(8,Ti)),c("showHeader",!1),l(),j(E(9,Li)),l(2),O(e.Object.keys(e.store.data().asset).length>0?3:-1),l(),O(e.Object.keys(e.store.data().liability).length>0?4:-1),l(),O(e.Object.keys(e.store.data().equity).length>0?5:-1)}}function $i(t,p){if(t&1&&(n(0,"div",30)(1,"div"),a(2),i()()),t&2){let e=p.$implicit;l(2),_(e.value)}}function Ji(t,p){if(t&1&&(n(0,"form",25)(1,"div",26)(2,"label",27),a(3,"Outlet"),i(),n(4,"p-multiselect",28),C(5,$i,3,1,"ng-template",null,7,s),i()(),n(7,"div",26)(8,"label",27),a(9,"From"),i(),I(10,"p-datepicker",29),i()()),t&2){let e=d();c("formGroup",e.filterForm),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets)("showClear",!0),l(6),c("iconDisplay","input")("showIcon",!0)}}var Vt=(()=>{class t{constructor(){this.store=h(He),this.ReportServiceStore=h(B),this.dialogFilterVisible=L(!1),this.isInitDialogFilterVisible=L(!1),this.Object=Object}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new pt({date:new G(new Date),outletID:new G([])})}onFilterOKEvent(){let{date:e,outletID:o}=this.filterForm.value;this.store.updateFilter({date:(0,Lt.default)(e).format("YYYY-MM-DD"),listOutletParam:o}),this.dialogFilterVisible.update(r=>!r)}onExport(){let e=y(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.ReportServiceStore.getBalanceSheet(e,{responseType:"blob"}).pipe(be("Export Balance Sheet"),M(o=>{let r=o.type,m=[o],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:r}));let u=`balance-sheet.${r.split("/")[1]}`;f.setAttribute("download",u),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-balance-sheet"]],features:[K([He])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"showHeader"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold","mt-3"],[3,"value"],[2,"width","20%"],[1,"text-end",2,"width","5%"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"fw-semibold","text-end"],[1,"text-end","fw-semibold"],["colspan","3",1,""],[1,"fs-5","fw-semibold"],["target","_blank",1,"link","link-primary","d-flex","align-items-center",3,"routerLink"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletID","display","chip","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["formControlName","date","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],[1,"flex","items-center","gap-2"]],template:function(o,r){if(o&1){let m=D();n(0,"app-main-panel",8),W("isDialogFilterVisibleChange",function(u){return v(m),N(r.dialogFilterVisible,u)||(r.dialogFilterVisible=u),b(u)})("isInitDialogFilterVisibleChange",function(u){return v(m),N(r.isInitDialogFilterVisible,u)||(r.isInitDialogFilterVisible=u),b(u)}),w("filterConfirmed",function(){return v(m),b(r.onFilterOKEvent())}),C(1,Vi,2,0,"ng-template",null,0,s)(3,Ui,6,10,"ng-template",null,1,s)(5,Ji,11,7,"ng-template",null,2,s),i()}o&2&&(c("pageTitle",r.store.data().pageTitle)("isFilterable",!0),Y("isDialogFilterVisible",r.dialogFilterVisible)("isInitDialogFilterVisible",r.isInitDialogFilterVisible))},dependencies:[ue,U,z,xe,he,_e,re,oe,ie,Z,Q,X,ee,te,Ce,Se,ge,fe,De,ne,le,ae,J,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Mt=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(o,r){o&1&&(n(0,"p"),a(1,"report-comparative-balance works!"),i(),a(2,`
|
|
2
|
-
,
|
|
3
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var kt=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(o,r){o&1&&(n(0,"p"),a(1,"report-cash-flow works!"),i(),a(2,`
|
|
4
|
-
,
|
|
5
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Bt=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(o,r){o&1&&(n(0,"p"),a(1,"report-trial-balance works!"),i(),a(2,`
|
|
6
|
-
,
|
|
7
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var mr=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:Rt},{path:"profit-loss",component:Tt},{path:"balance-sheet",component:Vt},{path:"comparative-balance",component:Mt},{path:"trial-balance",component:Bt},{path:"cash-flow",component:kt}]}];export{mr as REPORTS_ROUTES};
|
package/chunk-QLPEPLQ4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ue}from"./chunk-UD2JTFXA.js";import{b as be}from"./chunk-RFFPFL5K.js";import{a as q,b as Q}from"./chunk-O4QM64EH.js";import{d as W,i as he,j as xe,k as X}from"./chunk-B6WHUOA5.js";import"./chunk-E4IYO245.js";import"./chunk-CF5CCUC7.js";import{a as Ce}from"./chunk-XKCLERWG.js";import"./chunk-KOLMNCWR.js";import"./chunk-GQALHR6D.js";import"./chunk-AAV2CBYL.js";import"./chunk-7Z3LI5KJ.js";import"./chunk-6JMIM647.js";import"./chunk-LETMLT3U.js";import"./chunk-WJ2UEWWN.js";import"./chunk-RSNWAAG7.js";import{b as ge}from"./chunk-VLOOUXSK.js";import{h as K}from"./chunk-ZJXOMTHP.js";import"./chunk-I7SRN7BD.js";import{a as F,b as A}from"./chunk-2U35WLGR.js";import{a as C,b as j,c as z,d as L,e as G,f as $}from"./chunk-JBSIAXM5.js";import"./chunk-QTHCFSIO.js";import{o as _e,w as V,x as H}from"./chunk-BOLQVS6Y.js";import"./chunk-BHV2HCJY.js";import{y as fe}from"./chunk-FMVCTBCQ.js";import{a as se}from"./chunk-MP3KNNAP.js";import{a as de}from"./chunk-MFLZ4HZM.js";import{G as ce,N as me,f as re,k as le,l as D,m as N,s as pe}from"./chunk-B63BKC6F.js";import"./chunk-F2X3VGZZ.js";import{Ac as ae,Cb as T,Jc as S,Kb as b,Kc as R,Lc as ie,Mc as _,Nb as I,Ub as a,Vb as i,Wb as J,X as M,Yc as w,Z as te,_b as U,ba as ne,c as k,cb as oe,dc as E,ec as s,gb as m,ha as u,pa as h,qa as x,qc as r,rc as f,s as ee,uc as B,wb as P,yc as O,zc as y}from"./chunk-JP6RBSB3.js";import{a as l,b as d}from"./chunk-YQFG5XE2.js";var v=(()=>{class e{constructor(){this.httpService=u(se)}getGenerateCoa(t){let n={params:new pe().set("PageNumber",t.PageNumber).set("RowCount",t.RowCount)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(t={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,t)}getUnbalanceJournal(t){return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal/"+t.PageNumber+"/"+t.RowCount)}updateUnbalanceJournal(t){let o={ListID:t};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",o)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=ne({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Te={filter:{PageNumber:1,RowCount:20},data:{data:[],count:0}},Y=j($(Te),z(e=>({first:w(()=>(e.filter().PageNumber-1)*e.filter().RowCount+1),end:w(()=>Math.min(e.filter().PageNumber*e.filter().RowCount,e.data().count))})),G(e=>{let p=u(v);return{updateFilter:o=>{C(e,n=>d(l({},n),{filter:l(l({},n.filter),o)}))},getUpdateCOA:q(k(M(o=>p.getGenerateCoa(o).pipe(Q({next:n=>{C(e,c=>d(l({},c),{data:n}))},error:n=>{console.error(n)}})))))}}),L({onInit(e){e.getUpdateCOA(e.filter)}}));var ke=()=>({height:"calc(100vh - 70px)"}),Me=()=>({"min-width":"50rem"});function Pe(e,p){if(e&1){let t=U();a(0,"p-button",7),E("onClick",function(){h(t);let n=s();return x(n.updateCoaBalance())}),i()}}function Ie(e,p){e&1&&(a(0,"tr")(1,"th"),r(2,"Code"),i(),a(3,"th"),r(4,"Name"),i(),a(5,"th"),r(6,"Outlet"),i(),a(7,"th"),r(8,"COA Balance"),i(),a(9,"th"),r(10,"Correct Balance"),i()())}function Je(e,p){if(e&1&&(a(0,"tr")(1,"td"),r(2),i(),a(3,"td"),r(4),i(),a(5,"td"),r(6),i(),a(7,"td"),r(8),S(9,"number"),i(),a(10,"td"),r(11),S(12,"number"),i()()),e&2){let t=p.$implicit;m(2),f(t.Code),m(2),f(t.Name),m(2),f(t.OutletName),m(2),f(R(9,5,t.Balance)),m(3),f(R(12,7,t.CorrectBalance))}}function Be(e,p){if(e&1&&(a(0,"div",9)(1,"p",10),r(2),i()()),e&2){let t=s(2);m(2),B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Oe(e,p){e&1&&(a(0,"tr")(1,"td",11)(2,"span"),r(3,"No records found."),i()()())}function De(e,p){if(e&1){let t=U();a(0,"p-panel")(1,"p-table",8),E("onPage",function(n){h(t);let c=s();return x(c.onPageChange(n))}),T(2,Ie,11,0,"ng-template",null,2,_)(4,Je,13,9,"ng-template",null,3,_)(6,Be,3,3,"ng-template",null,4,_)(8,Oe,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(y(10,ke)),m(),b("paginator",!0)("lazy",!0)("totalRecords",t.store.data().count)("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("rows",t.store.filter().RowCount)("value",t.store.data().data)("tableStyle",y(11,Me))}}var we=(()=>{class e{constructor(){this.store=u(Y),this.coaService=u(v),this.toastrService=u(de)}onPageChange(t){this.store.updateFilter(d(l({},this.store.filter()),{PageNumber:Math.floor(t.first/t.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(Ce("Update COA Balance"),te(()=>{this.store.updateFilter(this.store.filter())})).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=P({type:e,selectors:[["app-tools-update-coa"]],features:[O([Y])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Update COA Balance"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","scrollable","scrollHeight","rows","value","tableStyle"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(o,n){o&1&&(a(0,"app-main-panel",6),T(1,Pe,1,0,"ng-template",null,0,_)(3,De,10,12,"ng-template",null,1,_),i())},dependencies:[K,X,W,ge,N,D,H,V,A,F],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 e})();var Ne={data:{count:0,data:[]},filter:{PageNumber:1,RowCount:20}},Z=j($(Ne),z(e=>({first:w(()=>(e.filter().PageNumber-1)*e.filter().RowCount+1),end:w(()=>Math.min(e.filter().PageNumber*e.filter().RowCount,e.data().count)),selectedItems:w(()=>e.data().data.filter(p=>p.checked)),hasCheckedRows:w(()=>e.data().data.some(p=>p.checked))})),G(e=>{let p=u(v);return{updateFilter(o){C(e,n=>d(l({},n),{filter:l(l({},n.filter),o)}))},onRowSelect(o){C(e,n=>{let c=n.data.data.map(g=>g.id===o.id?d(l({},g),{checked:!0}):g);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onRowUnselect(o){C(e,n=>{let c=n.data.data.map(g=>g.id===o.id?d(l({},g),{checked:!1}):g);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onHeaderCheckboxToggle(o){C(e,n=>{let c=n.data.data.map(g=>d(l({},g),{checked:o}));return d(l({},n),{data:d(l({},n.data),{data:c})})})},loadData:q(k(M(o=>p.getUnbalanceJournal(o).pipe(ee(n=>d(l({},n),{data:n.data.map(c=>d(l({},c),{checked:!1}))})),Q({next:n=>{C(e,c=>d(l({},c),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}),L(e=>({onInit:()=>{e.loadData(e.filter)}})));var Ve=()=>({height:"calc(100vh - 70px)"}),He=e=>["/pages/journal/journal-entry",e];function Fe(e,p){if(e&1){let t=U();a(0,"div",8),J(1,"p-button",9),a(2,"p-button",10),E("onClick",function(){h(t);let n=s(2);return x(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),i()()}}function Ae(e,p){if(e&1&&T(0,Fe,4,0,"div",7),e&2){let t=s();b("ngIf",t.store.hasCheckedRows())}}function je(e,p){e&1&&(a(0,"tr")(1,"th",12),J(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),r(4,"Date"),i(),a(5,"th"),r(6,"Number"),i(),a(7,"th",13),r(8,"Debit SUM"),i(),a(9,"th",13),r(10,"Credit SUM"),i(),a(11,"th",13),r(12,"Difference"),i(),a(13,"th"),r(14,"Reference"),i(),a(15,"th"),r(16,"Outlet"),i()())}function ze(e,p){if(e&1&&(a(0,"tr")(1,"td"),J(2,"p-tableCheckbox",14),i(),a(3,"td"),r(4),S(5,"date"),i(),a(6,"td")(7,"a",15),r(8),i()(),a(9,"td",13),r(10),S(11,"number"),i(),a(12,"td",13),r(13),S(14,"number"),i(),a(15,"td",13),r(16),S(17,"number"),i(),a(18,"td")(19,"a",16),r(20),i()(),a(21,"td"),r(22),i()()),e&2){let t=p.$implicit,o=s(2);m(2),b("value",t),m(2),f(ie(5,10,t.date,"dd MMM yyyy")),m(3),b("routerLink",ae(19,He,t.id)),m(),f(t.number),m(2),f(R(11,13,t.debitSum)),m(3),f(R(14,15,t.creditSum)),m(3),f(R(17,17,t.differences)),m(3),b("href",o.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+t.id,oe),m(),f(t.referenceText),m(2),f(t.outletName)}}function Le(e,p){if(e&1&&r(0),e&2){let t=s(2);B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Ge(e,p){e&1&&(a(0,"tr")(1,"td",17)(2,"span"),r(3,"No records found."),i()()())}function $e(e,p){if(e&1){let t=U();a(0,"p-panel")(1,"p-table",11),E("onPage",function(n){h(t);let c=s();return x(c.onPageChange(n))})("onRowSelect",function(n){h(t);let c=s();return x(c.onRowSelect(n))})("onRowUnselect",function(n){h(t);let c=s();return x(c.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){h(t);let c=s();return x(c.onHeaderCheckboxToggle(n))}),T(2,je,17,0,"ng-template",null,2,_)(4,ze,23,21,"ng-template",null,3,_)(6,Le,1,3,"ng-template",null,4,_)(8,Ge,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(y(9,Ve)),m(),b("value",t.store.data().data)("scrollable",!0)("lazy",!0)("scrollHeight","calc(100vh - 142px)")("paginator",!0)("rows",t.store.filter().RowCount)("totalRecords",t.store.data().count)}}var ve=(()=>{class e{constructor(){this.store=u(Z),this.toolsService=u(v),this.authService=u(ue)}onPageChange(t){console.log("Page changed:",t);let o=t.first/t.rows;this.store.updateFilter({PageNumber:o+1})}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(o=>{this.store.onRowUnselect(o)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}regenerateUnbalanceJournal(){let o=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(o).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=P({type:e,selectors:[["app-unbalance-journal"]],features:[O([Z])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","scrollable","lazy","scrollHeight","paginator","rows","totalRecords"],[2,"width","4rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"]],template:function(o,n){o&1&&(a(0,"app-main-panel",6),T(1,Ae,1,1,"ng-template",null,0,_)(3,$e,10,10,"ng-template",null,1,_),i())},dependencies:[K,X,W,he,xe,be,_e,N,re,D,le,fe,H,V,A,F,me,ce],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Qt=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:we},{path:"unbalance-journal",component:ve}];export{Qt as TOOLS_ROUTES};
|
package/chunk-UD2JTFXA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as g}from"./chunk-MP3KNNAP.js";import{F as T}from"./chunk-B63BKC6F.js";import{Z as s,ba as l,ha as c}from"./chunk-JP6RBSB3.js";var a=class extends Error{};a.prototype.name="InvalidTokenError";function u(o){return decodeURIComponent(atob(o).replace(/(.)/g,(r,t)=>{let e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e}))}function A(o){let r=o.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return u(r)}catch{return atob(r)}}function m(o,r){if(typeof o!="string")throw new a("Invalid token specified: must be a string");r||(r={});let t=r.header===!0?0:1,e=o.split(".")[t];if(typeof e!="string")throw new a(`Invalid token specified: missing part #${t+1}`);let n;try{n=A(e)}catch(i){throw new a(`Invalid token specified: invalid base64 for part #${t+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new a(`Invalid token specified: invalid json for part #${t+1} (${i.message})`)}}var f=(()=>{class o{constructor(){this.httpService=c(g),this.router=c(T),this.autoLogout()}login(t){return this.httpService.post("","api/Authentication/login",t).pipe(s(e=>{let n=t.SubDomain;localStorage.setItem("AUTH_TOKEN",e.access_token),localStorage.setItem("AUTH_POS_TOKEN",e.pos.access_token),localStorage.setItem("AUTH_TOKEN_TYPE",e.token_type),localStorage.setItem("AUTH_EXPIRES_AT",e.expiredAt),localStorage.setItem("AUTH_DOMAIN",n.substring(n.indexOf("."))),localStorage.setItem("AUTH_SUB_DOMAIN",t.SubDomain.split(".")[0]),localStorage.setItem("AUTH_USERNAME",t.Username),this.storeTenantId(e.pos.access_token),this.autoLogout()}))}isAuthenticated(){return!!localStorage.getItem("AUTH_TOKEN")}getToken(){return localStorage.getItem("AUTH_TOKEN")}getTokenType(){return localStorage.getItem("AUTH_TOKEN_TYPE")}isTokenExpired(){let t=localStorage.getItem("AUTH_EXPIRES_AT");return t?new Date(t).getTime()<Date.now():!0}autoLogout(){clearTimeout(this.logoutTimer);let t=localStorage.getItem("AUTH_EXPIRES_AT");if(!t)return;let e=new Date(t).getTime()-Date.now();e>0?this.logoutTimer=setTimeout(()=>this.logout(),e):this.logout()}getTenantExternalURL(){let t=localStorage.getItem("AUTH_SUB_DOMAIN")||"",e=localStorage.getItem("AUTH_DOMAIN")||"";return t&&e?`https://${t}${e}`:""}getTanantToken(){return localStorage.getItem("AUTH_POS_TOKEN")}logout(){localStorage.removeItem("AUTH_TOKEN"),localStorage.removeItem("AUTH_TOKEN_TYPE"),localStorage.removeItem("AUTH_EXPIRES_AT"),clearTimeout(this.logoutTimer),this.router.navigate([""])}getFullDomain(){let t=localStorage.getItem("AUTH_SUB_DOMAIN"),e=localStorage.getItem("AUTH_DOMAIN");return!t||!e?(console.error("Subdomain or domain is missing in local storage."),null):`${t}${e}`}storeTenantId(t){let e=m(t);console.log("Decoded Token:",e),e&&(localStorage.setItem("AC_TENANT_BRAND",e.Brand),localStorage.setItem("AC_TENANT_LID",e.LID))}checkAuthKeysExists(){return["AC_TENANT_BRAND","AC_TENANT_LID","AUTH_DOMAIN","AUTH_EXPIRES_AT","AUTH_POS_TOKEN","AUTH_SUB_DOMAIN","AUTH_TOKEN","AUTH_TOKEN_TYPE","AUTH_USERNAME"].every(e=>!!localStorage.getItem(e))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{f as a};
|
package/chunk-UQMQ34KD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Qe}from"./chunk-G4XX7EU2.js";import{a as Xe,b as Ze,c as et,d as tt,e as nt,f as ot}from"./chunk-WKMCO5GR.js";import{a as Te,b as Fe}from"./chunk-O4QM64EH.js";import{d as ne,e as qe,i as we,j as Me,k as oe}from"./chunk-B6WHUOA5.js";import"./chunk-E4IYO245.js";import"./chunk-CF5CCUC7.js";import{a as Ae}from"./chunk-XKCLERWG.js";import{a as ee,b as pe}from"./chunk-XSV3RUSY.js";import"./chunk-KOLMNCWR.js";import{a as K,b as J}from"./chunk-GQALHR6D.js";import"./chunk-AAV2CBYL.js";import"./chunk-7Z3LI5KJ.js";import"./chunk-6JMIM647.js";import"./chunk-LETMLT3U.js";import"./chunk-WJ2UEWWN.js";import"./chunk-RSNWAAG7.js";import{a as Ee,b as Y}from"./chunk-VLOOUXSK.js";import{h as M}from"./chunk-ZJXOMTHP.js";import"./chunk-I7SRN7BD.js";import{a as z,b as U}from"./chunk-2U35WLGR.js";import{a as te,b as ye,c as Pe,d as be,e as Oe,f as Ie,g as Je}from"./chunk-JBSIAXM5.js";import"./chunk-QTHCFSIO.js";import{o as Ke,w as B,x as V}from"./chunk-BOLQVS6Y.js";import"./chunk-BHV2HCJY.js";import{e as H,f as _e,j as re,k as ge,l as xe,m as he,n as Ye,o as Ce,v as Se,x as Z,y as ve}from"./chunk-FMVCTBCQ.js";import{a as fe}from"./chunk-MP3KNNAP.js";import"./chunk-MFLZ4HZM.js";import{D as ae,F as ze,G,N as k,f as L,j as He,m as w}from"./chunk-B63BKC6F.js";import"./chunk-F2X3VGZZ.js";import{Ac as ie,Cb as _,Ga as R,Jc as Ue,Kb as s,Kc as je,Mc as u,Nb as F,Pb as $e,Qb as P,Sb as b,Tb as O,Ub as a,Vb as i,Wb as $,X as j,Yc as X,Z as D,_b as v,ba as ue,bb as Ve,c as se,dc as y,ec as c,gb as p,ha as h,pa as C,qa as S,qc as m,rc as d,s as Q,sc as I,uc as We,wb as T,yc as de,zc as E}from"./chunk-JP6RBSB3.js";import{a as f,b as x}from"./chunk-YQFG5XE2.js";var A=(()=>{class t{constructor(){this.httpService=h(fe)}getGlobalConfiguration(){return this.httpService.get(void 0,"/api/setup/GlobalConfiguration")}saveGlobalConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitGlobalConfiguration",e)}fetchPOSOutletConfiguration(e){return this.httpService.get(void 0,"/api/Setup/OutletConfiguration",{params:e})}fetchPOSOutletFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"/api/Setup/OutletConfigurationForm",n)}updatePOSOutletConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitOutletConfiguration",e)}fetchPOSPaymentConfiguration(e){return this.httpService.get(void 0,"/api/Setup/PaymentConfiguration",{params:e})}fetchPOSPaymentFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"api/Setup/PaymentConfigurationForm",n)}updatePOSPaymentConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitPaymentConfiguration",e)}fetchPOSTaxConfiguration(){return this.httpService.get(void 0,"/api/setup/TaxConfigurationForm")}updatePOSTaxConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitTaxConfiguration",e)}fetchPOSWriteOffConfiguration(){return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationList")}fetchPOSWriteOffFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationForm",n)}updatePOSWriteOffConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitWriteOffConfiguration",e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var N=function(t){return t.POSGLOBAL_SELL="Sell",t.POSGLOBAL_BUY="Buy",t.POSGLOBAL_ADJUSTMENT="Adjustment",t.POSGLOBAL_PREPAID="Prepaid",t.POSGLOBAL_RETURN="Return",t.POSGLOBAL_DEBT="Debt",t.POSGLOBAL_PAYMENTFEE="Payment Fee",t.POSGLOBAL_MANUFACTURING="Manufacturing",t.POSGLOBAL_ADVANCE="Advance",t}(N||{});var it={[N.POSGLOBAL_SELL]:[{typeID:2,side:"debit",label:"Account Receivable"},{typeID:1,side:"credit",label:"Sales"},{typeID:4,side:"debit",label:"COGS"},{typeID:3,side:"credit",label:"Sold Inventory"},{typeID:10,side:"debit",label:"Sales Discount"}],[N.POSGLOBAL_BUY]:[{typeID:27,side:"debit",label:"Pending Paid Inventory"},{typeID:5,side:"credit",label:"Account Payable"},{typeID:28,side:"debit",label:"Inventory Bought"},{typeID:27,side:"credit",label:"Pending Paid Inventory"},{typeID:11,side:"credit",label:"Purchase Discount"}],[N.POSGLOBAL_ADJUSTMENT]:[{typeID:26,side:"debit",label:"Adjustment Asset"},{typeID:21,side:"credit",label:"Adjustment Expense"}],[N.POSGLOBAL_PREPAID]:[{typeID:29,side:"debit",label:"Accounting for Prepaid"},{typeID:30,side:"debit",label:"Sales For Prepaid"}],[N.POSGLOBAL_RETURN]:[{typeID:8,side:"debit",label:"Sales Return"},{typeID:27,side:"debit",label:"Inventory"},{typeID:4,side:"credit",label:"COGS"},{typeID:9,side:"credit",label:"Purchase Return"}],[N.POSGLOBAL_DEBT]:[{typeID:17,side:"debit",label:"Consignment Payable"}],[N.POSGLOBAL_PAYMENTFEE]:[{typeID:19,side:"debit",label:"Payment Fee"},{typeID:20,side:"credit",label:"Surcharge"}],[N.POSGLOBAL_MANUFACTURING]:[{typeID:24,side:"debit",label:"Finished Goods"},{typeID:23,side:"credit",label:"Raw Material"},{typeID:25,side:"credit",label:"Production Expenses"}],[N.POSGLOBAL_ADVANCE]:[{typeID:15,side:"debit",label:"Crossing Account"},{typeID:16,side:"debit",label:"Retained Earnings"},{typeID:18,side:"debit",label:"Current Earnings"}]};function gt(t,r){if(t&1){let e=v();a(0,"div",5)(1,"p-button",6),y("onClick",function(){C(e);let o=c();return S(o.onSubmit())}),i()()}}function xt(t,r){if(t&1&&(a(0,"p-tab",10),m(1),i()),t&2){let e=r.$implicit;s("value",e.value),p(),d(e.label)}}function ht(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Ct(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function St(t,r){if(t&1&&(a(0,"div",14)(1,"div",15)(2,"div",5)(3,"label",16),m(4),i(),a(5,"span",17),m(6),i()(),a(7,"p-select",18),_(8,ht,7,2,"ng-template",null,2,u)(10,Ct,7,2,"ng-template",null,3,u),i()()()),t&2){let e=r.$implicit,n=c(4);s("formGroupName",e.index),p(4),d(e.entry.value.label),p(2),d(e.entry.value.side),p(),s("options",n.posIntegration().options.accounts)}}function vt(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function yt(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Pt(t,r){if(t&1&&(a(0,"div",14)(1,"div",15)(2,"div",5)(3,"label",16),m(4),i(),a(5,"span",20),m(6),i()(),a(7,"p-select",18),_(8,vt,7,2,"ng-template",null,2,u)(10,yt,7,2,"ng-template",null,3,u),i()()()),t&2){let e=r.$implicit,n=c(4);s("formGroupName",e.index),p(4),d(e.entry.value.label),p(2),d(e.entry.value.side),p(),s("options",n.posIntegration().options.accounts)}}function bt(t,r){if(t&1&&(a(0,"p-tabpanel",10)(1,"div",11)(2,"div",12)(3,"div",13),b(4,St,12,4,"div",14,P),i()(),a(6,"div",12)(7,"div",13),b(8,Pt,12,4,"div",14,P),i()()()()),t&2){let e=r.$implicit,n=c(3);s("value",e.value),p(),s("formGroupName",e.value),p(3),O(n.getDebitEntries(e.value)),p(4),O(n.getCreditEntries(e.value))}}function Ot(t,r){if(t&1){let e=v();a(0,"form",8),y("ngSubmit",function(){C(e);let o=c(2);return S(o.onSubmit())}),a(1,"p-tabs",9)(2,"p-tablist"),b(3,xt,2,2,"p-tab",10,P),i(),a(5,"p-tabpanels"),b(6,bt,10,2,"p-tabpanel",10,P),i()()()}if(t&2){let e=c(2);s("formGroup",e.accountForm),p(),s("value",e.tab())("lazy",!0),p(2),O(e.tabs()),p(3),O(e.tabs())}}function It(t,r){if(t&1&&_(0,Ot,8,3,"form",7),t&2){let e=c();s("ngIf",e.posIntegration()&&e.accountForm)}}var at=(()=>{class t{constructor(){this.posConfigService=h(A),this.fb=h(Se),this.tab=R(N.POSGLOBAL_SELL),this.tabs=R(Object.values(N).map(e=>({label:e,value:e}))),this.posIntegration=R(null),this.form=R([]),this.descriptionsMap=new Map,this.objectKeys=Object.keys,this.posGlobalTabEnum=N}ngOnInit(){this.posConfigService.getGlobalConfiguration().pipe(D(e=>{this.posIntegration.set(e),this.form.set(e.form),this.descriptionsMap=new Map(e.descriptions.map(n=>[+n.id,n.name])),this.initializeForm()})).subscribe()}initializeForm(){let e={};this.tabs().forEach(n=>{let o=this.getEntriesForTab(n.value);console.log(`Entries for ${n.value}:`,o),e[n.value]=this.fb.array(o.map(l=>this.createEntryFormGroup(l)))}),this.accountForm=this.fb.group(e)}createEntryFormGroup(e){let n=this.fb.group({typeID:[e.typeID],label:[e.label],side:[e.side],accountID:[this.getAccountIDByTypeID(e.typeID)]});return n.get("accountID").valueChanges.subscribe(o=>{this.syncAccountIDs(e.typeID,o,n)}),n}getAccountIDByTypeID(e){return this.form().find(o=>o.typeID===e)?.accountID||""}getEntriesForTab(e){return it[e]||[]}getTabEntries(e){return this.accountForm.get(e)}onSubmit(){let e=this.accountForm.getRawValue(),n=[],o=new Set;for(let l of Object.values(e))for(let{typeID:g,accountID:W}of l){let Be=`${g}_${W}`;o.has(Be)||(o.add(Be),n.push({typeID:g,accountID:W||Qe}))}console.log("Form submitted with value:",n),this.posConfigService.saveGlobalConfiguration({form:n}).subscribe({next:()=>console.log("Save successful"),error:l=>console.error("Save failed",l)})}getDebitEntries(e){return this.getTabEntries(e).controls.map((n,o)=>({entry:n,index:o})).filter(n=>n.entry.value.side==="debit")}getCreditEntries(e){return this.getTabEntries(e).controls.map((n,o)=>({entry:n,index:o})).filter(n=>n.entry.value.side==="credit")}syncAccountIDs(e,n,o){Object.values(this.accountForm.controls).forEach(l=>{l.controls.forEach(g=>{g!==o&&g.get("typeID")?.value===e&&g.get("accountID")?.value!==n&&g.get("accountID")?.setValue(n,{emitEvent:!1})})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-global"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],["pageTitle","POS Integration"],[1,"d-flex","gap-2"],["label","Submit",3,"onClick"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"border-top",3,"value","lazy"],[3,"value"],[1,"row",3,"formGroupName"],[1,"col"],[1,"row","gap-3"],[1,"col-12",3,"formGroupName"],[1,"form-group","d-flex","flex-column"],["for","",1,"fs-3"],[1,"text-success","fs-3"],["filter","","filterBy","code,name","formControlName","accountID","optionLabel","name","optionValue","id",3,"options"],[1,"d-flex","align-items-center","gap-2"],[1,"text-danger","fs-3"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,gt,2,0,"ng-template",null,0,u)(3,It,1,1,"ng-template",null,1,u),i())},dependencies:[M,ot,nt,tt,et,Xe,Ze,Ke,J,K,Z,ge,H,_e,w,L,k,V,B,ve,xe,Ce,he],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Et=t=>[t];function Tt(t,r){if(t&1&&(a(0,"th",7),m(1),i()),t&2){let e=r.$implicit;p(),d(e.name.slice(0,10))}}function Ft(t,r){if(t&1&&(a(0,"tr")(1,"th",6),m(2,"Method"),i()(),a(3,"tr"),b(4,Tt,2,1,"th",7,P),i()),t&2){let e=c(3);p(4),O(e.paymentConfiguration().outlets)}}function wt(t,r){if(t&1&&(a(0,"td"),m(1),i()),t&2){let e=r.$implicit;p(),d(e.accountName)}}function Mt(t,r){if(t&1&&(a(0,"tr")(1,"td",8)(2,"a",9),m(3),i()(),b(4,wt,2,1,"td",null,P),i()),t&2){let e=r.$implicit;p(2),s("routerLink",ie(2,Et,e.id)),p(),d(e.name),p(),O(e.accounts)}}function Dt(t,r){if(t&1&&(a(0,"p-table",5),_(1,Ft,6,0,"ng-template",null,1,u)(3,Mt,6,4,"ng-template",null,2,u),i()),t&2){let e=c(2);s("scrollable",!0)("scrollHeight","calc(100vh - 70px)")("value",e.paymentConfiguration().payment)}}function Rt(t,r){if(t&1){let e=v();a(0,"app-main-panel",4),y("search",function(o){C(e);let l=c();return S(l.onSearch(o))}),_(1,Dt,5,3,"ng-template",null,0,u),i()}t&2&&s("isSearchableInput",!0)}var rt=(()=>{class t{constructor(){this.POSSetupService=h(A),this.paymentConfiguration=R(null)}ngOnInit(){this.POSSetupService.fetchPOSPaymentConfiguration({}).pipe(D(e=>{this.paymentConfiguration.set(e)})).subscribe()}onSearch(e){this.POSSetupService.fetchPOSPaymentConfiguration({Search:e}).pipe(D(n=>{this.paymentConfiguration.set(n)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-payment"]],decls:1,vars:1,consts:[["content",""],["header",""],["body",""],["pageTitle","Payment Method Accounting",3,"isSearchableInput","search",4,"ngIf"],["pageTitle","Payment Method Accounting",3,"search","isSearchableInput"],[3,"scrollable","scrollHeight","value"],["rowspan","3",2,"min-width","300px"],[2,"min-width","200px"],["pFrozenColumn",""],[1,"link-primary",3,"routerLink"]],template:function(n,o){n&1&&_(0,Rt,3,1,"app-main-panel",3),n&2&&s("ngIf",o.paymentConfiguration())},dependencies:[M,oe,ne,qe,w,L,k,G],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var kt={data:{listOutletAccount:[],listCOAType:[],pageNumber:1,pageSize:20,totalCount:0,totalPages:0},filter:{PageNumber:1,PageSize:20,Search:""}},Le=ye(Ie(kt),Pe(t=>({first:X(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:X(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount))})),Oe(t=>{let r=h(A);return{updateFilter:n=>{te(t,o=>x(f({},o),{filter:f(f({},o.filter),n)}))},getPOSOutlets:Te(se(j(n=>r.fetchPOSOutletConfiguration(n).pipe(Fe({next:o=>{te(t,l=>x(f({},l),{data:o}))},error:o=>{console.error("Error fetching POS outlets:",o)}})))))}}),be(t=>({onInit:()=>{t.getPOSOutlets(t.filter)}})));var At=()=>({height:"calc(100vh - 70px)"}),Nt=t=>[t];function Lt(t,r){if(t&1&&(a(0,"th"),m(1),i()),t&2){let e=r.$implicit;p(),d(e.value)}}function Gt(t,r){if(t&1&&(a(0,"tr")(1,"th"),m(2,"Name"),i(),b(3,Lt,2,1,"th",null,P),i()),t&2){let e=c(2);p(3),O(e.store.data().listCOAType)}}function Bt(t,r){if(t&1&&(a(0,"td"),m(1),i()),t&2){let e=r.$implicit;p(),d(e)}}function Vt(t,r){if(t&1&&(a(0,"tr")(1,"td")(2,"a",7),m(3),i()(),b(4,Bt,2,1,"td",null,P),i()),t&2){let e=r.$implicit;p(2),s("routerLink",ie(2,Nt,e.OutletID)),p(),I(" ",e.OutletName,""),p(),O(e.Accounts)}}function $t(t,r){if(t&1&&m(0),t&2){let e=c(2);We(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Wt(t,r){t&1&&(a(0,"tr")(1,"td",8)(2,"span"),m(3," No journal entries found. "),i()()())}function Ut(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",6),y("onPage",function(o){C(e);let l=c();return S(l.onPage(o))}),_(2,Gt,5,0,"ng-template",null,1,u)(4,Vt,6,4,"ng-template",null,2,u)(6,$t,1,3,"ng-template",null,3,u)(8,Wt,4,0,"ng-template",null,4,u),i()()}if(t&2){let e=c();F(E(11,At)),p(),s("scrollable",!0)("scrollHeight","calc(100vh - 100px)")("value",e.store.data().listOutletAccount)("paginator",!0)("rows",e.store.filter().PageSize)("lazy",!0)("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("totalRecords",e.store.data().totalCount)}}var pt=(()=>{class t{constructor(){this.store=h(Le)}onSearch(e){this.store.updateFilter({PageNumber:1,PageSize:20,Search:e})}onPage(e){let n=e.first/e.rows+1;this.store.updateFilter(x(f({},this.store.filter()),{PageSize:e.rows,PageNumber:n}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-outlet"]],features:[de([Le])],decls:3,vars:1,consts:[["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Outlet Account",3,"search","isSearchableInput"],["styleClass","d-flex flex-column justify-content-between h-100",3,"onPage","scrollable","scrollHeight","value","paginator","rows","lazy","totalRecords"],[1,"link","link-primary",3,"routerLink"],["colspan","8"]],template:function(n,o){if(n&1){let l=v();a(0,"app-main-panel",5),y("search",function(W){return C(l),S(o.onSearch(W))}),_(1,Ut,10,12,"ng-template",null,0,u),i()}n&2&&s("isSearchableInput",!0)},dependencies:[M,w,Y,oe,ne,k,G,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var jt=()=>({height:"calc(100vh - 100px)"}),Ht=()=>({height:"calc(100vh - 150px)"});function zt(t,r){if(t&1){let e=v();a(0,"a",5),m(1,"Cancel"),i(),a(2,"p-button",6),y("onClick",function(){C(e);let o=c();return S(o.updatePOsOutletConfiguration())}),i()}}function Yt(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",17)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Kt(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",18)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Jt(t,r){if(t&1&&(a(0,"div",12)(1,"span",14),m(2),i(),a(3,"p-select",15),_(4,Yt,7,2,"ng-template",null,2,u)(6,Kt,7,2,"ng-template",null,3,u),i()()),t&2){let e,n=r.$implicit,o=r.$index,l=c(3);s("formGroupName",o),p(2),d((e=n.get("TypeName"))==null?null:e.value),p(),s("options",l.options.accounts)}}function qt(t,r){t&1&&$(0,"hr")}function Qt(t,r){if(t&1&&(a(0,"div",9)(1,"h3",10),m(2),Ue(3,"titlecase"),i(),a(4,"div",11),b(5,Jt,8,3,"div",12,P),i()(),_(7,qt,1,0,"hr",13)),t&2){let e,n=r.$implicit,o=r.$index,l=r.$index,g=r.$count,W=c(2);s("formGroupName",o),p(2),I(" ",je(3,3,(e=n.get("groupName"))==null?null:e.value)," "),p(3),O(W.getAccountsFormArray(l).controls),p(2),s("ngIf",l!==g-1)}}function Xt(t,r){if(t&1&&(a(0,"p-panel")(1,"p-scroll-panel")(2,"form",7)(3,"div",8),b(4,Qt,8,5,null,null,P),i()()()()),t&2){let e=c();F(E(5,jt)),p(),F(E(6,Ht)),p(),s("formGroup",e.accountsForm),p(2),O(e.accountGroupsArray.controls)}}var lt=(()=>{class t{constructor(){this.route=h(ae),this.POSSetupService=h(A),this.outletForm=R(null),this.allAccounts=[],this.options=null,this.outletName="",this.accountGroups=[{name:"sell",typeIds:[1,2],accounts:[]},{name:"delivery",typeIds:[3,4],accounts:[]},{name:"buy",typeIds:[27,11,28],accounts:[]},{name:"purchase return",typeIds:[9],accounts:[]},{name:"sales return",typeIds:[8],accounts:[]},{name:"adjustment",typeIds:[21,26],accounts:[]}],this.fb=h(Se)}ngOnInit(){this.accountsForm=this.fb.group({accountGroups:this.fb.array([])}),this.route.paramMap.pipe(Q(e=>e.get("id")),j(e=>this.POSSetupService.fetchPOSOutletFormConfiguration({outletID:e})),D(e=>{this.allAccounts=e.form,this.options=e.options,this.outletName=e.form[0].OutletName,this.accountGroups.forEach(o=>{o.accounts=this.allAccounts.filter(l=>o.typeIds.includes(l.TypeID))});let n=this.accountsForm.get("accountGroups");this.accountGroups.forEach(o=>{n.push(this.createAccountGroupControl(o))})})).subscribe()}get accountGroupsArray(){return this.accountsForm.get("accountGroups")}getAccountsFormArray(e){return this.accountGroupsArray.at(e).get("accounts")}createAccountGroupControl(e){return this.fb.group({groupName:[e.name],accounts:this.fb.array(e.accounts.map(n=>this.createAccountControl(n)))})}createAccountControl(e){return this.fb.group({AccountID:[e.AccountID],TypeID:[e.TypeID],TypeName:[e.TypeName],OutletID:[e.OutletID],OutletName:[e.OutletName]})}updatePOsOutletConfiguration(){let{accountGroups:e}=this.accountsForm.value,n={form:e.flatMap(o=>o.accounts.map(l=>({AccountID:l.AccountID,TypeID:l.TypeID,TypeName:l.TypeName,OutletID:l.OutletID,OutletName:l.OutletName})))};this.POSSetupService.updatePOSOutletConfiguration(n).pipe().subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-outlet-form"]],decls:5,vars:2,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding"],["routerLink","/pages/pos-setup/outlets",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"",3,"formGroup"],["formArrayName","accountGroups",1,"d-flex","flex-column","gap-2"],[1,"row",3,"formGroupName"],[1,"fs-4","fw-semibold"],["formArrayName","accounts",1,"row","row-gap-3"],[1,"col-6",3,"formGroupName"],[4,"ngIf"],[1,"fs-3"],["formControlName","AccountID","filter","","filterBy","code,name","optionLabel","name","optionValue","id","placeholder","Select an account",1,"w-100",3,"options"],[1,"d-flex","gap-2"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,zt,3,0,"ng-template",null,0,u)(3,Xt,6,7,"ng-template",null,1,u),i()),n&2&&s("pageTitle","Edit "+o.outletName)("hasMainWrapperPadding",!0)},dependencies:[M,w,L,He,Y,ve,ge,H,_e,xe,Ce,he,Ye,J,K,U,z,ee,V,B,k,G],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var en=()=>({height:"calc(100vh - 100px)"}),tn=()=>({width:"100%",height:"calc(100vh - 150px)"}),nn=()=>({width:"100%"});function on(t,r){if(t&1){let e=v();a(0,"a",6),m(1,"Cancel"),i(),a(2,"p-button",7),y("onClick",function(){C(e);let o=c(3);return S(o.updatePOSOutletConfiguration())}),i()}}function an(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",17)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function rn(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",18)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function pn(t,r){if(t&1){let e=v();a(0,"div",9)(1,"div",10)(2,"div",11)(3,"label",12),m(4),i()(),$(5,"div",13),a(6,"div",14)(7,"p-select",15),y("ngModelChange",function(o){let l=C(e).$index,g=c(4);return S(g.updateAccountById(o,l))}),_(8,an,7,2,"ng-template",null,2,u)(10,rn,7,2,"ng-template",null,3,u),i()()()()}if(t&2){let e=r.$implicit,n=r.$index,o=c(4);p(4),d(e.outletName.slice(0,15)),p(3),F(E(7,nn)),s("ngModel",o.paymentForm().form.accounts[n].accountID)("virtualScroll",!0)("virtualScrollItemSize",50)("options",o.paymentForm().options.chartOfAccount)}}function ln(t,r){if(t&1&&(a(0,"p-card")(1,"p-scrollpanel")(2,"div",8),b(3,pn,12,8,"div",9,P),i()()()),t&2){let e=c(3);F(E(4,en)),p(),F(E(5,tn)),p(2),O(e.paymentForm().form.accounts)}}function mn(t,r){if(t&1&&(a(0,"app-main-panel",4),_(1,on,3,0,"ng-template",null,0,u)(3,ln,5,6,"ng-template",null,1,u),i()),t&2){let e=c(2);s("pageTitle",e.paymentForm().form.paymentMethod.name+" Form Accounting")("hasMainWrapperPadding",!0)}}function cn(t,r){if(t&1&&_(0,mn,5,2,"app-main-panel",5),t&2){let e=c();s("ngIf",e.paymentForm())}}var ct=(()=>{class t{constructor(){this.route=h(ae),this.POSSetupService=h(A),this.paymentForm=R(null),this.router=h(ze)}ngOnInit(){this.route.paramMap.pipe(Q(e=>+e.get("id")),j(e=>this.POSSetupService.fetchPOSPaymentFormConfiguration({ID:e})),D(e=>{this.paymentForm.set(e)}),Ae("response")).subscribe()}updateAccountById(e,n){let o=this.paymentForm().form.accounts,l=x(f({},this.paymentForm()),{form:x(f({},this.paymentForm().form),{accounts:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)})});this.paymentForm.set(l)}updatePOSOutletConfiguration(){let e={form:[...this.paymentForm().form.accounts]};this.POSSetupService.updatePOSPaymentConfiguration(e).pipe(Ae("response"),D(()=>{this.router.navigate(["/pages/pos-setup/payments"])})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-payment-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding"],[3,"pageTitle","hasMainWrapperPadding",4,"ngIf"],["routerLink","/pages/pos-setup/payments",1,"p-button","p-button-outlined","p-button-secondary"],["label","Submit",3,"onClick"],[1,"row","row-gap-3"],[1,"col-6","d-flex","flex-column","gap-2"],[1,"row","row-gap-4"],[1,"col-2"],["for",""],[1,"col-3"],[1,"col-7"],["filter","","filterBy","name,code","optionLabel","name","optionValue","id","placeholder","Select an account",1,"w-full",3,"ngModelChange","ngModel","virtualScroll","virtualScrollItemSize","options"],[1,"d-flex","gap-2"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&_(0,cn,1,1,"app-main-panel",4),n&2&&$e(o.paymentForm()?0:-1)},dependencies:[Y,Ee,M,w,L,pe,ee,J,K,Z,H,re,k,G,V,B,U],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var sn=()=>({height:"calc(100vh - 70px)"}),un=()=>({width:"100%",height:"calc(100vh - 100px)"});function dn(t,r){if(t&1){let e=v();a(0,"div",5)(1,"a",6),m(2,"Cancel"),i(),a(3,"p-button",7),y("onClick",function(){C(e);let o=c();return S(o.updatePOSTaxConfiguration())}),i()()}}function fn(t,r){if(t&1&&(a(0,"div",5)(1,"div",15)(2,"span"),m(3),i()(),a(4,"div",15)(5,"span",15),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function _n(t,r){if(t&1&&(a(0,"div",5)(1,"div",15)(2,"span"),m(3),i()(),a(4,"div",16)(5,"span",15),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function gn(t,r){if(t&1){let e=v();a(0,"div",11)(1,"div",12)(2,"label",13),m(3),i(),a(4,"p-select",14),y("ngModelChange",function(o){let l=C(e).$index,g=c(2);return S(g.updateAccountID(o,l))}),_(5,fn,7,2,"ng-template",null,2,u)(7,_n,7,2,"ng-template",null,3,u),i()()()}if(t&2){let e=r.$implicit,n=r.$index,o=c(2);p(3),d(e.name),p(),s("options",o.taxForm().options.chartOfAccount)("ngModel",o.taxForm().form[n].accountID)}}function xn(t,r){if(t&1&&(a(0,"p-panel")(1,"p-scroll-panel")(2,"div",8)(3,"div",9)(4,"div",10),b(5,gn,9,3,"div",11,P),i()()()()()),t&2){let e=c();F(E(4,sn)),p(),F(E(5,un)),p(4),O(e.taxForm().form)}}var st=(()=>{class t{constructor(){this.POSSetupService=h(A),this.taxForm=R(null)}ngOnInit(){this.POSSetupService.fetchPOSTaxConfiguration().pipe(D(e=>{this.taxForm.set(e)})).subscribe()}updateAccountID(e,n){let o=this.taxForm().form,l=x(f({},this.taxForm()),{form:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)});this.taxForm.set(l)}updatePOSTaxConfiguration(){let e={form:[...this.taxForm().form]};this.POSSetupService.updatePOSTaxConfiguration(e).pipe(D(n=>console.log(n))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-tax"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],["pageTitle","Tax Setup"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col-4"],[1,"row","row-gap-3"],[1,"col-12"],[1,"d-flex","flex-column"],["for",""],["filter","","filterBy","name,code","optionLabel","name","optionValue","id","placeholder","Select an Account",3,"ngModelChange","options","ngModel"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,dn,4,0,"ng-template",null,0,u)(3,xn,7,6,"ng-template",null,1,u),i())},dependencies:[M,Y,w,J,K,pe,ee,Z,H,re,k,G,V,B,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var hn=()=>({height:"calc(100vh - 70px)"}),Cn=()=>({"min-width":"50rem"}),Sn=t=>[t];function vn(t,r){t&1&&$(0,"p-button",6)}function yn(t,r){if(t&1&&_(0,vn,1,0,"p-button",5),t&2){let e=c();s("ngIf",e.hasCheckedItems())}}function Pn(t,r){t&1&&(a(0,"tr")(1,"th",9),$(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),m(4,"Name"),i(),a(5,"th"),m(6,"Description"),i()())}function bn(t,r){if(t&1&&(a(0,"tr")(1,"td"),$(2,"p-tableCheckbox",10),i(),a(3,"td")(4,"a",11),m(5),i()(),a(6,"td"),m(7),i()()),t&2){let e=r.$implicit;p(2),s("value",e),p(2),s("routerLink",ie(4,Sn,e.id)),p(),d(e.name),p(2),d(e.description)}}function On(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",8),y("onRowSelect",function(o){C(e);let l=c(2);return S(l.onRowSelect(o))})("onRowUnselect",function(o){C(e);let l=c(2);return S(l.onRowSelect(o))})("onHeaderCheckboxToggle",function(o){C(e);let l=c(2);return S(l.onSelectAll(o))}),_(2,Pn,7,0,"ng-template",null,2,u)(4,bn,8,6,"ng-template",null,3,u),i()()}if(t&2){let e=c(2);F(E(4,hn)),p(),s("value",e.writeoffList().data)("tableStyle",E(5,Cn))}}function In(t,r){if(t&1&&_(0,On,6,6,"p-panel",7),t&2){let e=c();s("ngIf",e.writeoffList())}}var ut=(()=>{class t{constructor(){this.POSSetupService=h(A),this.writeoffList=R(null),this.hasCheckedItems=X(()=>{let e=this.writeoffList();return!e||!e.data||!Array.isArray(e.data)?!1:e.data.some(n=>n&&n.checked===!0)})}ngOnInit(){this.POSSetupService.fetchPOSWriteOffConfiguration().pipe(Q(e=>x(f({},e),{data:e.data.map(n=>x(f({},n),{checked:!1}))})),D(e=>{this.writeoffList.set(e)})).subscribe()}onRowSelect(e){console.log("Selected Row:",e.data);let n=this.writeoffList();if(!n||!n.data)return;let o=n.data.findIndex(l=>l.id===e.data.id);if(o!==-1){let l=[...n.data];l[o]=x(f({},l[o]),{checked:!l[o].checked}),this.writeoffList.set(x(f({},n),{data:l}))}}onSelectAll(e){let n=this.writeoffList();if(!n?.data)return;let o=n.data.map(l=>x(f({},l),{checked:e.checked}));this.writeoffList.set(x(f({},n),{data:o}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-writeoff"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Write Off"],["severity","danger","label","Delete","icon","fa-solid fa-trash",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash"],[3,"style",4,"ngIf"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","tableStyle"],[2,"width","4rem"],[3,"value"],[1,"link-primary",3,"routerLink"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,yn,1,1,"ng-template",null,0,u)(3,In,1,1,"ng-template",null,1,u),i())},dependencies:[M,w,L,oe,ne,we,Me,k,G,V,B,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var En=()=>({witdh:"100%",height:"calc(100vh - 150px)"});function Tn(t,r){if(t&1){let e=v();a(0,"div",6)(1,"a",7),m(2,"Cancel"),i(),a(3,"p-button",8),y("onClick",function(){C(e);let o=c(2);return S(o.updateWriteOffConfiguration())}),i()()}}function Fn(t,r){if(t&1&&(a(0,"div",6)(1,"span",16),m(2),i(),a(3,"span",16),m(4),i()()),t&2){let e=r.$implicit;p(2),I("(",e.code,")"),p(2),d(e.name)}}function wn(t,r){if(t&1&&(a(0,"div",6)(1,"span",16),m(2),i(),a(3,"span",16),m(4),i()()),t&2){let e=r.$implicit;p(2),I("(",e.code,")"),p(2),d(e.name)}}function Mn(t,r){if(t&1){let e=v();a(0,"div",12)(1,"div",13)(2,"label",14),m(3),i(),a(4,"p-select",15),y("ngModelChange",function(o){let l=C(e).$index,g=c(3);return S(g.updateAccountById(o,l))}),_(5,Fn,5,2,"ng-template",null,2,u)(7,wn,5,2,"ng-template",null,3,u),i()()()}if(t&2){let e=r.$implicit,n=c(3);p(3),d(e.name),p(),s("ngModel",e.accountID)("options",n.writeOffForm().options.account)("virtualScroll",!0)("virtualScrollItemSize",50)}}function Dn(t,r){if(t&1&&(a(0,"p-card")(1,"p-scroll-panel")(2,"div",9)(3,"div",10)(4,"div",11),b(5,Mn,9,5,"div",12,P),i()()()()()),t&2){let e=c(2);p(),F(E(2,En)),p(4),O(e.writeOffForm().form)}}function Rn(t,r){if(t&1&&(a(0,"app-main-panel",5),_(1,Tn,4,0,"ng-template",null,0,u)(3,Dn,7,3,"ng-template",null,1,u),i()),t&2){let e=c();s("pageTitle","Write Off Form "+e.writeOffForm().info.name)("hasMainWrapperPadding",!0)}}var dt=(()=>{class t{constructor(){this.POSSetupService=h(A),this.route=h(ae),this.writeOffForm=R(null)}ngOnInit(){this.route.paramMap.pipe(Q(e=>e.get("id")),j(e=>this.POSSetupService.fetchPOSWriteOffFormConfiguration({ID:e})),D(e=>this.writeOffForm.set(e))).subscribe()}updateAccountById(e,n){let o=this.writeOffForm().form,l=x(f({},this.writeOffForm()),{form:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)});this.writeOffForm.set(l)}updateWriteOffConfiguration(){let e={form:this.writeOffForm().form};this.POSSetupService.updatePOSWriteOffConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-writeoff-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding",4,"ngIf"],[3,"pageTitle","hasMainWrapperPadding"],[1,"d-flex","gap-2"],["routerLink","/pages/pos-setup/writeoff",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for","",1,"d-inline-block","text-truncate",2,"max-width","300px"],["filter","","filterBy","name,code","optionLabel","name","filter","","filterBy","name,code","optionValue","id","placeholder","Select an account",3,"ngModelChange","ngModel","options","virtualScroll","virtualScrollItemSize"],[1,""]],template:function(n,o){n&1&&_(0,Rn,5,2,"app-main-panel",4),n&2&&s("ngIf",o.writeOffForm())},dependencies:[M,w,L,Y,Ee,pe,ee,J,K,Z,H,re,k,G,V,B],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ft=(()=>{class t{constructor(){this.httpService=h(fe)}getExpenseOptions(){return this.httpService.get(void 0,"/api/SetupExpenseOption/GetExpenseOptions")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var kn={data:{expenseOptions:[]}},Ge=ye(Ie(kn),Je("POSExpenseOptionStore"),Pe(t=>({hasCheckedRows:X(()=>t.data().expenseOptions.some(r=>r.checked)),checkedInvoice:X(()=>t.data().expenseOptions.filter(r=>r.checked).map(r=>r.id))})),Oe(t=>{let r=h(ft);return{onRowSelect(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>g.id===n.id?x(f({},g),{checked:!0}):g);return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},onRowUnselect(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>g.id===n.id?x(f({},g),{checked:!1}):g);return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},onHeaderCheckboxToggle(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>x(f({},g),{checked:n}));return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},getExpenseOptions:Te(se(j(()=>r.getExpenseOptions().pipe(Fe({next:n=>{te(t,o=>x(f({},o),{data:x(f({},o.data),{expenseOptions:n.expenseOptions.map(l=>x(f({},l),{checked:!1}))})}))},error:n=>{console.error("Error fetching expense options:",n)}})))))}}),be({onInit:t=>{t.getExpenseOptions()}}));var An=()=>({height:"calc(100vh - 70px)"});function Nn(t,r){t&1&&$(0,"p-button",6)}function Ln(t,r){if(t&1&&_(0,Nn,1,0,"p-button",5),t&2){let e=c();s("ngIf",e.store.hasCheckedRows())}}function Gn(t,r){t&1&&(a(0,"tr")(1,"th",8),$(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),m(4,"Name"),i(),a(5,"th"),m(6,"Account"),i(),a(7,"th"),m(8,"Description"),i()())}function Bn(t,r){if(t&1&&(a(0,"tr")(1,"td"),$(2,"p-tableCheckbox",9),i(),a(3,"td"),m(4),i(),a(5,"td"),m(6),i(),a(7,"td"),$(8,"p",10),i()()),t&2){let e=r.$implicit;p(2),s("value",e),p(2),d(e.name),p(2),d(e.accountName),p(2),s("innerHTML",e.description,Ve)}}function Vn(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",7),y("onRowSelect",function(o){C(e);let l=c();return S(l.onRowSelect(o))})("onRowUnselect",function(o){C(e);let l=c();return S(l.onRowUnselect(o))})("onHeaderCheckboxToggle",function(o){C(e);let l=c();return S(l.onHeaderCheckboxToggle(o))}),_(2,Gn,9,0,"ng-template",null,2,u)(4,Bn,9,4,"ng-template",null,3,u),i()()}if(t&2){let e=c();F(E(3,An)),p(),s("value",e.store.data().expenseOptions)}}var _t=(()=>{class t{constructor(){this.store=h(Ge)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){Array.isArray(e.data)?e.data.forEach(n=>{this.store.onRowUnselect(n)}):this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-expense-option"]],features:[de([Ge])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Expense Option"],["label","Delete","severity","danger","icon","fa-solid fa-trash",4,"ngIf"],["label","Delete","severity","danger","icon","fa-solid fa-trash"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value"],[2,"width","4rem"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,Ln,1,1,"ng-template",null,0,u)(3,Vn,6,4,"ng-template",null,1,u),i())},dependencies:[M,oe,ne,we,Me,U,z,V,B,w,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ua=[{path:"",redirectTo:"global",pathMatch:"full"},{path:"",children:[{path:"global",component:at},{path:"outlets",component:pt},{path:"outlets/:id",component:lt},{path:"payments",component:rt},{path:"payments/:id",component:ct},{path:"taxs",component:st},{path:"writeoff",component:ut},{path:"writeoff/:id",component:dt},{path:"expense-option",component:_t}]}];export{Ua as POS_SETUP_ROUTES};
|