dealpos 26.30.2 → 26.30.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-334BLSO3.js → chunk-24ATVX33.js} +1 -1
- package/browser/{chunk-LGWLN7QT.js → chunk-2X2STTTW.js} +1 -1
- package/browser/{chunk-ZZS7FKWF.js → chunk-3BUCNETA.js} +2 -2
- package/browser/{chunk-2TBXAN55.js → chunk-3S5PEWPY.js} +1 -1
- package/browser/{chunk-ECBFGU72.js → chunk-3WNZDIEL.js} +1 -1
- package/browser/{chunk-DKSFKRM5.js → chunk-3YFNKTBA.js} +1 -1
- package/browser/{chunk-H35DD76P.js → chunk-4L77RFEB.js} +1 -1
- package/browser/{chunk-6HOI2DZC.js → chunk-4UJFKEDP.js} +1 -1
- package/browser/{chunk-O4HDDCOT.js → chunk-55SSRXMM.js} +1 -1
- package/browser/{chunk-TXYY7NFW.js → chunk-5MZJM7V2.js} +2 -2
- package/browser/{chunk-CS4ERLDD.js → chunk-6EEBTJPL.js} +1 -1
- package/browser/{chunk-FOUWAORD.js → chunk-6TCBHORG.js} +1 -1
- package/browser/{chunk-L66LD6K4.js → chunk-6TNS2R2O.js} +1 -1
- package/browser/{chunk-ZQLBTGGX.js → chunk-6W54LRJU.js} +1 -1
- package/browser/{chunk-IO5KIVH5.js → chunk-6XGAXW3V.js} +2 -2
- package/browser/{chunk-4FTDSQIR.js → chunk-7AXCO3KW.js} +1 -1
- package/browser/{chunk-YN5IOBGZ.js → chunk-7EEHZUV2.js} +1 -1
- package/browser/{chunk-PT4JSUZS.js → chunk-7M3GZSPK.js} +2 -2
- package/browser/chunk-7WUJ6J3P.js +1 -0
- package/browser/{chunk-FHIT2XET.js → chunk-ATIEYTIU.js} +1 -1
- package/browser/{chunk-7PNNJEWM.js → chunk-AUCM5VI3.js} +1 -1
- package/browser/{chunk-TPIJSMHK.js → chunk-AUJ7XHYI.js} +1 -1
- package/browser/{chunk-TXGL6RSU.js → chunk-B6IOXZ62.js} +1 -1
- package/browser/{chunk-ORP6ORNF.js → chunk-BNXNJVDF.js} +1 -1
- package/browser/{chunk-SQIG4R6F.js → chunk-BQE3EAR2.js} +1 -1
- package/browser/{chunk-W5WO4T6I.js → chunk-CBYURWS2.js} +1 -1
- package/browser/{chunk-DJLA7A24.js → chunk-CEA2BUTX.js} +1 -1
- package/browser/{chunk-ZFRAXSXE.js → chunk-CKODLRVT.js} +1 -1
- package/browser/{chunk-KCLXYRDQ.js → chunk-COHJXOHR.js} +1 -1
- package/browser/{chunk-WTZ4VHUA.js → chunk-CSL4K5SR.js} +1 -1
- package/browser/{chunk-JMOEFRQU.js → chunk-DCHM6ZM5.js} +1 -1
- package/browser/{chunk-TLYKJRMB.js → chunk-DDYWWG5L.js} +1 -1
- package/browser/{chunk-WNFHW2AY.js → chunk-DEKO6FAO.js} +1 -1
- package/browser/{chunk-WWPDXHL2.js → chunk-E5Y6BK4E.js} +1 -1
- package/browser/{chunk-SJAVIF7S.js → chunk-EIOIAUFT.js} +1 -1
- package/browser/{chunk-LAVXD6Q2.js → chunk-FCGGIMSS.js} +1 -1
- package/browser/{chunk-SXGJPOFD.js → chunk-FHUCVYMJ.js} +1 -1
- package/browser/{chunk-B5R4ZCHU.js → chunk-FON2WYS4.js} +1 -1
- package/browser/{chunk-3PBPXKUX.js → chunk-G3726TM6.js} +1 -1
- package/browser/{chunk-XYB4O24J.js → chunk-GVS4JA2Z.js} +1 -1
- package/browser/{chunk-FRCAWQHL.js → chunk-GZBXGMYJ.js} +1 -1
- package/browser/{chunk-OLZYUESE.js → chunk-H4WTLUSI.js} +1 -1
- package/browser/{chunk-PASQXKVH.js → chunk-HZSOSO4T.js} +1 -1
- package/browser/{chunk-V2PNVAWR.js → chunk-I4ODS7VL.js} +1 -1
- package/browser/{chunk-YXYVT5C5.js → chunk-IAU7ESOU.js} +1 -1
- package/browser/{chunk-EACUTSGK.js → chunk-IIYSVF2P.js} +1 -1
- package/browser/{chunk-6NVIYICR.js → chunk-IJSKDW3R.js} +1 -1
- package/browser/{chunk-PXSDWGC7.js → chunk-IL7P5LGV.js} +1 -1
- package/browser/{chunk-W456MWEG.js → chunk-IVHBOYID.js} +1 -1
- package/browser/{chunk-PYCGJENT.js → chunk-IYWH352Y.js} +1 -1
- package/browser/{chunk-FL6U6VZX.js → chunk-JK5HMREL.js} +1 -1
- package/browser/{chunk-2PSREPC4.js → chunk-JM2V6LEH.js} +1 -1
- package/browser/{chunk-HV3UEHSY.js → chunk-JMCFU2VL.js} +1 -1
- package/browser/{chunk-EKOSQTSC.js → chunk-JNT2FW2R.js} +1 -1
- package/browser/{chunk-F4W5CESZ.js → chunk-JXK5OSVE.js} +2 -2
- package/browser/{chunk-WKOGLKPE.js → chunk-K4T2NOBL.js} +1 -1
- package/browser/{chunk-XPHHU5XT.js → chunk-KPD2XKCI.js} +1 -1
- package/browser/{chunk-UW64P7MY.js → chunk-KT3FP4QJ.js} +1 -1
- package/browser/{chunk-DHMQXC66.js → chunk-L3HO3AHT.js} +1 -1
- package/browser/{chunk-2XYYCXF6.js → chunk-L7WSN6ZU.js} +1 -1
- package/browser/{chunk-HNGZDBU6.js → chunk-LEIRPGAD.js} +1 -1
- package/browser/{chunk-CQJUAI4B.js → chunk-LLYXVCJB.js} +1 -1
- package/browser/{chunk-JUGPWQZ6.js → chunk-MBPFPPAH.js} +1 -1
- package/browser/{chunk-K4RIGD6R.js → chunk-MMJ3G7C3.js} +1 -1
- package/browser/{chunk-OTVGF2KS.js → chunk-N7NPBMBX.js} +1 -1
- package/browser/{chunk-T5CUDSUR.js → chunk-NF3CMOMR.js} +1 -1
- package/browser/{chunk-NMVNBIUG.js → chunk-NTF6H2M4.js} +2 -2
- package/browser/{chunk-XWX5WQ55.js → chunk-O2B3TFIU.js} +1 -1
- package/browser/{chunk-LPQT42CQ.js → chunk-OITICQFD.js} +1 -1
- package/browser/{chunk-C3XZULLG.js → chunk-OKK6KD2N.js} +1 -1
- package/browser/{chunk-LIB4SWU2.js → chunk-OKKVQ3PO.js} +1 -1
- package/browser/{chunk-YTVCWA6C.js → chunk-OTRIVC3L.js} +1 -1
- package/browser/{chunk-XLHPC77G.js → chunk-PBUQNMJR.js} +1 -1
- package/browser/{chunk-HVTVTW4L.js → chunk-PISONL6W.js} +1 -1
- package/browser/{chunk-CO654T7R.js → chunk-PM3HM7JF.js} +1 -1
- package/browser/{chunk-BS4OGNQO.js → chunk-POO3TS5T.js} +1 -1
- package/browser/{chunk-EU43KDPC.js → chunk-PRDUF523.js} +1 -1
- package/browser/{chunk-TZRE4VFN.js → chunk-Q6GNY27U.js} +1 -1
- package/browser/{chunk-C3NKDRGQ.js → chunk-QTSLNKH3.js} +1 -1
- package/browser/{chunk-AMCUQIRG.js → chunk-RULT2GEV.js} +2 -2
- package/browser/{chunk-A44IGHZE.js → chunk-STD6JUZR.js} +1 -1
- package/browser/{chunk-HGM4ALOK.js → chunk-TEHH6ULI.js} +1 -1
- package/browser/{chunk-HSLEEHGI.js → chunk-TMURS5V6.js} +1 -1
- package/browser/{chunk-JFVKHXLA.js → chunk-UNSCQ6YD.js} +1 -1
- package/browser/{chunk-ZP376MYF.js → chunk-V634TZRE.js} +1 -1
- package/browser/{chunk-HFBLFS5K.js → chunk-VQCB5MYQ.js} +1 -1
- package/browser/{chunk-M37N6JER.js → chunk-VSOZI7LW.js} +1 -1
- package/browser/{chunk-4O7EXN5A.js → chunk-WCEX2O5B.js} +1 -1
- package/browser/{chunk-WUOM4FCM.js → chunk-WJSXP574.js} +1 -1
- package/browser/{chunk-BNXRS5LX.js → chunk-WPWVQ7V2.js} +1 -1
- package/browser/{chunk-HCD7JJ5J.js → chunk-WUTNGA7Y.js} +3 -3
- package/browser/{chunk-PPY57HD2.js → chunk-WVES6A2Q.js} +1 -1
- package/browser/{chunk-O67QT5HL.js → chunk-WWDJU2UH.js} +1 -1
- package/browser/{chunk-GHROV7YY.js → chunk-XMEE4T2V.js} +1 -1
- package/browser/{chunk-JRLEZEYA.js → chunk-XRSLU5Q4.js} +1 -1
- package/browser/{chunk-XEJHOUOQ.js → chunk-XYJ4M4RW.js} +1 -1
- package/browser/{chunk-3RH77W4O.js → chunk-Y2I3FX2I.js} +1 -1
- package/browser/{chunk-U6EYZAB6.js → chunk-YAZZSHYJ.js} +1 -1
- package/browser/{chunk-URBJVT2R.js → chunk-YHJX6FIF.js} +1 -1
- package/browser/{chunk-6OWKCBDH.js → chunk-YL4KUXHO.js} +1 -1
- package/browser/{chunk-OQ4BOSRX.js → chunk-YMEEA7WT.js} +1 -1
- package/browser/{chunk-OZ4PXQO2.js → chunk-YTGQ23SM.js} +1 -1
- package/browser/{chunk-UMZLK4TK.js → chunk-YXNKE4D2.js} +1 -1
- package/browser/{chunk-UXFWRBCB.js → chunk-ZEBWEGK6.js} +1 -1
- package/browser/{chunk-OJRZBKKH.js → chunk-ZHGQA2HY.js} +2 -1
- package/browser/{chunk-CFJFTDL6.js → chunk-ZHKA4A6S.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-5TTEWE7J.js → main-3LMZGC44.js} +1 -1
- package/package.json +1 -1
- package/browser/chunk-CTXVEOZD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as le}from"./chunk-SJAVIF7S.js";import{a as ge}from"./chunk-G45YPYE2.js";import{g as Ie}from"./chunk-TEQQINRC.js";import{b as oe,c as ae,d as re}from"./chunk-7GBU7E7F.js";import{a as fe,b as ve}from"./chunk-EHCELKQF.js";import{b as xe}from"./chunk-DJLA7A24.js";import{a as ye}from"./chunk-UMZLK4TK.js";import{b as pe}from"./chunk-6623DFFS.js";import{a as ue}from"./chunk-B5AGSH45.js";import{g as Ce,h as _e}from"./chunk-C3NKDRGQ.js";import{a as se}from"./chunk-ZP376MYF.js";import{b as ie}from"./chunk-Z7UCI72M.js";import{d as ce,e as de}from"./chunk-ULWLSYED.js";import{c as me}from"./chunk-LCBHD53Y.js";import{E as te,c as Y,h as Z,o as $,q as ee}from"./chunk-R36OIJC7.js";import{b as ne}from"./chunk-K74WZXBF.js";import{n as U,q as X}from"./chunk-ETYXTCKV.js";import{$a as h,Ab as Q,Ba as O,Bb as L,Cb as W,Da as B,Db as x,Eb as a,Fb as r,Fc as w,Gb as V,Gc as D,Kb as E,Lb as M,Lc as G,Pb as b,Qd as K,Sb as S,Ua as o,Ub as l,db as R,hc as c,ib as k,ic as F,id as q,jb as H,jc as _,mc as y,na as N,nc as f,oc as v,ra as u,sa as C,sd as z,vd as J,wb as p,yb as s,yc as A,zb as j}from"./chunk-DUSKF5IQ.js";import{a as T,b as P}from"./chunk-NF7PG5F2.js";var be=n=>({ID:n}),Se=n=>({"expanded-icon":n});function we(n,d){if(n&1){let e=b();a(0,"button",15),S("click",function(){u(e);let t=l();return C(t.openExportModal())}),V(1,"i",16),c(2," Export "),r()}}function De(n,d){if(n&1){let e=b();a(0,"div",17)(1,"div")(2,"h6"),c(3,"Outlet"),r(),a(4,"outlet-selector",18),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.OutletID,t)||(m.pageData().Filter.OutletID=t),C(t)}),r()(),a(5,"div")(6,"h6"),c(7,"Category"),r(),a(8,"POS-product-category-select",19),v("selectedCategoryIDChange",function(t){u(e);let m=l();return f(m.pageData().Filter.ProductCategoryID,t)||(m.pageData().Filter.ProductCategoryID=t),C(t)}),r()(),a(9,"h6"),c(10,"Brand"),r(),a(11,"POS-brand-options",20),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.BrandIDs,t)||(m.pageData().Filter.BrandIDs=t),C(t)}),r(),a(12,"div")(13,"h6"),c(14,"Product Tags"),r(),a(15,"ng-select",21),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.ProductTagID,t)||(m.pageData().Filter.ProductTagID=t),C(t)}),r()(),a(16,"div")(17,"h6"),c(18,"Quantity From - To"),r(),a(19,"div",22)(20,"input",23),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.QtyFrom,t)||(m.pageData().Filter.QtyFrom=t),C(t)}),r(),c(21," - "),a(22,"input",24),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.QtyTo,t)||(m.pageData().Filter.QtyTo=t),C(t)}),r()()()()}if(n&2){let e,i=l();o(4),x("accessType",2),y("ngModel",i.pageData().Filter.OutletID),o(4),y("selectedCategoryID",i.pageData().Filter.ProductCategoryID),x("showClear",!0),o(3),y("ngModel",i.pageData().Filter.BrandIDs),x("multiple",!0)("clearable",!0),o(4),x("items",(e=i.pageData().Options)==null?null:e.Tags),y("ngModel",i.pageData().Filter.ProductTagID),o(5),y("ngModel",i.pageData().Filter.QtyFrom),o(2),y("ngModel",i.pageData().Filter.QtyTo)}}function Te(n,d){if(n&1&&(a(0,"th",10),c(1),r()),n&2){let e=l();o(),_(" ",e.column.VariantName.name," ")}}function Pe(n,d){if(n&1&&(a(0,"th",11),c(1),r()),n&2){let e=l();o(),_(" ",e.column.OnHand.name," ")}}function Ve(n,d){if(n&1&&(a(0,"th",12),c(1),r()),n&2){let e=l();o(),_(" ",e.column.DirectAllocated.name," ")}}function Ee(n,d){if(n&1&&(a(0,"th",13),c(1),r()),n&2){let e=l();o(),_(" ",e.column.IndirectAllocated.name," ")}}function Me(n,d){if(n&1&&(a(0,"th",14),c(1),r()),n&2){let e=l();o(),_(" ",e.column.Available.name," ")}}function Fe(n,d){if(n&1){let e=b();a(0,"button",29),S("click",function(){u(e);let t=l(2).$implicit,m=l();return C(m.onExpand(t))}),V(1,"i",30),r()}if(n&2){let e=l(2).$implicit,i=l();o(),x("ngClass",A(1,Se,i.displayExpandedRow(e.VariantID)))}}function Ae(n,d){if(n&1&&(a(0,"td")(1,"div",26),p(2,Fe,2,3,"button",27),a(3,"div")(4,"a",28),c(5),r(),V(6,"br"),a(7,"small"),c(8),r()()()()),n&2){let e=l().$implicit;o(2),s(e.ListComponent&&e.ListComponent.length>0?2:-1),o(2),x("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",A(5,be,e.VariantID)),o(),_(" ",e.VariantName," "),o(3),_(" ",e.VariantCode," ")}}function Oe(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l().$implicit;o(),F(D(2,1,e.OnHand))}}function Le(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l(2).$implicit;o(),_(" ",D(2,1,e.DirectAllocated)," ")}}function We(n,d){if(n&1&&p(0,Le,3,3,"td",25),n&2){let e=l(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function Ne(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l(2).$implicit;o(),_(" ",D(2,1,e.DirectAllocated)," ")}}function Be(n,d){if(n&1&&p(0,Ne,3,3,"td",25),n&2){let e=l(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function Re(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l().$implicit;o(),F(D(2,1,e.IndirectAllocated))}}function ke(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l().$implicit;o(),F(D(2,1,e.Available))}}function He(n,d){if(n&1&&(a(0,"tbody")(1,"tr")(2,"td")(3,"a",28),c(4),r()(),a(5,"td"),c(6),r(),a(7,"td",25),c(8),r(),a(9,"td",25),c(10),r()()()),n&2){let e=d.$implicit,i=l(2).$implicit;o(3),x("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",A(6,be,i.VariantID)),o(),_(" ",e.VariantName," "),o(2),_(" ",e.VariantCode," "),o(2),_(" ",e.Quantity," "),o(2),_(" ",e.OnHand," ")}}function je(n,d){if(n&1&&(a(0,"tr")(1,"td",31)(2,"div",7)(3,"table",32)(4,"thead",33)(5,"tr",34)(6,"th",35),c(7),r(),a(8,"th",36),c(9,"Code"),r(),a(10,"th",37),c(11," Quantity "),r(),a(12,"th",37),c(13," On Hand "),r()()(),L(14,He,11,8,"tbody",null,j),r()()()()),n&2){let e=l().$implicit;o(7),_(" Components (",e.ListComponent.length,") "),o(7),W(e.ListComponent)}}function Qe(n,d){if(n&1&&(a(0,"tr"),p(1,Ae,9,7,"td"),p(2,Oe,3,3,"td",25),p(3,We,1,1)(4,Be,1,1),p(5,Re,3,3,"td",25),p(6,ke,3,3,"td",25),r(),p(7,je,16,1,"tr")),n&2){let e=d.$implicit,i=l();o(),s(i.column.VariantName&&i.column.VariantName.selected?1:-1),o(),s(i.column.OnHand&&i.column.OnHand.selected?2:-1),o(),s(i.totalIndirect()>0?3:4),o(2),s(i.column.IndirectAllocated&&i.column.IndirectAllocated.selected&&i.totalIndirect()>0?5:-1),o(),s(i.column.Available&&i.column.Available.selected?6:-1),o(),s(i.displayExpandedRow(e.VariantID)&&i.column.VariantName&&i.column.VariantName.selected?7:-1)}}function Ge(n,d){if(n&1){let e=b();a(0,"div")(1,"POS-complex-pagination",38),S("jumpToPage",function(){u(e);let t=l();return C(t.getListData())})("previousPage",function(){u(e);let t=l();return C(t.getListData())})("nextPage",function(){u(e);let t=l();return C(t.getListData())}),v("reloadRowCountChange",function(t){u(e);let m=l();return f(m.reloadRowCount,t)||(m.reloadRowCount=t),C(t)}),r()()}if(n&2){let e=l();o(),x("total",e.data().Data.length)("pageData",e.pageData()),y("reloadRowCount",e.reloadRowCount)}}var he=class n extends le{constructor(e,i,t,m,I){super(e,i,"inventory/GetListInventoryComposite","inventoryloader/GetListInventoryComposite",t,void 0,!1);this.httpService=i;this.csvConverter=m;this.roleService=I;B(()=>{let g=this.totalIndirect();g!==null&&g<=0&&(console.log("Indirect allocation is zero or negative"),this.column=P(T({},this.column),{DirectAllocated:P(T({},this.column.DirectAllocated),{name:"Allocated"}),IndirectAllocated:P(T({},this.column.IndirectAllocated),{show:!1})}))})}httpService;csvConverter;roleService;column={VariantName:{selected:!0,name:"Name",show:!0},OnHand:{selected:!0,name:"On Hand",show:!0},DirectAllocated:{selected:!0,name:"Direct Allocated",show:!0},IndirectAllocated:{selected:!0,name:"Indirect Allocated",show:!0},Available:{selected:!0,name:"Available",show:!0}};totalIndirect=O(null);expandedRow=O([]);dialog=N(me);afterPostInit(e){console.log("Composite Inventory Data",e);let i=e.Data.reduce((t,m)=>t+m.IndirectAllocated,0);console.log("Total Indirect Allocated:",i),this.totalIndirect.set(i)}sortData(e){let i=[...this.data().Data];if(!e.active||e.direction===""){this.infiniteList=i;return}this.infiniteList=i.sort((t,m)=>{let I=e.direction==="asc";return this.compare(t[e.active],m[e.active],I)})}openExportModal(){this.dialog.open(pe,{data:{title:"Composite Inventory",exportTypes:[{ID:"inventoryExport/GetExportInventoryComposite",Value:"Default",FileName:"Composite Inventory"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"inventory/GetCountInventoryComposite",pagination:!0}})}onExpand(e){e?.VariantID&&this.expandedRow.update(i=>i.includes(e.VariantID)?i.filter(t=>t!==e.VariantID):[...i,e.VariantID])}displayExpandedRow(e){return this.expandedRow().includes(e)}static \u0275fac=function(i){return new(i||n)(h(se),h(X),h(U),h(ue),h(ne))};static \u0275cmp=R({type:n,selectors:[["pos-composite-inventory"]],features:[k],decls:21,vars:12,consts:[["pageFilterTemplate",""],["tooltipTitle","Identify and manage unsold inventory that has been stagnant for a long time",3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter","column"],["ngProjectAs","actions",5,["actions"]],[1,"btn","btn-outline-secondary","me-3"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],["mat-sort-header","VariantName",2,"width","35%"],["mat-sort-header","OnHand",1,"text-right-sort",2,"width","10%"],["mat-sort-header","DirectAllocated",1,"text-right-sort",2,"width","10%"],["mat-sort-header","IndirectAllocated",1,"text-right-sort",2,"width","10%"],["mat-sort-header","Available",1,"text-right-sort",2,"width","10%"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"d-flex","flex-column","gap-4"],["placeholder","Choose Outlets (Leave Blank to Choose All)",1,"ng-select-multiple",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["placeholder","Choose Brand",1,"w-100",3,"ngModelChange","ngModel","multiple","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center",2,"column-gap","8px"],["type","number","name","QuantityFrom",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"form-control","input-filter",3,"ngModelChange","ngModel"],[1,"text-end"],[1,"d-flex","align-items-center"],[1,"btn","btn-sm","expand-btn"],[3,"routerLink","queryParams"],[1,"btn","btn-sm","expand-btn",3,"click"],[1,"fa","fa-chevron-down",3,"ngClass"],["colspan","100%",2,"padding-left","50px"],[1,"table","border-bottom",2,"width","100%"],[2,"background-color","#f5f5f5"],[1,"text-muted"],[2,"width","55%","color","#3b3b3b"],[2,"color","#3b3b3b"],[2,"text-align","right !important","color","#3b3b3b"],["api","inventory/GetCountInventoryComposite",3,"jumpToPage","previousPage","nextPage","reloadRowCountChange","total","pageData","reloadRowCount"]],template:function(i,t){if(i&1){let m=b();a(0,"mainpanel-cmp",1),v("textChange",function(g){return u(m),f(t.pageData().Filter.SearchText,g)||(t.pageData().Filter.SearchText=g),C(g)}),S("onSubmit",function(){return t.searchFromPageOne()}),v("filterChange",function(g){return u(m),f(t.pageData().Filter,g)||(t.pageData().Filter=g),C(g)}),E(1,2),p(2,we,3,0,"button",3),M(),E(3,4),H(4,De,23,11,"ng-template",null,0,G),M(),E(6,5),a(7,"div",6)(8,"div",7)(9,"table",8),S("matSortChange",function(g){return t.sortData(g)}),a(10,"thead",9)(11,"tr"),p(12,Te,2,1,"th",10),p(13,Pe,2,1,"th",11),p(14,Ve,2,1,"th",12),p(15,Ee,2,1,"th",13),p(16,Me,2,1,"th",14),r()(),a(17,"tbody"),L(18,Qe,8,6,null,null,Q),r()()(),p(20,Ge,2,3,"div"),r(),M(),r()}i&2&&(x("pageData",t.menuData()),y("text",t.pageData().Filter.SearchText),x("isFilterOnDropdown",!1),y("filter",t.pageData().Filter),x("column",t.column),o(2),s(t.roleService.global.Export?2:-1),o(10),s(t.column.VariantName&&t.column.VariantName.selected?12:-1),o(),s(t.column.OnHand&&t.column.OnHand.selected?13:-1),o(),s(t.column.DirectAllocated&&t.column.DirectAllocated.selected?14:-1),o(),s(t.column.IndirectAllocated&&t.column.IndirectAllocated.selected&&t.totalIndirect()>0?15:-1),o(),s(t.column.Available&&t.column.Available.selected?16:-1),o(2),W(t.infiniteList),o(2),s(t.data()?20:-1))},dependencies:[_e,Ce,ye,xe,te,Y,ee,Z,$,de,ce,ie,ge,ve,fe,J,q,K,re,oe,ae,Ie,z],styles:["[_nghost-%COMP%]{display:block}.expand-btn[_ngcontent-%COMP%]{border-radius:100px;width:30px;height:30px;transition:all .3s ease;padding:0;transform:rotate(270deg)}.expand-btn[_ngcontent-%COMP%]:hover{background-color:#eaeaea}.expand-btn[_ngcontent-%COMP%]:focus{border:none;outline:none}.expanded-icon[_ngcontent-%COMP%]{transform:rotate(90deg)}[_nghost-%COMP%] .text-right-sort .mat-sort-header-container{display:flex;justify-content:end}th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0})};export{he as a};
|
|
1
|
+
import{a as le}from"./chunk-EIOIAUFT.js";import{a as ge}from"./chunk-G45YPYE2.js";import{g as Ie}from"./chunk-TEQQINRC.js";import{b as oe,c as ae,d as re}from"./chunk-7GBU7E7F.js";import{a as fe,b as ve}from"./chunk-EHCELKQF.js";import{b as xe}from"./chunk-CEA2BUTX.js";import{a as ye}from"./chunk-YXNKE4D2.js";import{b as pe}from"./chunk-6623DFFS.js";import{a as ue}from"./chunk-B5AGSH45.js";import{g as Ce,h as _e}from"./chunk-QTSLNKH3.js";import{a as se}from"./chunk-V634TZRE.js";import{b as ie}from"./chunk-Z7UCI72M.js";import{d as ce,e as de}from"./chunk-ULWLSYED.js";import{c as me}from"./chunk-LCBHD53Y.js";import{E as te,c as Y,h as Z,o as $,q as ee}from"./chunk-R36OIJC7.js";import{b as ne}from"./chunk-K74WZXBF.js";import{n as U,q as X}from"./chunk-ETYXTCKV.js";import{$a as h,Ab as Q,Ba as O,Bb as L,Cb as W,Da as B,Db as x,Eb as a,Fb as r,Fc as w,Gb as V,Gc as D,Kb as E,Lb as M,Lc as G,Pb as b,Qd as K,Sb as S,Ua as o,Ub as l,db as R,hc as c,ib as k,ic as F,id as q,jb as H,jc as _,mc as y,na as N,nc as f,oc as v,ra as u,sa as C,sd as z,vd as J,wb as p,yb as s,yc as A,zb as j}from"./chunk-DUSKF5IQ.js";import{a as T,b as P}from"./chunk-NF7PG5F2.js";var be=n=>({ID:n}),Se=n=>({"expanded-icon":n});function we(n,d){if(n&1){let e=b();a(0,"button",15),S("click",function(){u(e);let t=l();return C(t.openExportModal())}),V(1,"i",16),c(2," Export "),r()}}function De(n,d){if(n&1){let e=b();a(0,"div",17)(1,"div")(2,"h6"),c(3,"Outlet"),r(),a(4,"outlet-selector",18),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.OutletID,t)||(m.pageData().Filter.OutletID=t),C(t)}),r()(),a(5,"div")(6,"h6"),c(7,"Category"),r(),a(8,"POS-product-category-select",19),v("selectedCategoryIDChange",function(t){u(e);let m=l();return f(m.pageData().Filter.ProductCategoryID,t)||(m.pageData().Filter.ProductCategoryID=t),C(t)}),r()(),a(9,"h6"),c(10,"Brand"),r(),a(11,"POS-brand-options",20),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.BrandIDs,t)||(m.pageData().Filter.BrandIDs=t),C(t)}),r(),a(12,"div")(13,"h6"),c(14,"Product Tags"),r(),a(15,"ng-select",21),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.ProductTagID,t)||(m.pageData().Filter.ProductTagID=t),C(t)}),r()(),a(16,"div")(17,"h6"),c(18,"Quantity From - To"),r(),a(19,"div",22)(20,"input",23),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.QtyFrom,t)||(m.pageData().Filter.QtyFrom=t),C(t)}),r(),c(21," - "),a(22,"input",24),v("ngModelChange",function(t){u(e);let m=l();return f(m.pageData().Filter.QtyTo,t)||(m.pageData().Filter.QtyTo=t),C(t)}),r()()()()}if(n&2){let e,i=l();o(4),x("accessType",2),y("ngModel",i.pageData().Filter.OutletID),o(4),y("selectedCategoryID",i.pageData().Filter.ProductCategoryID),x("showClear",!0),o(3),y("ngModel",i.pageData().Filter.BrandIDs),x("multiple",!0)("clearable",!0),o(4),x("items",(e=i.pageData().Options)==null?null:e.Tags),y("ngModel",i.pageData().Filter.ProductTagID),o(5),y("ngModel",i.pageData().Filter.QtyFrom),o(2),y("ngModel",i.pageData().Filter.QtyTo)}}function Te(n,d){if(n&1&&(a(0,"th",10),c(1),r()),n&2){let e=l();o(),_(" ",e.column.VariantName.name," ")}}function Pe(n,d){if(n&1&&(a(0,"th",11),c(1),r()),n&2){let e=l();o(),_(" ",e.column.OnHand.name," ")}}function Ve(n,d){if(n&1&&(a(0,"th",12),c(1),r()),n&2){let e=l();o(),_(" ",e.column.DirectAllocated.name," ")}}function Ee(n,d){if(n&1&&(a(0,"th",13),c(1),r()),n&2){let e=l();o(),_(" ",e.column.IndirectAllocated.name," ")}}function Me(n,d){if(n&1&&(a(0,"th",14),c(1),r()),n&2){let e=l();o(),_(" ",e.column.Available.name," ")}}function Fe(n,d){if(n&1){let e=b();a(0,"button",29),S("click",function(){u(e);let t=l(2).$implicit,m=l();return C(m.onExpand(t))}),V(1,"i",30),r()}if(n&2){let e=l(2).$implicit,i=l();o(),x("ngClass",A(1,Se,i.displayExpandedRow(e.VariantID)))}}function Ae(n,d){if(n&1&&(a(0,"td")(1,"div",26),p(2,Fe,2,3,"button",27),a(3,"div")(4,"a",28),c(5),r(),V(6,"br"),a(7,"small"),c(8),r()()()()),n&2){let e=l().$implicit;o(2),s(e.ListComponent&&e.ListComponent.length>0?2:-1),o(2),x("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",A(5,be,e.VariantID)),o(),_(" ",e.VariantName," "),o(3),_(" ",e.VariantCode," ")}}function Oe(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l().$implicit;o(),F(D(2,1,e.OnHand))}}function Le(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l(2).$implicit;o(),_(" ",D(2,1,e.DirectAllocated)," ")}}function We(n,d){if(n&1&&p(0,Le,3,3,"td",25),n&2){let e=l(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function Ne(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l(2).$implicit;o(),_(" ",D(2,1,e.DirectAllocated)," ")}}function Be(n,d){if(n&1&&p(0,Ne,3,3,"td",25),n&2){let e=l(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function Re(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l().$implicit;o(),F(D(2,1,e.IndirectAllocated))}}function ke(n,d){if(n&1&&(a(0,"td",25),c(1),w(2,"number"),r()),n&2){let e=l().$implicit;o(),F(D(2,1,e.Available))}}function He(n,d){if(n&1&&(a(0,"tbody")(1,"tr")(2,"td")(3,"a",28),c(4),r()(),a(5,"td"),c(6),r(),a(7,"td",25),c(8),r(),a(9,"td",25),c(10),r()()()),n&2){let e=d.$implicit,i=l(2).$implicit;o(3),x("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",A(6,be,i.VariantID)),o(),_(" ",e.VariantName," "),o(2),_(" ",e.VariantCode," "),o(2),_(" ",e.Quantity," "),o(2),_(" ",e.OnHand," ")}}function je(n,d){if(n&1&&(a(0,"tr")(1,"td",31)(2,"div",7)(3,"table",32)(4,"thead",33)(5,"tr",34)(6,"th",35),c(7),r(),a(8,"th",36),c(9,"Code"),r(),a(10,"th",37),c(11," Quantity "),r(),a(12,"th",37),c(13," On Hand "),r()()(),L(14,He,11,8,"tbody",null,j),r()()()()),n&2){let e=l().$implicit;o(7),_(" Components (",e.ListComponent.length,") "),o(7),W(e.ListComponent)}}function Qe(n,d){if(n&1&&(a(0,"tr"),p(1,Ae,9,7,"td"),p(2,Oe,3,3,"td",25),p(3,We,1,1)(4,Be,1,1),p(5,Re,3,3,"td",25),p(6,ke,3,3,"td",25),r(),p(7,je,16,1,"tr")),n&2){let e=d.$implicit,i=l();o(),s(i.column.VariantName&&i.column.VariantName.selected?1:-1),o(),s(i.column.OnHand&&i.column.OnHand.selected?2:-1),o(),s(i.totalIndirect()>0?3:4),o(2),s(i.column.IndirectAllocated&&i.column.IndirectAllocated.selected&&i.totalIndirect()>0?5:-1),o(),s(i.column.Available&&i.column.Available.selected?6:-1),o(),s(i.displayExpandedRow(e.VariantID)&&i.column.VariantName&&i.column.VariantName.selected?7:-1)}}function Ge(n,d){if(n&1){let e=b();a(0,"div")(1,"POS-complex-pagination",38),S("jumpToPage",function(){u(e);let t=l();return C(t.getListData())})("previousPage",function(){u(e);let t=l();return C(t.getListData())})("nextPage",function(){u(e);let t=l();return C(t.getListData())}),v("reloadRowCountChange",function(t){u(e);let m=l();return f(m.reloadRowCount,t)||(m.reloadRowCount=t),C(t)}),r()()}if(n&2){let e=l();o(),x("total",e.data().Data.length)("pageData",e.pageData()),y("reloadRowCount",e.reloadRowCount)}}var he=class n extends le{constructor(e,i,t,m,I){super(e,i,"inventory/GetListInventoryComposite","inventoryloader/GetListInventoryComposite",t,void 0,!1);this.httpService=i;this.csvConverter=m;this.roleService=I;B(()=>{let g=this.totalIndirect();g!==null&&g<=0&&(console.log("Indirect allocation is zero or negative"),this.column=P(T({},this.column),{DirectAllocated:P(T({},this.column.DirectAllocated),{name:"Allocated"}),IndirectAllocated:P(T({},this.column.IndirectAllocated),{show:!1})}))})}httpService;csvConverter;roleService;column={VariantName:{selected:!0,name:"Name",show:!0},OnHand:{selected:!0,name:"On Hand",show:!0},DirectAllocated:{selected:!0,name:"Direct Allocated",show:!0},IndirectAllocated:{selected:!0,name:"Indirect Allocated",show:!0},Available:{selected:!0,name:"Available",show:!0}};totalIndirect=O(null);expandedRow=O([]);dialog=N(me);afterPostInit(e){console.log("Composite Inventory Data",e);let i=e.Data.reduce((t,m)=>t+m.IndirectAllocated,0);console.log("Total Indirect Allocated:",i),this.totalIndirect.set(i)}sortData(e){let i=[...this.data().Data];if(!e.active||e.direction===""){this.infiniteList=i;return}this.infiniteList=i.sort((t,m)=>{let I=e.direction==="asc";return this.compare(t[e.active],m[e.active],I)})}openExportModal(){this.dialog.open(pe,{data:{title:"Composite Inventory",exportTypes:[{ID:"inventoryExport/GetExportInventoryComposite",Value:"Default",FileName:"Composite Inventory"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"inventory/GetCountInventoryComposite",pagination:!0}})}onExpand(e){e?.VariantID&&this.expandedRow.update(i=>i.includes(e.VariantID)?i.filter(t=>t!==e.VariantID):[...i,e.VariantID])}displayExpandedRow(e){return this.expandedRow().includes(e)}static \u0275fac=function(i){return new(i||n)(h(se),h(X),h(U),h(ue),h(ne))};static \u0275cmp=R({type:n,selectors:[["pos-composite-inventory"]],features:[k],decls:21,vars:12,consts:[["pageFilterTemplate",""],["tooltipTitle","Identify and manage unsold inventory that has been stagnant for a long time",3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter","column"],["ngProjectAs","actions",5,["actions"]],[1,"btn","btn-outline-secondary","me-3"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],["mat-sort-header","VariantName",2,"width","35%"],["mat-sort-header","OnHand",1,"text-right-sort",2,"width","10%"],["mat-sort-header","DirectAllocated",1,"text-right-sort",2,"width","10%"],["mat-sort-header","IndirectAllocated",1,"text-right-sort",2,"width","10%"],["mat-sort-header","Available",1,"text-right-sort",2,"width","10%"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"d-flex","flex-column","gap-4"],["placeholder","Choose Outlets (Leave Blank to Choose All)",1,"ng-select-multiple",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["placeholder","Choose Brand",1,"w-100",3,"ngModelChange","ngModel","multiple","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center",2,"column-gap","8px"],["type","number","name","QuantityFrom",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"form-control","input-filter",3,"ngModelChange","ngModel"],[1,"text-end"],[1,"d-flex","align-items-center"],[1,"btn","btn-sm","expand-btn"],[3,"routerLink","queryParams"],[1,"btn","btn-sm","expand-btn",3,"click"],[1,"fa","fa-chevron-down",3,"ngClass"],["colspan","100%",2,"padding-left","50px"],[1,"table","border-bottom",2,"width","100%"],[2,"background-color","#f5f5f5"],[1,"text-muted"],[2,"width","55%","color","#3b3b3b"],[2,"color","#3b3b3b"],[2,"text-align","right !important","color","#3b3b3b"],["api","inventory/GetCountInventoryComposite",3,"jumpToPage","previousPage","nextPage","reloadRowCountChange","total","pageData","reloadRowCount"]],template:function(i,t){if(i&1){let m=b();a(0,"mainpanel-cmp",1),v("textChange",function(g){return u(m),f(t.pageData().Filter.SearchText,g)||(t.pageData().Filter.SearchText=g),C(g)}),S("onSubmit",function(){return t.searchFromPageOne()}),v("filterChange",function(g){return u(m),f(t.pageData().Filter,g)||(t.pageData().Filter=g),C(g)}),E(1,2),p(2,we,3,0,"button",3),M(),E(3,4),H(4,De,23,11,"ng-template",null,0,G),M(),E(6,5),a(7,"div",6)(8,"div",7)(9,"table",8),S("matSortChange",function(g){return t.sortData(g)}),a(10,"thead",9)(11,"tr"),p(12,Te,2,1,"th",10),p(13,Pe,2,1,"th",11),p(14,Ve,2,1,"th",12),p(15,Ee,2,1,"th",13),p(16,Me,2,1,"th",14),r()(),a(17,"tbody"),L(18,Qe,8,6,null,null,Q),r()()(),p(20,Ge,2,3,"div"),r(),M(),r()}i&2&&(x("pageData",t.menuData()),y("text",t.pageData().Filter.SearchText),x("isFilterOnDropdown",!1),y("filter",t.pageData().Filter),x("column",t.column),o(2),s(t.roleService.global.Export?2:-1),o(10),s(t.column.VariantName&&t.column.VariantName.selected?12:-1),o(),s(t.column.OnHand&&t.column.OnHand.selected?13:-1),o(),s(t.column.DirectAllocated&&t.column.DirectAllocated.selected?14:-1),o(),s(t.column.IndirectAllocated&&t.column.IndirectAllocated.selected&&t.totalIndirect()>0?15:-1),o(),s(t.column.Available&&t.column.Available.selected?16:-1),o(2),W(t.infiniteList),o(2),s(t.data()?20:-1))},dependencies:[_e,Ce,ye,xe,te,Y,ee,Z,$,de,ce,ie,ge,ve,fe,J,q,K,re,oe,ae,Ie,z],styles:["[_nghost-%COMP%]{display:block}.expand-btn[_ngcontent-%COMP%]{border-radius:100px;width:30px;height:30px;transition:all .3s ease;padding:0;transform:rotate(270deg)}.expand-btn[_ngcontent-%COMP%]:hover{background-color:#eaeaea}.expand-btn[_ngcontent-%COMP%]:focus{border:none;outline:none}.expanded-icon[_ngcontent-%COMP%]{transform:rotate(90deg)}[_nghost-%COMP%] .text-right-sort .mat-sort-header-container{display:flex;justify-content:end}th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0})};export{he as a};
|