dealpos 25.40.0 → 25.40.2

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.
Files changed (82) hide show
  1. package/browser/{chunk-3JE7W7SE.js → chunk-2U2JYZ76.js} +1 -1
  2. package/browser/{chunk-YHUI7RQU.js → chunk-2VDAFJY7.js} +1 -1
  3. package/browser/{chunk-635ZDHSK.js → chunk-45OAODEJ.js} +2 -2
  4. package/browser/{chunk-SAMB3PL6.js → chunk-4LSMOT7D.js} +2 -2
  5. package/browser/{chunk-75GCAMUG.js → chunk-53QBOLTA.js} +1 -1
  6. package/browser/{chunk-GVBPGOE7.js → chunk-5A5UJCA3.js} +1 -1
  7. package/browser/{chunk-QNTE2LGU.js → chunk-5DNCP5FC.js} +1 -1
  8. package/browser/{chunk-WNN2QQ2E.js → chunk-5JB63L7E.js} +1 -1
  9. package/browser/{chunk-QVS25HHW.js → chunk-5MB35RTV.js} +1 -1
  10. package/browser/{chunk-T66DKYFZ.js → chunk-5SSHZYTK.js} +1 -1
  11. package/browser/{chunk-HQQ77WPJ.js → chunk-5UKMHAPS.js} +1 -1
  12. package/browser/{chunk-YAT62P4U.js → chunk-6MBVF5PK.js} +3 -3
  13. package/browser/chunk-6UVOVZTG.js +112 -0
  14. package/browser/{chunk-JHXGTHND.js → chunk-7XCJGHOF.js} +1 -1
  15. package/browser/{chunk-F3TAAANQ.js → chunk-7YRIEIEL.js} +1 -1
  16. package/browser/{chunk-PO6IBZGK.js → chunk-AB7FXZGQ.js} +1 -1
  17. package/browser/{chunk-DNYXHG4D.js → chunk-AIWMAX5H.js} +1 -1
  18. package/browser/{chunk-IBBZCB6S.js → chunk-ARPTC7FZ.js} +1 -1
  19. package/browser/{chunk-MBJEISU5.js → chunk-AWEVLUH4.js} +1 -1
  20. package/browser/{chunk-YBAZUK5O.js → chunk-BO5RZFDE.js} +1 -1
  21. package/browser/{chunk-C74OK6IO.js → chunk-CSH47SQR.js} +2 -2
  22. package/browser/{chunk-TF5EIKOX.js → chunk-DCFP5QGY.js} +1 -1
  23. package/browser/{chunk-HF4JUBJ3.js → chunk-DIYOL4ZX.js} +1 -1
  24. package/browser/{chunk-FF3AT4ZZ.js → chunk-DLVA7JPN.js} +1 -1
  25. package/browser/{chunk-KISK5Y3K.js → chunk-E3OGY6ES.js} +1 -1
  26. package/browser/{chunk-GFJRKEBT.js → chunk-ECGRTGGV.js} +1 -1
  27. package/browser/{chunk-DL2KKY4K.js → chunk-ELMKQ62C.js} +1 -1
  28. package/browser/{chunk-FQDWWSFZ.js → chunk-ENLZCSWK.js} +1 -1
  29. package/browser/{chunk-V5YHCHGS.js → chunk-FDV5CP2Q.js} +1 -1
  30. package/browser/{chunk-PO6NDTPF.js → chunk-FLA5R3YT.js} +1 -1
  31. package/browser/{chunk-D2FDNKXB.js → chunk-FPUXX3LP.js} +1 -1
  32. package/browser/{chunk-FG7XUKIO.js → chunk-FVQ5OKEX.js} +1 -1
  33. package/browser/{chunk-KAILKU7Z.js → chunk-G2IRE4PI.js} +1 -1
  34. package/browser/{chunk-FMUENILI.js → chunk-IK57DV5O.js} +1 -1
  35. package/browser/{chunk-WRBL5J73.js → chunk-IP6QBHGH.js} +2 -2
  36. package/browser/{chunk-E7AAHH2H.js → chunk-IVT2LRG6.js} +13 -13
  37. package/browser/{chunk-6WKS4NBT.js → chunk-J5VIKO3U.js} +1 -1
  38. package/browser/{chunk-4VQB3RCY.js → chunk-JGKII6F2.js} +1 -1
  39. package/browser/{chunk-26RUS7IT.js → chunk-KFPPOQTN.js} +2 -2
  40. package/browser/{chunk-GIEZY27V.js → chunk-KUYSSX54.js} +1 -1
  41. package/browser/{chunk-SZGPES6H.js → chunk-L4YRSIVP.js} +1 -1
  42. package/browser/{chunk-NZDREZVN.js → chunk-LGCPZ7ZC.js} +1 -1
  43. package/browser/{chunk-SSVZIUYC.js → chunk-LWQPQ3JP.js} +1 -1
  44. package/browser/{chunk-2FQZ67ZX.js → chunk-M37QLVGO.js} +2 -2
  45. package/browser/{chunk-4ZNRLNQI.js → chunk-MB3355JD.js} +1 -1
  46. package/browser/{chunk-IMLG5BJ7.js → chunk-NC4J2MQI.js} +1 -1
  47. package/browser/{chunk-2S3RIVNA.js → chunk-O3CGA22W.js} +1 -1
  48. package/browser/chunk-OKMUB3IV.js +1 -0
  49. package/browser/{chunk-R7LAPYIP.js → chunk-P3P25EOJ.js} +1 -1
  50. package/browser/{chunk-AK4ZY2E5.js → chunk-P4TN4CJP.js} +1 -1
  51. package/browser/{chunk-5QW6ZGAI.js → chunk-QRBKKDQD.js} +1 -1
  52. package/browser/{chunk-DDK45GSM.js → chunk-R37DRT32.js} +1 -1
  53. package/browser/{chunk-FMGNA4IZ.js → chunk-RJFQ65N4.js} +2 -2
  54. package/browser/{chunk-M2BWMQEH.js → chunk-RML6TDRD.js} +1 -1
  55. package/browser/{chunk-MS5DBZJS.js → chunk-TBACZZO3.js} +1 -1
  56. package/browser/{chunk-ADURXNZF.js → chunk-TJTZCCBT.js} +1 -1
  57. package/browser/{chunk-CDW6OCYP.js → chunk-TXSBSJRQ.js} +1 -1
  58. package/browser/{chunk-XFUISODZ.js → chunk-TZATTV7L.js} +1 -1
  59. package/browser/{chunk-E55NVZSM.js → chunk-TZSF5N2H.js} +1 -1
  60. package/browser/{chunk-FXSXZS6W.js → chunk-UTUWSXWI.js} +1 -1
  61. package/browser/{chunk-3VVEN3CF.js → chunk-UV5IDNL4.js} +1 -1
  62. package/browser/{chunk-GSZX7WS2.js → chunk-VAIGUQRA.js} +1 -1
  63. package/browser/{chunk-NRCWDBAJ.js → chunk-VBMJL2DU.js} +1 -1
  64. package/browser/{chunk-JGWDQEEO.js → chunk-VDL2LTQ4.js} +1 -1
  65. package/browser/{chunk-YZLZXXPA.js → chunk-W2RTV2OX.js} +1 -1
  66. package/browser/{chunk-LUTFUKOO.js → chunk-XDVE4QHG.js} +1 -1
  67. package/browser/{chunk-CWVLKA3Y.js → chunk-XH6XJ3KM.js} +1 -1
  68. package/browser/{chunk-RWU6A6Q3.js → chunk-XI5VA4B3.js} +3 -3
  69. package/browser/{chunk-BS5CESBY.js → chunk-XINIQJMX.js} +1 -1
  70. package/browser/{chunk-BAOWCY34.js → chunk-XSODSITQ.js} +1 -1
  71. package/browser/{chunk-SF3HNXGC.js → chunk-XUZNEAQL.js} +1 -1
  72. package/browser/{chunk-GXTAGWTL.js → chunk-YGN464UA.js} +1 -1
  73. package/browser/{chunk-3VCFKFUX.js → chunk-YYIP7MBV.js} +1 -1
  74. package/browser/{chunk-WEKOCTBY.js → chunk-ZBF3KNJZ.js} +1 -1
  75. package/browser/chunk-ZFRM7OST.js +1 -0
  76. package/browser/{chunk-GFRO6FJS.js → chunk-ZOS6KCAU.js} +1 -1
  77. package/browser/index.html +2 -2
  78. package/browser/{main-PULVISV3.js → main-7F6JKYCX.js} +2 -2
  79. package/package.json +1 -1
  80. package/browser/chunk-CGF5Z4D5.js +0 -1
  81. package/browser/chunk-GMN3233I.js +0 -1
  82. package/browser/chunk-UH3YL7ES.js +0 -112
