dealposbooks 1.1.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +127 -127
- package/assets/images/background/timeout.svg +2614 -0
- package/assets/scss/components/_forms.scss +5 -3
- package/assets/scss/layouts/_layout.scss +1 -1
- package/assets/scss/style.scss +17 -20
- package/assets/scss/variables/_variables.scss +45 -11
- package/chunk-26X2X35R.js +1 -0
- package/{chunk-B6N6C3RA.js → chunk-2ACAW72E.js} +1 -1
- package/chunk-2VF35PRV.js +7 -0
- package/chunk-35EULUGT.js +193 -0
- package/{chunk-RIALPB2D.js → chunk-66DZK3FQ.js} +1 -1
- package/chunk-6VN6A5B5.js +520 -0
- package/chunk-7T6O4KFO.js +2 -0
- package/chunk-ABZUNDNB.js +1 -0
- package/chunk-AER6WLW5.js +1 -0
- package/{chunk-R2KG54OT.js → chunk-AKZM2DMY.js} +2 -2
- package/{chunk-JR4EQTPJ.js → chunk-AVL6C3VX.js} +1 -1
- package/chunk-BLOB7I4P.js +210 -0
- package/chunk-BPFNN32N.js +1 -0
- package/chunk-C375SLTS.js +246 -0
- package/chunk-C4HBNN2L.js +1 -0
- package/{chunk-223MMYH7.js → chunk-CEMQLY34.js} +1 -1
- package/chunk-CEUNPX5D.js +1 -0
- package/chunk-CMHZLZ4E.js +1 -0
- package/chunk-DO2YIWC5.js +1 -0
- package/{chunk-ZL4DDXH7.js → chunk-DWTUKOMR.js} +4 -4
- package/chunk-E2RBYY7Q.js +1 -0
- package/{chunk-FOUHOMEE.js → chunk-EFOOUCV3.js} +5 -5
- package/chunk-EHULZLLD.js +300 -0
- package/{chunk-V7Y6Z4AQ.js → chunk-EKJXB6MV.js} +2 -2
- package/{chunk-S35HUXPS.js → chunk-F2X3VGZZ.js} +1 -1
- package/chunk-F6SXKAYF.js +67 -0
- package/{chunk-UGKSIDKE.js → chunk-FNOMC2TM.js} +1 -1
- package/{chunk-5GQEUX4M.js → chunk-G7MS6UI4.js} +1 -1
- package/{chunk-TUL6Y2HH.js → chunk-GFHANKXL.js} +1 -1
- package/{chunk-ZZPBK2XT.js → chunk-GHZLR44M.js} +1 -1
- package/chunk-GLLO2YQR.js +1 -0
- package/{chunk-ZU7I7MCL.js → chunk-GLURPAU2.js} +1 -1
- package/chunk-HZ6QN5ZG.js +7 -0
- package/{chunk-O65HPMSJ.js → chunk-HZ7WPLLK.js} +1 -1
- package/{chunk-CINZRZMB.js → chunk-HZLUYZB3.js} +1 -1
- package/chunk-I2MAIV44.js +1 -0
- package/chunk-I7T4W6G2.js +47 -0
- package/{chunk-EMVZ65TI.js → chunk-IF72X7RS.js} +1 -1
- package/chunk-JXI4NDYT.js +1 -0
- package/chunk-KHZ5L5UR.js +1 -0
- package/chunk-LAZCPZXL.js +1 -0
- package/chunk-MEKP6D5H.js +1 -0
- package/{chunk-H4HFCRFZ.js → chunk-MS3UTNX6.js} +14 -14
- package/chunk-NASSFXXN.js +1 -0
- package/chunk-NGKRNFZC.js +1 -0
- package/chunk-NNH4DORM.js +1 -0
- package/chunk-NTJQFRIB.js +180 -0
- package/chunk-OCYR2RTP.js +1 -0
- package/chunk-ON4N4CPO.js +51 -0
- package/chunk-OVJSBJBH.js +197 -0
- package/chunk-P63Q5GYL.js +1 -0
- package/{chunk-REHXXPZY.js → chunk-PATWAZNE.js} +1 -1
- package/chunk-PGIXMWYT.js +1 -0
- package/chunk-PUEKZGWI.js +1 -0
- package/{chunk-X2NM4CIV.js → chunk-Q4Y2IGA6.js} +2 -2
- package/chunk-QBJKUIXK.js +627 -0
- package/chunk-R3FUAON5.js +1 -0
- package/chunk-R6MI2SDH.js +1 -0
- package/chunk-RA2IZVJ4.js +1 -0
- package/{chunk-AYVR3RIS.js → chunk-ROX6NFMK.js} +2 -2
- package/{chunk-ERX7ND7E.js → chunk-S64TQVWK.js} +1 -1
- package/chunk-S6CFVRO6.js +1 -0
- package/chunk-SJTXIIX5.js +1 -0
- package/{chunk-DJ5UHXOJ.js → chunk-TBHL2OSG.js} +1 -1
- package/{chunk-YKYI4A3V.js → chunk-TL6UHPBU.js} +1 -1
- package/chunk-UNNEEFI2.js +1 -0
- package/chunk-USCTAGKM.js +1 -0
- package/{chunk-UTL7D6E7.js → chunk-USO7UKRV.js} +4 -4
- package/chunk-UZOBSLZX.js +1 -0
- package/chunk-VVC3QQUI.js +1 -0
- package/{chunk-SS3CMCAX.js → chunk-VYTUB2DV.js} +2 -2
- package/chunk-XCWBG4PB.js +1 -0
- package/{chunk-PNQSQQIT.js → chunk-YT7EC5LI.js} +1 -1
- package/chunk-ZBTGGL5M.js +5 -0
- package/index.html +3 -3
- package/main-TCYAGQCN.js +1 -0
- package/package.json +1 -1
- package/polyfills-OYTHSGNX.js +2 -0
- package/styles-H3D5FBL2.css +1 -0
- package/chunk-33KLXB2L.js +0 -180
- package/chunk-4Y3NYY52.js +0 -67
- package/chunk-5RRUIJ5U.js +0 -1
- package/chunk-6BFODHTZ.js +0 -2
- package/chunk-AXJA6OO7.js +0 -246
- package/chunk-DBRLQ7BX.js +0 -397
- package/chunk-DUOJKP2G.js +0 -300
- package/chunk-E4ZVZRLO.js +0 -210
- package/chunk-EBOJJWD5.js +0 -1
- package/chunk-ENPYMVZG.js +0 -1
- package/chunk-EOLHIQHQ.js +0 -1
- package/chunk-FKTEL4CU.js +0 -524
- package/chunk-G4XX7EU2.js +0 -1
- package/chunk-J53TOHZH.js +0 -1
- package/chunk-JC7YOUAM.js +0 -1
- package/chunk-JSAAKZBO.js +0 -1
- package/chunk-KZ2KGWUY.js +0 -1
- package/chunk-LON3T466.js +0 -1
- package/chunk-LYEN4UBW.js +0 -1
- package/chunk-MG3SLH6O.js +0 -1
- package/chunk-NQ3CKBYP.js +0 -1
- package/chunk-NS7JH3QF.js +0 -47
- package/chunk-OCLABZZW.js +0 -1
- package/chunk-OH2CJBFF.js +0 -1
- package/chunk-OSV7AMB2.js +0 -1
- package/chunk-OWI3BWEZ.js +0 -197
- package/chunk-OYYYX3IP.js +0 -1
- package/chunk-Q5PJ63MA.js +0 -1
- package/chunk-RJYO2KKV.js +0 -1
- package/chunk-ROKYJX6Q.js +0 -193
- package/chunk-RUGQ4OJG.js +0 -1
- package/chunk-RUP2SWYB.js +0 -231
- package/chunk-RUVT4SCE.js +0 -1
- package/chunk-TMY4NWZ6.js +0 -1
- package/chunk-TOJAZ32N.js +0 -1
- package/chunk-VY4Z33EE.js +0 -7
- package/chunk-VYKJK5YU.js +0 -7
- package/chunk-WG7APCJU.js +0 -51
- package/chunk-XWVLTTMV.js +0 -1
- package/chunk-Y6MJGNH2.js +0 -1
- package/main-MCP7AVEU.js +0 -1
- package/polyfills-EQXJKH7W.js +0 -2
- package/styles-IAH7RNKW.css +0 -1
package/chunk-EBOJJWD5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as $e,b as Le,c as Ue,d as qe,e as We,f as ze}from"./chunk-223MMYH7.js";import{a as He,b as Ke}from"./chunk-SS3CMCAX.js";import{a as Ve,b as Ge,c as je}from"./chunk-ZL4DDXH7.js";import{a as Q,b as X}from"./chunk-NS7JH3QF.js";import"./chunk-ZZPBK2XT.js";import{a as Ae}from"./chunk-LYEN4UBW.js";import{a as Ie,b as Fe}from"./chunk-4Y3NYY52.js";import{b as Me,c as we,d as Be,e as Ne,f as Pe,g as Oe,h as ke,l as Re}from"./chunk-H4HFCRFZ.js";import{g as De,h as Je}from"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as H,b as K}from"./chunk-5GQEUX4M.js";import{g as J}from"./chunk-33KLXB2L.js";import{f as W,g as z}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import{u as q,v as D}from"./chunk-OWI3BWEZ.js";import{Ca as oe,Ga as Te,b as O,c as ie,e as N,f as ve,i as G,k as xe,l as he,m as Ce,o as j,r as $,t as L,u as U}from"./chunk-ROKYJX6Q.js";import{a as ye,d as Ee}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{p as be,w as Se}from"./chunk-6BFODHTZ.js";import{k as ge,n as fe,s as _e,t as B}from"./chunk-RUGQ4OJG.js";import{Bb as f,Fc as te,Gc as ne,Ha as S,Ic as d,Kb as p,Nb as pe,Pb as Z,Qb as y,Sb as E,Tb as T,Tc as R,Ub as i,Vb as n,Wb as m,Z as V,_b as M,ca as le,dc as w,ec as u,gb as a,hb as me,ia as _,mc as o,nc as v,qa as C,ra as b,rc as ce,sc as ue,tc as se,ub as A,uc as de,vc as ee,wc as k}from"./chunk-VYKJK5YU.js";import{a as I,b as F}from"./chunk-EQDQRRRY.js";var P=(()=>{class t{#e=_(Ee);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")}fetchAPICredential(){let e=localStorage.getItem("AUTH_SUB_DOMAIN");if(!e)throw new Error("Domain not found in local storage");return this.#e.get("","/API/AccountConfig",{POSDomain: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=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Qe=t=>({"active-state":t}),Xe=t=>({"text-white":t});function at(t,l){if(t&1){let e=M();i(0,"div",4)(1,"a",5),o(2,"Cancel"),n(),i(3,"p-button",6),w("click",function(){C(e);let c=u();return b(c.updateAccountingIntegration())}),n()()}}function lt(t,l){if(t&1&&(i(0,"p-tab",9),o(1),n()),t&2){let e=l.$implicit,r=l.$index;p("value",r),a(),v(e)}}function mt(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," End Of Shift "),n()()),t&2){let e=u(4);p("ngClass",k(2,Qe,e.form.controls.posIntegration.value.createJournalTriggers===0)),a(),p("ngClass",k(4,Xe,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function pt(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," Every "),n()()),t&2){let e=u(4);p("ngClass",k(2,Qe,e.form.controls.posIntegration.value.createJournalTriggers===1)),a(),p("ngClass",k(4,Xe,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function ct(t,l){if(t&1&&f(0,mt,3,6,"div",39)(1,pt,3,6,"div",39),t&2){let e,r=u().$implicit;Z((e=r.key)===0?0:e===1?1:-1)}}function ut(t,l){t&1&&(i(0,"h4"),o(1,"Suitable for Cash Sales (Retail & FnB)"),n(),i(2,"p"),o(3," One Journal is generated for all transaction happening within a register open - close period "),n())}function st(t,l){t&1&&(i(0,"h4"),o(1,"Every"),n(),i(2,"p"),o(3," Suitable for Credit Sales (Wholesale) Journal is generated for each transaction "),n())}function dt(t,l){if(t&1){let e=M();i(0,"div",13),m(1,"p-radiobutton",37),i(2,"p-card",38),w("click",function(){C(e);let c=u(2);return b(c.changeJournalType())}),f(3,ct,2,1,"ng-template",null,2,d)(5,ut,4,0)(6,st,4,0),n()()}if(t&2){let e,r=l.$implicit;a(),p("inputId",r.value)("value",r.key),a(4),Z((e=r.key)===0?5:e===1?6:-1)}}function gt(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",41),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function ft(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",43),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function _t(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",44),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function vt(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",45),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function xt(t,l){if(t&1&&(i(0,"div",7)(1,"p-tabs",8)(2,"p-tablist"),E(3,lt,2,2,"p-tab",9,y),n(),i(5,"p-tabpanels")(6,"p-tabpanel",9)(7,"h4"),o(8,"Integration with POS"),n(),i(9,"p"),o(10,"Generate Journal"),n(),i(11,"div",10)(12,"div",11)(13,"div",12),E(14,dt,7,3,"div",13,y),n()()(),m(16,"hr"),i(17,"div",14)(18,"h3"),o(19,"Journal Generate"),n(),i(20,"p"),o(21,"Configure generate transaction"),n(),i(22,"div",12)(23,"div",15)(24,"div",16)(25,"div",15)(26,"div",17)(27,"label",18),o(28,"Generate EOD Expense Journal"),n(),m(29,"p-toggleswitch",19),n()(),m(30,"div",15),i(31,"div",15)(32,"div",17)(33,"label",18),o(34,"Generate Outlet Delivery Journal"),n(),m(35,"p-toggleswitch",20),n()(),m(36,"div",15),i(37,"div",15)(38,"div",17)(39,"label",18),o(40,"Generate Payment Discount Journal On Payment"),n(),m(41,"p-toggleswitch",21),n()()()()()()(),i(42,"p-tabpanel",22)(43,"div",23)(44,"h3"),o(45,"Accounting Numbering"),n(),i(46,"p"),o(47,"Configure numbering format and rule for your accounting"),n(),i(48,"div",12)(49,"div",15)(50,"div",16)(51,"div",15)(52,"div",17)(53,"label",24),o(54,"Digit"),n(),m(55,"p-inputnumber",25),n()(),m(56,"div",15),i(57,"div",15)(58,"div",17)(59,"label",26),o(60,"Seed"),n(),m(61,"p-inputnumber",27),n()(),i(62,"div",15)(63,"div",17)(64,"label",28),o(65,"Last Number"),n(),m(66,"p-inputnumber",29),n()(),i(67,"div",15)(68,"div",17)(69,"label",18),o(70,"Reset Every"),n(),i(71,"div",30),E(72,gt,4,4,"div",31,y),n()()(),i(74,"div",15)(75,"div",17)(76,"label",18),o(77,"Format"),n(),m(78,"p-select",32),n()()()()()()(),i(79,"p-tabpanel",33)(80,"div",23)(81,"h3"),o(82,"Report"),n(),i(83,"p"),o(84,"Configure report behavior"),n(),i(85,"div",12)(86,"div",15)(87,"div",16)(88,"div",15)(89,"div",17)(90,"label",18),o(91,"Audit Journal Transaction"),n(),i(92,"div",30),E(93,ft,4,4,"div",31,y),n()()(),m(95,"div",15),i(96,"div",15)(97,"div",17)(98,"label",18),o(99,"Accounting For Treatment"),n(),i(100,"div",30),E(101,_t,4,4,"div",31,y),n()()(),m(103,"div",15),i(104,"div",15)(105,"div",17)(106,"label",18),o(107,"Configure Report Access Control in COA"),n(),i(108,"div",30),E(109,vt,4,4,"div",31,y),n()()()()()()()(),i(111,"p-tabpanel",34)(112,"div",23)(113,"h3"),o(114,"Note"),n(),i(115,"p"),o(116,"Configure show note"),n(),i(117,"div",12)(118,"div",15)(119,"div",16)(120,"div",15)(121,"div",17)(122,"label",18),o(123,"Note Required On Journal"),n(),m(124,"p-toggleswitch",35),n()(),m(125,"div",15),i(126,"div",15)(127,"div",17)(128,"label",18),o(129,"Trial Balance Footer Visible"),n(),m(130,"p-toggleswitch",36),n()(),m(131,"div",15),n()()()()()()()()),t&2){let e,r,c,s,h,g,x=u();a(),p("value",0)("formGroup",x.form),a(2),T(x.tabs()),a(3),p("value",0),a(8),T((e=x.accountingIntegration())==null||e.options==null?null:e.options.journalType),a(28),p("value",1),a(30),T((r=x.accountingIntegration())==null||r.options==null?null:r.options.resetPeriods),a(6),p("options",(c=x.accountingIntegration())==null||c.options==null?null:c.options.monthlyResetPeriodFormat),a(),p("value",2),a(14),T((s=x.accountingIntegration())==null||s.options==null?null:s.options.auditType),a(8),T((h=x.accountingIntegration())==null||h.options==null?null:h.options.generatePrepaidJournal),a(8),T((g=x.accountingIntegration())==null||g.options==null?null:g.options.entityAccess),a(2),p("value",3)}}var Ye=(()=>{class t{constructor(){this.accountingSetupService=_(P),this.fb=_($).nonNullable,this.tabs=S(["Pos","Numbering","Report","Note"]),this.journalType=S(0),this.accountingIntegration=S(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({posIntegration:this.createPosIntegrationGroup(),number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup(),note:this.createNoteGroup()})}createPosIntegrationGroup(){return this.fb.group({createJournalTriggers:this.fb.control(0)})}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("")})}createNoteGroup(){return this.fb.group({noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}changeJournalType(){let e=this.journalType()===0?1:0;this.journalType.set(e),this.accountingIntegration.update(r=>F(I({},r),{form:F(I({},r.form),{posIntegration:F(I({},r.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(V(e=>{this.accountingIntegration.set(e);let r=e.form.posIntegration.createJournalTriggers;this.journalType.set(r),this.form.get("posIntegration.createJournalTriggers")?.setValue(r),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=A({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"overflow-y-auto"],[3,"value","formGroup"],[3,"value"],["formGroupName","posIntegration",1,"row"],[1,"col-8"],[1,"row"],[1,"col"],["formGroupName","journalGenerate",1,"px-3"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for",""],["formControlName","eodExpenseJournal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formGroupName","number",3,"value"],[1,"px-3"],["for","digit"],["inputId","digit","formControlName","digit"],["for","seed"],["inputId","seed","formControlName","seed"],["for","lastNumber"],["inputId","lastNumber","formControlName","lastNumber"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","align-items-center","gap-2"],["formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],["formGroupName","report",3,"value"],["formGroupName","note",3,"value"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["styleClass","d-none","name","createJournalTriggers","formControlName","createJournalTriggers",3,"inputId","value"],["styleClass","h-100",3,"click"],[1,"d-flex","justify-content-center","inactive-state","text-white","py-2",3,"ngClass"],[1,"m-0",3,"ngClass"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"ml-2","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,c){r&1&&(i(0,"app-main-panel",3),f(1,at,4,0,"ng-template",null,0,d)(3,xt,132,7,"ng-template",null,1,d),n())},dependencies:[B,ge,ze,We,qe,Ue,$e,Le,J,K,H,Oe,Pe,U,N,ve,he,j,Ce,D,Je,De,Ke,He,Se,be,z,W,Ne,Be],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:#5680e9}"],changeDetection:0})}}return t})();var ht=()=>({width:"100%",height:"calc(100vh - 300px)"}),Ct=()=>[];function bt(t,l){t&1&&(i(0,"div"),m(1,"p-button",5),n())}function St(t,l){t&1&&(i(0,"tr")(1,"th"),o(2,"Account Name"),n(),i(3,"th",17),o(4,"Debit"),n(),i(5,"th",17),o(6,"Credit"),n()())}function yt(t,l){if(t&1){let e=M();i(0,"tr")(1,"td"),o(2),n(),i(3,"td")(4,"input",18),w("ngModelChange",function(c){let s=C(e).rowIndex,h=u(2).$index,g=u(2);return b(g.dfsfsd(c,h,s,"debitAmount"))}),n()(),i(5,"td")(6,"input",18),w("ngModelChange",function(c){let s=C(e).rowIndex,h=u(2).$index,g=u(2);return b(g.dfsfsd(c,h,s,"creditAmount"))}),n()()()}if(t&2){let e=l.$implicit;a(2),v(e.accountName),a(2),p("ngModel",e.debitAmount),a(2),p("ngModel",e.creditAmount)}}function Et(t,l){if(t&1&&(i(0,"p-table",14),f(1,St,7,0,"ng-template",15)(2,yt,7,3,"ng-template",16),n()),t&2){let e=u().$implicit;p("value",e.items)}}function Tt(t,l){if(t&1&&(i(0,"div",7)(1,"div",8)(2,"div",12)(3,"h4"),o(4),n()(),i(5,"div"),f(6,Et,3,1,"p-table",13),n()()()),t&2){let e=l.$implicit;a(4),v(e.name),a(2),p("ngIf",e.items.length)}}function It(t,l){if(t&1&&(i(0,"tr")(1,"td")(2,"p",19),o(3,"Total"),n()(),i(4,"td",17)(5,"p",19),o(6),te(7,"number"),n()(),i(8,"td",17)(9,"p",19),o(10),te(11,"number"),n()()()),t&2){let e=u(2);a(6),v(ne(7,2,e.subTotalDebit())),a(4),v(ne(11,4,e.subTotalCredit()))}}function Ft(t,l){if(t&1&&(i(0,"p-card",6)(1,"div",7)(2,"div",8),m(3,"p-datepicker",9),n()()(),m(4,"br"),i(5,"p-card")(6,"p-scroll-panel")(7,"div",10),E(8,Tt,7,2,"div",7,y),n()(),i(10,"p-table",11),f(11,It,12,6,"ng-template",null,2,d),n()()),t&2){let e=u();a(3),p("ngModel",e.date()),a(3),pe(ee(4,ht)),a(2),T(e.nonEmptyForms()),a(2),p("value",ee(5,Ct))}}var Ze=(()=>{class t{constructor(){this.accSetupService=_(P),this.openingBalanceForm=S(null),this.date=S(new Date),this.messageService=_(oe),this.subTotalDebit=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.debitAmount,0),0):0),this.subTotalCredit=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.creditAmount,0),0):0),this.totalItemsCount=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.length,0):0),this.nonEmptyForms=R(()=>{let e=["Asset","Liability","Equity","Revenue","Expense"];return this.openingBalanceForm()?this.openingBalanceForm().form.filter(r=>r.items.length>0||e.includes(r.name)):[]})}ngOnInit(){this.loadFormData(),setInterval(()=>{this.subTotalCredit()!==this.subTotalDebit()&&this.messageService.add({severity:"warn",summary:"Mismatch Detected",detail:`The total Debit and Credit amounts are not balanced. Difference: ${this.subTotalCredit()-this.subTotalDebit()}`})},1e3)}loadFormData(){this.accSetupService.fetchOpeningBalanceFormConfiguration().pipe(Ae("response"),V(e=>{this.openingBalanceForm.set(e)})).subscribe()}dfsfsd(e,r,c,s){let h=this.openingBalanceForm().form.map((g,x)=>x===r?F(I({},g),{items:g.items.map((ae,nt)=>nt===c?F(I({},ae),{[s]:e}):ae)}):g).filter(g=>g!==null);this.openingBalanceForm.update(g=>F(I({},g),{form:h})),console.log(this.openingBalanceForm())}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-acc-opening-balance-form"]],features:[de([oe])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit"],["header","Opening Balance Date"],[1,"row"],[1,"col"],[3,"ngModel"],[1,"d-flex","flex-column","gap-4"],[3,"value"],[1,"mb-2"],["dataKey","id","stripedRows","",3,"value",4,"ngIf"],["dataKey","id","stripedRows","",3,"value"],["pTemplate","header"],["pTemplate","body"],[2,"width","200px"],["type","number",1,"form-control",3,"ngModelChange","ngModel"],[1,"fw-semibold","fs-5"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,bt,2,0,"ng-template",null,0,d)(3,Ft,13,6,"ng-template",null,1,d),n(),m(5,"p-toast",4))},dependencies:[J,K,H,Te,B,fe,_e,we,Me,Re,ke,Fe,Ie,L,O,xe,N,G,D,je,z,W],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();function wt(t,l){t&1&&(i(0,"button",4),o(1,"Save"),n())}function Bt(t,l){t&1&&(i(0,"div",8)(1,"h3",12),o(2,"Account"),n(),i(3,"small",13),o(4,"Configure Client ID and Client Secret"),n()())}function Nt(t,l){t&1&&(i(0,"div",5)(1,"p-panel"),f(2,Bt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),m(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),m(14,"input",11),n()()()()())}var et=(()=>{class t{constructor(e){this.fb=e,this.setupService=_(P)}ngOnInit(){this.initForm()}initForm(){this.setupService.fetchAPICredential().subscribe(e=>{this.credentialForm=this.fb.group({clientId:[e.clientID,ie.required],clientSecret:[e.clientSecret,ie.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.value;console.log("Saving credentials:",e)}static{this.\u0275fac=function(r){return new(r||t)(me($))}}static{this.\u0275cmp=A({type:t,selectors:[["app-api-credential"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[1,"btn","btn-primary","rounded"],[1,"d-flex","flex-column","row-gap-4"],[1,"row"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientIdControl"],["type","text","pInputText",""],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,wt,2,0,"ng-template",null,0,d)(3,Nt,15,0,"ng-template",null,1,d),n())},dependencies:[B,U,O,N,j,D,q,X,Q,J],encapsulation:2})}}return t})();function Dt(t,l){if(t&1){let e=M();i(0,"button",4),w("click",function(){C(e);let c=u();return b(c.onFormatJournal())}),o(1," Format "),n()}}function Jt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Journal Configuration"),n(),i(3,"small",14),o(4," Enter your account information to format journal entries "),n()())}function Pt(t,l){if(t&1){let e=M();i(0,"div",5)(1,"p-panel"),f(2,Jt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),se("ngModelChange",function(c){C(e);let s=u();return ue(s.subdomain,c)||(s.subdomain=c),b(c)}),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=u();a(7),ce("ngModel",e.subdomain)}}var tt=(()=>{class t{constructor(){this.setupService=_(P),this.subdomain=S(""),this.toastrService=_(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=A({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-primary","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,"d-flex","flex-column"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,Dt,2,0,"ng-template",null,0,d)(3,Pt,12,1,"ng-template",null,1,d),n())},dependencies:[B,L,O,N,G,D,q,J,X,Q,Ge,Ve],encapsulation:2})}}return t})();var ai=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:Ye},{path:"opening-balance-form",component:Ze},{path:"api-crendetial",component:et},{path:"format-journal",component:tt}]}];export{ai as ACCOUNTING_SETUP_ROUTES};
|
package/chunk-ENPYMVZG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk-UGKSIDKE.js";import{a as q,b as K}from"./chunk-WG7APCJU.js";import"./chunk-ZZPBK2XT.js";import{h as O,j as A,k as F,l as H}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{g as G}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{n as B,r as V,s as P,t as N}from"./chunk-RUGQ4OJG.js";import{Bb as f,Fc as S,Gc as w,Ha as E,Hc as y,Ic as x,Kb as c,Tc as M,Ub as n,Vb as i,Vc as k,Wb as b,Z as T,_b as v,dc as I,ec as _,gb as r,ia as D,mc as l,nc as m,qa as g,ra as C,s as J,ub as R,vc as j}from"./chunk-VYKJK5YU.js";import{a as u,b as s}from"./chunk-EQDQRRRY.js";var ee=()=>({"min-width":"50rem"});function te(t,d){if(t&1){let e=v();n(0,"button",6),I("click",function(){g(e);let o=_(2);return C(o.onGenerateJournal())}),l(1," Generate Journal "),i()}}function ne(t,d){if(t&1&&f(0,te,2,0,"button",5),t&2){let e=_();c("ngIf",e.selectedRows().length)}}function ie(t,d){t&1&&(n(0,"tr")(1,"th",9),b(2,"p-tableHeaderCheckbox"),i(),n(3,"th"),l(4,"Outlet"),i(),n(5,"th"),l(6,"Number"),i(),n(7,"th"),l(8,"Customer"),i(),n(9,"th"),l(10,"Date"),i(),n(11,"th"),l(12,"Due"),i(),n(13,"th"),l(14,"Amount"),i(),n(15,"th"),l(16,"Payment"),i(),n(17,"th"),l(18,"Delivery"),i()())}function ae(t,d){if(t&1&&(n(0,"tr")(1,"td"),b(2,"p-tableCheckbox",10),i(),n(3,"td"),l(4),i(),n(5,"td"),l(6),i(),n(7,"td"),l(8),i(),n(9,"td"),l(10),S(11,"date"),i(),n(12,"td"),l(13),S(14,"date"),i(),n(15,"td"),l(16),S(17,"number"),i(),n(18,"td"),b(19,"p-chip",11),i(),n(20,"td"),b(21,"p-chip",11),i()()),t&2){let e=d.$implicit;r(2),c("value",e),r(2),m(e.outlet),r(2),m(e.number),r(2),m(e.customer),r(2),m(y(11,9,e.date,"d MMM y hh:mm")),r(3),m(y(14,12,e.due,"d MMM y")),r(3),m(w(17,15,e.amount)),r(3),c("label",e.payment),r(2),c("label",e.delivery)}}function oe(t,d){if(t&1){let e=v();n(0,"p-table",8),I("onRowSelect",function(o){g(e);let p=_(2);return C(p.onRowSelect(o))}),f(1,ie,19,0,"ng-template",null,2,x)(3,ae,22,17,"ng-template",null,3,x),i()}if(t&2){let e=_(2);c("value",e.journalInvoice().data)("tableStyle",j(2,ee))}}function le(t,d){if(t&1&&f(0,oe,5,3,"p-table",7),t&2){let e=_();c("ngIf",e.journalInvoice())}}var W=(()=>{class t{constructor(){this.generateJournalService=D(z),this.journalInvoice=E(null),this.pageData=E({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=M(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),k(()=>{let e=this.pageData();if(e){let a=Object.entries(e).reduce((o,[p,h])=>(p==="Number"&&typeof h=="string"&&h.length===0?delete o[p]:o[p]=h,o),{});this.getJournalInvoice(a)}})}getJournalInvoice(e){this.generateJournalService.getJournalInvoice(e).pipe(J(a=>s(u({},a),{data:a.data.map(o=>s(u({},o),{checked:!1}))})),T(a=>this.journalInvoice.set(a))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let a=this.journalInvoice().data.slice().map(o=>o.id===e.data.id?s(u({},o),{checked:!0}):s(u({},o),{checked:!1}));this.journalInvoice.update(o=>s(u({},o),{data:a}))}ngOnInit(){console.log("ngOnInit")}onGenerateJournal(){let e=this.journalInvoice().data.filter(a=>a.checked).map(a=>a.id);this.generateJournalService.generateJournalInvoice(e).subscribe()}onSearch(e){this.pageData.update(a=>s(u({},a),{Number:e}))}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=R({type:t,selectors:[["app-customer-invoice"]],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Customer Invoice",3,"searchEmitted","isSearchableInput"],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(a,o){if(a&1){let p=v();n(0,"app-main-panel",4),I("searchEmitted",function($){return g(p),C(o.onSearch($))}),f(1,ne,1,1,"ng-template",null,0,x)(3,le,1,1,"ng-template",null,1,x),i()}a&2&&c("isSearchableInput",!0)},dependencies:[G,H,O,A,F,N,B,P,V,K,q],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var re=()=>({"min-width":"50rem"});function pe(t,d){if(t&1){let e=v();n(0,"button",6),I("click",function(){g(e);let o=_(2);return C(o.onGenerateJournal())}),l(1," Generate Journal "),i()}}function me(t,d){if(t&1&&f(0,pe,2,0,"button",5),t&2){let e=_();c("ngIf",e.selectedRows().length)}}function ce(t,d){t&1&&(n(0,"tr")(1,"th",9),b(2,"p-tableHeaderCheckbox"),i(),n(3,"th"),l(4,"Outlet"),i(),n(5,"th"),l(6,"Number"),i(),n(7,"th"),l(8,"Customer"),i(),n(9,"th"),l(10,"Date"),i(),n(11,"th"),l(12,"Due"),i(),n(13,"th"),l(14,"Amount"),i(),n(15,"th"),l(16,"Payment"),i(),n(17,"th"),l(18,"Delivery"),i()())}function ue(t,d){if(t&1&&(n(0,"tr")(1,"td"),b(2,"p-tableCheckbox",10),i(),n(3,"td"),l(4),i(),n(5,"td"),l(6),i(),n(7,"td"),l(8),i(),n(9,"td"),l(10),S(11,"date"),i(),n(12,"td"),l(13),S(14,"date"),i(),n(15,"td"),l(16),S(17,"number"),i(),n(18,"td"),b(19,"p-chip",11),i(),n(20,"td"),b(21,"p-chip",11),i()()),t&2){let e=d.$implicit;r(2),c("value",e),r(2),m(e.outlet),r(2),m(e.number),r(2),m(e.customer),r(2),m(y(11,9,e.date,"d MMM y hh:mm")),r(3),m(y(14,12,e.due,"d MMM y")),r(3),m(w(17,15,e.amount)),r(3),c("label",e.payment),r(2),c("label",e.delivery)}}function se(t,d){if(t&1){let e=v();n(0,"p-table",8),I("onRowSelect",function(o){g(e);let p=_(2);return C(p.onRowSelect(o))}),f(1,ce,19,0,"ng-template",null,2,x)(3,ue,22,17,"ng-template",null,3,x),i()}if(t&2){let e=_(2);c("value",e.journalInvoice().data)("tableStyle",j(2,re))}}function de(t,d){if(t&1&&f(0,se,5,3,"p-table",7),t&2){let e=_();c("ngIf",e.journalInvoice())}}var X=(()=>{class t{constructor(){this.generateJournalService=D(z),this.journalInvoice=E(null),this.pageData=E({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=M(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),k(()=>{let e=this.pageData();if(e){let a=Object.entries(e).reduce((o,[p,h])=>(p==="Number"&&typeof h=="string"&&h.length===0?delete o[p]:o[p]=h,o),{});this.getJournalInvoice(a)}})}getJournalInvoice(e){this.generateJournalService.getJournalSupplierBill(e).pipe(J(a=>s(u({},a),{data:a.data.map(o=>s(u({},o),{checked:!1}))})),T(a=>this.journalInvoice.set(a))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let a=this.journalInvoice().data.slice().map(o=>o.id===e.data.id?s(u({},o),{checked:!0}):s(u({},o),{checked:!1}));this.journalInvoice.update(o=>s(u({},o),{data:a}))}onGenerateJournal(){let e=this.journalInvoice().data.filter(a=>a.checked).map(a=>a.id);this.generateJournalService.generateJournalSupplierBill(e).subscribe()}onSearch(e){this.pageData.update(a=>s(u({},a),{Number:e}))}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=R({type:t,selectors:[["app-journal-supplier-bill"]],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Supplier Bill",3,"searchEmitted","isSearchableInput"],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(a,o){if(a&1){let p=v();n(0,"app-main-panel",4),I("searchEmitted",function($){return g(p),C(o.onSearch($))}),f(1,me,1,1,"ng-template",null,0,x)(3,de,1,1,"ng-template",null,1,x),i()}a&2&&c("isSearchableInput",!0)},dependencies:[G,H,O,A,F,N,B,P,V,K,q],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var _e=()=>({"min-width":"50rem"});function he(t,d){if(t&1){let e=v();n(0,"button",6),I("click",function(){g(e);let o=_(2);return C(o.onGenerateJournal())}),l(1," Generate Journal "),i()}}function fe(t,d){if(t&1&&f(0,he,2,0,"button",5),t&2){let e=_();c("ngIf",e.selectedRows().length)}}function xe(t,d){t&1&&(n(0,"tr")(1,"th",9),b(2,"p-tableHeaderCheckbox"),i(),n(3,"th"),l(4,"Number"),i(),n(5,"th"),l(6,"Open"),i(),n(7,"th"),l(8,"Close"),i(),n(9,"th"),l(10,"Cashier"),i(),n(11,"th"),l(12,"Sales + Tax"),i(),n(13,"th"),l(14,"Invoices"),i(),n(15,"th"),l(16,"Outlet"),i(),n(17,"th"),l(18,"Register"),i(),n(19,"th"),l(20,"Visitors"),i()())}function Se(t,d){if(t&1&&(n(0,"tr")(1,"td"),b(2,"p-tableCheckbox",10),i(),n(3,"td"),l(4),i(),n(5,"td"),l(6),S(7,"date"),i(),n(8,"td"),l(9),S(10,"date"),i(),n(11,"td"),l(12),i(),n(13,"td"),l(14),S(15,"number"),i(),n(16,"td"),l(17),S(18,"number"),i(),n(19,"td"),l(20),i(),n(21,"td"),l(22),i(),n(23,"td"),l(24),S(25,"number"),i()()),t&2){let e=d.$implicit;r(2),c("value",e),r(2),m(e.number),r(2),m(y(7,10,e.open,"dd MMM y hh:mm")),r(3),m(y(10,13,e.close,"dd MMM y hh:mm")),r(3),m(e.cashier),r(2),m(w(15,16,e.salesNTax)),r(3),m(w(18,18,e.totalInvoice)),r(3),m(e.outlet),r(2),m(e.register),r(2),m(w(25,20,e.visitors))}}function be(t,d){if(t&1){let e=v();n(0,"p-table",8),I("onRowSelect",function(o){g(e);let p=_(2);return C(p.onRowSelect(o))}),f(1,xe,21,0,"ng-template",null,2,x)(3,Se,26,22,"ng-template",null,3,x),i()}if(t&2){let e=_(2);c("value",e.journalInvoice().data)("tableStyle",j(2,_e))}}function ge(t,d){if(t&1&&f(0,be,5,3,"p-table",7),t&2){let e=_();c("ngIf",e.journalInvoice())}}var Y=(()=>{class t{constructor(){this.generateJournalService=D(z),this.journalInvoice=E(null),this.pageData=E({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=M(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),k(()=>{let e=this.pageData();if(e){let a=Object.entries(e).reduce((o,[p,h])=>(p==="Number"&&typeof h=="string"&&h.length===0?delete o[p]:o[p]=h,o),{});this.getJournalInvoice(a)}})}getJournalInvoice(e){this.generateJournalService.getJournalShift(e).pipe(J(a=>s(u({},a),{data:a.data.map(o=>s(u({},o),{checked:!1}))})),T(a=>this.journalInvoice.set(a))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let a=this.journalInvoice().data.slice().map(o=>o.id===e.data.id?s(u({},o),{checked:!0}):s(u({},o),{checked:!1}));this.journalInvoice.update(o=>s(u({},o),{data:a}))}onGenerateJournal(){let e=this.journalInvoice().data.filter(a=>a.checked).map(a=>a.id);this.generateJournalService.generateJournalSupplierBill(e).subscribe()}onSearch(e){this.pageData.update(a=>s(u({},a),{Number:e}))}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=R({type:t,selectors:[["app-journal-shift"]],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Shift Journal",3,"searchEmitted","isSearchableInput"],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"]],template:function(a,o){if(a&1){let p=v();n(0,"app-main-panel",4),I("searchEmitted",function($){return g(p),C(o.onSearch($))}),f(1,fe,1,1,"ng-template",null,0,x)(3,ge,1,1,"ng-template",null,1,x),i()}a&2&&c("isSearchableInput",!0)},dependencies:[G,H,O,A,F,N,B,P,V,K],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var it=[{path:"invoice",component:W},{path:"supplier-bill",component:X},{path:"shift",component:Y},{path:"ar-collection",loadComponent:()=>import("./chunk-LON3T466.js").then(t=>t.ARJournalComponent)},{path:"ap-collection",loadComponent:()=>import("./chunk-JC7YOUAM.js").then(t=>t.ApJournalComponent)},{path:"adjustment",loadComponent:()=>import("./chunk-TMY4NWZ6.js").then(t=>t.AdjustmentJournalComponent)}];export{it as generateJournalRoutes};
|
package/chunk-EOLHIQHQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-EQDQRRRY.js";var o=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-JSAAKZBO.js").then(t=>t.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-RJYO2KKV.js").then(t=>t.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-OH2CJBFF.js").then(t=>t.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-OSV7AMB2.js").then(t=>t.PaymentAccountComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-5RRUIJ5U.js").then(t=>t.ExpenseAccountComponent)}];export{o as MIGRATE_ROUTES};
|