dealposbooks 5.43.2 → 5.43.4
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/{chunk-EQ7DUTAS.js → chunk-24LB4C2F.js} +1 -1
- package/{chunk-TLGBF4OA.js → chunk-2QXFM5XW.js} +1 -1
- package/{chunk-GQI7GXAK.js → chunk-2WNYNQQL.js} +1 -1
- package/{chunk-7GIBHGH4.js → chunk-3IEHRIMB.js} +1 -1
- package/{chunk-OZ4T5P3A.js → chunk-4YRCZDD6.js} +1 -1
- package/{chunk-XFMPZEYT.js → chunk-67PHK4YP.js} +1 -1
- package/{chunk-FEV4P4DL.js → chunk-7ECCACK7.js} +1 -1
- package/{chunk-XIUI7VXN.js → chunk-7O5ESAAW.js} +2 -2
- package/{chunk-5TF7YHMI.js → chunk-ADG263PB.js} +1 -1
- package/{chunk-MERIFED5.js → chunk-ADSWUOUY.js} +1 -1
- package/{chunk-DXRSED76.js → chunk-AO5EQP2B.js} +1 -1
- package/{chunk-TRUGVHVM.js → chunk-C2QXUKUN.js} +1 -1
- package/{chunk-VHKLRJNY.js → chunk-CUJWP7QM.js} +1 -1
- package/{chunk-CIVJWHAU.js → chunk-E5COSLKI.js} +1 -1
- package/{chunk-62K4JEOY.js → chunk-E7D374D2.js} +1 -1
- package/{chunk-5VXLWX4K.js → chunk-ESBWIHRS.js} +1 -1
- package/{chunk-I7G575WF.js → chunk-GBGKPURJ.js} +1 -1
- package/{chunk-5QKCUI7M.js → chunk-GBNFNCZD.js} +1 -1
- package/{chunk-RZVVQ2WV.js → chunk-HWMIOQCB.js} +1 -1
- package/{chunk-ZE2UEAPO.js → chunk-HWTGNYVW.js} +1 -1
- package/{chunk-PBMTWCM7.js → chunk-IBRSLPPU.js} +1 -1
- package/{chunk-RIAHEVKE.js → chunk-J5QZVS7L.js} +1 -1
- package/{chunk-N72GOCDS.js → chunk-JMTQK454.js} +1 -1
- package/{chunk-OB7IGUCM.js → chunk-KG2Z2KWB.js} +1 -1
- package/{chunk-XA75ROED.js → chunk-KUQNUVP2.js} +1 -1
- package/{chunk-TUX7WEBX.js → chunk-L7IHRC76.js} +1 -1
- package/{chunk-N3CCHUQK.js → chunk-LJ4X2MAH.js} +1 -1
- package/{chunk-ONN4TIOR.js → chunk-LRFPDRBM.js} +1 -1
- package/{chunk-P2BR2DYT.js → chunk-MARY6JBK.js} +1 -1
- package/{chunk-HW2B6ZTB.js → chunk-MOJXP7TZ.js} +5 -5
- package/{chunk-7EIBD6QJ.js → chunk-N5OONCXV.js} +1 -1
- package/{chunk-TNMWSTYV.js → chunk-NLZ4CIPU.js} +1 -1
- package/{chunk-XIKOS3R2.js → chunk-O2QZV5QC.js} +1 -1
- package/{chunk-XMHQMMFC.js → chunk-OADWBKBO.js} +1 -1
- package/{chunk-LCZ3RU6J.js → chunk-PSGXMOVE.js} +1 -1
- package/{chunk-VF3ARYUC.js → chunk-PSVWRS7B.js} +1 -1
- package/chunk-QILMS3RE.js +1 -0
- package/{chunk-GZRKRXV7.js → chunk-RXXVTQ2K.js} +1 -1
- package/{chunk-YQGBYYHV.js → chunk-SELXYC6B.js} +1 -1
- package/{chunk-PZAVQQFP.js → chunk-TAFRKB6A.js} +1 -1
- package/{chunk-ZJ2QSE55.js → chunk-VDZIBC74.js} +1 -1
- package/{chunk-6YJVOMOB.js → chunk-VKVLSG6E.js} +1 -1
- package/{chunk-ESHOCSRS.js → chunk-VSADMSVH.js} +1 -1
- package/chunk-XA2ABGLH.js +8 -0
- package/{chunk-WAIG32DS.js → chunk-YEKZJPOK.js} +1 -1
- package/{chunk-SJCXXNYW.js → chunk-YSKNASMC.js} +1 -1
- package/{chunk-RJSTA3LD.js → chunk-YU7KULAN.js} +1 -1
- package/{chunk-DQQKEX6Z.js → chunk-YWM5T5L3.js} +1 -1
- package/index.html +2 -2
- package/{main-3LQSSUNF.js → main-3VM53QCZ.js} +1 -1
- package/package.json +1 -1
- package/chunk-BWJHODYX.js +0 -8
- package/chunk-FDBRUAV5.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"dealposbooks","version":"5.43.
|
|
1
|
+
{"name":"dealposbooks","version":"5.43.4"}
|
package/chunk-BWJHODYX.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{a as Qe,b as Xe,c as Ye,d as Ze,e as et,f as tt}from"./chunk-OB46Z7ZH.js";import{a as ze,b as Ue,c as qe,d as We}from"./chunk-6V36DOK2.js";import{a as He,b as Ke}from"./chunk-E3ZGQRZ3.js";import{a as $e}from"./chunk-K4P3JOA6.js";import{b as Ne}from"./chunk-OB7IGUCM.js";import{a as je,b as Le}from"./chunk-MPHY6FVN.js";import"./chunk-NMSYINDE.js";import{a as ke,b as Oe,d as Ve,k as Re}from"./chunk-VPQDUC77.js";import{a as we,b as Me}from"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as Je}from"./chunk-KXE3J4PK.js";import{a as X,b as Y}from"./chunk-E3QNEH3B.js";import"./chunk-JUCJGYST.js";import{a as Pe,b as Be}from"./chunk-6O5EWYT7.js";import"./chunk-I7ILLTFH.js";import{a as De,b as Ge}from"./chunk-2LQVI4EI.js";import"./chunk-SPKOXGSS.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{b as Z}from"./chunk-WXT6EZ2V.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import{h as I}from"./chunk-5TF7YHMI.js";import"./chunk-L3PZS6EL.js";import{a as j,b as L}from"./chunk-5JV52UYK.js";import"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{n as Q,o as A,w as R,x as J}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{Ha as V,La as Te,b as D,c as me,e as F,f as G,j as Ie,l as P,m as H,n as Ee,o as B,u as k,w as K,x as O}from"./chunk-72LNXEXV.js";import{b as xe,e as Se,l as ye}from"./chunk-EFDD6Q3K.js";import{a as Ae}from"./chunk-XMHQMMFC.js";import{a as Fe}from"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{h as be,k as he,q as Ce,s as y}from"./chunk-SB5MSLCX.js";import{$b as h,Cc as W,Db as g,Dc as M,Ec as re,Ha as $,L as ue,Lb as p,Nc as ae,Ob as z,Oc as le,Rb as E,Rc as f,Tb as T,Ub as w,Vb as i,Wb as n,Xb as c,Z as de,_ as N,ca as fe,ec as C,fc as u,g as ce,hb as l,ia as s,nb as oe,qa as v,ra as _,rc as r,s as se,sc as U,tc as q,wc as ge,xb as S,xc as ve,yc as _e}from"./chunk-6K5LNQ4J.js";import"./chunk-YQFG5XE2.js";var b=(()=>{class t{#e=s(Ae);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}verifyAPICredential(e){return this.#e.post(void 0,"/api/AccountConfig/Validate",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ut=()=>({height:"calc(100vh - 100px)"});function dt(t,m){if(t&1){let e=h();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),C("click",function(){v(e);let a=u();return _(a.updateAccountingIntegration())}),n()()}}function ft(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),U(e)}}function gt(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",42),i(2,"label",43),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),U(e.value)}}function vt(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",44),i(3,"label",43),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),U(e.value)}}function _t(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",45),i(3,"label",43),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),U(e.value)}}function bt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),T(4,ft,2,2,"p-tab",8,E),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),T(39,gt,4,4,"div",25,E),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),T(92,vt,5,4,"div",40,E),n()()()(),i(94,"div")(95,"label",41),r(96,"Configure Report Access Control in COA"),n(),i(97,"div",12)(98,"div",39)(99,"div",12),T(100,_t,5,4,"div",40,E),n()()()()()()()()()()()()),t&2){let e,o,a,d,x=u();z(M(8,ut)),l(2),p("value",0)("formGroup",x.form),l(2),w(x.tabs()),l(3),p("value",0),l(26),p("options",(e=x.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),w((o=x.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),w((a=x.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal),l(8),w((d=x.accountingIntegration())==null||d.options==null?null:d.options.entityAccess)}}var it=(()=>{class t{constructor(){this.accountingSetupService=s(b),this.fb=s(k).nonNullable,this.tabs=$(["Numbering","Journal","Report"]),this.accountingIntegration=$(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(N(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=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","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["for","accountingEntityAccess",1,"fs-4","mb-2"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,dt,4,0,"ng-template",null,0,f)(3,bt,102,9,"ng-template",null,1,f),n())},dependencies:[y,tt,et,Ze,Ye,Qe,Xe,I,Z,Oe,ke,O,F,G,P,B,H,A,Be,Pe,Le,je,ye,Se,J,R,Ge,De,Y,X],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 xt=()=>({height:"cacl(100vh - 200px)"}),St=()=>({height:"calc(100vh - 250px)"}),ot=()=>({});function yt(t,m){if(t&1){let e=h();i(0,"div")(1,"p-button",5),C("onClick",function(){v(e);let a=u();return _(a.submitForm())}),n()()}}function Ft(t,m){t&1&&(i(0,"div",17)(1,"h3",18),r(2,"Date"),n(),c(3,"p-datePicker",19),n())}function At(t,m){t&1&&(i(0,"tr")(1,"th",25),r(2,"Account Name"),n(),i(3,"th",26),r(4,"Debit"),n(),i(5,"th",26),r(6,"Credit"),n()())}function It(t,m){if(t&1&&(i(0,"tr",9)(1,"td",25),r(2),n(),i(3,"td"),c(4,"input",27),n(),i(5,"td"),c(6,"input",28),n()()),t&2){let e,o=m.$implicit,a=m.rowIndex,d=u(4);p("formGroupName",a),l(2),q(" ",(e=d.asFormGroup(o).get("accountName"))==null?null:e.value," "),l(2),p("autoNumeric",M(4,ot)),l(2),p("autoNumeric",M(5,ot))}}function Et(t,m){if(t&1&&(i(0,"div",9)(1,"h4",20),r(2),n(),i(3,"div",21)(4,"p-table",22),g(5,At,7,0,"ng-template",23)(6,It,7,6,"ng-template",24),n()()()),t&2){let e=m.$implicit,o=m.$index,a=u(3);p("formGroupName",o),l(2),q(" ",e.get("name").value," "),l(2),p("value",a.getItemsArray(a.asFormGroup(e)).controls)}}function Tt(t,m){if(t&1&&(i(0,"p-panel",7),g(1,Ft,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",8),T(6,Et,7,3,"div",9,E),n()(),i(8,"div",10)(9,"table",11)(10,"tr")(11,"td",12)(12,"p",13),r(13," Total: "),n()(),i(14,"td",14)(15,"p",15),r(16),ae(17,"number"),n()(),i(18,"td",16)(19,"p",15),r(20),ae(21,"number"),n()()()()()()),t&2){let e=u(2);z(M(11,xt)),p("formGroup",e.formGroups),l(4),z(M(12,St)),l(2),w(e.formsArray.controls),l(10),q(" ",le(17,7,e.subtotalDebit)," "),l(4),q(" ",le(21,9,e.subtotalCredit)," ")}}function wt(t,m){if(t&1&&g(0,Tt,22,13,"p-panel",6),t&2){let e=u();p("ngIf",e.formGroups)}}var at=(()=>{class t{constructor(){this.destroy$=new ce,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=s(k),this.accSetupService=s(b),this.dayjsService=s(Ne),this.date=new Date,this.routes=s(xe)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(ue(300),de(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(se(e=>e.data),Je("response"),N(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(o=>{let a=this.getItemsArray(o),d=a.controls.reduce((te,ne)=>{let ie=ne.get("debitAmount").value||0;return te+ie},0),x=a.controls.reduce((te,ne)=>{let ie=ne.get("creditAmount").value||0;return te+ie},0);this.subtotalDebit+=d,this.subtotalCredit+=x})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,d])=>(a==="date"?o[a]=d instanceof Date?this.dayjsService.format(d):d:a==="forms"?o.form=d:o[a]=d,o),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-acc-opening-balance-form"]],features:[W([V])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup","style",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[2,"position","fixed","bottom","0","left","241px",`/* offset from the left edge (assuming 250px sidebar) */
|
|
2
|
-
width`,`calc(
|
|
3
|
-
100% - 243px
|
|
4
|
-
)`,`/* adjust width to fit the remaining space */
|
|
5
|
-
z-index`,"91","background-color","white",`/* added background */
|
|
6
|
-
/* box-shadow`,"0 -2px 5px rgba(0, 0, 0, 0.1)",`*/ /* added subtle shadow */
|
|
7
|
-
padding`,"8px 0",`/* added padding for height */
|
|
8
|
-
border-top`,"1px solid #e0e0e0"],[1,"w-100","px-4"],[1,"ps-5"],[1,"fw-semibold","fs-4","m-0","text-end",2,"margin-right","10px !important"],[1,"",2,"width","200px"],[1,"fw-semibold","fs-4","m-0","text-start"],[1,"pe-5",2,"width","200px"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],["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"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,yt,2,0,"ng-template",null,0,f)(3,wt,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",4)),o&2&&p("scrollable",!0)},dependencies:[I,Z,Te,y,he,Ce,Me,we,Re,Ve,Y,X,K,D,F,G,A,qe,J,R,L,j,$e,O,P,B,H,Ee,Ke,He],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var lt=t=>({"ng-invalid ng-dirty":t});function Nt(t,m){if(t&1){let e=h();i(0,"p-button",4),C("onClick",function(){v(e);let a=u();return _(a.verifyCredentials())}),r(1,"Verify"),n(),i(2,"p-button",4),C("onClick",function(){v(e);let a=u();return _(a.saveCredentials())}),r(3,"Update"),n()}}function Dt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Account"),n(),i(3,"small",14),r(4,"Configure Client ID and Client Secret"),n()())}function Gt(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,Dt,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),r(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),r(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=u();l(4),p("formGroup",e.credentialForm),l(5),p("ngClass",re(3,lt,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),l(5),p("ngClass",re(5,lt,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var mt=(()=>{class t{constructor(e,o){this.fb=e,this.messageService=o,this.setupService=s(b)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(N(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[me.required]],clientSecret:["",[me.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}verifyCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Verifying credentials:",e),this.setupService.verifyAPICredential(e).subscribe({next:o=>{console.log("Verify result:",o),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:o=>{console.error("Verify failed:",o),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(o){return new(o||t)(oe(k),oe(V))}}static{this.\u0275cmp=S({type:t,selectors:[["app-api-credential"]],features:[W([V])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Nt,4,0,"ng-template",null,0,f)(3,Gt,15,7,"ng-template",null,1,f),n())},dependencies:[y,be,O,D,F,G,P,B,A,Q,L,j,I,J,R,We],encapsulation:2})}}return t})();function Pt(t,m){if(t&1){let e=h();i(0,"button",4),C("click",function(){v(e);let a=u();return _(a.onFormatJournal())}),r(1," Format "),n()}}function Bt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),r(3,"Journal Configuration"),n(),i(4,"small",15),r(5," Enter your account information to format journal entries "),n()()())}function kt(t,m){if(t&1){let e=h();i(0,"div",5)(1,"p-panel"),g(2,Bt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),_e("ngModelChange",function(a){v(e);let d=u();return ve(d.subdomain,a)||(d.subdomain=a),_(a)}),n(),i(8,"label",10),r(9,"Subdomain"),n()(),i(10,"small",11),r(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();l(7),ge("ngModel",e.subdomain)}}var pt=(()=>{class t{constructor(){this.setupService=s(b),this.subdomain=$(""),this.toastrService=s(Fe)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=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(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Pt,2,0,"ng-template",null,0,f)(3,kt,12,1,"ng-template",null,1,f),n())},dependencies:[y,K,D,F,Ie,A,Q,I,L,j,Ue,ze],encapsulation:2})}}return t})();var ct=()=>s(b).fetchOpeningBalanceFormConfiguration();var bi=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:it},{path:"opening-balance-form",component:at,resolve:{data:ct}},{path:"api-crendetial",component:mt},{path:"format-journal",component:pt},{path:"closing-entries",loadComponent:()=>import("./chunk-7GIBHGH4.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-RIAHEVKE.js").then(t=>t.ClosingFormComponent)}]}];export{bi as ACCOUNTING_SETUP_ROUTES};
|
package/chunk-FDBRUAV5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-I7G575WF.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-ESHOCSRS.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-RZVVQ2WV.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-WAIG32DS.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-XA75ROED.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-ZJ2QSE55.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-VF3ARYUC.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-YQGBYYHV.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-7EIBD6QJ.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};
|