dealposbooks 1.1.0 → 1.9.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 +142 -142
- package/assets/images/background/timeout.svg +2614 -0
- package/assets/scss/components/_forms.scss +5 -3
- package/assets/scss/style.scss +17 -20
- package/assets/scss/variables/_variables.scss +44 -10
- package/chunk-26X2X35R.js +1 -0
- package/chunk-2VF35PRV.js +7 -0
- package/chunk-34EMCCL5.js +210 -0
- package/chunk-35EULUGT.js +193 -0
- package/{chunk-B6N6C3RA.js → chunk-3TRGIHUH.js} +1 -1
- package/chunk-6TRUWOKK.js +1 -0
- package/chunk-7FE3ZTH3.js +7 -0
- package/chunk-7V4AFAU5.js +1 -0
- package/{chunk-R2KG54OT.js → chunk-AKZM2DMY.js} +2 -2
- package/{chunk-JR4EQTPJ.js → chunk-AVL6C3VX.js} +1 -1
- package/{chunk-ZU7I7MCL.js → chunk-BTZS5NIZ.js} +1 -1
- package/chunk-CAI423H5.js +1 -0
- package/{chunk-223MMYH7.js → chunk-CEMQLY34.js} +1 -1
- package/chunk-CMHZLZ4E.js +1 -0
- package/{chunk-EOLHIQHQ.js → chunk-DDBPJDR6.js} +1 -1
- package/{chunk-ZL4DDXH7.js → chunk-DWTUKOMR.js} +4 -4
- package/chunk-DXCBV3NP.js +1 -0
- package/{chunk-UGKSIDKE.js → chunk-DYZT7UKM.js} +1 -1
- package/chunk-E2RBYY7Q.js +1 -0
- package/chunk-E2VJWAI2.js +1 -0
- package/chunk-EBTC6B2W.js +2 -0
- package/chunk-EHULZLLD.js +300 -0
- package/chunk-ESKS6LNH.js +246 -0
- package/{chunk-S35HUXPS.js → chunk-F2X3VGZZ.js} +1 -1
- package/chunk-F6SXKAYF.js +67 -0
- package/chunk-G4MYTCDD.js +1 -0
- package/{chunk-V7Y6Z4AQ.js → chunk-G63G4UQZ.js} +2 -2
- package/{chunk-5GQEUX4M.js → chunk-G7MS6UI4.js} +1 -1
- package/chunk-GGZEY27B.js +1 -0
- package/{chunk-ZZPBK2XT.js → chunk-GHZLR44M.js} +1 -1
- package/{chunk-O65HPMSJ.js → chunk-HZ7WPLLK.js} +1 -1
- package/{chunk-CINZRZMB.js → chunk-HZLUYZB3.js} +1 -1
- package/chunk-I7T4W6G2.js +47 -0
- package/{chunk-EMVZ65TI.js → chunk-IF72X7RS.js} +1 -1
- package/chunk-JXI4NDYT.js +1 -0
- package/chunk-KFKLJQ2D.js +1 -0
- package/{chunk-XWVLTTMV.js → chunk-KLKIGY44.js} +1 -1
- package/{chunk-TUL6Y2HH.js → chunk-KO5IN2G2.js} +1 -1
- package/chunk-L2BS7BTV.js +1 -0
- package/chunk-LUH5EEUM.js +1 -0
- package/chunk-MEKP6D5H.js +1 -0
- package/chunk-MQ5Y727W.js +1 -0
- package/{chunk-H4HFCRFZ.js → chunk-MS3UTNX6.js} +14 -14
- package/chunk-NWVWD4IE.js +1 -0
- package/chunk-NXCLB2JQ.js +1 -0
- package/chunk-ON4N4CPO.js +51 -0
- package/chunk-OVJSBJBH.js +197 -0
- package/{chunk-REHXXPZY.js → chunk-PATWAZNE.js} +1 -1
- package/chunk-PBI352JR.js +1 -0
- package/chunk-PKK7JSPR.js +1 -0
- package/{chunk-FOUHOMEE.js → chunk-PKPPDJWT.js} +5 -5
- package/chunk-PMLVFBAT.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-DJ5UHXOJ.js → chunk-RNU2O7NF.js} +1 -1
- package/{chunk-AYVR3RIS.js → chunk-ROX6NFMK.js} +2 -2
- package/{chunk-ERX7ND7E.js → chunk-S64TQVWK.js} +1 -1
- package/chunk-SJTXIIX5.js +1 -0
- package/chunk-TDHD3ZTF.js +1 -0
- package/{chunk-YKYI4A3V.js → chunk-TL6UHPBU.js} +1 -1
- package/chunk-UFS2HLAY.js +1 -0
- package/chunk-UIM6GQ63.js +1 -0
- package/chunk-UM7MB5JU.js +1 -0
- package/chunk-UNNEEFI2.js +1 -0
- package/{chunk-UTL7D6E7.js → chunk-USO7UKRV.js} +4 -4
- package/chunk-VVC3QQUI.js +1 -0
- package/{chunk-SS3CMCAX.js → chunk-VYTUB2DV.js} +2 -2
- package/chunk-YF4S6CQO.js +524 -0
- package/chunk-YILEWAVV.js +1 -0
- package/chunk-YNI2HWIV.js +180 -0
- package/index.html +3 -3
- package/main-YPUVQR54.js +1 -0
- package/package.json +1 -1
- package/polyfills-OYTHSGNX.js +2 -0
- package/styles-JMIKZHNX.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-FKTEL4CU.js +0 -524
- 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-PNQSQQIT.js +0 -1
- package/chunk-Q5PJ63MA.js +0 -1
- package/chunk-RIALPB2D.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-Y6MJGNH2.js +0 -1
- package/main-MCP7AVEU.js +0 -1
- package/polyfills-EQXJKH7W.js +0 -2
- package/styles-IAH7RNKW.css +0 -1
package/chunk-J53TOHZH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as He}from"./chunk-G4XX7EU2.js";import{a as et,b as je,c as Ue}from"./chunk-AYVR3RIS.js";import{a as Fe}from"./chunk-TUL6Y2HH.js";import{a as qe,b as Ge}from"./chunk-X2NM4CIV.js";import"./chunk-WG7APCJU.js";import"./chunk-ZZPBK2XT.js";import{a as H}from"./chunk-LYEN4UBW.js";import{a as we,b as Te}from"./chunk-4Y3NYY52.js";import{a as Pe,b as Ne}from"./chunk-OCLABZZW.js";import{b as Ve,c as ke,h as Ae,j as Le,k as Oe,l as Be}from"./chunk-H4HFCRFZ.js";import{g as oe,h as ae}from"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as B,b as q}from"./chunk-5GQEUX4M.js";import{f as Me,g as O}from"./chunk-33KLXB2L.js";import{f as re,g as L}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import{u as ne,v as ie}from"./chunk-OWI3BWEZ.js";import{Ga as Ie,b as X,c as N,e as V,f as Y,g as Ce,h as U,i as ye,j as J,l as Q,o as Z,s as Re,t as Se,u as ee}from"./chunk-ROKYJX6Q.js";import{d as De}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{m as te,p as k,w as A}from"./chunk-6BFODHTZ.js";import{k as be,n as M,r as $,s as K,t as P}from"./chunk-RUGQ4OJG.js";import{Bb as d,Fc as C,Gc as z,Ha as b,Hc as F,Ic as h,J as W,Kb as p,Nb as xe,Tc as ve,Ub as r,Vb as n,Wb as c,X as ue,Z as I,_b as y,c as me,ca as de,dc as w,ec as m,gb as l,ia as f,mc as a,nc as R,qa as _,qc as fe,ra as E,rc as _e,s as T,sc as Ee,tc as he,ub as S,vc as pe,wa as ge,wc as D}from"./chunk-VYKJK5YU.js";import{a as g,b as x,e as Ze}from"./chunk-EQDQRRRY.js";var G=(()=>{class t{#e=f(De);#t=f(Fe);getRecurringExpenses(e){return this.#e.post(void 0,"api/RecurringExpense/GetList",e)}fetchRecurringExpenseForm(e){return this.#e.get(void 0,`api/RecurringExpense/form/${e??""}`)}fetchSupplierSuggestion(e){let i={count:100,prefix:e};return this.#e.post(`https://${this.#t.getFullDomain()}/`,"API/AC/GetSupplierSuggestion",i)}submitRecurringExpense(e,i={}){return this.#e.post(void 0,"api/RecurringExpense/submit",e,i)}removeRecurringExpense(e){return this.#e.delete(void 0,`api/RecurringExpense/${e}`,void 0)}removeRecurringExpenses(e){let i={body:e};return this.#e.delete(void 0,"api/RecurringExpense/Batch",i)}getRecurringExpenseByID(e){return this.#e.get(void 0,`api/RecurringExpense/Info/${e}`)}getAssetValueList(){return this.#e.get(void 0,"api/AssetValue/GetListt")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var it=["class","page"],rt=t=>["details/",t];function ot(t,u){if(t&1){let e=y();r(0,"p-button",11),w("onClick",function(){_(e);let o=m(2);return E(o.onDeleteSelected())}),n()}}function at(t,u){if(t&1&&(r(0,"div",7),d(1,ot,1,0,"p-button",8),r(2,"a",9),c(3,"i",10),r(4,"span"),a(5,"Add"),n()()()),t&2){let e=m();l(),p("ngIf",e.isAnyRowSelected())}}function lt(t,u){t&1&&(r(0,"tr")(1,"th"),c(2,"p-tableHeaderCheckbox"),n(),r(3,"th"),a(4,"Outlet"),n(),r(5,"th"),a(6,"Name"),n(),r(7,"th"),a(8,"Expense Account"),n(),r(9,"th"),a(10,"Start Date"),n(),r(11,"th"),a(12,"End Date"),n(),r(13,"th"),a(14,"Last Expense"),n(),r(15,"th"),a(16,"Amount"),n(),r(17,"th"),a(18,"Frequency"),n()())}function pt(t,u){if(t&1&&(r(0,"tr")(1,"td"),c(2,"p-tableCheckbox",15),n(),r(3,"td"),a(4),n(),r(5,"td")(6,"a",16),a(7),n()(),r(8,"td"),a(9),n(),r(10,"td"),a(11),C(12,"date"),n(),r(13,"td"),a(14),C(15,"date"),n(),r(16,"td"),a(17),C(18,"date"),n(),r(19,"td"),a(20),C(21,"number"),n(),r(22,"td"),a(23),n()()),t&2){let e=u.$implicit;l(2),p("value",e),l(2),R(e.outletName),l(2),p("routerLink",D(21,rt,e.id)),l(),R(e.name),l(2),R(e.expenseName),l(2),R(F(12,10,e.startDate,"d MMM y")),l(3),R(F(15,13,e.endDate,"d MMM y")),l(3),R(F(18,16,e.lastExpenseDate,"d MMM y")),l(3),R(z(21,19,e.amount)),l(3),R(e.repeatTypeLabel)}}function ct(t,u){if(t&1&&(r(0,"div"),a(1),n()),t&2){let e=m(3);l(),fe(" Showing ",e.recurringExpenseFilter().PageNumber," to ",e.recurringExpenseFilter().RowCount," of ",e.recurringExpenseData().count," entries ")}}function st(t,u){if(t&1){let e=y();r(0,"p-card",13)(1,"p-table",14),w("onPage",function(o){_(e);let s=m(2);return E(s.onPageChange(o))})("onHeaderCheckboxToggle",function(o){_(e);let s=m(2);return E(s.onSelectAll(o))})("onRowSelect",function(o){_(e);let s=m(2);return E(s.onRowSelect(o))})("onRowUnselect",function(o){_(e);let s=m(2);return E(s.onRowUnselect(o))}),d(2,lt,19,0,"ng-template",null,3,h)(4,pt,24,23,"ng-template",null,4,h)(6,ct,2,3,"ng-template",null,5,h),n()()}if(t&2){let e=m(2);l(),p("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("lazy",!0)("totalRecords",e.recurringExpenseData().count)("rows",e.recurringExpenseFilter().RowCount)("paginator",!0)("value",e.recurringExpenseData().data)}}function mt(t,u){if(t&1&&d(0,st,8,7,"p-card",12),t&2){let e=m();p("ngIf",e.recurringExpenseData())}}function ut(t,u){if(t&1&&(r(0,"form",17)(1,"div",18)(2,"label",19),a(3,"Outlet"),n(),c(4,"p-select",20),n()()),t&2){let e=m();p("formGroup",e.recurringExpenseForm),l(4),p("options",e.repeatType())}}var Ke=(()=>{class t{constructor(){this.recurringExpenseService=f(G),this.recurringExpenseFilter=b(null),this.visible=b(!1),this.recurringExpenseData=b(null),this.repeatType=b([{label:"Monthly",value:1},{label:"Yearly",value:2}]),this.isAnyRowSelected=ve(()=>this.recurringExpenseData()?this.recurringExpenseData().data.some(e=>e.checkbox):!1),this.loadRecurringExpenses=Pe(me(W(e=>this.recurringExpenseService.getRecurringExpenses(e).pipe(T(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:!1}))})),Ne({next:i=>this.recurringExpenseData.set(i),error:i=>console.error(i)})))))}ngOnInit(){this.recurringExpenseFilter.set({PageNumber:1,RowCount:10,Text:null,Frequency:1}),this.loadRecurringExpenses(this.recurringExpenseFilter),this.generateRecurringExpenseForm()}onPageChange(e){this.recurringExpenseFilter.update(i=>x(g({},i),{PageNumber:e.first/e.rows+1}))}onSelectAll(e){this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:e.checked}))}))}onRowSelect(e){this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:e.data.id===o.id}))}))}onRowUnselect(e){Array.isArray(e.data)?this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map((o,s)=>x(g({},o),{checkbox:e.data[s].id===o.id?!1:o.checkbox}))})):e.data&&typeof e.data=="object"&&"id"in e.data&&this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:e.data.id===o.id?!1:o.checkbox}))}))}onDeleteSelected(){let e=this.recurringExpenseData().data.filter(o=>o.checkbox).map(o=>o.id);if(e.length===0)return;(e.length===1?this.recurringExpenseService.removeRecurringExpense(e[0]):this.recurringExpenseService.removeRecurringExpenses(e)).pipe(H("response")).pipe(I(()=>this.loadRecurringExpenses(this.recurringExpenseFilter))).subscribe()}onSearchEvent(e){console.log(e),this.recurringExpenseFilter.update(i=>x(g({},i),{Text:e.trim()}))}onFilterEvent(){this.visible.update(e=>!e)}onSubmitFilterDialog(){let e=this.recurringExpenseForm.value;Object.keys(e).forEach(i=>{this.recurringExpenseFilter.update(o=>x(g({},o),{[i]:e[i]}))}),this.visible.update(i=>!i)}onUpdateFilter(e,i){this.recurringExpenseFilter.update(o=>x(g({},o),{[e]:i}))}generateRecurringExpenseForm(){this.recurringExpenseForm=new Ce({PageNumber:new U(1),RowCount:new U(20),Text:new U(null),Frequency:new U(1)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-recurring-expense",8,"page"]],attrs:it,decls:7,vars:2,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Recurring Expenses",3,"searchEmitted","filterEmitted","isSearchableInput","isFilterable"],[1,"d-flex","gap-2"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["routerLink","create",1,"p-button"],[1,"fa-solid","fa-plus"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["styleClass","h-100",4,"ngIf"],["styleClass","h-100"],["stripedRows","","dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","scrollable","scrollHeight","lazy","totalRecords","rows","paginator","value"],[3,"value"],[1,"link-primary",3,"routerLink"],[1,"d-flex","flex-column",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","Frequency","appendTo","body","optionLabel","label","optionValue","value","placeholder","Select Outlet",3,"options"]],template:function(i,o){if(i&1){let s=y();r(0,"app-main-panel",6),w("searchEmitted",function(Qe){return _(s),E(o.onSearchEvent(Qe))})("filterEmitted",function(){return _(s),E(o.onFilterEvent())}),d(1,at,6,1,"ng-template",null,0,h)(3,mt,1,1,"ng-template",null,1,h)(5,ut,5,2,"ng-template",null,2,h),n()}i&2&&p("isSearchableInput",!0)("isFilterable",!0)},dependencies:[O,k,q,B,Be,Ae,Le,Oe,P,M,K,$,A,Me,ae,oe,L,re,ee,J,V,Y,Q,Z],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}"],changeDetection:0})}}return t})();var j=Ze(et());var xt=["class","page"],ft=()=>[".."],_t=()=>({width:"100%",height:"calc(100vh - 200px)"}),ce=t=>({"ng-dirty ng-invalid":t});function Et(t,u){if(t&1){let e=y();r(0,"div",4)(1,"a",5),a(2," Cancel "),n(),r(3,"p-button",6),w("click",function(){_(e);let o=m();return E(o.onSubmit())}),n()()}t&2&&(l(),p("routerLink",pe(1,ft)))}function ht(t,u){t&1&&(r(0,"div",30)(1,"div",31),a(2,"Form"),n()())}function vt(t,u){t&1&&(r(0,"small",33),a(1,"Name is required"),n())}function bt(t,u){if(t&1&&(r(0,"div"),d(1,vt,2,0,"small",32),n()),t&2){let e=m(3);l(),p("ngIf",e.recurringExpenseForm.controls.name.errors.required)}}function Ct(t,u){t&1&&(r(0,"small",33),a(1,"Amount is required"),n())}function yt(t,u){t&1&&(r(0,"small",33),a(1,"Invalid amount format"),n())}function Rt(t,u){if(t&1&&(r(0,"div"),d(1,Ct,2,0,"small",32)(2,yt,2,0,"small",32),n()),t&2){let e=m(3);l(),p("ngIf",e.recurringExpenseForm.controls.amount.errors.required),l(),p("ngIf",e.recurringExpenseForm.controls.amount.errors.pattern)}}function St(t,u){if(t&1){let e=y();r(0,"div",8)(1,"div",9)(2,"p-card",10),d(3,ht,3,0,"ng-template",11),r(4,"p-scrollPanel")(5,"div",8)(6,"div",12)(7,"form",13)(8,"div",14)(9,"div",15,2)(11,"div",16)(12,"label",17),a(13,"Outlet"),n(),c(14,"p-select",18),n()(),r(15,"div",15)(16,"div",16)(17,"label",17),a(18,"Name"),n(),c(19,"input",19),d(20,bt,2,1,"div",20),n()(),r(21,"div",15)(22,"div",16)(23,"label",17),a(24,"From"),n(),c(25,"p-datepicker",21),n()(),r(26,"div",15)(27,"div",16)(28,"label",17),a(29,"To"),n(),c(30,"p-datepicker",22),n()(),r(31,"div",15)(32,"div",16)(33,"label",17),a(34,"Contact"),n(),r(35,"p-autocomplete",23),w("completeMethod",function(o){_(e);let s=m(2);return E(s.searchContact(o))}),n()()(),c(36,"div",12),n(),c(37,"hr"),r(38,"div",14)(39,"div",15)(40,"div",16)(41,"label",17),a(42,"Amount"),n(),c(43,"input",24),d(44,Rt,3,2,"div",20),n()(),r(45,"div",15)(46,"div",16)(47,"label",17),a(48,"Frequency"),n(),c(49,"p-select",25),n()(),r(50,"div",15)(51,"div",16)(52,"label",17),a(53,"Payment"),n(),c(54,"p-select",26),n()(),r(55,"div",15)(56,"div",16)(57,"label",17),a(58,"Expense"),n(),c(59,"p-select",27),n()(),r(60,"div",28)(61,"div",16)(62,"label",17),a(63,"Description"),n(),c(64,"textarea",29),n()()()()()()()()()()}if(t&2){let e=m(2);l(4),xe(pe(17,_t)),l(3),p("formGroup",e.recurringExpenseForm),l(7),p("options",e.recurringExpenseData().options.entities),l(5),p("ngClass",D(18,ce,e.isInvalid("name"))),l(),p("ngIf",e.isInvalid("name")),l(5),p("iconDisplay","input")("showIcon",!0),l(5),p("iconDisplay","input")("showIcon",!0),l(5),p("suggestions",e.supplierSuggestions()),l(8),p("ngClass",D(20,ce,e.isInvalid("amount"))),l(),p("ngIf",e.isInvalid("amount")),l(5),p("options",e.recurringExpenseData().options.frequency),l(5),p("ngClass",D(22,ce,e.recurringExpenseForm.controls.paymentAccountID.invalid&&(e.recurringExpenseForm.controls.paymentAccountID.dirty||e.recurringExpenseForm.controls.paymentAccountID.touched)))("options",e.recurringExpenseData().options.assets),l(5),p("options",e.recurringExpenseData().options.expenses)}}function Dt(t,u){if(t&1&&d(0,St,65,24,"div",7),t&2){let e=m();p("ngIf",e.recurringExpenseData())}}var se=(()=>{class t{constructor(){this.recurringExpenseService=f(G),this.fb=f(Re),this.destroyRef=f(ge),this.route=f(te),this.recurringExpenseData=b(null),this.supplierSuggestions=b([])}ngOnInit(){this.initializeForm(),this.fetchRecurringExpenseForm()}initializeForm(){this.recurringExpenseForm=this.fb.group({id:this.fb.control(""),name:this.fb.control("",[N.required]),repeatTypeID:this.fb.control(1,[N.required]),startDate:this.fb.control((0,j.default)().toISOString()),endDate:this.fb.control(null),lastExpenseDate:this.fb.control(""),amount:this.fb.control(0,[N.required]),paymentAccountID:this.fb.control(null,[N.required]),expenseAccountID:this.fb.control(null,[N.required]),contactID:this.fb.control(""),description:this.fb.control(""),repeatTypeLabel:this.fb.control(""),outletID:this.fb.control(""),creatorID:this.fb.control(""),created:this.fb.control(""),modifierID:this.fb.control(""),modified:this.fb.control("")},{updateOn:"change"})}fetchRecurringExpenseForm(){this.route.paramMap.pipe(T(e=>e.get("id")),ue(e=>e?this.recurringExpenseService.fetchRecurringExpenseForm(e):this.recurringExpenseService.fetchRecurringExpenseForm()),I(e=>{this.recurringExpenseData.set(e),this.updateFormWithRecurringExpense(e.form)})).subscribe()}updateFormWithRecurringExpense(e){let i=Object.entries(e).reduce((o,[s,v])=>{switch(s){case"startDate":o[s]=(0,j.default)(v).isSame((0,j.default)("0001-01-01T00:00:00"))?(0,j.default)().toDate():(0,j.default)(v).toDate();break;case"repeatTypeID":o[s]=1;break;case"contactID":o[s]=v===He?"":v;break;default:o[s]=v}return o},{});this.recurringExpenseForm.patchValue(i)}searchContact(e){this.recurringExpenseService.fetchSupplierSuggestion(e.query).pipe(I(this.supplierSuggestions.set)).subscribe()}onSubmit(){let e=this.recurringExpenseForm.value;if(this.recurringExpenseForm.invalid){this.recurringExpenseForm.markAllAsTouched();return}let i=Object.entries(e).reduce((o,[s,v])=>(s==="amount"?o[s]=Number(v):o[s]=v,o),{});this.recurringExpenseService.submitRecurringExpense(i,{observe:"response"}).pipe().subscribe()}isInvalid(e){let i=this.recurringExpenseForm.get(e);return i.invalid&&(i.dirty||i.touched)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-recurring-expense-form",8,"page"]],attrs:xt,decls:5,vars:0,consts:[["actionButton",""],["content",""],["outlet",""],["pageTitle","Recurring Expense Form"],[1,"d-flex","gap-2"],["type","button",1,"p-button","p-button-secondary","p-button-outlined",3,"routerLink"],["label","Submit","icon","fa-solid fa-plus",3,"click"],["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-6"],["styleClass","h-100"],["pTemplate","header"],[1,"col"],[1,"d-flex","flex-column","row-gap-4",3,"formGroup"],[1,"row","row-gap-4"],[1,"col","col-lg-6"],[1,"d-flex","flex-column"],["for",""],["formControlName","outletID","optionLabel","name","optionValue","id","placeholder","Select Outlet",3,"options"],["formControlName","name","type","text","pInputText","",3,"ngClass"],[4,"ngIf"],["dateFormat","mm/dd/yy","appendTo","body","formControlName","startDate","styleClass","w-100","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","endDate","styleClass","w-100","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","contactID","inputStyleClass","w-100","styleClass","w-100","optionLabel","Value","optionValue","Key",3,"completeMethod","suggestions"],["formControlName","amount","type","text","pInputText","",3,"ngClass"],["formControlName","repeatTypeID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"options"],["formControlName","paymentAccountID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"ngClass","options"],["formControlName","expenseAccountID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"options"],[1,"col","col-lg-12"],["formControlName","description","rows","5","cols","30","pTextarea",""],[1,"row","px-4","py-2"],[1,"col-4","fs-6"],["class","text-danger",4,"ngIf"],[1,"text-danger"]],template:function(i,o){i&1&&(r(0,"app-main-panel",3),d(1,Et,4,2,"ng-template",null,0,h)(3,Dt,1,1,"ng-template",null,1,h),n())},dependencies:[O,q,B,Ie,ie,ne,ae,oe,ke,Ve,Ue,je,Ge,qe,Te,we,P,be,M,ee,J,X,V,Y,Q,Z,A,k,L,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ft=["class","page"],It=t=>["/recurring/recurring-expense/edit",t];function wt(t,u){if(t&1&&(r(0,"button",2),c(1,"i",3),r(2,"span"),a(3,"Delete"),n()(),r(4,"a",4),c(5,"i",5),r(6,"span"),a(7,"Edit"),n()()),t&2){let e=m();l(4),p("routerLink",D(1,It,e.currentRecurringExpense().id))}}function Tt(t,u){if(t&1){let e=y();r(0,"p-card",9)(1,"div",6)(2,"div",10)(3,"div",11)(4,"div",10)(5,"div",12)(6,"div",13)(7,"div",14)(8,"label",15),a(9,"Name"),n(),r(10,"input",16),he("ngModelChange",function(o){_(e);let s=m(2);return Ee(s.currentRecurringExpense().name,o)||(s.currentRecurringExpense().name=o),E(o)}),n()()(),c(11,"div",13),r(12,"div",13)(13,"div",14)(14,"label",15),a(15,"Start"),n(),c(16,"input",17),C(17,"date"),n()(),r(18,"div",13)(19,"div",14)(20,"label",15),a(21,"End"),n(),c(22,"input",17),C(23,"date"),n()(),r(24,"div",13)(25,"div",14)(26,"label",15),a(27,"Contact"),n(),c(28,"input",17),C(29,"date"),n()(),r(30,"div",18)(31,"div",14)(32,"label",15),a(33,"Description"),n(),c(34,"textarea",19),n()()(),c(35,"hr"),r(36,"div",11)(37,"div",13)(38,"div",14)(39,"label",15),a(40,"Amount"),n(),c(41,"input",17),C(42,"number"),n()(),r(43,"div",13)(44,"div",14)(45,"label",15),a(46,"Frequency"),n(),c(47,"input",17),n()(),r(48,"div",13)(49,"div",14)(50,"label",15),a(51,"Payment"),n(),c(52,"input",17),n()(),r(53,"div",13)(54,"div",14)(55,"label",15),a(56,"Expense"),n(),c(57,"input",17),n()()()()()()()()}if(t&2){let e=m(2);l(10),_e("ngModel",e.currentRecurringExpense().name),l(6),p("value",F(17,9,e.currentRecurringExpense().startDate,"d MMM y")),l(6),p("value",F(23,12,e.currentRecurringExpense().endDate,"d MMM y")),l(6),p("value",F(29,15,e.currentRecurringExpense().endDate,"d MMM y")),l(6),p("value",e.currentRecurringExpense().description),l(7),p("value",z(42,18,e.currentRecurringExpense().amount)),l(6),p("value",e.currentRecurringExpense().repeatTypeLabel),l(5),p("value",e.currentRecurringExpense().paymentName),l(5),p("value",e.currentRecurringExpense().expenseName)}}function Mt(t,u){if(t&1&&(r(0,"div",6)(1,"div",7),d(2,Tt,58,20,"p-card",8),n()()),t&2){let e=m();l(2),p("ngIf",e.currentRecurringExpense())}}var Xe=(()=>{class t{constructor(){this.recurringExpenseService=f(G),this.route=f(te),this.currentRecurringExpense=b(null)}ngOnInit(){this.route.paramMap.pipe(T(e=>e.get("id")),H("params"),W(e=>this.recurringExpenseService.getRecurringExpenseByID(e)),I(e=>this.currentRecurringExpense.set(e)),H("recurringExpense")).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-recurring-expense-info",8,"page"]],attrs:Ft,decls:5,vars:0,consts:[["actionButton",""],["content",""],[1,"btn","btn-outline-secondary","rounded","d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-trash"],[1,"btn","btn-outline-secondary","rounded","d-flex","gap-2","align-items-center",3,"routerLink"],[1,"fa-solid","fa-pen-to-square"],[1,"row","justify-content-center"],[1,"col-6"],["styleClass","h-100","header","Details",4,"ngIf"],["styleClass","h-100","header","Details"],[1,"col"],[1,"row"],[1,"row","row-gap-4"],[1,"col","col-lg-6"],[1,"d-flex","flex-column"],["for",""],["disabled","","type","text","pInputText","",3,"ngModelChange","ngModel"],["disabled","","type","text","pInputText","",3,"value"],[1,"col","col-lg-12"],["disabled","","rows","5","cols","30","pTextarea","",3,"value"]],template:function(i,o){i&1&&(r(0,"app-main-panel"),d(1,wt,8,3,"ng-template",null,0,h)(3,Mt,3,1,"ng-template",null,1,h),n())},dependencies:[O,q,B,P,M,K,$,ie,ne,Se,X,V,ye,L,A,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ye=[{path:"",redirectTo:"",pathMatch:"full"},{path:"",children:[{path:"",component:Ke},{path:"create",component:se},{path:"details/:id",component:Xe},{path:"edit/:id",component:se}]}];var Je=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-asset-value"]],decls:0,vars:0,template:function(i,o){},encapsulation:2})}}return t})();var Xn=[{path:"",redirectTo:"recurring-expense",pathMatch:"full"},{path:"recurring-expense",children:Ye},{path:"asset-value",component:Je}];export{Xn as RECURRING_ROUTES};
|
package/chunk-JC7YOUAM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as H}from"./chunk-UGKSIDKE.js";import{a as L}from"./chunk-LYEN4UBW.js";import{h as V,j as N,k as U,l as B}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{g as M}from"./chunk-33KLXB2L.js";import{f as z,g as D}from"./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 T,r as I,t as k}from"./chunk-RUGQ4OJG.js";import{Bb as x,Fc as y,Ha as h,Hc as A,Ic as C,Kb as f,Tc as J,Ub as o,Vb as i,Vc as v,Wb as b,Z as P,_b as S,dc as w,ec as s,gb as m,ia as R,mc as r,nc as d,qa as u,ra as g,ub as E}from"./chunk-VYKJK5YU.js";import{a as p,b as c}from"./chunk-EQDQRRRY.js";function O(n,_){if(n&1){let e=S();o(0,"p-button",6),w("onClick",function(){u(e);let t=s(2);return g(t.onCreateJournal())}),i()}}function j(n,_){if(n&1&&x(0,O,1,0,"p-button",5),n&2){let e=s();f("ngIf",e.selectedItems().length)}}function K(n,_){n&1&&(o(0,"tr")(1,"th",9),b(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Outlet"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th"),r(8,"Customer"),i(),o(9,"th"),r(10,"Date"),i(),o(11,"th"),r(12,"Due"),i(),o(13,"th"),r(14,"Note"),i(),o(15,"th"),r(16,"Payment"),i()())}function F(n,_){if(n&1&&(o(0,"tr")(1,"td"),b(2,"p-tableCheckbox",10),i(),o(3,"td"),r(4),i(),o(5,"td"),r(6),i(),o(7,"td"),r(8),i(),o(9,"td"),r(10),y(11,"date"),i(),o(12,"td"),r(13),y(14,"date"),i(),o(15,"td"),r(16),i(),o(17,"td"),r(18),i()()),n&2){let e=_.$implicit;m(2),f("value",e),m(2),d(e.outlet),m(2),d(e.number),m(2),d(e.customer),m(2),d(A(11,8,e.date,"d MMM y")),m(3),d(A(14,11,e.due,"d MMM y")),m(3),d(e.note),m(2),d(e.payment)}}function $(n,_){if(n&1){let e=S();o(0,"p-table",8),w("onLazyLoad",function(t){u(e);let l=s(2);return g(l.onLazyLoad(t))})("onRowSelect",function(t){u(e);let l=s(2);return g(l.onRowSelect(t))})("onRowUnselect",function(t){u(e);let l=s(2);return g(l.onRowUnselect(t))}),x(1,K,17,0,"ng-template",null,2,C)(3,F,19,14,"ng-template",null,3,C),i()}if(n&2){let e=s(2);f("value",e.APCollection().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.APCollection().totalCount)("lazy",!0)}}function q(n,_){if(n&1&&x(0,$,5,7,"p-table",7),n&2){let e=s();f("ngIf",e.APCollection())}}var ce=(()=>{class n{constructor(){this.generateJournalService=R(H),this.APCollection=h(null),this.pageData=h({PageNumber:1,PageSize:10}),this.selectedItems=J(()=>{let e=this.APCollection();return e?e.data.filter(a=>a.checked):[]}),v(()=>{this.pageData()&&this.fetchAPCollection()})}fetchAPCollection(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getAPJournal(e).pipe(P(a=>{this.APCollection.update(t=>c(p({},t),{data:a.data.map(l=>c(p({},l),{checked:!1})),totalCount:+a.totalCount}))}),L("AR Collection")).subscribe()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let a=e.data;this.APCollection.update(t=>c(p({},t),{data:t.data.map(l=>l.id===a.id?c(p({},l),{checked:!0}):l)}))}onRowUnselect(e){let a=e.data;Array.isArray(a)?this.APCollection.update(t=>c(p({},t),{data:t.data.map((l,G)=>l.id===a[G].id?c(p({},l),{checked:!1}):l)})):this.APCollection.update(t=>c(p({},t),{data:t.data.map(l=>l.id===a.id?c(p({},l),{checked:!1}):l)}))}onCreateJournal(){let a=this.selectedItems().map(t=>t.id);this.generateJournalService.createAPJournal(a).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=E({type:n,selectors:[["app-ap-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","AP Collection"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy","onLazyLoad","onRowSelect","onRowUnselect",4,"ngIf"],["dataKey","id",3,"onLazyLoad","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(a,t){a&1&&(o(0,"app-main-panel",4),x(1,j,1,1,"ng-template",null,0,C)(3,q,1,1,"ng-template",null,1,C),i())},dependencies:[M,B,V,N,U,k,T,I,D,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return n})();export{ce as ApJournalComponent};
|
package/chunk-JSAAKZBO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-XWVLTTMV.js";import{g as C}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import{a as v}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{t as T}from"./chunk-RUGQ4OJG.js";import{Bb as l,Ic as _,Ub as o,Vb as r,_b as u,dc as f,ec as g,ia as i,mc as x,qa as m,ra as s,ub as p,uc as d}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";function M(t,S){if(t&1){let e=u();o(0,"div",2)(1,"button",3),f("click",function(){m(e);let a=g();return s(a.onMigrate())}),x(2,"Migrate"),r()()}}var V=(()=>{class t{constructor(){this.migrateService=i(c),this.toastr=i(v)}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=p({type:t,selectors:[["app-tax-account"]],features:[d([c])],decls:3,vars:0,consts:[["content",""],["pageTitle","Tax Account"],[1,"container","my-2"],[1,"btn","btn-primary",3,"click"]],template:function(n,a){n&1&&(o(0,"app-main-panel",1),l(1,M,3,0,"ng-template",null,0,_),r())},dependencies:[C,T],encapsulation:2})}}return t})();export{V as TaxAccountComponent};
|
package/chunk-KZ2KGWUY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,b as y}from"./chunk-OCLABZZW.js";import{h as $,l as z}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as U,b as q}from"./chunk-5GQEUX4M.js";import{g as K}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import{a as S,b as F,c as O,d as j,e as G,f as H,g as N}from"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import{t as T}from"./chunk-ROKYJX6Q.js";import{d as R}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{p as w,w as L}from"./chunk-6BFODHTZ.js";import{s as M,t as D}from"./chunk-RUGQ4OJG.js";import{Bb as C,Fc as x,Gc as B,Ic as s,Kb as l,Tc as I,Ub as n,Vb as a,X as u,c as h,ca as E,ec as _,gb as p,ia as c,mc as r,nc as m,ub as b,uc as P,vc as g,wc as k}from"./chunk-VYKJK5YU.js";import{a as d,b as f}from"./chunk-EQDQRRRY.js";var J=(()=>{class t{constructor(){this.httpService=c(R)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(){return this.httpService.get("","api/CashAndBank/GetCashAndBank")}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=E({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Y={data:[],filter:[],options:{hasGeneralLedger:!1}},A=F(N("cash-bank-store"),H(Y),O(t=>({totalBalance:I(()=>t.data().reduce((i,e)=>i+e.balance,0))})),G(t=>{let i=c(J);return{loadCashAndBankLoader:v(h(u(()=>i.fetchCashAndBankLoader().pipe(y({next:e=>{console.log("response",e),S(t,o=>f(d({},o),{options:e.options}))},error:e=>{console.log("error",e)}}))))),loadCashAndBankData:v(h(u(()=>i.fetchCashAndBankData().pipe(y({next:e=>{console.log("response",e),S(t,o=>f(d({},o),{data:e}))},error:e=>{console.log("error",e)}})))))}}),j({onInit(t){t.loadCashAndBankLoader(),t.loadCashAndBankData()}}));var Z=["class","page"],tt=()=>({"min-width":"50rem"}),et=t=>[t],nt=()=>["/report/general-ledger"],at=t=>({id:t});function ot(t,i){t&1&&(n(0,"tr")(1,"th"),r(2,"Code"),a(),n(3,"th"),r(4,"Name"),a(),n(5,"th"),r(6,"Balance"),a()())}function it(t,i){if(t&1&&(n(0,"tr")(1,"td"),r(2),a(),n(3,"td")(4,"a",6),r(5),a()(),n(6,"td")(7,"a",7),r(8),x(9,"number"),a()()()),t&2){let e=i.$implicit;p(2),m(e.code),p(2),l("routerLink",k(8,et,"/chart-of-account/account/"+e.accountID)),p(),m(e.name),p(2),l("routerLink",g(10,nt))("queryParams",k(11,at,e.accountID)),p(),m(B(9,6,e.balance))}}function rt(t,i){if(t&1&&(n(0,"tr")(1,"td",8),r(2,"Total"),a(),n(3,"td"),r(4),x(5,"number"),a()()),t&2){let e=_(2);p(4),m(B(5,1,e.store.totalBalance()))}}function pt(t,i){if(t&1&&(n(0,"p-card")(1,"p-table",5),C(2,ot,7,0,"ng-template",null,1,s)(4,it,10,13,"ng-template",null,2,s)(6,rt,6,3,"ng-template",null,3,s),a()()),t&2){let e=_();p(),l("value",e.store.data())("tableStyle",g(2,tt))}}var Q=(()=>{class t{constructor(){this.store=c(A),this.routeInfo=V}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-cash-bank",8,"page"]],features:[P([A])],attrs:Z,decls:3,vars:1,consts:[["content",""],["header",""],["body",""],["footer",""],["pageTitle","Cash and Bank",3,"routeInfo"],[3,"value","tableStyle"],[1,"link","link-primary",3,"routerLink"],[1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"text-end"]],template:function(o,W){o&1&&(n(0,"app-main-panel",4),C(1,pt,8,3,"ng-template",null,0,s),a()),o&2&&l("routeInfo",W.routeInfo)},dependencies:[D,M,K,T,z,$,q,U,L,w],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 jt=[{path:"",component:Q,children:[]}],V={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{jt as CASH_BANK_ROUTES,V as CASH_BANK_ROUTE_PAGE};
|
package/chunk-LON3T466.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as B}from"./chunk-UGKSIDKE.js";import{h as L,j as V,k as N,l as U}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{g as P}from"./chunk-33KLXB2L.js";import{f as D,g as M}from"./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 T,r as k,t as z}from"./chunk-RUGQ4OJG.js";import{Bb as x,Fc as w,Ha as R,Hc as A,Ic as C,Kb as f,Tc as v,Ub as a,Vb as o,Vc as I,Wb as h,Z as y,_b as b,dc as S,ec as s,gb as m,ia as E,mc as r,nc as d,qa as u,ra as g,ub as J}from"./chunk-VYKJK5YU.js";import{a as c,b as p}from"./chunk-EQDQRRRY.js";function G(n,_){if(n&1){let e=b();a(0,"p-button",6),S("onClick",function(){u(e);let t=s(2);return g(t.onCreateJournal())}),o()}}function O(n,_){if(n&1&&x(0,G,1,0,"p-button",5),n&2){let e=s();f("ngIf",e.selectedItems().length)}}function j(n,_){n&1&&(a(0,"tr")(1,"th",9),h(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),r(4,"Outlet"),o(),a(5,"th"),r(6,"Number"),o(),a(7,"th"),r(8,"Customer"),o(),a(9,"th"),r(10,"Date"),o(),a(11,"th"),r(12,"Due"),o(),a(13,"th"),r(14,"Note"),o(),a(15,"th"),r(16,"Payment"),o()())}function K(n,_){if(n&1&&(a(0,"tr")(1,"td"),h(2,"p-tableCheckbox",10),o(),a(3,"td"),r(4),o(),a(5,"td"),r(6),o(),a(7,"td"),r(8),o(),a(9,"td"),r(10),w(11,"date"),o(),a(12,"td"),r(13),w(14,"date"),o(),a(15,"td"),r(16),o(),a(17,"td"),r(18),o()()),n&2){let e=_.$implicit;m(2),f("value",e),m(2),d(e.outlet),m(2),d(e.number),m(2),d(e.customer),m(2),d(A(11,8,e.date,"d MMM y")),m(3),d(A(14,11,e.due,"d MMM y")),m(3),d(e.note),m(2),d(e.payment)}}function F(n,_){if(n&1){let e=b();a(0,"p-table",8),S("onLazyLoad",function(t){u(e);let i=s(2);return g(i.onLazyLoad(t))})("onRowSelect",function(t){u(e);let i=s(2);return g(i.onRowSelect(t))})("onRowUnselect",function(t){u(e);let i=s(2);return g(i.onRowUnselect(t))}),x(1,j,17,0,"ng-template",null,2,C)(3,K,19,14,"ng-template",null,3,C),o()}if(n&2){let e=s(2);f("value",e.ARCollection().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.ARCollection().totalCount)("lazy",!0)}}function $(n,_){if(n&1&&x(0,F,5,7,"p-table",7),n&2){let e=s();f("ngIf",e.ARCollection())}}var re=(()=>{class n{constructor(){this.generateJournalService=E(B),this.ARCollection=R(null),this.pageData=R({PageNumber:1,PageSize:10}),this.selectedItems=v(()=>this.ARCollection()&&this.ARCollection().data?this.ARCollection()?.data.filter(e=>e.checked)||[]:[]),I(()=>{this.pageData()&&this.fetchARCollection()})}fetchARCollection(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getARJournal(e).pipe(y(l=>{this.ARCollection.update(t=>p(c({},t),{data:l.data.map(i=>p(c({},i),{checked:!1})),totalCount:l.totalCount}))})).subscribe()}ngOnInit(){console.log()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let l=e.data;this.ARCollection.update(t=>p(c({},t),{data:t.data.map(i=>i.id===l.id?p(c({},i),{checked:!0}):i)}))}onRowUnselect(e){let l=e.data;Array.isArray(l)?this.ARCollection.update(t=>p(c({},t),{data:t.data.map((i,H)=>i.id===l[H].id?p(c({},i),{checked:!1}):i)})):this.ARCollection.update(t=>p(c({},t),{data:t.data.map(i=>i.id===l.id?p(c({},i),{checked:!1}):i)}))}onCreateJournal(){let l=this.selectedItems().map(t=>t.id);this.generateJournalService.createARJournal(l).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(l){return new(l||n)}}static{this.\u0275cmp=J({type:n,selectors:[["app-ar-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","AR Collection"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy","onLazyLoad","onRowSelect","onRowUnselect",4,"ngIf"],["dataKey","id",3,"onLazyLoad","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(l,t){l&1&&(a(0,"app-main-panel",4),x(1,O,1,1,"ng-template",null,0,C)(3,$,1,1,"ng-template",null,1,C),o())},dependencies:[P,z,T,k,U,L,V,N,M,D],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return n})();export{re as ARJournalComponent};
|
package/chunk-LYEN4UBW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Z as o}from"./chunk-VYKJK5YU.js";function i(e="emit"){return r=>r.pipe(o(t=>console.log(`${e}`,t)))}export{i as a};
|
package/chunk-MG3SLH6O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-TUL6Y2HH.js";import"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{o as r}from"./chunk-6BFODHTZ.js";import"./chunk-RUGQ4OJG.js";import{ia as e}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";var a=()=>{let t=e(o),i=e(r);return!t.isAuthenticated()||t.isTokenExpired()?(i.navigate(["authentication/login"]),!1):!0};var d=[{path:"",canActivate:[a],children:[{path:"",loadComponent:()=>import("./chunk-V7Y6Z4AQ.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{d as DashboardRoutes};
|
package/chunk-NQ3CKBYP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ie,b as Me,c as Ee,d as Oe,e as we,f as De}from"./chunk-223MMYH7.js";import{a as q}from"./chunk-LYEN4UBW.js";import{a as Z,b as ee}from"./chunk-4Y3NYY52.js";import{h as te,i as ye,j as Pe,k as be,l as ne}from"./chunk-H4HFCRFZ.js";import{g as W,h as N}from"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as G,b as L}from"./chunk-5GQEUX4M.js";import{g as T}from"./chunk-33KLXB2L.js";import{f as H,g as U}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import{u as ve,v as he}from"./chunk-OWI3BWEZ.js";import{e as B,f as ue,i as j,l as _e,n as fe,o as ge,r as xe,t as z,u as Ce}from"./chunk-ROKYJX6Q.js";import{d as Se}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{m as Y,p as A,w as V}from"./chunk-6BFODHTZ.js";import{n as R,t as D}from"./chunk-RUGQ4OJG.js";import{Bb as g,Ha as y,Ic as f,Kb as m,Nb as K,Qb as I,Sb as M,Tb as E,Tc as de,Ub as n,Vb as i,Wb as O,X as Q,Z as P,_b as w,ca as ce,dc as _,ec as c,gb as l,ia as C,mc as r,nc as x,oc as se,qa as d,ra as u,s as $,ub as b,vc as k,wc as X}from"./chunk-VYKJK5YU.js";import{a as v,b as h}from"./chunk-EQDQRRRY.js";var F=(()=>{class t{constructor(){this.httpService=C(Se)}getGlobalConfiguration(){return this.httpService.get(void 0,"/api/setup/GlobalConfiguration")}saveGlobalConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitGlobalConfiguration",e)}fetchPOSOutletConfiguration(){return this.httpService.get(void 0,"/api/Setup/OutletConfiguration")}fetchPOSOutletFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"/api/Setup/OutletConfigurationForm",o)}updatePOSOutletConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitOutletConfiguration",e)}fetchPOSPaymentConfiguration(){return this.httpService.get(void 0,"/api/Setup/PaymentConfiguration")}fetchPOSPaymentFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"api/Setup/PaymentConfigurationForm",o)}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 o={params:e};return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationForm",o)}updatePOSWriteOffConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitWriteOffConfiguration",e)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ne(t,s){if(t&1){let e=w();n(0,"div",4)(1,"a",5),r(2,"Cancel"),i(),n(3,"p-button",6),_("onClick",function(){d(e);let a=c();return u(a.onSubmit())}),i()()}}function $e(t,s){if(t&1&&(n(0,"p-tab",7),r(1),i()),t&2){let e=s.$implicit,o=s.$index;m("value",o),l(),x(e)}}function Ke(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function je(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function ze(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function He(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function Ue(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function qe(t,s){if(t&1){let e=w();n(0,"p-tabs",7)(1,"p-tablist"),M(2,$e,2,2,"p-tab",7,I),i(),n(4,"p-tabpanels")(5,"p-tabpanel",7)(6,"div",8)(7,"div",9)(8,"div",10)(9,"div",11)(10,"label",12),r(11,"Payment Method "),n(12,"span",13),r(13,"Debit"),i()(),O(14,"input",14),i()(),n(15,"div",10)(16,"div",11)(17,"label",12),r(18,"Sales "),n(19,"span",15),r(20,"Credit"),i()(),n(21,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Sales"))}),g(22,Ke,7,2,"ng-template",null,2,f),i()()(),n(24,"div",10)(25,"div",11)(26,"label",12),r(27,"Account Receiveable "),n(28,"span",13),r(29,"Debit"),i()(),n(30,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountReceiveable"))}),g(31,je,7,2,"ng-template",null,2,f),i()()()(),O(33,"hr"),n(34,"div",9)(35,"div",17)(36,"div",11)(37,"label",12),r(38,"COGS "),n(39,"span",13),r(40,"Debit"),i()(),n(41,"p-select",18),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CostOfGoodsSold"))}),g(42,ze,7,2,"ng-template",null,2,f),i()()(),n(44,"div",17)(45,"div",11)(46,"label",12),r(47,"Sold Inventory "),n(48,"span",15),r(49,"Credit"),i()(),n(50,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Inventory"))}),g(51,He,7,2,"ng-template",null,2,f),i()()()(),O(53,"hr"),n(54,"div",9)(55,"div",10)(56,"div",11)(57,"label",12),r(58,"Discount "),n(59,"span",13),r(60,"Debit"),i()(),n(61,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesDiscount"))}),g(62,Ue,7,2,"ng-template",null,2,f),i()()()()()(),n(64,"p-tabpanel",7)(65,"div",19)(66,"div",10)(67,"div",9)(68,"div",17)(69,"div",9)(70,"div",17)(71,"div",11)(72,"label",12),r(73,"Pending Paid Inventory "),n(74,"span",13),r(75,"Debit"),i()(),n(76,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PendingPaidInventory"))}),i()()(),n(77,"div",17)(78,"div",11)(79,"label",12),r(80,"Bought Inventory "),n(81,"span",13),r(82,"Debit"),i()(),n(83,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"InventoryBought"))}),i()()()()(),n(84,"div",17)(85,"div",9)(86,"div",17)(87,"div",11)(88,"label",12),r(89,"Payment Method"),i(),O(90,"input",14),i()(),n(91,"div",17)(92,"div",11)(93,"label",12),r(94,"Account Payable"),n(95,"span",15),r(96," Credit"),i()(),n(97,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountPayable"))}),i()()(),n(98,"div",17)(99,"div",11)(100,"label",12),r(101,"Pending Paid Inventory "),n(102,"span",15),r(103,"Credit"),i()(),n(104,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PendingPaidInventory"))}),i()()(),n(105,"div",17)(106,"div",11)(107,"label",12),r(108,"Discount "),n(109,"span",15),r(110,"Credit"),i()(),n(111,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PurchaseDiscount"))}),i()()()()()()()()(),n(112,"p-tabpanel",7)(113,"div",19)(114,"div",10)(115,"div",9)(116,"div",17)(117,"div",9)(118,"div",17)(119,"div",11)(120,"label",12),r(121,"Adjustment Asset "),n(122,"span",13),r(123,"Debit"),i()(),n(124,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AdjustmentCogs"))}),i()()()()(),n(125,"div",17)(126,"div",9)(127,"div",17)(128,"div",11)(129,"label",12),r(130,"Adjustment Expense"),n(131,"span",15),r(132," Credit"),i()(),n(133,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Adjustment"))}),i()()()()()()()()(),n(134,"p-tabpanel",7)(135,"div",19)(136,"div",10)(137,"div",9)(138,"div",17)(139,"div",9)(140,"div",17)(141,"div",11)(142,"label",12),r(143,"Payment Method"),i(),O(144,"input",14),i()(),n(145,"div",17)(146,"div",11)(147,"label",12),r(148,"Accounting For Prepaid "),n(149,"span",13),r(150,"Debit"),i()(),n(151,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountingForTreatment"))}),i()()()()(),n(152,"div",17)(153,"div",9)(154,"div",17)(155,"div",11)(156,"label",12),r(157,"Accounting For Prepaid"),n(158,"span",15),r(159," Credit"),i()(),n(160,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountingForTreatment"))}),i()()(),n(161,"div",17)(162,"div",11)(163,"label",12),r(164,"Sales For Prepaid"),n(165,"span",15),r(166," Credit"),i()(),n(167,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesForTreatment"))}),i()()()()()()()()(),n(168,"p-tabpanel",7)(169,"div",19)(170,"div",10)(171,"div",9)(172,"div",17)(173,"div",9)(174,"div",17)(175,"div",11)(176,"label",12),r(177,"Sales Return "),n(178,"span",13),r(179,"Debit"),i()(),n(180,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesReturn"))}),i()()(),n(181,"div",17)(182,"div",11)(183,"label",12),r(184,"Inventory "),n(185,"span",13),r(186,"Debit"),i()(),n(187,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Inventory"))}),i()()(),n(188,"div",17)(189,"div",11)(190,"label",12),r(191,"Payment Method"),i(),O(192,"input",14),i()()()(),n(193,"div",17)(194,"div",9)(195,"div",17)(196,"div",11)(197,"label",12),r(198,"Payment Method"),i(),O(199,"input",14),i()(),n(200,"div",17)(201,"div",11)(202,"label",12),r(203,"COGS"),n(204,"span",15),r(205," Credit"),i()(),n(206,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CostOfGoodsSold"))}),i()()(),n(207,"div",17)(208,"div",11)(209,"label",12),r(210,"Purchase Return"),n(211,"span",15),r(212," Credit"),i()(),n(213,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PurchaseReturn"))}),i()()()()()()()()(),n(214,"p-tabpanel",7)(215,"div",19)(216,"div",10)(217,"div",9)(218,"div",17)(219,"div",9)(220,"div",10)(221,"div",11)(222,"label",12),r(223,"Consignment Payable "),n(224,"span",13),r(225,"Debit"),i()(),n(226,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Consignment"))}),i()()()()()()()()(),n(227,"p-tabpanel",7)(228,"div",19)(229,"div",10)(230,"div",9)(231,"div",17)(232,"div",9)(233,"div",17)(234,"div",11)(235,"label",12),r(236,"Payment Fee "),n(237,"span",13),r(238,"Debit"),i()(),n(239,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PaymentFee"))}),i()()(),n(240,"div",17)(241,"div",11)(242,"label",12),r(243,"Payment Method"),i(),O(244,"input",14),i()()()(),n(245,"div",17)(246,"div",9)(247,"div",17)(248,"div",11)(249,"label",12),r(250,"Sales"),i(),O(251,"input",14),i()(),n(252,"div",17)(253,"div",11)(254,"label",12),r(255,"Surcharge"),i(),n(256,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Surcharge"))}),i()()()()()()()()(),n(257,"p-tabpanel",7)(258,"div",19)(259,"div",10)(260,"div",9)(261,"div",17)(262,"div",9)(263,"div",17)(264,"div",11)(265,"label",12),r(266,"Finished Goods "),n(267,"span",13),r(268,"Debit"),i()(),n(269,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"FinishedGoods"))}),i()()()()(),n(270,"div",17)(271,"div",9)(272,"div",17)(273,"div",11)(274,"label",12),r(275,"Raw Material"),i(),n(276,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"RawMaterial"))}),i()()(),n(277,"div",17)(278,"div",11)(279,"label",12),r(280,"Production Expense"),i(),n(281,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"ProductionExpenses"))}),i()()()()()()()()(),n(282,"p-tabpanel",7)(283,"div",19)(284,"div",10)(285,"div",9)(286,"div",10)(287,"div",9)(288,"div",17)(289,"div",11)(290,"label",12),r(291,"Crossing Account "),n(292,"span",13),r(293,"Debit"),i()(),n(294,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CrossingAccount"))}),i()()(),n(295,"div",17)(296,"div",11)(297,"label",12),r(298,"Retained Earnings "),n(299,"span",13),r(300,"Debit"),i()(),n(301,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"RetainedEarnings"))}),i()()(),n(302,"div",17)(303,"div",11)(304,"label",12),r(305,"Current Earnings "),n(306,"span",13),r(307,"Debit"),i()(),n(308,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CurrentEarnings"))}),i()()()()()()()()()()()}if(t&2){let e=c();m("value",0),l(2),E(e.tabs()),l(3),m("value",0),l(16),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("Sales")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("AccountReceiveable")].accountID)("options",e.POSIntegration().options.accounts),l(11),m("filter",!0)("virtualScroll",!0)("virtualScrollItemSize",25)("ngModel",e.form()[e.getAccountIDByKey("CostOfGoodsSold")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("Inventory")].accountID)("options",e.POSIntegration().options.accounts),l(11),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("SalesDiscount")].accountID)("options",e.POSIntegration().options.accounts),l(3),m("value",1),l(12),m("ngModel",e.form()[e.getAccountIDByKey("PendingPaidInventory")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("InventoryBought")].accountID)("options",e.POSIntegration().options.accounts),l(14),m("ngModel",e.form()[e.getAccountIDByKey("AccountPayable")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PendingPaidInventory")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PurchaseDiscount")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",2),l(12),m("ngModel",e.form()[e.getAccountIDByKey("AdjustmentCogs")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("ngModel",e.form()[e.getAccountIDByKey("Adjustment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",3),l(17),m("ngModel",e.form()[e.getAccountIDByKey("AccountingForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("ngModel",e.form()[e.getAccountIDByKey("AccountingForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("SalesForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",4),l(12),m("ngModel",e.form()[e.getAccountIDByKey("SalesReturn")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("Inventory")].accountID)("options",e.POSIntegration().options.accounts),l(19),m("ngModel",e.form()[e.getAccountIDByKey("CostOfGoodsSold")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PurchaseReturn")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",5),l(12),m("ngModel",e.form()[e.getAccountIDByKey("Consignment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",6),l(12),m("ngModel",e.form()[e.getAccountIDByKey("PaymentFee")].accountID)("options",e.POSIntegration().options.accounts),l(17),m("ngModel",e.form()[e.getAccountIDByKey("Surcharge")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",7),l(12),m("ngModel",e.form()[e.getAccountIDByKey("FinishedGoods")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("RawMaterial")].accountID)("options",e.POSIntegration().options.accounts),l(5),m("ngModel",e.form()[e.getAccountIDByKey("ProductionExpenses")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",8),l(12),m("ngModel",e.form()[e.getAccountIDByKey("CrossingAccount")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("RetainedEarnings")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("CurrentEarnings")].accountID)("options",e.POSIntegration().options.accounts)}}var Te=(()=>{class t{constructor(){this.POSSetupService=C(F),this.tabs=y(["Sell","Buy","Adjustment","Prepaid","Return","Debt","Payment Fee","Manufacturing","Advance"]),this.POSIntegration=y(null),this.form=y([])}ngOnInit(){this.POSSetupService.getGlobalConfiguration().pipe(P(e=>{this.POSIntegration.set(e),this.form.set(e.form)})).subscribe()}updateAccountID(e,o){let a=this.POSIntegration().descriptions.findIndex(p=>p.name.toLowerCase()===o.toLowerCase());if(a!==-1){let p=this.form().findIndex(S=>S.typeID===+this.POSIntegration().descriptions[a].id);if(p!==-1){let S=[...this.form()];S[p]=h(v({},S[p]),{accountID:e}),this.form.set(S)}}}getAccountIDByKey(e){return this.form().findIndex(o=>this.POSIntegration().descriptions.some(a=>a.name.toLowerCase()===e.toLowerCase()&&+a.id===o.typeID))}onSubmit(){let e={form:this.form()};this.POSSetupService.saveGlobalConfiguration(e).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-global"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["item",""],["pageTitle","POS Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[3,"value"],[1,"d-flex","flex-column","gap-3"],[1,"row","row-gap-4"],[1,"col-6"],[1,"d-flex","flex-column"],["for",""],[1,"text-success","fs-2"],["type","text","pInputText","","value","xxxxxxxxxxxxxxxxxxxx","readonly",""],[1,"text-danger","fs-2"],["filter","","filterBy","code","virtualScroll","","optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","virtualScrollItemSize","ngModel","options"],[1,"col"],["filterBy","code","optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","filter","virtualScroll","virtualScrollItemSize","ngModel","options"],[1,"row"],["optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","ngModel","options"],[1,"d-flex","gap-3"]],template:function(o,a){o&1&&(n(0,"app-main-panel",3),g(1,Ne,4,0,"ng-template",null,0,f)(3,qe,309,73,"ng-template",null,1,f),i())},dependencies:[T,De,we,Oe,Ee,Ie,Me,he,ve,N,W,z,B,j,D,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Je=t=>[t];function Qe(t,s){if(t&1&&(n(0,"th",7),r(1),i()),t&2){let e=s.$implicit;l(),x(e.name.slice(0,10))}}function Xe(t,s){if(t&1&&(n(0,"tr")(1,"th",6),r(2,"Method"),i(),M(3,Qe,2,1,"th",7,I),i()),t&2){let e=c(3);l(3),E(e.paymentConfiguration().outlets)}}function Ye(t,s){if(t&1&&(n(0,"td"),r(1),i()),t&2){let e=s.$implicit;l(),x(e.accountName)}}function Ze(t,s){if(t&1&&(n(0,"tr")(1,"td",8)(2,"a",9),r(3),i()(),M(4,Ye,2,1,"td",null,I),i()),t&2){let e=s.$implicit;l(2),m("routerLink",X(2,Je,e.id)),l(),x(e.name),l(),E(e.accounts)}}function et(t,s){if(t&1&&(n(0,"p-table",5),g(1,Xe,5,0,"ng-template",null,1,f)(3,Ze,6,4,"ng-template",null,2,f),i()),t&2){let e=c(2);m("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("value",e.paymentConfiguration().payment)}}function tt(t,s){t&1&&(n(0,"app-main-panel",4),g(1,et,5,3,"ng-template",null,0,f),i())}var Ae=(()=>{class t{constructor(){this.POSSetupService=C(F),this.paymentConfiguration=y(null)}ngOnInit(){this.POSSetupService.fetchPOSPaymentConfiguration().pipe(P(e=>{this.paymentConfiguration.set(e)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-payment"]],decls:1,vars:1,consts:[["content",""],["header",""],["body",""],["pageTitle","Payment Method Accounting",4,"ngIf"],["pageTitle","Payment Method Accounting"],[3,"scrollable","scrollHeight","value"],["pFrozenColumn","",2,"min-width","300px"],[2,"min-width","200px"],["pFrozenColumn",""],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&g(0,tt,3,0,"app-main-panel",3),o&2&&m("ngIf",a.paymentConfiguration())},dependencies:[T,ne,te,ye,D,R,V,A],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var nt=t=>[t];function it(t,s){if(t&1&&(n(0,"th"),r(1),i()),t&2){let e=s.$implicit;l(),x(e.value)}}function ot(t,s){if(t&1&&(n(0,"tr")(1,"th"),r(2,"Name"),i(),M(3,it,2,1,"th",null,I),i()),t&2){let e=c(2);l(3),E(e.outletList().listCOAType)}}function at(t,s){if(t&1&&(n(0,"td"),r(1),i()),t&2){let e=s.$implicit;l(),x(e)}}function rt(t,s){if(t&1&&(n(0,"tr")(1,"td")(2,"a",5),r(3),i()(),M(4,at,2,1,"td",null,I),i()),t&2){let e=s.$implicit;l(2),m("routerLink",X(2,nt,e.OutletID)),l(),se(" ",e.OutletName,""),l(),E(e.Accounts)}}function lt(t,s){if(t&1&&(n(0,"p-card")(1,"p-table",4),g(2,ot,5,0,"ng-template",null,1,f)(4,rt,6,4,"ng-template",null,2,f),i()()),t&2){let e=c();l(),m("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("value",e.outletList().listOutletAccount)}}var Ve=(()=>{class t{constructor(){this.POSSetupService=C(F),this.outletList=y(null)}ngOnInit(){this.POSSetupService.fetchPOSOutletConfiguration().pipe(P(e=>{this.outletList.set(e)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-outlet"]],decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["pageTitle","Outlet Account"],[3,"scrollable","scrollHeight","value"],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&(n(0,"app-main-panel",3),g(1,lt,6,3,"ng-template",null,0,f),i())},dependencies:[T,D,L,G,ne,te,V,A],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();function pt(t,s){if(t&1){let e=w();n(0,"a",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updatePOsOutletConfiguration())}),r(3," Save "),i()}}function mt(t,s){if(t&1&&(n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),O(4,"p-select",12),i()()),t&2){let e=s.$implicit,o=s.$index,a=c(4);m("formGroup",e),l(2),m("for","accountID-"+o),l(),x(a.outletForm().form[o].TypeName),l(),m("inputId","accountID-"+o)("options",a.outletForm().options.accounts)}}function ct(t,s){if(t&1&&(n(0,"div",8),M(1,mt,5,5,"div",9,I),i()),t&2){let e=c(3);l(),E(e.form.controls.item.controls)}}function st(t,s){if(t&1&&(n(0,"p-card",6),g(1,ct,3,0,"ng-template",7),i()),t&2){let e=c(2);m("formGroup",e.form)}}function dt(t,s){if(t&1&&(n(0,"app-main-panel",3),g(1,pt,4,0,"ng-template",null,0,f)(3,st,2,1,"ng-template",null,1,f),i()),t&2){let e=c();m("pageTitle","Edit "+e.outletForm().form[0].OutletName+" COA")}}var ke=(()=>{class t{constructor(){this.route=C(Y),this.POSSetupService=C(F),this.outletForm=y(null),this.fb=C(xe)}ngOnInit(){this.generateForm(),this.route.paramMap.pipe($(e=>e.get("id")),Q(e=>this.POSSetupService.fetchPOSOutletFormConfiguration({outletID:e})),P(e=>{this.outletForm.set(e),e.form.forEach(o=>{let a=this.fb.group({AccountID:this.fb.control(o.AccountID),TypeID:this.fb.control(o.TypeID),TypeName:this.fb.control(o.TypeName),OutletID:this.fb.control(o.OutletID),OutletName:this.fb.control(o.OutletName)});this.form.controls.item.push(a)})}),q("response")).subscribe()}generateForm(){this.form=this.fb.group({item:this.fb.array([])})}get item(){return this.form.get("item")}updatePOsOutletConfiguration(){let{item:e}=this.form.getRawValue(),o={form:e};this.POSSetupService.updatePOSOutletConfiguration(o).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-outlet-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle",4,"ngIf"],[3,"pageTitle"],[1,"p-button","p-button-secondary","p-button-outlined"],["type","button",1,"btn","btn-primary","rounded",3,"click"],[3,"formGroup"],["formArrayName","item"],[1,"row","row-gap-3"],[1,"col-4",3,"formGroup"],[1,"d-flex","flex-column"],[3,"for"],["formControlName","AccountID","optionLabel","name","optionValue","id","placeholder","Select an account",3,"inputId","options"]],template:function(o,a){o&1&&g(0,dt,5,1,"app-main-panel",2),o&2&&m("ngIf",a.outletForm())},dependencies:[T,D,R,L,G,Ce,B,ue,_e,ge,fe,N,W],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ut=()=>({height:"calc(100vh - 100px)"}),_t=()=>({width:"100%",height:"calc(100vh - 150px)"}),ft=()=>({width:"100%"});function gt(t,s){if(t&1){let e=w();n(0,"button",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updatePOSOutletConfiguration())}),r(3," Save "),i()}}function xt(t,s){if(t&1){let e=w();n(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),r(4),i()(),n(5,"div",11)(6,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(3);return u(S.updateAccountById(a,p))}),i()()()()}if(t&2){let e=s.$implicit,o=s.$index,a=c(3);l(4),x(e.outletName.slice(0,15)),l(2),K(k(7,ft)),m("ngModel",a.paymentForm().form.accounts[o].accountID)("virtualScroll",!0)("virtualScrollItemSize",50)("options",a.paymentForm().options.chartOfAccount.result)}}function Ct(t,s){if(t&1&&(n(0,"p-card")(1,"p-scrollpanel")(2,"div",6),M(3,xt,7,8,"div",7,I),i()()()),t&2){let e=c(2);K(k(4,ut)),l(),K(k(5,_t)),l(2),E(e.paymentForm().form.accounts)}}function St(t,s){t&1&&(n(0,"app-main-panel",3),g(1,gt,4,0,"ng-template",null,0,f)(3,Ct,5,6,"ng-template",null,1,f),i())}var Be=(()=>{class t{constructor(){this.route=C(Y),this.POSSetupService=C(F),this.paymentForm=y(null)}ngOnInit(){this.route.paramMap.pipe($(e=>+e.get("id")),Q(e=>this.POSSetupService.fetchPOSPaymentFormConfiguration({ID:e})),P(e=>{this.paymentForm.set(e)}),q("response")).subscribe()}updateAccountById(e,o){let a=this.paymentForm().form.accounts,p=h(v({},this.paymentForm()),{form:h(v({},this.paymentForm().form),{accounts:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)})});this.paymentForm.set(p)}updatePOSOutletConfiguration(){let e={form:[...this.paymentForm().form.accounts]};this.POSSetupService.updatePOSPaymentConfiguration(e).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-payment-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Payment Form Accounting",4,"ngIf"],["pageTitle","Payment Form Accounting"],[1,"btn","btn-secondary","rounded"],[1,"btn","btn-primary","rounded",3,"click"],[1,"row","row-gap-3"],[1,"col-4","d-flex","flex-column","gap-2"],[1,"row","row-gap-4"],[1,"col-6"],["for",""],[1,"col"],["optionLabel","value","optionValue","key","placeholder","Select an account",1,"w-full",3,"ngModelChange","ngModel","virtualScroll","virtualScrollItemSize","options"]],template:function(o,a){o&1&&g(0,St,5,0,"app-main-panel",2),o&2&&m("ngIf",a.paymentForm())},dependencies:[L,G,T,D,R,ee,Z,N,W,z,B,j],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var vt=()=>({width:"100%",height:"calc(100vh - 150px)"});function ht(t,s){if(t&1){let e=w();n(0,"div",3)(1,"a",4),r(2,"Cancel"),i(),n(3,"p-button",5),_("onClick",function(){d(e);let a=c();return u(a.updatePOSTaxConfiguration())}),i()()}}function yt(t,s){if(t&1){let e=w();n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),n(4,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(2);return u(S.updateAccountID(a,p))}),i()()()}if(t&2){let e=s.$implicit,o=s.$index,a=c(2);l(3),x(e.name),l(),m("options",a.taxForm().options.chartOfAccount)("ngModel",a.taxForm().form[o].accountID)}}function Pt(t,s){if(t&1&&(n(0,"p-card")(1,"p-scroll-panel")(2,"div",6)(3,"div",7)(4,"div",8),M(5,yt,5,3,"div",9,I),i()()()()()),t&2){let e=c();l(),K(k(2,vt)),l(4),E(e.taxForm().form)}}var Ge=(()=>{class t{constructor(){this.POSSetupService=C(F),this.taxForm=y(null)}ngOnInit(){this.POSSetupService.fetchPOSTaxConfiguration().pipe(P(e=>{this.taxForm.set(e)})).subscribe()}updateAccountID(e,o){let a=this.taxForm().form,p=h(v({},this.taxForm()),{form:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)});this.taxForm.set(p)}updatePOSTaxConfiguration(){let e={form:[...this.taxForm().form]};this.POSSetupService.updatePOSTaxConfiguration(e).pipe(P(o=>console.log(o))).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-tax"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["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"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for",""],["optionLabel","value","optionValue","key","placeholder","Select a account",3,"ngModelChange","options","ngModel"]],template:function(o,a){o&1&&(n(0,"app-main-panel",2),g(1,ht,4,0,"ng-template",null,0,f)(3,Pt,7,3,"ng-template",null,1,f),i())},dependencies:[T,L,G,D,N,W,ee,Z,z,B,j,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var bt=()=>({"min-width":"50rem"}),It=t=>[t];function Mt(t,s){t&1&&O(0,"p-button",6)}function Et(t,s){if(t&1&&g(0,Mt,1,0,"p-button",5),t&2){let e=c();m("ngIf",e.hasCheckedItems())}}function Ot(t,s){t&1&&(n(0,"tr")(1,"th",8),O(2,"p-tableHeaderCheckbox"),i(),n(3,"th"),r(4,"Name"),i(),n(5,"th"),r(6,"Description"),i()())}function wt(t,s){if(t&1&&(n(0,"tr")(1,"td"),O(2,"p-tableCheckbox",9),i(),n(3,"td")(4,"a",10),r(5),i()(),n(6,"td"),r(7),i()()),t&2){let e,o=s.$implicit;l(2),m("value",o),l(2),m("routerLink",X(4,It,o.id)),l(),x(o.name),l(2),x((e=o.description)!==null&&e!==void 0?e:"N/A")}}function Dt(t,s){if(t&1){let e=w();n(0,"p-table",7),_("onRowSelect",function(a){d(e);let p=c();return u(p.onRowSelect(a))})("onRowUnselect",function(a){d(e);let p=c();return u(p.onRowSelect(a))})("onHeaderCheckboxToggle",function(a){d(e);let p=c();return u(p.onSelectAll(a))}),g(1,Ot,7,0,"ng-template",null,2,f)(3,wt,8,6,"ng-template",null,3,f),i()}if(t&2){let e=c();m("value",e.writeoffList().data)("tableStyle",k(2,bt))}}var Le=(()=>{class t{constructor(){this.POSSetupService=C(F),this.writeoffList=y(null),this.hasCheckedItems=de(()=>{let e=this.writeoffList();return!e||!e.data||!Array.isArray(e.data)?!1:e.data.some(o=>o&&o.checked===!0)})}ngOnInit(){this.POSSetupService.fetchPOSWriteOffConfiguration().pipe($(e=>h(v({},e),{data:e.data.map(o=>h(v({},o),{checked:!1}))})),P(e=>{this.writeoffList.set(e)})).subscribe()}onRowSelect(e){console.log("Selected Row:",e.data);let o=this.writeoffList();if(!o||!o.data)return;let a=o.data.findIndex(p=>p.id===e.data.id);if(a!==-1){let p=[...o.data];p[a]=h(v({},p[a]),{checked:!p[a].checked}),this.writeoffList.set(h(v({},o),{data:p}))}}onSelectAll(e){let o=this.writeoffList();if(!o?.data)return;let a=o.data.map(p=>h(v({},p),{checked:e.checked}));this.writeoffList.set(h(v({},o),{data:a}))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({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"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","tableStyle"],[2,"width","4rem"],[3,"value"],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&(n(0,"app-main-panel",4),g(1,Et,1,1,"ng-template",null,0,f)(3,Dt,5,3,"ng-template",null,1,f),i())},dependencies:[T,D,R,ne,te,Pe,be,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Tt=()=>({witdh:"100%",height:"calc(100vh - 150px)"});function Ft(t,s){if(t&1){let e=w();n(0,"div")(1,"a",4),r(2,"Cancel"),i(),n(3,"p-button",5),_("onClick",function(){d(e);let a=c(2);return u(a.updateWriteOffConfiguration())}),i()()}}function At(t,s){if(t&1){let e=w();n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),n(4,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(3);return u(S.updateAccountById(a,p))}),i()()()}if(t&2){let e=s.$implicit,o=c(3);l(3),x(e.name),l(),m("ngModel",e.accountID)("options",o.writeOffForm().options.account)("virtualScroll",!0)("virtualScrollItemSize",50)}}function Vt(t,s){if(t&1&&(n(0,"p-card")(1,"p-scroll-panel")(2,"div",6)(3,"div",7)(4,"div",8),M(5,At,5,5,"div",9,I),i()()()()()),t&2){let e=c(2);l(),K(k(2,Tt)),l(4),E(e.writeOffForm().form)}}function kt(t,s){if(t&1&&(n(0,"app-main-panel",3),g(1,Ft,4,0,"ng-template",null,0,f)(3,Vt,7,3,"ng-template",null,1,f),i()),t&2){let e=c();m("pageTitle","Write Off Form "+e.writeOffForm().info.name)}}var We=(()=>{class t{constructor(){this.POSSetupService=C(F),this.route=C(Y),this.writeOffForm=y(null)}ngOnInit(){this.route.paramMap.pipe($(e=>e.get("id")),Q(e=>this.POSSetupService.fetchPOSWriteOffFormConfiguration({ID:e})),P(e=>this.writeOffForm.set(e))).subscribe()}updateAccountById(e,o){let a=this.writeOffForm().form,p=h(v({},this.writeOffForm()),{form:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)});this.writeOffForm.set(p)}updateWriteOffConfiguration(){let e={form:this.writeOffForm().form};this.POSSetupService.updatePOSWriteOffConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-writeoff-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle",4,"ngIf"],[3,"pageTitle"],["routerLink","..",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",""],["optionLabel","value","optionValue","key","placeholder","Select a City",3,"ngModelChange","ngModel","options","virtualScroll","virtualScrollItemSize"]],template:function(o,a){o&1&&g(0,kt,5,1,"app-main-panel",2),o&2&&m("ngIf",a.writeOffForm())},dependencies:[T,D,R,L,G,ee,Z,N,W,z,B,j,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Qi=[{path:"",redirectTo:"global",pathMatch:"full"},{path:"",children:[{path:"global",component:Te},{path:"outlets",component:Ve},{path:"outlets/:id",component:ke},{path:"payments",component:Ae},{path:"payments/:id",component:Be},{path:"taxs",component:Ge},{path:"writeoff",component:Le},{path:"writeoff/:id",component:We}]}];export{Qi as POS_SETUP_ROUTES};
|
package/chunk-NS7JH3QF.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{e as ce}from"./chunk-DUOJKP2G.js";import{c as pe}from"./chunk-JR4EQTPJ.js";import{f as se,g as de}from"./chunk-UTL7D6E7.js";import{i as re}from"./chunk-OWI3BWEZ.js";import{Fa as ie,Ga as ae,Ha as V,Pa as le,ya as oe}from"./chunk-ROKYJX6Q.js";import{c as ne,d as S,f as Q,g as B,h as M}from"./chunk-S35HUXPS.js";import{k as X,n as Y,o as Z,p as ee,t as te}from"./chunk-RUGQ4OJG.js";import{Ab as H,Bb as c,Ic as U,Jb as f,Kb as i,Ob as C,Rc as F,Ub as d,Vb as m,Wb as T,Xb as x,Yb as I,Zb as P,_b as w,ca as O,da as $,dc as k,ec as s,fc as N,gb as a,gc as E,hc as u,ia as A,ic as W,jc as _,kc as g,mc as K,nc as L,qa as b,ra as y,ta as D,ub as j,uc as z,vb as q,wc as h,xc as G,yb as R,yc as J,za as v}from"./chunk-VYKJK5YU.js";var ue=["header"],me=["icons"],fe=["content"],he=["footer"],be=["headericons"],ye=["contentWrapper"],Te=["*",[["p-header"]],[["p-footer"]]],ve=["*","p-header","p-footer"],Ce=(e,o)=>({"p-panel p-component":!0,"p-panel-toggleable":e,"p-panel-expanded":o}),xe=e=>({transitionParams:e,height:"0",opacity:"0"}),Ie=e=>({value:"hidden",params:e}),Pe=e=>({transitionParams:e,height:"*",opacity:"1"}),we=e=>({value:"visible",params:e}),ke=(e,o,t)=>({"p-panel-icons-start":e,"p-panel-icons-end":o,"p-panel-icons-center":t}),Ee=e=>({$implicit:e});function Fe(e,o){if(e&1&&(d(0,"span",12),K(1),m()),e&2){let t=s(2);f("id",t.id+"_header"),a(),L(t._header)}}function Se(e,o){e&1&&P(0)}function Qe(e,o){}function Be(e,o){e&1&&c(0,Qe,0,0,"ng-template")}function Me(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.expandIcon)}}function Ve(e,o){e&1&&T(0,"MinusIcon")}function De(e,o){if(e&1&&(x(0),c(1,Me,1,2,"span",16)(2,Ve,1,0,"MinusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.expandIcon),a(),i("ngIf",!t.expandIcon)}}function Oe(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.collapseIcon)}}function $e(e,o){e&1&&T(0,"PlusIcon")}function Ae(e,o){if(e&1&&(x(0),c(1,Oe,1,2,"span",16)(2,$e,1,0,"PlusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.collapseIcon),a(),i("ngIf",!t.collapseIcon)}}function je(e,o){if(e&1&&(x(0),c(1,De,3,2,"ng-container",14)(2,Ae,3,2,"ng-container",14),I()),e&2){let t=s(4);a(),i("ngIf",!t.collapsed),a(),i("ngIf",t.collapsed)}}function qe(e,o){}function Re(e,o){e&1&&c(0,qe,0,0,"ng-template")}function He(e,o){if(e&1&&c(0,je,3,2,"ng-container",14)(1,Re,1,0,null,15),e&2){let t=s(3);i("ngIf",!t.headerIconsTemplate&&!t._headerIconsTemplate&&!(t.toggleButtonProps!=null&&t.toggleButtonProps.icon)),a(),i("ngTemplateOutlet",t.headerIconsTemplate||t._headerIconsTemplate)("ngTemplateOutletContext",h(3,Ee,t.collapsed))}}function Ne(e,o){if(e&1){let t=w();d(0,"p-button",13),k("click",function(n){b(t);let r=s(2);return y(r.onIconClick(n))})("keydown",function(n){b(t);let r=s(2);return y(r.onKeyDown(n))}),c(1,He,2,5,"ng-template",null,1,U),m()}if(e&2){let t=s(2);i("text",!0)("rounded",!0)("buttonProps",t.toggleButtonProps),f("id",t.id+"_header")("aria-label",t.buttonAriaLabel)("aria-controls",t.id+"_content")("aria-expanded",!t.collapsed)}}function We(e,o){if(e&1){let t=w();d(0,"div",8),k("click",function(n){b(t);let r=s();return y(r.onHeaderClick(n))}),c(1,Fe,2,2,"span",9),E(2,1),c(3,Se,1,0,"ng-container",6),d(4,"div",10),c(5,Be,1,0,null,6)(6,Ne,3,7,"p-button",11),m()()}if(e&2){let t=s();f("id",t.id+"-titlebar"),a(),i("ngIf",t._header),a(2),i("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),a(),i("ngClass",J(6,ke,t.iconPos==="start",t.iconPos==="end",t.iconPos==="center")),a(),i("ngTemplateOutlet",t.iconTemplate||t._iconTemplate),a(),i("ngIf",t.toggleable)}}function Ke(e,o){e&1&&P(0)}function Le(e,o){e&1&&P(0)}function ze(e,o){if(e&1&&(d(0,"div",17),E(1,2),c(2,Le,1,0,"ng-container",6),m()),e&2){let t=s();a(2),i("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var Ge=({dt:e})=>`
|
|
2
|
-
.p-panel {
|
|
3
|
-
border: 1px solid ${e("panel.border.color")};
|
|
4
|
-
border-radius: ${e("panel.border.radius")};
|
|
5
|
-
background: ${e("panel.background")};
|
|
6
|
-
color: ${e("panel.color")};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.p-panel-header {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
padding: ${e("panel.header.padding")};
|
|
14
|
-
background: ${e("panel.header.background")};
|
|
15
|
-
color: ${e("panel.header.color")};
|
|
16
|
-
border-style: solid;
|
|
17
|
-
border-width: ${e("panel.header.border.width")};
|
|
18
|
-
border-color: ${e("panel.header.border.color")};
|
|
19
|
-
border-radius: ${e("panel.header.border.radius")};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.p-panel-toggleable .p-panel-header {
|
|
23
|
-
padding: ${e("panel.toggleable.header.padding")};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-panel-title {
|
|
27
|
-
line-height: 1;
|
|
28
|
-
font-weight: ${e("panel.title.font.weight")};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.p-panel-content {
|
|
32
|
-
padding: ${e("panel.content.padding")};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.p-panel-footer {
|
|
36
|
-
padding: ${e("panel.footer.padding")};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* For PrimeNG */
|
|
40
|
-
.p-panel-toggleable.p-panel-expanded > .p-panel-content-container:not(.ng-animating) {
|
|
41
|
-
overflow: visible
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.p-panel-toggleable .p-panel-content-container {
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
}
|
|
47
|
-
`,Je={root:({props:e})=>["p-panel p-component",{"p-panel-toggleable":e.toggleable}],header:"p-panel-header",title:"p-panel-title",headerActions:"p-panel-header-actions",pcToggleButton:"p-panel-toggle-button",contentContainer:"p-panel-content-container",content:"p-panel-content",footer:"p-panel-footer"},_e=(()=>{class e extends le{name="panel";theme=Ge;classes=Je;static \u0275fac=(()=>{let t;return function(n){return(t||(t=D(e)))(n||e)}})();static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();var Ue=(()=>{class e extends re{toggleable;_header;collapsed;style;styleClass;iconPos="end";expandIcon;collapseIcon;showHeader=!0;toggler="icon";transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";toggleButtonProps;collapsedChange=new v;onBeforeToggle=new v;onAfterToggle=new v;footerFacet;animating;headerTemplate;iconTemplate;contentTemplate;footerTemplate;headerIconsTemplate;_headerTemplate;_iconTemplate;_contentTemplate;_footerTemplate;_headerIconsTemplate;contentWrapperViewChild;id=oe("pn_id_");get buttonAriaLabel(){return this._header}_componentStyle=A(_e);onHeaderClick(t){this.toggler==="header"&&this.toggle(t)}onIconClick(t){this.toggler==="icon"&&this.toggle(t)}toggle(t){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:t,collapsed:this.collapsed}),this.toggleable&&(this.collapsed?this.expand():this.collapse()),this.cd.markForCheck(),t.preventDefault()}expand(){this.collapsed=!1,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}collapse(){this.collapsed=!0,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}getBlockableElement(){return this.el.nativeElement.children[0]}updateTabIndex(){this.contentWrapperViewChild&&this.contentWrapperViewChild.nativeElement.querySelectorAll('input, button, select, a, textarea, [tabindex]:not([tabindex="-1"])').forEach(l=>{this.collapsed?l.setAttribute("tabindex","-1"):l.removeAttribute("tabindex")})}onKeyDown(t){(t.code==="Enter"||t.code==="Space")&&(this.toggle(t),t.preventDefault())}onToggleDone(t){this.animating=!1,this.onAfterToggle.emit({originalEvent:t,collapsed:this.collapsed})}templates;ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this._headerTemplate=t.template;break;case"content":this._contentTemplate=t.template;break;case"footer":this._footerTemplate=t.template;break;case"icons":this._iconTemplate=t.template;break;case"headericons":this._headerIconsTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}static \u0275fac=(()=>{let t;return function(n){return(t||(t=D(e)))(n||e)}})();static \u0275cmp=j({type:e,selectors:[["p-panel"]],contentQueries:function(l,n,r){if(l&1&&(u(r,ie,5),u(r,ue,4),u(r,me,4),u(r,fe,4),u(r,he,4),u(r,be,4),u(r,ae,4)),l&2){let p;_(p=g())&&(n.footerFacet=p.first),_(p=g())&&(n.headerTemplate=p.first),_(p=g())&&(n.iconTemplate=p.first),_(p=g())&&(n.contentTemplate=p.first),_(p=g())&&(n.footerTemplate=p.first),_(p=g())&&(n.headerIconsTemplate=p.first),_(p=g())&&(n.templates=p)}},viewQuery:function(l,n){if(l&1&&W(ye,5),l&2){let r;_(r=g())&&(n.contentWrapperViewChild=r.first)}},inputs:{toggleable:[2,"toggleable","toggleable",F],_header:[0,"header","_header"],collapsed:[2,"collapsed","collapsed",F],style:"style",styleClass:"styleClass",iconPos:"iconPos",expandIcon:"expandIcon",collapseIcon:"collapseIcon",showHeader:[2,"showHeader","showHeader",F],toggler:"toggler",transitionOptions:"transitionOptions",toggleButtonProps:"toggleButtonProps"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},features:[z([_e]),H,R],ngContentSelectors:ve,decls:8,vars:25,consts:[["contentWrapper",""],["icon",""],[3,"ngClass","ngStyle"],["class","p-panel-header",3,"click",4,"ngIf"],["role","region",1,"p-panel-content-container",3,"id"],[1,"p-panel-content"],[4,"ngTemplateOutlet"],["class","p-panel-footer",4,"ngIf"],[1,"p-panel-header",3,"click"],["class","p-panel-title",4,"ngIf"],[1,"p-panel-icons",3,"ngClass"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"text","rounded","buttonProps","click","keydown",4,"ngIf"],[1,"p-panel-title"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"click","keydown","text","rounded","buttonProps"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class",4,"ngIf"],[1,"p-panel-footer"]],template:function(l,n){if(l&1){let r=w();N(Te),d(0,"div",2),c(1,We,7,10,"div",3),d(2,"div",4),k("@panelContent.done",function(ge){return b(r),y(n.onToggleDone(ge))}),d(3,"div",5,0),E(5),c(6,Ke,1,0,"ng-container",6),m(),c(7,ze,3,1,"div",7),m()()}l&2&&(C(n.styleClass),i("ngClass",G(14,Ce,n.toggleable,!n.collapsed&&n.toggleable))("ngStyle",n.style),f("id",n.id)("data-pc-name","panel"),a(),i("ngIf",n.showHeader),a(),i("id",n.id+"_content")("@panelContent",n.collapsed?h(19,Ie,h(17,xe,n.animating?n.transitionOptions:"0ms")):h(23,we,h(21,Pe,n.animating?n.transitionOptions:"0ms"))),f("aria-labelledby",n.id+"_header")("aria-hidden",n.collapsed)("tabindex",n.collapsed?"-1":void 0),a(4),i("ngTemplateOutlet",n.contentTemplate||n._contentTemplate),a(),i("ngIf",n.footerFacet||n.footerTemplate||n._footerTemplate))},dependencies:[te,X,Y,ee,Z,ce,pe,de,se,V],encapsulation:2,data:{animation:[ne("panelContent",[B("hidden",Q({height:"0"})),B("void",Q({height:"{{height}}"}),{params:{height:"0"}}),B("visible",Q({height:"*"})),M("visible <=> hidden",[S("{{transitionParams}}")]),M("void => hidden",S("{{transitionParams}}")),M("void => visible",S("{{transitionParams}}"))])]},changeDetection:0})}return e})(),yt=(()=>{class e{static \u0275fac=function(l){return new(l||e)};static \u0275mod=q({type:e});static \u0275inj=$({imports:[Ue,V,V]})}return e})();export{Ue as a,yt as b};
|
package/chunk-OCLABZZW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ga as m,I as x,Q as h,Uc as A,Vc as M,Z as I,b as d,g as l,ia as b,k as y,o as j,oa as S,va as f,wa as p}from"./chunk-VYKJK5YU.js";function z(e,s){s?.injector||S(z);let o=s?.injector??b(f),t=new l,r=e(t).subscribe();o.get(p).onDestroy(()=>r.unsubscribe());let n=(c,g)=>{if(D(c))return t.next(c),{destroy:d};let u=g?.injector??F()??o;if(m(c)){let i=M(()=>{let w=c();A(()=>t.next(w))},{injector:u});return r.add({unsubscribe:()=>i.destroy()}),i}let a=c.subscribe(i=>t.next(i));return r.add(a),u!==o&&u.get(p).onDestroy(()=>a.unsubscribe()),{destroy:()=>a.unsubscribe()}};return n.destroy=r.unsubscribe.bind(r),n}function D(e){return!m(e)&&!j(e)}function F(){try{return b(f)}catch{return null}}function q(e,s,o){let t=typeof e=="function"?{next:e,error:s,complete:o}:e;return r=>r.pipe(I({next:t.next,complete:t.complete}),x(n=>(t.error(n),y)),t.finalize?h(t.finalize):n=>n)}export{z as a,q as b};
|
package/chunk-OH2CJBFF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-XWVLTTMV.js";import{g as C}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import{a as x}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{t as b}from"./chunk-RUGQ4OJG.js";import{Bb as f,Ic as d,Ub as r,Vb as o,_b as g,dc as c,ec as m,ia as a,mc as u,qa as l,ra as s,ub as _,uc as M}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";function v(t,S){if(t&1){let e=g();r(0,"div",2)(1,"button",3),c("click",function(){l(e);let i=m();return s(i.onMigrate())}),u(2," Migrate "),o(),r(3,"button",4),c("click",function(){l(e);let i=m();return s(i.onFormat())}),u(4,"Format"),o()()}}var V=(()=>{class t{constructor(){this.migrateService=a(p),this.toastr=a(x)}onMigrate(){this.migrateService.migrateManualJournal().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormat(){this.migrateService.formatManualJournal().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=_({type:t,selectors:[["app-manual-journal"]],features:[M([p])],decls:3,vars:0,consts:[["content",""],["pageTitle","Manual Journal"],[1,"container","my-2"],[1,"btn","btn-primary","me-2",3,"click"],[1,"btn","btn-danger",3,"click"]],template:function(n,i){n&1&&(r(0,"app-main-panel",1),f(1,v,5,0,"ng-template",null,0,d),o())},dependencies:[C,b],encapsulation:2})}}return t})();export{V as ManualJournalComponent};
|
package/chunk-OSV7AMB2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-XWVLTTMV.js";import{g as C}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import{a as x}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{t as b}from"./chunk-RUGQ4OJG.js";import{Bb as g,Ic as y,Ub as r,Vb as o,_b as _,dc as s,ec as l,ia as c,mc as u,qa as a,ra as m,ub as f,uc as d}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";function P(e,v){if(e&1){let t=_();r(0,"div",2)(1,"button",3),s("click",function(){a(t);let i=l();return m(i.migratePaymentAccount())}),u(2," Migrate Payment Account "),o(),r(3,"button",4),s("click",function(){a(t);let i=l();return m(i.migrateWriteoffOutlet())}),u(4," Migrate Write Off Outlet "),o()()}}var T=(()=>{class e{constructor(){this.migrateService=c(p),this.toastr=c(x)}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=f({type:e,selectors:[["app-payment-account"]],features:[d([p])],decls:3,vars:0,consts:[["content",""],["pageTitle","Payment Account"],[1,"container","my-2"],[1,"btn","btn-primary","me-4",3,"click"],[1,"btn","btn-success",3,"click"]],template:function(n,i){n&1&&(r(0,"app-main-panel",1),g(1,P,5,0,"ng-template",null,0,y),o())},dependencies:[C,b],encapsulation:2})}}return e})();export{T as PaymentAccountComponent};
|