@@ -1 +1 @@
1
- import{a as me,b as ce,c as de,d as se,e as ue,f as ge}from"./chunk-CWVLKA3Y.js";import"./chunk-KVJTNXOJ.js";import"./chunk-75GCAMUG.js";import"./chunk-2GQKEX5I.js";import"./chunk-XZQMVGBQ.js";import{d as ae,e as re}from"./chunk-VPLAJK5S.js";import{a as $}from"./chunk-GSS2NRMS.js";import{e as pe}from"./chunk-VULOVOPY.js";import"./chunk-HHCO4QOU.js";import"./chunk-3RK6DDJD.js";import"./chunk-7UFQPOGN.js";import{a as ee}from"./chunk-PNM3PGBM.js";import"./chunk-E3TMOYBP.js";import"./chunk-DWOLAWQN.js";import"./chunk-QGGIOQJT.js";import"./chunk-T2PXIPKB.js";import"./chunk-QMCAG2HX.js";import{c as le}from"./chunk-WRBL5J73.js";import{b as Z}from"./chunk-PDV6AI5F.js";import{a as X}from"./chunk-DNYXHG4D.js";import"./chunk-2S3RIVNA.js";import"./chunk-NW73SHIZ.js";import{a as ie}from"./chunk-NDM2ODJP.js";import{d as ne,e as oe}from"./chunk-V5YHCHGS.js";import"./chunk-4VQB3RCY.js";import"./chunk-OMVUFMMZ.js";import"./chunk-TF5EIKOX.js";import"./chunk-T6MTT57B.js";import"./chunk-IFIBQUT3.js";import"./chunk-4L5G4WC4.js";import"./chunk-3NJFM55L.js";import"./chunk-2LFFOWKW.js";import"./chunk-OQCGVZVB.js";import"./chunk-UAI7BPPY.js";import"./chunk-6IW4MVP2.js";import{b as te}from"./chunk-YBAZUK5O.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import"./chunk-CN5SHMHF.js";import"./chunk-3M5M2T4L.js";import"./chunk-B4IX7BMU.js";import{b as K,c as U}from"./chunk-XOQ4SW2R.js";import"./chunk-A7ZWFYP4.js";import"./chunk-QTAOV4NJ.js";import"./chunk-GIKR6Y2K.js";import"./chunk-3GV7FUAX.js";import{g as Y}from"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-QCBXPOJL.js";import"./chunk-T2PMKO3M.js";import"./chunk-2FWFPV5I.js";import{la as J}from"./chunk-OE7PM4Y4.js";import{F as q,c as N,h as k,o as Q,q as j}from"./chunk-CB33ZMNF.js";import"./chunk-GFRO6FJS.js";import"./chunk-FG7XUKIO.js";import{d as z}from"./chunk-TKBUOGER.js";import"./chunk-GIEZY27V.js";import{$a as l,Ac as s,Bc as I,Db as E,Fc as V,Ib as t,Jb as n,Kb as f,Ob as T,Qb as h,Rb as d,Rd as W,Td as A,Ub as M,Yd as G,Zc as O,db as C,ec as a,fc as P,gc as u,gd as L,jc as x,jd as R,kb as F,kc as b,lc as S,ob as B,qb as v,qc as D,rc as w,va as y,vb as c,wa as _,wd as H,zc as m}from"./chunk-DJOHANFC.js";import"./chunk-7DCB7DB2.js";var fe=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),Ce=()=>["/menu/Products/Catalog/Products"],ye=r=>({CategoryID:r}),xe=()=>["/menu/Inventory/Quantity/Valuation"];function be(r,g){if(r&1){let e=T();t(0,"button",10),h("click",function(){y(e);let o=d(2);return _(o.openExportModal())}),f(1,"i",11),a(2," Export "),n()}}function Se(r,g){if(r&1){let e=T();t(0,"div",12)(1,"h6"),a(2,"Outlet"),n(),t(3,"outlet-selector",13),S("ngModelChange",function(o){y(e);let p=d(2);return b(p.pageData.Filter.ListIDs,o)||(p.pageData.Filter.ListIDs=o),_(o)}),n(),t(4,"h6"),a(5,"Quantity From - To"),n(),t(6,"div",14)(7,"input",15),S("ngModelChange",function(o){y(e);let p=d(2);return b(p.pageData.Filter.QuantityFrom,o)||(p.pageData.Filter.QuantityFrom=o),_(o)}),n(),t(8,"span",16),a(9,"-"),n(),t(10,"input",17),S("ngModelChange",function(o){y(e);let p=d(2);return b(p.pageData.Filter.QuantityTo,o)||(p.pageData.Filter.QuantityTo=o),_(o)}),n()(),t(11,"h6"),a(12,"Discontinued"),n(),t(13,"radio-options",18),S("modelChange",function(o){y(e);let p=d(2);return b(p.pageData.Filter.Discontinued,o)||(p.pageData.Filter.Discontinued=o),_(o)}),n()()}if(r&2){let e=d(2);l(3),c("multiple",!0)("accessType",2),x("ngModel",e.pageData.Filter.ListIDs),l(4),x("ngModel",e.pageData.Filter.QuantityFrom),l(3),x("ngModel",e.pageData.Filter.QuantityTo),l(3),x("model",e.pageData.Filter.Discontinued),c("options",e.pageData.Options.Discontinued)}}function ve(r,g){r&1&&(t(0,"tr",19)(1,"th",20),a(2," Category "),f(3,"p-treeTableSortIcon",21),n(),t(4,"th",22),a(5," On Hand "),f(6,"p-treeTableSortIcon",23),n(),t(7,"th",24),a(8," Cost "),f(9,"p-treeTableSortIcon",25),n(),t(10,"th",26),a(11," Price "),f(12,"p-treeTableSortIcon",27),n(),t(13,"th",28),a(14," % "),f(15,"p-treeTableSortIcon",29),n()())}function Te(r,g){if(r&1&&(t(0,"tr",30)(1,"td"),f(2,"p-treeTableToggler",31),t(3,"a",32),a(4),n()(),t(5,"td")(6,"a",33),m(7,"number"),m(8,"number"),m(9,"number"),a(10),m(11,"quantityFraction"),n()(),t(12,"td"),a(13),m(14,"amountFraction"),n(),t(15,"td"),a(16),m(17,"amountFraction"),n(),t(18,"td")(19,"span",34),m(20,"number"),a(21),m(22,"number"),n()()()),r&2){let e=g.$implicit,i=g.rowData;c("ttRow",e),l(2),c("rowNode",e),l(),c("routerLink",D(31,Ce))("queryParams",w(32,ye,i.ID)),l(),P(i.Name),l(2),M("matTooltip",i.OnHandIndirect&&i.OnHand?"Direct ("+s(7,13,i.OnHand)+") Indirect ("+s(8,15,i.OnHandIndirect)+")":i.OnHandIndirect?"Indirect ("+s(9,17,i.OnHandIndirect)+")":""),c("routerLink",D(34,xe))("queryParams",w(35,ye,i.ID)),l(4),u("",s(11,19,i.DisplayedOnHand)," "),l(3),u(" ",s(14,21,i.DisplayedCost)," "),l(3),u(" ",s(17,23,i.DisplayedPrice)," "),l(3),c("matTooltip",I(20,25,i.DisplayedPercentage,"1.0-5")+"%"),l(2),u(" ",I(22,28,i.DisplayedPercentage,"1.0-0"),"% ")}}function De(r,g){if(r&1&&(t(0,"tr",35)(1,"td",36),a(2,"Total:"),n(),t(3,"td",36),a(4),m(5,"quantityFraction"),n(),t(6,"td",36),a(7),m(8,"amountFraction"),n(),t(9,"td",36),a(10),m(11,"amountFraction"),n(),t(12,"td",36),a(13),m(14,"number"),n()()),r&2){let e=d(2);l(4),u(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),l(3),u(" ",s(8,6,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," "),l(3),u(" ",s(11,8,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," "),l(3),u(" ",I(14,10,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Ie(r,g){if(r&1){let e=T();t(0,"mainpanel-cmp",2),h("onSubmit",function(){y(e);let o=d();return _(o.searchFromPageOne())}),S("filterChange",function(o){y(e);let p=d();return b(p.pageData.Filter,o)||(p.pageData.Filter=o),_(o)}),t(1,"actions"),v(2,be,3,0,"button",3),n(),t(3,"div",4),v(4,Se,14,7,"ng-template",null,0,V),n(),t(6,"content")(7,"div",5)(8,"p-treeTable",6),v(9,ve,16,0,"ng-template",7)(10,Te,23,37,"ng-template",8)(11,De,15,13,"ng-template",9),n()()()()}if(r&2){let e=d();c("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),x("filter",e.pageData.Filter),l(2),E(e.roleService.global.Export?2:-1),l(6),c("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",D(9,fe))}}var _e=class r extends X{constructor(e,i,o,p,he,we){super(e,i,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=i;this.csvConverter=o;this.pageTitle=p;this.roleService=he;this.dialog=we}openExportModal(){this.dialog.open(Z,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(i){return new(i||r)(C(te),C(G),C(ie),C(H),C(z),C(Y))};static \u0275cmp=F({type:r,selectors:[["app-inventory-by-category"]],features:[B],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"]],template:function(i,o){i&1&&v(0,Ie,12,10,"mainpanel-cmp",1),i&2&&c("ngIf",o.data)},dependencies:[R,O,L,oe,ne,A,W,ge,me,J,ue,ce,de,se,$,ee,le,pe,re,ae,q,N,j,k,Q,U,K],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{_e as InventoryByCategoryComponent};
1
+ import{a as me,b as ce,c as de,d as se,e as ue,f as ge}from"./chunk-XH6XJ3KM.js";import"./chunk-KVJTNXOJ.js";import"./chunk-53QBOLTA.js";import"./chunk-2GQKEX5I.js";import"./chunk-XZQMVGBQ.js";import{d as ae,e as re}from"./chunk-VPLAJK5S.js";import{a as $}from"./chunk-GSS2NRMS.js";import{e as pe}from"./chunk-VULOVOPY.js";import"./chunk-HHCO4QOU.js";import"./chunk-3RK6DDJD.js";import"./chunk-7UFQPOGN.js";import{a as ee}from"./chunk-PNM3PGBM.js";import"./chunk-E3TMOYBP.js";import"./chunk-DWOLAWQN.js";import"./chunk-QGGIOQJT.js";import"./chunk-T2PXIPKB.js";import"./chunk-QMCAG2HX.js";import{c as le}from"./chunk-IP6QBHGH.js";import{b as Z}from"./chunk-PDV6AI5F.js";import{a as X}from"./chunk-AIWMAX5H.js";import"./chunk-O3CGA22W.js";import"./chunk-NW73SHIZ.js";import{a as ie}from"./chunk-NDM2ODJP.js";import{d as ne,e as oe}from"./chunk-FDV5CP2Q.js";import"./chunk-JGKII6F2.js";import"./chunk-OMVUFMMZ.js";import"./chunk-DCFP5QGY.js";import"./chunk-T6MTT57B.js";import"./chunk-IFIBQUT3.js";import"./chunk-4L5G4WC4.js";import"./chunk-3NJFM55L.js";import"./chunk-2LFFOWKW.js";import"./chunk-OQCGVZVB.js";import"./chunk-UAI7BPPY.js";import"./chunk-6IW4MVP2.js";import{b as te}from"./chunk-BO5RZFDE.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import"./chunk-CN5SHMHF.js";import"./chunk-3M5M2T4L.js";import"./chunk-B4IX7BMU.js";import{b as K,c as U}from"./chunk-XOQ4SW2R.js";import"./chunk-A7ZWFYP4.js";import"./chunk-QTAOV4NJ.js";import"./chunk-GIKR6Y2K.js";import"./chunk-3GV7FUAX.js";import{g as Y}from"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-QCBXPOJL.js";import"./chunk-T2PMKO3M.js";import"./chunk-2FWFPV5I.js";import{la as J}from"./chunk-OE7PM4Y4.js";import{F as q,c as N,h as k,o as Q,q as j}from"./chunk-CB33ZMNF.js";import"./chunk-ZOS6KCAU.js";import"./chunk-FVQ5OKEX.js";import{d as z}from"./chunk-TKBUOGER.js";import"./chunk-KUYSSX54.js";import{$a as l,Ac as s,Bc as I,Db as E,Fc as V,Ib as t,Jb as n,Kb as f,Ob as T,Qb as h,Rb as d,Rd as W,Td as A,Ub as M,Yd as G,Zc as O,db as C,ec as a,fc as P,gc as u,gd as L,jc as x,jd as R,kb as F,kc as b,lc as S,ob as B,qb as v,qc as D,rc as w,va as y,vb as c,wa as _,wd as H,zc as m}from"./chunk-DJOHANFC.js";import"./chunk-7DCB7DB2.js";var fe=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),Ce=()=>["/menu/Products/Catalog/Products"],ye=r=>({CategoryID:r}),xe=()=>["/menu/Inventory/Quantity/Valuation"];function be(r,g){if(r&1){let e=T();t(0,"button",10),h("click",function(){y(e);let o=d(2);return _(o.openExportModal())}),f(1,"i",11),a(2," Export "),n()}}function Se(r,g){if(r&1){let e=T();t(0,"div",12)(1,"h6"),a(2,"Outlet"),n(),t(3,"outlet-selector",13),S("ngModelChange",function(o){y(e);let p=d(2);return b(p.pageData.Filter.ListIDs,o)||(p.pageData.Filter.ListIDs=o),_(o)}),n(),t(4,"h6"),a(5,"Quantity From - To"),n(),t(6,"div",14)(7,"input",15),S("ngModelChange",function(o){y(e);let p=d(2);return b(p.pageData.Filter.QuantityFrom,o)||(p.pageData.Filter.QuantityFrom=o),_(o)}),n(),t(8,"span",16),a(9,"-"),n(),t(10,"input",17),S("ngModelChange",function(o){y(e);let p=d(2);return b(p.pageData.Filter.QuantityTo,o)||(p.pageData.Filter.QuantityTo=o),_(o)}),n()(),t(11,"h6"),a(12,"Discontinued"),n(),t(13,"radio-options",18),S("modelChange",function(o){y(e);let p=d(2);return b(p.pageData.Filter.Discontinued,o)||(p.pageData.Filter.Discontinued=o),_(o)}),n()()}if(r&2){let e=d(2);l(3),c("multiple",!0)("accessType",2),x("ngModel",e.pageData.Filter.ListIDs),l(4),x("ngModel",e.pageData.Filter.QuantityFrom),l(3),x("ngModel",e.pageData.Filter.QuantityTo),l(3),x("model",e.pageData.Filter.Discontinued),c("options",e.pageData.Options.Discontinued)}}function ve(r,g){r&1&&(t(0,"tr",19)(1,"th",20),a(2," Category "),f(3,"p-treeTableSortIcon",21),n(),t(4,"th",22),a(5," On Hand "),f(6,"p-treeTableSortIcon",23),n(),t(7,"th",24),a(8," Cost "),f(9,"p-treeTableSortIcon",25),n(),t(10,"th",26),a(11," Price "),f(12,"p-treeTableSortIcon",27),n(),t(13,"th",28),a(14," % "),f(15,"p-treeTableSortIcon",29),n()())}function Te(r,g){if(r&1&&(t(0,"tr",30)(1,"td"),f(2,"p-treeTableToggler",31),t(3,"a",32),a(4),n()(),t(5,"td")(6,"a",33),m(7,"number"),m(8,"number"),m(9,"number"),a(10),m(11,"quantityFraction"),n()(),t(12,"td"),a(13),m(14,"amountFraction"),n(),t(15,"td"),a(16),m(17,"amountFraction"),n(),t(18,"td")(19,"span",34),m(20,"number"),a(21),m(22,"number"),n()()()),r&2){let e=g.$implicit,i=g.rowData;c("ttRow",e),l(2),c("rowNode",e),l(),c("routerLink",D(31,Ce))("queryParams",w(32,ye,i.ID)),l(),P(i.Name),l(2),M("matTooltip",i.OnHandIndirect&&i.OnHand?"Direct ("+s(7,13,i.OnHand)+") Indirect ("+s(8,15,i.OnHandIndirect)+")":i.OnHandIndirect?"Indirect ("+s(9,17,i.OnHandIndirect)+")":""),c("routerLink",D(34,xe))("queryParams",w(35,ye,i.ID)),l(4),u("",s(11,19,i.DisplayedOnHand)," "),l(3),u(" ",s(14,21,i.DisplayedCost)," "),l(3),u(" ",s(17,23,i.DisplayedPrice)," "),l(3),c("matTooltip",I(20,25,i.DisplayedPercentage,"1.0-5")+"%"),l(2),u(" ",I(22,28,i.DisplayedPercentage,"1.0-0"),"% ")}}function De(r,g){if(r&1&&(t(0,"tr",35)(1,"td",36),a(2,"Total:"),n(),t(3,"td",36),a(4),m(5,"quantityFraction"),n(),t(6,"td",36),a(7),m(8,"amountFraction"),n(),t(9,"td",36),a(10),m(11,"amountFraction"),n(),t(12,"td",36),a(13),m(14,"number"),n()()),r&2){let e=d(2);l(4),u(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),l(3),u(" ",s(8,6,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," "),l(3),u(" ",s(11,8,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," "),l(3),u(" ",I(14,10,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Ie(r,g){if(r&1){let e=T();t(0,"mainpanel-cmp",2),h("onSubmit",function(){y(e);let o=d();return _(o.searchFromPageOne())}),S("filterChange",function(o){y(e);let p=d();return b(p.pageData.Filter,o)||(p.pageData.Filter=o),_(o)}),t(1,"actions"),v(2,be,3,0,"button",3),n(),t(3,"div",4),v(4,Se,14,7,"ng-template",null,0,V),n(),t(6,"content")(7,"div",5)(8,"p-treeTable",6),v(9,ve,16,0,"ng-template",7)(10,Te,23,37,"ng-template",8)(11,De,15,13,"ng-template",9),n()()()()}if(r&2){let e=d();c("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),x("filter",e.pageData.Filter),l(2),E(e.roleService.global.Export?2:-1),l(6),c("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",D(9,fe))}}var _e=class r extends X{constructor(e,i,o,p,he,we){super(e,i,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=i;this.csvConverter=o;this.pageTitle=p;this.roleService=he;this.dialog=we}openExportModal(){this.dialog.open(Z,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(i){return new(i||r)(C(te),C(G),C(ie),C(H),C(z),C(Y))};static \u0275cmp=F({type:r,selectors:[["app-inventory-by-category"]],features:[B],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"]],template:function(i,o){i&1&&v(0,Ie,12,10,"mainpanel-cmp",1),i&2&&c("ngIf",o.data)},dependencies:[R,O,L,oe,ne,A,W,ge,me,J,ue,ce,de,se,$,ee,le,pe,re,ae,q,N,j,k,Q,U,K],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{_e as InventoryByCategoryComponent};
@@ -1 +1 @@
1
- import{a}from"./chunk-YBAZUK5O.js";import{K as o}from"./chunk-DJOHANFC.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
1
+ import{a}from"./chunk-BO5RZFDE.js";import{K as o}from"./chunk-DJOHANFC.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
@@ -1 +1 @@
1
- import{a as ae}from"./chunk-FF3AT4ZZ.js";import{f as Ce}from"./chunk-DL2KKY4K.js";import{a as fe,b as ye}from"./chunk-NHTMJTLV.js";import{a as ne,b as ie,c as oe}from"./chunk-KTA5HCUQ.js";import{c as ge}from"./chunk-WRBL5J73.js";import{b as pe}from"./chunk-PDV6AI5F.js";import{a as se}from"./chunk-NDM2ODJP.js";import{d as _e,e as ue}from"./chunk-V5YHCHGS.js";import{b as de}from"./chunk-YBAZUK5O.js";import{b as ee,c as te}from"./chunk-XOQ4SW2R.js";import{a as le,d as me,e as ce}from"./chunk-3GV7FUAX.js";import{g as re}from"./chunk-6BL2JKZG.js";import{F as Y,c as K,h as J,o as U,q as X}from"./chunk-CB33ZMNF.js";import{d as $}from"./chunk-TKBUOGER.js";import{$a as i,Ac as w,Db as C,Fc as H,Ib as o,Jb as a,Kb as W,Lb as A,Ma as F,Mb as M,Ob as T,Qb as V,Qc as j,Rb as r,Rd as q,Ub as N,Vd as z,Yc as k,Yd as Z,Zc as Q,db as h,ec as c,fc as D,gc as f,gd as G,jc as y,jd as R,kb as O,kc as v,lc as x,na as E,ob as L,qb as g,rc as B,va as s,vb as d,wa as _,zc as S}from"./chunk-DJOHANFC.js";import{a as b,b as P}from"./chunk-7DCB7DB2.js";var xe=n=>({ID:n});function Ie(n,p){if(n&1){let e=T();o(0,"button",18),V("click",function(){s(e);let t=r();return _(t.openExportModal())}),W(1,"i",19),c(2," Export "),a()}}function he(n,p){if(n&1&&(o(0,"span",29),c(1),a()),n&2){let e=p.item;N("matTooltip",e.Value),i(),D(e.Value)}}function De(n,p){if(n&1){let e=T();o(0,"div",20)(1,"div")(2,"h6"),c(3,"Outlet"),a(),o(4,"outlet-selector",21),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.OutletID,t)||(l.pageData.Filter.OutletID=t),_(t)}),a()(),o(5,"div")(6,"h6"),c(7,"Category"),a(),o(8,"POS-product-category-select",22),x("selectedCategoryIDChange",function(t){s(e);let l=r();return v(l.pageData.Filter.ProductCategoryID,t)||(l.pageData.Filter.ProductCategoryID=t),_(t)}),a()(),o(9,"div")(10,"h6"),c(11,"Brand"),a(),o(12,"ng-select",23),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.ProductBrandID,t)||(l.pageData.Filter.ProductBrandID=t),_(t)}),g(13,he,2,2,"ng-template",24),a()(),o(14,"div")(15,"h6"),c(16,"Product Tags"),a(),o(17,"ng-select",25),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.ProductTagID,t)||(l.pageData.Filter.ProductTagID=t),_(t)}),a()(),o(18,"div")(19,"h6"),c(20,"Quantity From - To"),a(),o(21,"div",26)(22,"input",27),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.QtyFrom,t)||(l.pageData.Filter.QtyFrom=t),_(t)}),a(),c(23," - "),o(24,"input",28),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.QtyTo,t)||(l.pageData.Filter.QtyTo=t),_(t)}),a()()()()}if(n&2){let e=r();i(4),d("accessType",2),y("ngModel",e.pageData.Filter.OutletID),i(4),y("selectedCategoryID",e.pageData.Filter.ProductCategoryID),d("showClear",!0),i(4),d("items",e.pageData.Options==null?null:e.pageData.Options.Brands),y("ngModel",e.pageData.Filter.ProductBrandID),i(5),d("items",e.pageData.Options==null?null:e.pageData.Options.Tags),y("ngModel",e.pageData.Filter.ProductTagID),i(5),y("ngModel",e.pageData.Filter.QtyFrom),i(2),y("ngModel",e.pageData.Filter.QtyTo)}}function Se(n,p){if(n&1&&(o(0,"th",10),c(1),a()),n&2){let e=r();i(),f(" ",e.column.VariantName.name," ")}}function we(n,p){if(n&1&&(o(0,"th",11),c(1),a()),n&2){let e=r();i(),f(" ",e.column.VariantCode.name," ")}}function Te(n,p){if(n&1&&(o(0,"th",12),c(1),a()),n&2){let e=r();i(),f(" ",e.column.OnHand.name," ")}}function Ve(n,p){if(n&1&&(o(0,"th",30),c(1),a()),n&2){let e=r();i(),f(" ",e.column.DirectAllocated.name," ")}}function be(n,p){if(n&1&&(o(0,"th",14),c(1),a()),n&2){let e=r();i(),f(" ",e.column.IndirectAllocated.name," ")}}function Pe(n,p){if(n&1&&(o(0,"th",15),c(1),a()),n&2){let e=r();i(),f(" ",e.column.Available.name," ")}}function Ae(n,p){if(n&1&&(o(0,"td")(1,"a",31),c(2),a()()),n&2){let e=r().$implicit;i(),d("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",B(3,xe,e.VariantID)),i(),f(" ",e.VariantName," ")}}function Me(n,p){if(n&1&&(o(0,"td"),c(1),a()),n&2){let e=r().$implicit;i(),D(e.VariantCode)}}function Ee(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.OnHand))}}function Fe(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),f(" ",w(2,1,e.DirectAllocated)," ")}}function Oe(n,p){if(n&1&&g(0,Fe,3,3,"td",17),n&2){let e=r(2);d("ngIf",e.column.DirectAllocated&&e.column.DirectAllocated.selected)}}function Le(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),f(" ",w(2,1,e.DirectAllocated)," ")}}function We(n,p){if(n&1&&g(0,Le,3,3,"td",17),n&2){let e=r(2);d("ngIf",e.column.DirectAllocated&&e.column.DirectAllocated.selected)}}function Ne(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.IndirectAllocated))}}function Be(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.Available))}}function He(n,p){if(n&1&&(o(0,"tr"),g(1,Ae,3,5,"td")(2,Me,2,1,"td")(3,Ee,3,3,"td")(4,Oe,1,1,"td")(5,We,1,1,"td")(6,Ne,3,3,"td")(7,Be,3,3,"td"),a()),n&2){let e=r();i(),C(e.column.VariantName&&e.column.VariantName.selected?1:-1),i(),C(e.column.VariantCode&&e.column.VariantCode.selected?2:-1),i(),C(e.column.OnHand&&e.column.OnHand.selected?3:-1),i(),C(e.totalIndirect()>0?4:5),i(2),C(e.column.IndirectAllocated&&e.column.IndirectAllocated.selected&&e.totalIndirect()>0?6:-1),i(),C(e.column.Available&&e.column.Available.selected?7:-1)}}function je(n,p){if(n&1){let e=T();o(0,"div")(1,"POS-complex-pagination",32),V("jumpToPage",function(){s(e);let t=r();return _(t.getListData())})("previousPage",function(){s(e);let t=r();return _(t.getListData())})("nextPage",function(){s(e);let t=r();return _(t.getListData())}),a()()}if(n&2){let e=r();i(),d("total",e.data.Data.length)("pageData",e.pageData)}}var ve=class n extends ae{constructor(e,m,t,l,I){super(e,m,"inventory/GetListInventoryComposite","inventoryloader/GetListInventoryComposite",t,void 0,!1);this.httpService=m;this.csvConverter=l;this.roleService=I;j(()=>{let u=this.totalIndirect();u!==null&&u<=0&&(console.log("Indirect allocation is zero or negative"),this.column=P(b({},this.column),{DirectAllocated:P(b({},this.column.DirectAllocated),{name:"Allocated"}),IndirectAllocated:P(b({},this.column.IndirectAllocated),{show:!1})}))})}column={VariantName:{selected:!0,name:"Name",show:!0},VariantCode:{selected:!0,name:"Code",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=F(null);dialog=E(re);afterPostInit(e){console.log("Composite Inventory Data",e);let m=e.Data.reduce((t,l)=>t+l.IndirectAllocated,0);console.log("Total Indirect Allocated:",m),this.totalIndirect.set(m)}sortData(e){let m=[...this.data.Data];if(!e.active||e.direction===""){this.infiniteList=m;return}this.infiniteList=m.sort((t,l)=>{let I=e.direction==="asc";return this.compare(t[e.active],l[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}})}static \u0275fac=function(m){return new(m||n)(h(de),h(Z),h(z),h(se),h($))};static \u0275cmp=O({type:n,selectors:[["pos-composite-inventory"]],features:[L],decls:21,vars:14,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"]],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["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","20%"],["mat-sort-header","VariantCode",2,"width","20%"],["mat-sort-header","OnHand",2,"width","10%"],["style","width: 10%","mat-sort-header","DirectAllocated",4,"ngIf"],["mat-sort-header","IndirectAllocated",2,"width","10%"],["mat-sort-header","Available",2,"width","10%"],[4,"ngFor","ngForOf"],[4,"ngIf"],[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"],["bindLabel","Value","bindValue","Key","placeholder","Choose Brand",3,"ngModelChange","items","ngModel"],["ng-option-tmp",""],["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"],["matTooltipPosition","above",3,"matTooltip"],["mat-sort-header","DirectAllocated",2,"width","10%"],[3,"routerLink","queryParams"],["api","inventory/GetCountInventoryComposite",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(m,t){if(m&1){let l=T();o(0,"mainpanel-cmp",1),x("textChange",function(u){return s(l),v(t.pageData.Filter.SearchText,u)||(t.pageData.Filter.SearchText=u),_(u)}),V("onSubmit",function(){return s(l),_(t.searchFromPageOne())}),x("filterChange",function(u){return s(l),v(t.pageData.Filter,u)||(t.pageData.Filter=u),_(u)}),A(1,2),g(2,Ie,3,0,"button",3),M(),A(3,4),g(4,De,25,10,"ng-template",null,0,H),M(),A(6,5),o(7,"div",6)(8,"div",7)(9,"table",8),V("matSortChange",function(u){return s(l),_(t.sortData(u))}),o(10,"thead",9)(11,"tr"),g(12,Se,2,1,"th",10)(13,we,2,1,"th",11)(14,Te,2,1,"th",12)(15,Ve,2,1,"th",13)(16,be,2,1,"th",14)(17,Pe,2,1,"th",15),a()(),o(18,"tbody"),g(19,He,8,6,"tr",16),a()()(),g(20,je,2,2,"div",17),a(),M(),a()}m&2&&(d("pageData",t.menuData),y("text",t.pageData.Filter.SearchText),d("isFilterOnDropdown",!1),y("filter",t.pageData.Filter),d("column",t.column),i(2),d("ngIf",t.roleService.global.Export),i(10),C(t.column.VariantName&&t.column.VariantName.selected?12:-1),i(),C(t.column.VariantCode&&t.column.VariantCode.selected?13:-1),i(),C(t.column.OnHand&&t.column.OnHand.selected?14:-1),i(),d("ngIf",t.column.DirectAllocated&&t.column.DirectAllocated.selected),i(),C(t.column.IndirectAllocated&&t.column.IndirectAllocated.selected&&t.totalIndirect()>0?16:-1),i(),C(t.column.Available&&t.column.Available.selected?17:-1),i(2),d("ngForOf",t.infiniteList),i(),d("ngIf",t.data))},dependencies:[ue,_e,ge,Ce,Y,K,X,J,U,ce,me,le,te,ee,ye,fe,R,k,Q,G,q,oe,ne,ie],styles:["[_nghost-%COMP%]{display:block}"]})};export{ve as a};
1
+ import{a as ae}from"./chunk-DLVA7JPN.js";import{f as Ce}from"./chunk-ELMKQ62C.js";import{a as fe,b as ye}from"./chunk-NHTMJTLV.js";import{a as ne,b as ie,c as oe}from"./chunk-KTA5HCUQ.js";import{c as ge}from"./chunk-IP6QBHGH.js";import{b as pe}from"./chunk-PDV6AI5F.js";import{a as se}from"./chunk-NDM2ODJP.js";import{d as _e,e as ue}from"./chunk-FDV5CP2Q.js";import{b as de}from"./chunk-BO5RZFDE.js";import{b as ee,c as te}from"./chunk-XOQ4SW2R.js";import{a as le,d as me,e as ce}from"./chunk-3GV7FUAX.js";import{g as re}from"./chunk-6BL2JKZG.js";import{F as Y,c as K,h as J,o as U,q as X}from"./chunk-CB33ZMNF.js";import{d as $}from"./chunk-TKBUOGER.js";import{$a as i,Ac as w,Db as C,Fc as H,Ib as o,Jb as a,Kb as W,Lb as A,Ma as F,Mb as M,Ob as T,Qb as V,Qc as j,Rb as r,Rd as q,Ub as N,Vd as z,Yc as k,Yd as Z,Zc as Q,db as h,ec as c,fc as D,gc as f,gd as G,jc as y,jd as R,kb as O,kc as v,lc as x,na as E,ob as L,qb as g,rc as B,va as s,vb as d,wa as _,zc as S}from"./chunk-DJOHANFC.js";import{a as b,b as P}from"./chunk-7DCB7DB2.js";var xe=n=>({ID:n});function Ie(n,p){if(n&1){let e=T();o(0,"button",18),V("click",function(){s(e);let t=r();return _(t.openExportModal())}),W(1,"i",19),c(2," Export "),a()}}function he(n,p){if(n&1&&(o(0,"span",29),c(1),a()),n&2){let e=p.item;N("matTooltip",e.Value),i(),D(e.Value)}}function De(n,p){if(n&1){let e=T();o(0,"div",20)(1,"div")(2,"h6"),c(3,"Outlet"),a(),o(4,"outlet-selector",21),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.OutletID,t)||(l.pageData.Filter.OutletID=t),_(t)}),a()(),o(5,"div")(6,"h6"),c(7,"Category"),a(),o(8,"POS-product-category-select",22),x("selectedCategoryIDChange",function(t){s(e);let l=r();return v(l.pageData.Filter.ProductCategoryID,t)||(l.pageData.Filter.ProductCategoryID=t),_(t)}),a()(),o(9,"div")(10,"h6"),c(11,"Brand"),a(),o(12,"ng-select",23),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.ProductBrandID,t)||(l.pageData.Filter.ProductBrandID=t),_(t)}),g(13,he,2,2,"ng-template",24),a()(),o(14,"div")(15,"h6"),c(16,"Product Tags"),a(),o(17,"ng-select",25),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.ProductTagID,t)||(l.pageData.Filter.ProductTagID=t),_(t)}),a()(),o(18,"div")(19,"h6"),c(20,"Quantity From - To"),a(),o(21,"div",26)(22,"input",27),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.QtyFrom,t)||(l.pageData.Filter.QtyFrom=t),_(t)}),a(),c(23," - "),o(24,"input",28),x("ngModelChange",function(t){s(e);let l=r();return v(l.pageData.Filter.QtyTo,t)||(l.pageData.Filter.QtyTo=t),_(t)}),a()()()()}if(n&2){let e=r();i(4),d("accessType",2),y("ngModel",e.pageData.Filter.OutletID),i(4),y("selectedCategoryID",e.pageData.Filter.ProductCategoryID),d("showClear",!0),i(4),d("items",e.pageData.Options==null?null:e.pageData.Options.Brands),y("ngModel",e.pageData.Filter.ProductBrandID),i(5),d("items",e.pageData.Options==null?null:e.pageData.Options.Tags),y("ngModel",e.pageData.Filter.ProductTagID),i(5),y("ngModel",e.pageData.Filter.QtyFrom),i(2),y("ngModel",e.pageData.Filter.QtyTo)}}function Se(n,p){if(n&1&&(o(0,"th",10),c(1),a()),n&2){let e=r();i(),f(" ",e.column.VariantName.name," ")}}function we(n,p){if(n&1&&(o(0,"th",11),c(1),a()),n&2){let e=r();i(),f(" ",e.column.VariantCode.name," ")}}function Te(n,p){if(n&1&&(o(0,"th",12),c(1),a()),n&2){let e=r();i(),f(" ",e.column.OnHand.name," ")}}function Ve(n,p){if(n&1&&(o(0,"th",30),c(1),a()),n&2){let e=r();i(),f(" ",e.column.DirectAllocated.name," ")}}function be(n,p){if(n&1&&(o(0,"th",14),c(1),a()),n&2){let e=r();i(),f(" ",e.column.IndirectAllocated.name," ")}}function Pe(n,p){if(n&1&&(o(0,"th",15),c(1),a()),n&2){let e=r();i(),f(" ",e.column.Available.name," ")}}function Ae(n,p){if(n&1&&(o(0,"td")(1,"a",31),c(2),a()()),n&2){let e=r().$implicit;i(),d("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",B(3,xe,e.VariantID)),i(),f(" ",e.VariantName," ")}}function Me(n,p){if(n&1&&(o(0,"td"),c(1),a()),n&2){let e=r().$implicit;i(),D(e.VariantCode)}}function Ee(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.OnHand))}}function Fe(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),f(" ",w(2,1,e.DirectAllocated)," ")}}function Oe(n,p){if(n&1&&g(0,Fe,3,3,"td",17),n&2){let e=r(2);d("ngIf",e.column.DirectAllocated&&e.column.DirectAllocated.selected)}}function Le(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),f(" ",w(2,1,e.DirectAllocated)," ")}}function We(n,p){if(n&1&&g(0,Le,3,3,"td",17),n&2){let e=r(2);d("ngIf",e.column.DirectAllocated&&e.column.DirectAllocated.selected)}}function Ne(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.IndirectAllocated))}}function Be(n,p){if(n&1&&(o(0,"td"),c(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.Available))}}function He(n,p){if(n&1&&(o(0,"tr"),g(1,Ae,3,5,"td")(2,Me,2,1,"td")(3,Ee,3,3,"td")(4,Oe,1,1,"td")(5,We,1,1,"td")(6,Ne,3,3,"td")(7,Be,3,3,"td"),a()),n&2){let e=r();i(),C(e.column.VariantName&&e.column.VariantName.selected?1:-1),i(),C(e.column.VariantCode&&e.column.VariantCode.selected?2:-1),i(),C(e.column.OnHand&&e.column.OnHand.selected?3:-1),i(),C(e.totalIndirect()>0?4:5),i(2),C(e.column.IndirectAllocated&&e.column.IndirectAllocated.selected&&e.totalIndirect()>0?6:-1),i(),C(e.column.Available&&e.column.Available.selected?7:-1)}}function je(n,p){if(n&1){let e=T();o(0,"div")(1,"POS-complex-pagination",32),V("jumpToPage",function(){s(e);let t=r();return _(t.getListData())})("previousPage",function(){s(e);let t=r();return _(t.getListData())})("nextPage",function(){s(e);let t=r();return _(t.getListData())}),a()()}if(n&2){let e=r();i(),d("total",e.data.Data.length)("pageData",e.pageData)}}var ve=class n extends ae{constructor(e,m,t,l,I){super(e,m,"inventory/GetListInventoryComposite","inventoryloader/GetListInventoryComposite",t,void 0,!1);this.httpService=m;this.csvConverter=l;this.roleService=I;j(()=>{let u=this.totalIndirect();u!==null&&u<=0&&(console.log("Indirect allocation is zero or negative"),this.column=P(b({},this.column),{DirectAllocated:P(b({},this.column.DirectAllocated),{name:"Allocated"}),IndirectAllocated:P(b({},this.column.IndirectAllocated),{show:!1})}))})}column={VariantName:{selected:!0,name:"Name",show:!0},VariantCode:{selected:!0,name:"Code",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=F(null);dialog=E(re);afterPostInit(e){console.log("Composite Inventory Data",e);let m=e.Data.reduce((t,l)=>t+l.IndirectAllocated,0);console.log("Total Indirect Allocated:",m),this.totalIndirect.set(m)}sortData(e){let m=[...this.data.Data];if(!e.active||e.direction===""){this.infiniteList=m;return}this.infiniteList=m.sort((t,l)=>{let I=e.direction==="asc";return this.compare(t[e.active],l[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}})}static \u0275fac=function(m){return new(m||n)(h(de),h(Z),h(z),h(se),h($))};static \u0275cmp=O({type:n,selectors:[["pos-composite-inventory"]],features:[L],decls:21,vars:14,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"]],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["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","20%"],["mat-sort-header","VariantCode",2,"width","20%"],["mat-sort-header","OnHand",2,"width","10%"],["style","width: 10%","mat-sort-header","DirectAllocated",4,"ngIf"],["mat-sort-header","IndirectAllocated",2,"width","10%"],["mat-sort-header","Available",2,"width","10%"],[4,"ngFor","ngForOf"],[4,"ngIf"],[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"],["bindLabel","Value","bindValue","Key","placeholder","Choose Brand",3,"ngModelChange","items","ngModel"],["ng-option-tmp",""],["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"],["matTooltipPosition","above",3,"matTooltip"],["mat-sort-header","DirectAllocated",2,"width","10%"],[3,"routerLink","queryParams"],["api","inventory/GetCountInventoryComposite",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(m,t){if(m&1){let l=T();o(0,"mainpanel-cmp",1),x("textChange",function(u){return s(l),v(t.pageData.Filter.SearchText,u)||(t.pageData.Filter.SearchText=u),_(u)}),V("onSubmit",function(){return s(l),_(t.searchFromPageOne())}),x("filterChange",function(u){return s(l),v(t.pageData.Filter,u)||(t.pageData.Filter=u),_(u)}),A(1,2),g(2,Ie,3,0,"button",3),M(),A(3,4),g(4,De,25,10,"ng-template",null,0,H),M(),A(6,5),o(7,"div",6)(8,"div",7)(9,"table",8),V("matSortChange",function(u){return s(l),_(t.sortData(u))}),o(10,"thead",9)(11,"tr"),g(12,Se,2,1,"th",10)(13,we,2,1,"th",11)(14,Te,2,1,"th",12)(15,Ve,2,1,"th",13)(16,be,2,1,"th",14)(17,Pe,2,1,"th",15),a()(),o(18,"tbody"),g(19,He,8,6,"tr",16),a()()(),g(20,je,2,2,"div",17),a(),M(),a()}m&2&&(d("pageData",t.menuData),y("text",t.pageData.Filter.SearchText),d("isFilterOnDropdown",!1),y("filter",t.pageData.Filter),d("column",t.column),i(2),d("ngIf",t.roleService.global.Export),i(10),C(t.column.VariantName&&t.column.VariantName.selected?12:-1),i(),C(t.column.VariantCode&&t.column.VariantCode.selected?13:-1),i(),C(t.column.OnHand&&t.column.OnHand.selected?14:-1),i(),d("ngIf",t.column.DirectAllocated&&t.column.DirectAllocated.selected),i(),C(t.column.IndirectAllocated&&t.column.IndirectAllocated.selected&&t.totalIndirect()>0?16:-1),i(),C(t.column.Available&&t.column.Available.selected?17:-1),i(2),d("ngForOf",t.infiniteList),i(),d("ngIf",t.data))},dependencies:[ue,_e,ge,Ce,Y,K,X,J,U,ce,me,le,te,ee,ye,fe,R,k,Q,G,q,oe,ne,ie],styles:["[_nghost-%COMP%]{display:block}"]})};export{ve as a};
@@ -1 +1 @@
1
- import{b as c}from"./chunk-GFRO6FJS.js";import{ja as r,na as s}from"./chunk-DJOHANFC.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
1
+ import{b as c}from"./chunk-ZOS6KCAU.js";import{ja as r,na as s}from"./chunk-DJOHANFC.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};