dealpos 25.51.0 → 25.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/browser/{chunk-OURNAI65.js → chunk-243EB36Y.js} +2 -2
  2. package/browser/{chunk-5HIJCKLY.js → chunk-3K2A4Z67.js} +1 -1
  3. package/browser/{chunk-43G72GH2.js → chunk-4OP4E5Q4.js} +1 -1
  4. package/browser/{chunk-V6NXOOJA.js → chunk-4PDGY62B.js} +1 -1
  5. package/browser/{chunk-WR54IKY6.js → chunk-54SK3PVO.js} +1 -1
  6. package/browser/{chunk-VQKO557Q.js → chunk-55Z32OLJ.js} +1 -1
  7. package/browser/{chunk-SVUFU2AS.js → chunk-5XTMPVSF.js} +1 -1
  8. package/browser/{chunk-67UFIJ2O.js → chunk-6OULAYGH.js} +1 -1
  9. package/browser/{chunk-HIA4J5DB.js → chunk-6VYP636I.js} +1 -1
  10. package/browser/{chunk-PV27CMZ2.js → chunk-7264OPXA.js} +1 -1
  11. package/browser/{chunk-XWV7AI2C.js → chunk-7OQXKVTC.js} +1 -1
  12. package/browser/{chunk-6UY42XOC.js → chunk-AB7O2ERM.js} +1 -1
  13. package/browser/{chunk-T5IJP474.js → chunk-ABOSNV75.js} +1 -1
  14. package/browser/{chunk-HHCNN3XR.js → chunk-BCGNQKO5.js} +1 -1
  15. package/browser/{chunk-RU3GD3GY.js → chunk-BRQVQGLJ.js} +1 -1
  16. package/browser/{chunk-2EHLYOAD.js → chunk-BWVEZ3MZ.js} +1 -1
  17. package/browser/{chunk-RHDU4PR2.js → chunk-CAGFIP4G.js} +1 -1
  18. package/browser/{chunk-4MWVPOV6.js → chunk-CJ4ET4PG.js} +1 -1
  19. package/browser/{chunk-CRKJEU3Z.js → chunk-CR5CHTI7.js} +1 -1
  20. package/browser/{chunk-4CYACZL5.js → chunk-DAH4EEQV.js} +1 -1
  21. package/browser/{chunk-SCHTN7VQ.js → chunk-DBRZ7F2Z.js} +1 -1
  22. package/browser/{chunk-VA6MHJ5E.js → chunk-DNY4JYTC.js} +1 -1
  23. package/browser/{chunk-IM3B5EF2.js → chunk-E5TUY2II.js} +1 -1
  24. package/browser/chunk-EFDMYOLZ.js +4 -0
  25. package/browser/{chunk-NRTKHF45.js → chunk-EMHEIQNS.js} +1 -1
  26. package/browser/{chunk-QS2AUXB7.js → chunk-FEHMPX43.js} +1 -1
  27. package/browser/{chunk-WQMYMJLR.js → chunk-FVFTYYCC.js} +1 -1
  28. package/browser/{chunk-BVOUQJCA.js → chunk-GE5I6JYL.js} +1 -1
  29. package/browser/{chunk-ZNPC63ZV.js → chunk-GZ6OVEDL.js} +1 -1
  30. package/browser/{chunk-NQQB5U5S.js → chunk-H6RHVRGW.js} +1 -1
  31. package/browser/{chunk-6LZENMYE.js → chunk-HLCZLXPS.js} +1 -1
  32. package/browser/{chunk-N6EBK52R.js → chunk-IF6EZMOM.js} +2 -2
  33. package/browser/{chunk-OTLU2WY3.js → chunk-ISZRZRCT.js} +2 -2
  34. package/browser/{chunk-I7AQHKKG.js → chunk-JHBK7LOJ.js} +1 -1
  35. package/browser/{chunk-PQSGJR4P.js → chunk-KDISSQKT.js} +1 -1
  36. package/browser/{chunk-5ZPO7V26.js → chunk-KFC3V2GW.js} +1 -1
  37. package/browser/{chunk-KEILLJ6G.js → chunk-KHB5Q7IN.js} +1 -1
  38. package/browser/{chunk-P5XKSQ34.js → chunk-KIYO2YC2.js} +1 -1
  39. package/browser/{chunk-HVFYCXLX.js → chunk-KKM7I2BT.js} +1 -1
  40. package/browser/{chunk-DX56EYRS.js → chunk-LHTHIOAY.js} +1 -1
  41. package/browser/{chunk-A5LIALQE.js → chunk-M4FNFZNJ.js} +1 -1
  42. package/browser/{chunk-TOJPS7BJ.js → chunk-MEL6Z4NI.js} +1 -1
  43. package/browser/{chunk-XVTXHAKW.js → chunk-MHPLYS7O.js} +1 -1
  44. package/browser/{chunk-ZO3XZXWW.js → chunk-MJCLLJBB.js} +1 -1
  45. package/browser/{chunk-2GIDUMXS.js → chunk-MZDVGN2B.js} +1 -1
  46. package/browser/{chunk-SUCJCOST.js → chunk-NYMHQHNP.js} +1 -1
  47. package/browser/{chunk-6AHKVKAZ.js → chunk-O7SYLGUB.js} +2 -2
  48. package/browser/{chunk-OZ2R2K2V.js → chunk-OF3BZHBQ.js} +1 -1
  49. package/browser/{chunk-H2RXYP7A.js → chunk-OFWJY5WB.js} +1 -1
  50. package/browser/{chunk-3HDEMBWS.js → chunk-ORTAUDOX.js} +1 -1
  51. package/browser/{chunk-4OTZNFYS.js → chunk-PSLGWGNP.js} +1 -1
  52. package/browser/{chunk-MUWJSYXR.js → chunk-Q22HR52N.js} +1 -1
  53. package/browser/{chunk-ZNJ4JTTS.js → chunk-QEL7CGCP.js} +1 -1
  54. package/browser/{chunk-57WKDIDF.js → chunk-QHGZQ2IG.js} +1 -1
  55. package/browser/{chunk-6F45DEGR.js → chunk-R6DRKF4V.js} +8 -8
  56. package/browser/{chunk-HHM4L75O.js → chunk-RDASAJA5.js} +1 -1
  57. package/browser/{chunk-HSLDD424.js → chunk-RPBIQ4ME.js} +1 -1
  58. package/browser/{chunk-DJUOMCAV.js → chunk-RT7OZJYZ.js} +1 -1
  59. package/browser/{chunk-3PKJLXTC.js → chunk-RWW55Z7V.js} +1 -1
  60. package/browser/{chunk-V36Z6WRV.js → chunk-RWZGTR3S.js} +1 -1
  61. package/browser/{chunk-YXRJV3RQ.js → chunk-SQAFHZEO.js} +1 -1
  62. package/browser/{chunk-RF5FWMSR.js → chunk-T43ISYOP.js} +1 -1
  63. package/browser/{chunk-6O6OE4KQ.js → chunk-TKHSLAZH.js} +13 -13
  64. package/browser/{chunk-OAVGNXY4.js → chunk-TYVVSM36.js} +1 -1
  65. package/browser/{chunk-D7YMUC3H.js → chunk-U6FO6TSU.js} +1 -1
  66. package/browser/{chunk-XPN6EISF.js → chunk-UFVN6MTY.js} +1 -1
  67. package/browser/{chunk-VOY3BJZP.js → chunk-UI6U53UY.js} +1 -1
  68. package/browser/{chunk-B6TCVVAN.js → chunk-UPV6ZIB5.js} +1 -1
  69. package/browser/{chunk-6GCAXVFO.js → chunk-VG3B7TDX.js} +1 -1
  70. package/browser/{chunk-OR4H5IKL.js → chunk-VS6CGXUJ.js} +1 -1
  71. package/browser/{chunk-T6GXIGYG.js → chunk-WDUPZI6X.js} +1 -1
  72. package/browser/{chunk-TCW7SVU5.js → chunk-WTIIZBRC.js} +1 -1
  73. package/browser/{chunk-HQGZC4Y3.js → chunk-XCSDEGWL.js} +1 -1
  74. package/browser/{chunk-WFTIOB7Q.js → chunk-XDFUPYND.js} +1 -1
  75. package/browser/{chunk-3XDE3GJ3.js → chunk-XFU3EMCG.js} +1 -1
  76. package/browser/{chunk-7JBFR3T4.js → chunk-XGXXFTMA.js} +1 -1
  77. package/browser/{chunk-DCONKX6G.js → chunk-XMPWQ5UV.js} +1 -1
  78. package/browser/{chunk-ECW7GAZQ.js → chunk-XPM7J5AN.js} +1 -1
  79. package/browser/{chunk-HZP6OUOI.js → chunk-XW7VJLDW.js} +1 -1
  80. package/browser/{chunk-MTUBVUM5.js → chunk-Y6SAXN2J.js} +1 -1
  81. package/browser/{chunk-A2EDYIYP.js → chunk-YLXBICIW.js} +1 -1
  82. package/browser/{chunk-IHIJW73V.js → chunk-Z5HEFUTD.js} +1 -1
  83. package/browser/{chunk-YC2LQSY3.js → chunk-ZRJU5XBX.js} +1 -1
  84. package/browser/index.html +2 -2
  85. package/browser/{main-PHIUFC5R.js → main-6NLSRECT.js} +2 -2
  86. package/package.json +1 -1
  87. package/browser/chunk-QERITLZK.js +0 -4
@@ -1,4 +1,4 @@
1
- import{b as Et}from"./chunk-IDJEXQ5I.js";import{e as Rt}from"./chunk-EZNBK62W.js";import{a as Ke,b as Qe,c as Ge,d as $e,e as je}from"./chunk-3Q5WV3VF.js";import{a as kt,b as Mt,c as Dt}from"./chunk-HIA4J5DB.js";import{a as St,b as It}from"./chunk-CVN6ZXXJ.js";import{e as xt}from"./chunk-ZO3XZXWW.js";import{e as Tt,f as We}from"./chunk-OB6KFXD6.js";import{b as qe}from"./chunk-GXAF3JUO.js";import{a as Ct}from"./chunk-YDL2MTWE.js";import{d as wt}from"./chunk-3PKJLXTC.js";import{a as Z,b as _,c as vt}from"./chunk-E634BI4W.js";import{a as _t,e as yt}from"./chunk-4HLKKTIV.js";import{b as ae,c as re,d as ge,e as m,j as Ce,k as M,l as se}from"./chunk-RIZ4YVMH.js";import{W as Fe,X as Ie,ia as mt,ja as Ne,ka as ft,la as gt,oa as oe,pa as Q,xa as le}from"./chunk-Z76C52NM.js";import{F as De,a as ve,g as ut,h as ht,o as bt}from"./chunk-7MRUPBXU.js";import{$b as h,$c as st,Ab as he,Ac as J,Bc as me,Cb as be,Dc as Ae,Ec as ke,Fb as it,Fc as xe,Gb as nt,Gc as lt,Hb as r,Ia as S,Ib as R,Jb as E,Kb as z,Lb as A,Mb as N,Nb as O,Nc as Se,Ob as D,Pb as F,Qb as y,Qc as rt,Rb as te,Sb as W,Ub as K,Vc as X,Wb as c,Xa as s,Ya as v,Za as Ve,Zb as f,_b as G,ac as b,bd as g,cd as V,d as ye,eb as pe,ec as Pe,fc as Ee,gc as at,hc as Te,ib as k,ic as T,id as dt,jb as ue,jc as He,ka as we,kb as Re,kc as ot,kd as ct,la as $,ld as Me,ma as ce,mb as I,na as Y,nb as ee,ob as p,od as pt,pa as x,pd as ie,ta as j,ua as q,va as L,wb as B,xa as tt,xd as ne,yc as U,yd as fe}from"./chunk-L3U6V3BF.js";import{a as Oe,b as et}from"./chunk-SNAKHGZS.js";var Ft=`
1
+ import{b as Et}from"./chunk-IDJEXQ5I.js";import{e as Rt}from"./chunk-EZNBK62W.js";import{a as Ke,b as Qe,c as Ge,d as $e,e as je}from"./chunk-3Q5WV3VF.js";import{a as kt,b as Mt,c as Dt}from"./chunk-6VYP636I.js";import{a as St,b as It}from"./chunk-CVN6ZXXJ.js";import{e as xt}from"./chunk-MJCLLJBB.js";import{e as Tt,f as We}from"./chunk-OB6KFXD6.js";import{b as qe}from"./chunk-GXAF3JUO.js";import{a as Ct}from"./chunk-YDL2MTWE.js";import{d as wt}from"./chunk-RWW55Z7V.js";import{a as Z,b as _,c as vt}from"./chunk-E634BI4W.js";import{a as _t,e as yt}from"./chunk-4HLKKTIV.js";import{b as ae,c as re,d as ge,e as m,j as Ce,k as M,l as se}from"./chunk-RIZ4YVMH.js";import{W as Fe,X as Ie,ia as mt,ja as Ne,ka as ft,la as gt,oa as oe,pa as Q,xa as le}from"./chunk-Z76C52NM.js";import{F as De,a as ve,g as ut,h as ht,o as bt}from"./chunk-7MRUPBXU.js";import{$b as h,$c as st,Ab as he,Ac as J,Bc as me,Cb as be,Dc as Ae,Ec as ke,Fb as it,Fc as xe,Gb as nt,Gc as lt,Hb as r,Ia as S,Ib as R,Jb as E,Kb as z,Lb as A,Mb as N,Nb as O,Nc as Se,Ob as D,Pb as F,Qb as y,Qc as rt,Rb as te,Sb as W,Ub as K,Vc as X,Wb as c,Xa as s,Ya as v,Za as Ve,Zb as f,_b as G,ac as b,bd as g,cd as V,d as ye,eb as pe,ec as Pe,fc as Ee,gc as at,hc as Te,ib as k,ic as T,id as dt,jb as ue,jc as He,ka as we,kb as Re,kc as ot,kd as ct,la as $,ld as Me,ma as ce,mb as I,na as Y,nb as ee,ob as p,od as pt,pa as x,pd as ie,ta as j,ua as q,va as L,wb as B,xa as tt,xd as ne,yc as U,yd as fe}from"./chunk-L3U6V3BF.js";import{a as Oe,b as et}from"./chunk-SNAKHGZS.js";var Ft=`
2
2
  .p-datatable {
3
3
  position: relative;
4
4
  display: block;
@@ -1 +1 @@
1
- import{a as Ce}from"./chunk-E4AXPU4U.js";import{a as ge}from"./chunk-IZF7S2RF.js";import"./chunk-3XH2STFE.js";import"./chunk-BYXBJQAS.js";import{a as te}from"./chunk-75FYOZH7.js";import{d as ue,e as _e}from"./chunk-AHTR7XKG.js";import"./chunk-NS6IC2PT.js";import"./chunk-3RK6DDJD.js";import"./chunk-SMEVWRVE.js";import"./chunk-JQDS4BXR.js";import"./chunk-F3HDP5CA.js";import"./chunk-AJAUI7BA.js";import"./chunk-MWGICBEB.js";import{d as pe,e as me}from"./chunk-ODYEJFNJ.js";import"./chunk-WSWTWRKJ.js";import{a as se,b as ce}from"./chunk-XWYCNPUZ.js";import{c as de}from"./chunk-6UY42XOC.js";import{b as ee}from"./chunk-YQ5PAXUW.js";import{a as Z}from"./chunk-HQGZC4Y3.js";import"./chunk-VQKO557Q.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{e as ae,f as le}from"./chunk-2GIDUMXS.js";import"./chunk-ZO3XZXWW.js";import"./chunk-OB6KFXD6.js";import"./chunk-QJ3CWKQT.js";import"./chunk-SWF6XISV.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-TP6ZUC53.js";import"./chunk-3PKJLXTC.js";import{b as ie}from"./chunk-ECW7GAZQ.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import{F as oe,G as re}from"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import{O as ne}from"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import"./chunk-SCGKVOSE.js";import{g as $}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import{F as Q,c as z,h as K,o as J}from"./chunk-7MRUPBXU.js";import"./chunk-T5IJP474.js";import"./chunk-DJUOMCAV.js";import"./chunk-5RYL4EJ2.js";import{b as Y}from"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-NQQB5U5S.js";import{s as X}from"./chunk-TANYEHMZ.js";import{Ab as _,Ac as v,Ca as H,Cb as g,Db as b,Fb as O,Gb as L,Hb as u,Hc as f,Ib as t,Ic as I,Jb as i,Jc as w,Kb as N,Nc as U,Rb as P,Sd as q,Ub as h,Ud as G,Wb as d,Xa as a,eb as M,ib as T,ic as k,jc as l,kc as S,lc as D,ld as B,mb as V,ob as E,oc as C,pa as F,pc as x,qc as y,sd as R,ta as s,ua as c,ud as A,xd as j,zc as W}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var xe=o=>({ID:o}),fe=()=>["/menu/Contacts/Contact/Customers/Info"],Pe=o=>({"text-danger":o});function Se(o,m){if(o&1){let e=P();t(0,"button",15),h("click",function(){s(e);let n=d();return c(n.openExportModal())}),N(1,"i",16),l(2," Export "),i()}}function De(o,m){if(o&1){let e=P();t(0,"h6"),l(1,"User"),i(),t(2,"autocompleteV2",27),y("ngModelChange",function(n){s(e);let p=d(2);return x(p.pageData.Filter.UserID,n)||(p.pageData.Filter.UserID=n),c(n)}),i()}if(o&2){let e=d(2);a(2),C("ngModel",e.pageData.Filter.UserID)}}function he(o,m){if(o&1){let e=P();t(0,"div",17)(1,"h6"),l(2,"Outlets"),i(),t(3,"outlet-selector",18),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.ListOutletID,n)||(p.pageData.Filter.ListOutletID=n),c(n)}),i(),t(4,"h6"),l(5,"Customer"),i(),t(6,"autocompleteV2",19),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.CustomerID,n)||(p.pageData.Filter.CustomerID=n),c(n)}),i(),t(7,"h6"),l(8,"From - To"),i(),t(9,"div",20)(10,"div",21)(11,"datepicker",22),y("dateChange",function(n){s(e);let p=d();return x(p.pageData.Filter.From,n)||(p.pageData.Filter.From=n),c(n)}),i()(),t(12,"div",23)(13,"datepicker",24),y("dateChange",function(n){s(e);let p=d();return x(p.pageData.Filter.To,n)||(p.pageData.Filter.To=n),c(n)}),i()()(),t(14,"h6"),l(15,"Printed"),i(),t(16,"radio-options",25),y("modelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.Printed,n)||(p.pageData.Filter.Printed=n),c(n)}),i(),_(17,De,3,1),t(18,"h6"),l(19,"Page Size"),i(),t(20,"div")(21,"input",26),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.RowCount,n)||(p.pageData.Filter.RowCount=n),c(n)}),i()()()}if(o&2){let e=d();a(3),C("ngModel",e.pageData.Filter.ListOutletID),u("multiple",!0),a(3),C("ngModel",e.pageData.Filter.CustomerID),a(5),u("isFloatingLabel",!1),C("date",e.pageData.Filter.From),a(2),u("isFloatingLabel",!1),C("date",e.pageData.Filter.To),a(3),C("model",e.pageData.Filter.Printed),u("options",e.pageData.Options.PrintedOptions),a(),g(e.pageData.Filter.Printed!==0?17:-1),a(4),C("ngModel",e.pageData.Filter.RowCount)}}function we(o,m){o&1&&(t(0,"th",10),l(1,"Print By"),i())}function ve(o,m){o&1&&(t(0,"th",8),l(1,"Print Date"),i())}function Fe(o,m){o&1&&(t(0,"th",11),l(1,"Time"),i())}function Me(o,m){if(o&1&&(t(0,"td"),l(1),i()),o&2){let e=d().$implicit;a(),S(e.CreatorName)}}function Ee(o,m){if(o&1&&(t(0,"td"),l(1),f(2,"date"),i()),o&2){let e=d().$implicit;a(),D(" ",e.Created==="0001-01-01T00:00:00"?"":w(2,1,e.Created,"dd MMM yyyy")," ")}}function Ie(o,m){if(o&1&&(t(0,"td"),l(1),f(2,"date"),i()),o&2){let e=d().$implicit;a(),D(" ",e.Created==="0001-01-01T00:00:00"?"":w(2,1,e.Created,"HH:mm")," ")}}function He(o,m){if(o&1&&(t(0,"td",32),l(1),f(2,"amountFraction"),i()),o&2){let e=d().$implicit;k(v(5,Pe,e.InvoiceAmount<0)),a(),D(" ",I(2,3,e.InvoiceAmount)," ")}}function Te(o,m){if(o&1){let e=P();t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"a",28),l(5),i()(),t(6,"td")(7,"a",29),l(8),i()(),t(9,"td"),l(10),f(11,"date"),i(),t(12,"td"),l(13),f(14,"date"),i(),_(15,Me,2,1,"td"),_(16,Ee,3,4,"td"),_(17,Ie,3,4,"td"),E(18,He,3,7,"td",30),t(19,"td",31),h("click",function(){let n=s(e).$implicit,p=d();return c(p.onInvoiceCountClick(n))}),l(20),f(21,"number"),i()()}if(o&2){let e=m.$implicit,r=d();a(2),S(e.EntityName),a(2),u("queryParams",v(21,xe,e.InvoiceID)),a(),S(e.Number),a(2),u("routerLink",W(23,fe))("queryParams",v(24,xe,e.CustomerID)),a(),D(" ",e.CustomerName," "),a(2),S(w(11,13,e.InvoiceDate,"dd MMM yyyy")),a(3),S(w(14,16,e.InvoiceDueDate,"dd MMM")),a(2),g(r.isNotUnprintedOnly()?15:-1),a(),g(r.isNotUnprintedOnly()?16:-1),a(),g(r.isNotUnprintedOnly()?17:-1),a(),u("ngIf",r.roleService.sell.PriceVisible),a(2),D(" ",I(21,19,e.Count)," ")}}var ye=class o extends Z{roleService=F(Y);dialog=F($);isNotUnprintedOnly=H(!0);constructor(m,e){super(m,e,"invoice/GetPrintHistoryList","invoiceLoader/GetPrintHistoryList")}openExportModal(){this.pageData.Filter.Export=!0,this.dialog.open(ee,{data:{title:"Print History",exportTypes:[{ID:"invoice/GetPrintHistoryList",Value:"Default",FileName:"Print History"}],filterExport:this.pageData.Filter,pagination:!0}}).afterClosed().subscribe(()=>{this.pageData.Filter.Export=!1})}onSubmit(){let m=this.pageData.Filter.Printed!==0;this.isNotUnprintedOnly.set(m),this.getListData()}onInvoiceCountClick(m){let e=`${ne.InvoicePrintHistory}/${m.InvoiceID}`;this.httpService.get(e).subscribe(r=>{this.dialog.open(Ce,{data:r?.Data})})}static \u0275fac=function(e){return new(e||o)(M(ie),M(X))};static \u0275cmp=T({type:o,selectors:[["app-print-history"]],features:[V],decls:32,vars:10,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-5"],["matSort","",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","130px"],[2,"width","150px"],[2,"width","100px"],[2,"width","90px"],[2,"width","80px"],[2,"width","30px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","30px"],[3,"jumpToPage","previousPage","nextPage","total","totalAllData","pageData"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[3,"ngModelChange","ngModel","multiple"],["name","Key","requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Search Customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],[1,"row"],[1,"col-6","pe-2"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],[1,"col-6","ps-2"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"modelChange","model","options"],["type","text","placeholder","Page Size","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["requestUrl","/API/AC/GetUserSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["routerLink","/menu/Orders/Orders/Customer_Invoice/Info",1,"link-primary","cursor-pointer",3,"queryParams"],[1,"link-primary","cursor-pointer",3,"routerLink","queryParams"],["class","text-end",3,"class",4,"ngIf"],[1,"cursor-pointer","text-end","link-primary",3,"click"],[1,"text-end"]],template:function(e,r){if(e&1){let n=P();t(0,"mainpanel-cmp",1),h("onSubmit",function(){return s(n),c(r.onSubmit())}),t(1,"actions"),_(2,Se,3,0,"button",2),i(),t(3,"filters"),E(4,he,22,11,"ng-template",null,0,U),i(),t(6,"content")(7,"div",3)(8,"table",4)(9,"thead",5)(10,"tr")(11,"th",6),l(12,"Outlet"),i(),t(13,"th",7),l(14,"Number"),i(),t(15,"th"),l(16,"Customer"),i(),t(17,"th",8),l(18,"Date"),i(),t(19,"th",9),l(20,"Due"),i(),_(21,we,2,0,"th",10),_(22,ve,2,0,"th",8),_(23,Fe,2,0,"th",11),t(24,"th",12),l(25,"Amount"),i(),t(26,"th",13),l(27,"Count"),i()()(),t(28,"tbody"),O(29,Te,22,26,"tr",null,b),i()(),t(31,"POS-complex-pagination",14),h("jumpToPage",function(){return s(n),c(r.getListData())})("previousPage",function(){return s(n),c(r.getListData())})("nextPage",function(){return s(n),c(r.getListData())}),i()()()()}e&2&&(u("pageData",r.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),a(2),g(r.roleService.global.Export?2:-1),a(19),g(r.isNotUnprintedOnly()?21:-1),a(),g(r.isNotUnprintedOnly()?22:-1),a(),g(r.isNotUnprintedOnly()?23:-1),a(6),L(r.data==null?null:r.data.Data),a(2),u("total",r.data==null||r.data.Data==null?null:r.data.Data.length)("totalAllData",r.data==null?null:r.data.ListTotal)("pageData",r.pageData))},dependencies:[j,B,le,ae,de,Q,z,K,J,_e,ue,ce,se,ge,G,q,re,oe,me,pe,A,R,te],encapsulation:2})};export{ye as PrintHistoryComponent};
1
+ import{a as Ce}from"./chunk-E4AXPU4U.js";import{a as ge}from"./chunk-IZF7S2RF.js";import"./chunk-3XH2STFE.js";import"./chunk-BYXBJQAS.js";import{a as te}from"./chunk-75FYOZH7.js";import{d as ue,e as _e}from"./chunk-AHTR7XKG.js";import"./chunk-NS6IC2PT.js";import"./chunk-3RK6DDJD.js";import"./chunk-SMEVWRVE.js";import"./chunk-JQDS4BXR.js";import"./chunk-F3HDP5CA.js";import"./chunk-AJAUI7BA.js";import"./chunk-MWGICBEB.js";import{d as pe,e as me}from"./chunk-ODYEJFNJ.js";import"./chunk-WSWTWRKJ.js";import{a as se,b as ce}from"./chunk-XWYCNPUZ.js";import{c as de}from"./chunk-AB7O2ERM.js";import{b as ee}from"./chunk-YQ5PAXUW.js";import{a as Z}from"./chunk-XCSDEGWL.js";import"./chunk-55Z32OLJ.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{e as ae,f as le}from"./chunk-MZDVGN2B.js";import"./chunk-MJCLLJBB.js";import"./chunk-OB6KFXD6.js";import"./chunk-QJ3CWKQT.js";import"./chunk-SWF6XISV.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-TP6ZUC53.js";import"./chunk-RWW55Z7V.js";import{b as ie}from"./chunk-XPM7J5AN.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import{F as oe,G as re}from"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import{O as ne}from"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import"./chunk-SCGKVOSE.js";import{g as $}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import{F as Q,c as z,h as K,o as J}from"./chunk-7MRUPBXU.js";import"./chunk-ABOSNV75.js";import"./chunk-RT7OZJYZ.js";import"./chunk-5RYL4EJ2.js";import{b as Y}from"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-H6RHVRGW.js";import{s as X}from"./chunk-TANYEHMZ.js";import{Ab as _,Ac as v,Ca as H,Cb as g,Db as b,Fb as O,Gb as L,Hb as u,Hc as f,Ib as t,Ic as I,Jb as i,Jc as w,Kb as N,Nc as U,Rb as P,Sd as q,Ub as h,Ud as G,Wb as d,Xa as a,eb as M,ib as T,ic as k,jc as l,kc as S,lc as D,ld as B,mb as V,ob as E,oc as C,pa as F,pc as x,qc as y,sd as R,ta as s,ua as c,ud as A,xd as j,zc as W}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var xe=o=>({ID:o}),fe=()=>["/menu/Contacts/Contact/Customers/Info"],Pe=o=>({"text-danger":o});function Se(o,m){if(o&1){let e=P();t(0,"button",15),h("click",function(){s(e);let n=d();return c(n.openExportModal())}),N(1,"i",16),l(2," Export "),i()}}function De(o,m){if(o&1){let e=P();t(0,"h6"),l(1,"User"),i(),t(2,"autocompleteV2",27),y("ngModelChange",function(n){s(e);let p=d(2);return x(p.pageData.Filter.UserID,n)||(p.pageData.Filter.UserID=n),c(n)}),i()}if(o&2){let e=d(2);a(2),C("ngModel",e.pageData.Filter.UserID)}}function he(o,m){if(o&1){let e=P();t(0,"div",17)(1,"h6"),l(2,"Outlets"),i(),t(3,"outlet-selector",18),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.ListOutletID,n)||(p.pageData.Filter.ListOutletID=n),c(n)}),i(),t(4,"h6"),l(5,"Customer"),i(),t(6,"autocompleteV2",19),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.CustomerID,n)||(p.pageData.Filter.CustomerID=n),c(n)}),i(),t(7,"h6"),l(8,"From - To"),i(),t(9,"div",20)(10,"div",21)(11,"datepicker",22),y("dateChange",function(n){s(e);let p=d();return x(p.pageData.Filter.From,n)||(p.pageData.Filter.From=n),c(n)}),i()(),t(12,"div",23)(13,"datepicker",24),y("dateChange",function(n){s(e);let p=d();return x(p.pageData.Filter.To,n)||(p.pageData.Filter.To=n),c(n)}),i()()(),t(14,"h6"),l(15,"Printed"),i(),t(16,"radio-options",25),y("modelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.Printed,n)||(p.pageData.Filter.Printed=n),c(n)}),i(),_(17,De,3,1),t(18,"h6"),l(19,"Page Size"),i(),t(20,"div")(21,"input",26),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.RowCount,n)||(p.pageData.Filter.RowCount=n),c(n)}),i()()()}if(o&2){let e=d();a(3),C("ngModel",e.pageData.Filter.ListOutletID),u("multiple",!0),a(3),C("ngModel",e.pageData.Filter.CustomerID),a(5),u("isFloatingLabel",!1),C("date",e.pageData.Filter.From),a(2),u("isFloatingLabel",!1),C("date",e.pageData.Filter.To),a(3),C("model",e.pageData.Filter.Printed),u("options",e.pageData.Options.PrintedOptions),a(),g(e.pageData.Filter.Printed!==0?17:-1),a(4),C("ngModel",e.pageData.Filter.RowCount)}}function we(o,m){o&1&&(t(0,"th",10),l(1,"Print By"),i())}function ve(o,m){o&1&&(t(0,"th",8),l(1,"Print Date"),i())}function Fe(o,m){o&1&&(t(0,"th",11),l(1,"Time"),i())}function Me(o,m){if(o&1&&(t(0,"td"),l(1),i()),o&2){let e=d().$implicit;a(),S(e.CreatorName)}}function Ee(o,m){if(o&1&&(t(0,"td"),l(1),f(2,"date"),i()),o&2){let e=d().$implicit;a(),D(" ",e.Created==="0001-01-01T00:00:00"?"":w(2,1,e.Created,"dd MMM yyyy")," ")}}function Ie(o,m){if(o&1&&(t(0,"td"),l(1),f(2,"date"),i()),o&2){let e=d().$implicit;a(),D(" ",e.Created==="0001-01-01T00:00:00"?"":w(2,1,e.Created,"HH:mm")," ")}}function He(o,m){if(o&1&&(t(0,"td",32),l(1),f(2,"amountFraction"),i()),o&2){let e=d().$implicit;k(v(5,Pe,e.InvoiceAmount<0)),a(),D(" ",I(2,3,e.InvoiceAmount)," ")}}function Te(o,m){if(o&1){let e=P();t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"a",28),l(5),i()(),t(6,"td")(7,"a",29),l(8),i()(),t(9,"td"),l(10),f(11,"date"),i(),t(12,"td"),l(13),f(14,"date"),i(),_(15,Me,2,1,"td"),_(16,Ee,3,4,"td"),_(17,Ie,3,4,"td"),E(18,He,3,7,"td",30),t(19,"td",31),h("click",function(){let n=s(e).$implicit,p=d();return c(p.onInvoiceCountClick(n))}),l(20),f(21,"number"),i()()}if(o&2){let e=m.$implicit,r=d();a(2),S(e.EntityName),a(2),u("queryParams",v(21,xe,e.InvoiceID)),a(),S(e.Number),a(2),u("routerLink",W(23,fe))("queryParams",v(24,xe,e.CustomerID)),a(),D(" ",e.CustomerName," "),a(2),S(w(11,13,e.InvoiceDate,"dd MMM yyyy")),a(3),S(w(14,16,e.InvoiceDueDate,"dd MMM")),a(2),g(r.isNotUnprintedOnly()?15:-1),a(),g(r.isNotUnprintedOnly()?16:-1),a(),g(r.isNotUnprintedOnly()?17:-1),a(),u("ngIf",r.roleService.sell.PriceVisible),a(2),D(" ",I(21,19,e.Count)," ")}}var ye=class o extends Z{roleService=F(Y);dialog=F($);isNotUnprintedOnly=H(!0);constructor(m,e){super(m,e,"invoice/GetPrintHistoryList","invoiceLoader/GetPrintHistoryList")}openExportModal(){this.pageData.Filter.Export=!0,this.dialog.open(ee,{data:{title:"Print History",exportTypes:[{ID:"invoice/GetPrintHistoryList",Value:"Default",FileName:"Print History"}],filterExport:this.pageData.Filter,pagination:!0}}).afterClosed().subscribe(()=>{this.pageData.Filter.Export=!1})}onSubmit(){let m=this.pageData.Filter.Printed!==0;this.isNotUnprintedOnly.set(m),this.getListData()}onInvoiceCountClick(m){let e=`${ne.InvoicePrintHistory}/${m.InvoiceID}`;this.httpService.get(e).subscribe(r=>{this.dialog.open(Ce,{data:r?.Data})})}static \u0275fac=function(e){return new(e||o)(M(ie),M(X))};static \u0275cmp=T({type:o,selectors:[["app-print-history"]],features:[V],decls:32,vars:10,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-5"],["matSort","",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","130px"],[2,"width","150px"],[2,"width","100px"],[2,"width","90px"],[2,"width","80px"],[2,"width","30px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","30px"],[3,"jumpToPage","previousPage","nextPage","total","totalAllData","pageData"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[3,"ngModelChange","ngModel","multiple"],["name","Key","requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Search Customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],[1,"row"],[1,"col-6","pe-2"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],[1,"col-6","ps-2"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"modelChange","model","options"],["type","text","placeholder","Page Size","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["requestUrl","/API/AC/GetUserSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["routerLink","/menu/Orders/Orders/Customer_Invoice/Info",1,"link-primary","cursor-pointer",3,"queryParams"],[1,"link-primary","cursor-pointer",3,"routerLink","queryParams"],["class","text-end",3,"class",4,"ngIf"],[1,"cursor-pointer","text-end","link-primary",3,"click"],[1,"text-end"]],template:function(e,r){if(e&1){let n=P();t(0,"mainpanel-cmp",1),h("onSubmit",function(){return s(n),c(r.onSubmit())}),t(1,"actions"),_(2,Se,3,0,"button",2),i(),t(3,"filters"),E(4,he,22,11,"ng-template",null,0,U),i(),t(6,"content")(7,"div",3)(8,"table",4)(9,"thead",5)(10,"tr")(11,"th",6),l(12,"Outlet"),i(),t(13,"th",7),l(14,"Number"),i(),t(15,"th"),l(16,"Customer"),i(),t(17,"th",8),l(18,"Date"),i(),t(19,"th",9),l(20,"Due"),i(),_(21,we,2,0,"th",10),_(22,ve,2,0,"th",8),_(23,Fe,2,0,"th",11),t(24,"th",12),l(25,"Amount"),i(),t(26,"th",13),l(27,"Count"),i()()(),t(28,"tbody"),O(29,Te,22,26,"tr",null,b),i()(),t(31,"POS-complex-pagination",14),h("jumpToPage",function(){return s(n),c(r.getListData())})("previousPage",function(){return s(n),c(r.getListData())})("nextPage",function(){return s(n),c(r.getListData())}),i()()()()}e&2&&(u("pageData",r.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),a(2),g(r.roleService.global.Export?2:-1),a(19),g(r.isNotUnprintedOnly()?21:-1),a(),g(r.isNotUnprintedOnly()?22:-1),a(),g(r.isNotUnprintedOnly()?23:-1),a(6),L(r.data==null?null:r.data.Data),a(2),u("total",r.data==null||r.data.Data==null?null:r.data.Data.length)("totalAllData",r.data==null?null:r.data.ListTotal)("pageData",r.pageData))},dependencies:[j,B,le,ae,de,Q,z,K,J,_e,ue,ce,se,ge,G,q,re,oe,me,pe,A,R,te],encapsulation:2})};export{ye as PrintHistoryComponent};
@@ -1 +1 @@
1
- import{a as te}from"./chunk-V4V55JMO.js";import{d as ee}from"./chunk-AHTR7XKG.js";import{a as z,b as J}from"./chunk-ACXQ2FOW.js";import{c as $}from"./chunk-6UY42XOC.js";import{b as X}from"./chunk-YQ5PAXUW.js";import{a as K}from"./chunk-HQGZC4Y3.js";import{e as Z}from"./chunk-2GIDUMXS.js";import{b as Y}from"./chunk-ECW7GAZQ.js";import{g as U}from"./chunk-N5RDRDT7.js";import{h as q,o as H}from"./chunk-7MRUPBXU.js";import{b as Q}from"./chunk-KBLVOO4J.js";import{p as A,s as G}from"./chunk-TANYEHMZ.js";import{Ab as T,Cb as F,Cc as P,Eb as I,Fb as V,Fc as k,Gb as W,Hb as g,Hc as D,Ib as i,Jb as r,Jc as x,Kb as M,Nc as B,Pd as O,Rb as C,Sd as j,Ub as h,Wb as c,Xa as l,eb as f,ib as E,jc as o,kc as v,lc as L,mb as R,ob as b,oc as S,pc as u,qc as y,sd as N,ta as m,ua as s}from"./chunk-L3U6V3BF.js";var ae=(p,d,t,n,e,a)=>({LogisticServiceID:p,EntityID:d,From:t,To:n,StartTime:e,EndTime:a}),re=(p,d,t)=>({From:p,To:d,LogisticsServiceID:t});function ne(p,d){if(p&1){let t=C();i(0,"button",4),h("click",function(){m(t);let e=c();return s(e.openExportModal())}),M(1,"i",5),o(2," Export "),r()}}function oe(p,d){if(p&1){let t=C();i(0,"div",6)(1,"h6"),o(2,"Outlet"),r(),i(3,"outlet-selector",7),y("ngModelChange",function(e){m(t);let a=c();return u(a.pageData.Filter.EntityID,e)||(a.pageData.Filter.EntityID=e),s(e)}),r(),i(4,"h6"),o(5,"From"),r(),i(6,"datepicker",8),y("dateChange",function(e){m(t);let a=c();return u(a.pageData.Filter.From,e)||(a.pageData.Filter.From=e),s(e)}),r(),i(7,"h6"),o(8,"To"),r(),i(9,"datepicker",9),y("dateChange",function(e){m(t);let a=c();return u(a.pageData.Filter.To,e)||(a.pageData.Filter.To=e),s(e)}),r(),i(10,"h6"),o(11,"Time"),r(),i(12,"div",10)(13,"div",11)(14,"app-timepicker",12),y("timeChange",function(e){m(t);let a=c();return u(a.pageData.Filter.StartTime,e)||(a.pageData.Filter.StartTime=e),s(e)}),r()(),i(15,"div",11)(16,"app-timepicker",12),y("timeChange",function(e){m(t);let a=c();return u(a.pageData.Filter.EndTime,e)||(a.pageData.Filter.EndTime=e),s(e)}),r()()()()}if(p&2){let t=c();l(3),g("accessType",2),S("ngModel",t.pageData.Filter.EntityID),g("outlets",t.pageData.Options==null?null:t.pageData.Options.Entities),l(3),S("date",t.pageData.Filter.From),l(3),S("date",t.pageData.Filter.To),l(5),g("fullWidth",!0),S("time",t.pageData.Filter.StartTime),l(2),g("fullWidth",!0),S("time",t.pageData.Filter.EndTime)}}function pe(p,d){if(p&1&&(i(0,"tr")(1,"td"),o(2),r(),i(3,"td"),o(4),r(),i(5,"td",21)(6,"a",22),D(7,"date"),D(8,"date"),o(9),r()(),i(10,"td",21)(11,"a",23),D(12,"date"),D(13,"date"),o(14),r()(),i(15,"td",21),o(16),r()()),p&2){let t=d.$implicit,n=d.$index,e=c(2);l(2),v(n+1),l(2),v(t.Name),l(2),g("queryParams",k(19,ae,t.ID,e.pageData.Filter.EntityID,x(7,7,e.pageData.Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData.Filter.To,"yyyy-MM-dd"),e.pageData.Filter.StartTime,e.pageData.Filter.EndTime)),l(3),L(" ",t.Trans," "),l(2),g("queryParams",P(26,re,x(12,13,e.pageData.Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData.Filter.To,"yyyy-MM-dd"),t.ID)),l(3),L(" ",t.Qty," "),l(2),v(t.Weight)}}function le(p,d){if(p&1){let t=C();i(0,"content")(1,"div",13)(2,"table",14),h("matSortChange",function(e){m(t);let a=c();return s(a.sortData(e))}),i(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),r(),i(7,"th"),o(8,"Logistics Service Name"),r(),i(9,"th",17),o(10,"Trans"),r(),i(11,"th",18),o(12,"Qty"),r(),i(13,"th",19),o(14,"Weight "),i(15,"small",20),o(16,"(gram)"),r()()()(),i(17,"tbody"),V(18,pe,17,30,"tr",null,I),r()()()()}if(p&2){let t=c();l(18),W(t.data.Data)}}var ie=class p extends K{constructor(t,n,e,a,w,_){super(t,n,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,a);this.matDialog=w;this.roleService=_}originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let n=this.data.Data.slice();if(!t.active||t.direction===""){this.data.Data=this.originalData;return}this.data.Data=n.sort((e,a)=>this.compare(e[t.active],a[t.active],t.direction==="asc"))}openExportModal(){this.matDialog.open(X,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,n){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData.Filter[n]=e}static \u0275fac=function(n){return new(n||p)(f(Y),f(G),f(A),f(O),f(U),f(Q))};static \u0275cmp=E({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[R],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(n,e){if(n&1){let a=C();i(0,"mainpanel-cmp",1),y("textChange",function(_){return m(a),u(e.pageData.Filter.Name,_)||(e.pageData.Filter.Name=_),s(_)}),h("onSubmit",function(){return m(a),s(e.searchFromPageOne())}),y("filterChange",function(_){return m(a),u(e.pageData.Filter,_)||(e.pageData.Filter=_),s(_)}),i(1,"actions"),T(2,ne,3,0,"button",2),i(3,"a",3),o(4," View Detail "),r()(),i(5,"filters"),b(6,oe,17,9,"ng-template",null,0,B),r(),T(8,le,20,0,"content"),r()}n&2&&(g("pageData",e.menuData),S("text",e.pageData.Filter.Name),g("isFilterOnDropdown",!1),S("filter",e.pageData.Filter),l(2),F(e.roleService.global.Export?2:-1),l(6),F(e.data?8:-1))},dependencies:[j,q,H,Z,ee,z,J,te,$,N],encapsulation:2})};export{ie as a};
1
+ import{a as te}from"./chunk-V4V55JMO.js";import{d as ee}from"./chunk-AHTR7XKG.js";import{a as z,b as J}from"./chunk-ACXQ2FOW.js";import{c as $}from"./chunk-AB7O2ERM.js";import{b as X}from"./chunk-YQ5PAXUW.js";import{a as K}from"./chunk-XCSDEGWL.js";import{e as Z}from"./chunk-MZDVGN2B.js";import{b as Y}from"./chunk-XPM7J5AN.js";import{g as U}from"./chunk-N5RDRDT7.js";import{h as q,o as H}from"./chunk-7MRUPBXU.js";import{b as Q}from"./chunk-KBLVOO4J.js";import{p as A,s as G}from"./chunk-TANYEHMZ.js";import{Ab as T,Cb as F,Cc as P,Eb as I,Fb as V,Fc as k,Gb as W,Hb as g,Hc as D,Ib as i,Jb as r,Jc as x,Kb as M,Nc as B,Pd as O,Rb as C,Sd as j,Ub as h,Wb as c,Xa as l,eb as f,ib as E,jc as o,kc as v,lc as L,mb as R,ob as b,oc as S,pc as u,qc as y,sd as N,ta as m,ua as s}from"./chunk-L3U6V3BF.js";var ae=(p,d,t,n,e,a)=>({LogisticServiceID:p,EntityID:d,From:t,To:n,StartTime:e,EndTime:a}),re=(p,d,t)=>({From:p,To:d,LogisticsServiceID:t});function ne(p,d){if(p&1){let t=C();i(0,"button",4),h("click",function(){m(t);let e=c();return s(e.openExportModal())}),M(1,"i",5),o(2," Export "),r()}}function oe(p,d){if(p&1){let t=C();i(0,"div",6)(1,"h6"),o(2,"Outlet"),r(),i(3,"outlet-selector",7),y("ngModelChange",function(e){m(t);let a=c();return u(a.pageData.Filter.EntityID,e)||(a.pageData.Filter.EntityID=e),s(e)}),r(),i(4,"h6"),o(5,"From"),r(),i(6,"datepicker",8),y("dateChange",function(e){m(t);let a=c();return u(a.pageData.Filter.From,e)||(a.pageData.Filter.From=e),s(e)}),r(),i(7,"h6"),o(8,"To"),r(),i(9,"datepicker",9),y("dateChange",function(e){m(t);let a=c();return u(a.pageData.Filter.To,e)||(a.pageData.Filter.To=e),s(e)}),r(),i(10,"h6"),o(11,"Time"),r(),i(12,"div",10)(13,"div",11)(14,"app-timepicker",12),y("timeChange",function(e){m(t);let a=c();return u(a.pageData.Filter.StartTime,e)||(a.pageData.Filter.StartTime=e),s(e)}),r()(),i(15,"div",11)(16,"app-timepicker",12),y("timeChange",function(e){m(t);let a=c();return u(a.pageData.Filter.EndTime,e)||(a.pageData.Filter.EndTime=e),s(e)}),r()()()()}if(p&2){let t=c();l(3),g("accessType",2),S("ngModel",t.pageData.Filter.EntityID),g("outlets",t.pageData.Options==null?null:t.pageData.Options.Entities),l(3),S("date",t.pageData.Filter.From),l(3),S("date",t.pageData.Filter.To),l(5),g("fullWidth",!0),S("time",t.pageData.Filter.StartTime),l(2),g("fullWidth",!0),S("time",t.pageData.Filter.EndTime)}}function pe(p,d){if(p&1&&(i(0,"tr")(1,"td"),o(2),r(),i(3,"td"),o(4),r(),i(5,"td",21)(6,"a",22),D(7,"date"),D(8,"date"),o(9),r()(),i(10,"td",21)(11,"a",23),D(12,"date"),D(13,"date"),o(14),r()(),i(15,"td",21),o(16),r()()),p&2){let t=d.$implicit,n=d.$index,e=c(2);l(2),v(n+1),l(2),v(t.Name),l(2),g("queryParams",k(19,ae,t.ID,e.pageData.Filter.EntityID,x(7,7,e.pageData.Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData.Filter.To,"yyyy-MM-dd"),e.pageData.Filter.StartTime,e.pageData.Filter.EndTime)),l(3),L(" ",t.Trans," "),l(2),g("queryParams",P(26,re,x(12,13,e.pageData.Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData.Filter.To,"yyyy-MM-dd"),t.ID)),l(3),L(" ",t.Qty," "),l(2),v(t.Weight)}}function le(p,d){if(p&1){let t=C();i(0,"content")(1,"div",13)(2,"table",14),h("matSortChange",function(e){m(t);let a=c();return s(a.sortData(e))}),i(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),r(),i(7,"th"),o(8,"Logistics Service Name"),r(),i(9,"th",17),o(10,"Trans"),r(),i(11,"th",18),o(12,"Qty"),r(),i(13,"th",19),o(14,"Weight "),i(15,"small",20),o(16,"(gram)"),r()()()(),i(17,"tbody"),V(18,pe,17,30,"tr",null,I),r()()()()}if(p&2){let t=c();l(18),W(t.data.Data)}}var ie=class p extends K{constructor(t,n,e,a,w,_){super(t,n,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,a);this.matDialog=w;this.roleService=_}originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let n=this.data.Data.slice();if(!t.active||t.direction===""){this.data.Data=this.originalData;return}this.data.Data=n.sort((e,a)=>this.compare(e[t.active],a[t.active],t.direction==="asc"))}openExportModal(){this.matDialog.open(X,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,n){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData.Filter[n]=e}static \u0275fac=function(n){return new(n||p)(f(Y),f(G),f(A),f(O),f(U),f(Q))};static \u0275cmp=E({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[R],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(n,e){if(n&1){let a=C();i(0,"mainpanel-cmp",1),y("textChange",function(_){return m(a),u(e.pageData.Filter.Name,_)||(e.pageData.Filter.Name=_),s(_)}),h("onSubmit",function(){return m(a),s(e.searchFromPageOne())}),y("filterChange",function(_){return m(a),u(e.pageData.Filter,_)||(e.pageData.Filter=_),s(_)}),i(1,"actions"),T(2,ne,3,0,"button",2),i(3,"a",3),o(4," View Detail "),r()(),i(5,"filters"),b(6,oe,17,9,"ng-template",null,0,B),r(),T(8,le,20,0,"content"),r()}n&2&&(g("pageData",e.menuData),S("text",e.pageData.Filter.Name),g("isFilterOnDropdown",!1),S("filter",e.pageData.Filter),l(2),F(e.roleService.global.Export?2:-1),l(6),F(e.data?8:-1))},dependencies:[j,q,H,Z,ee,z,J,te,$,N],encapsulation:2})};export{ie as a};
@@ -1 +1 @@
1
- import{c as f}from"./chunk-T5IJP474.js";import{a as m}from"./chunk-NQQB5U5S.js";import{p as v,s as u}from"./chunk-TANYEHMZ.js";import{Ed as h,I as c,Id as l,k as n,la as s,oa as e}from"./chunk-L3U6V3BF.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
1
+ import{c as f}from"./chunk-ABOSNV75.js";import{a as m}from"./chunk-H6RHVRGW.js";import{p as v,s as u}from"./chunk-TANYEHMZ.js";import{Ed as h,I as c,Id as l,k as n,la as s,oa as e}from"./chunk-L3U6V3BF.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
@@ -1 +1 @@
1
- import{a as ce,b as de,c as _e,d as se,e as ge,f as ue}from"./chunk-HHCNN3XR.js";import"./chunk-3Q5WV3VF.js";import"./chunk-HIA4J5DB.js";import"./chunk-GFSJZHCB.js";import"./chunk-VGHEGWAM.js";import{a as te}from"./chunk-Y7ZKGM5U.js";import{a as ee}from"./chunk-75FYOZH7.js";import"./chunk-CVN6ZXXJ.js";import{e as me}from"./chunk-AHTR7XKG.js";import"./chunk-NS6IC2PT.js";import"./chunk-3RK6DDJD.js";import"./chunk-SMEVWRVE.js";import"./chunk-JQDS4BXR.js";import"./chunk-F3HDP5CA.js";import"./chunk-AJAUI7BA.js";import"./chunk-MWGICBEB.js";import{d as re,e as le}from"./chunk-ODYEJFNJ.js";import"./chunk-WSWTWRKJ.js";import{c as pe}from"./chunk-6UY42XOC.js";import{b as $}from"./chunk-YQ5PAXUW.js";import{a as Y}from"./chunk-HQGZC4Y3.js";import"./chunk-VQKO557Q.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{a as ie}from"./chunk-JT4M6AIA.js";import{e as oe,f as ae}from"./chunk-2GIDUMXS.js";import"./chunk-ZO3XZXWW.js";import"./chunk-OB6KFXD6.js";import"./chunk-QJ3CWKQT.js";import"./chunk-ZOYWCF3Q.js";import"./chunk-SWF6XISV.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-TP6ZUC53.js";import"./chunk-3PKJLXTC.js";import{b as ne}from"./chunk-ECW7GAZQ.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import"./chunk-3ZH3XK5V.js";import{b as U,c as X}from"./chunk-V6D6TV7B.js";import"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import"./chunk-SCGKVOSE.js";import{g as Z}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import{oa as K}from"./chunk-Z76C52NM.js";import{F as G,c as k,h as Q,o as j,q}from"./chunk-7MRUPBXU.js";import"./chunk-T5IJP474.js";import"./chunk-DJUOMCAV.js";import"./chunk-5RYL4EJ2.js";import{b as J}from"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-NQQB5U5S.js";import{s as z}from"./chunk-TANYEHMZ.js";import{Ab as P,Ac as w,Cb as E,Hb as p,Hc as _,Ib as o,Ic as s,Jb as i,Jc as D,Kb as f,Ld as W,Nc as O,Rb as I,Sd as A,Ub as h,Ud as N,Wb as m,Xa as a,eb as C,ib as B,jc as l,kc as M,lc as g,ld as L,mb as F,ob as x,oc as v,pc as S,qc as b,ta as u,ua as y,uc as V,ud as R,xd as H,zc as T}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ce=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),xe=()=>["/menu/Products/Catalog/Products"],ye=t=>({CategoryID:t}),ve=()=>["/menu/Inventory/Quantity/Valuation"];function Se(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),f(1,"i",11),l(2," Export "),i()}}function be(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function Ie(t,c){t&1&&(o(0,"th",27),l(1," Cost "),f(2,"p-treeTableSortIcon",28),i())}function Te(t,c){t&1&&(o(0,"th",29),l(1," Price "),f(2,"p-treeTableSortIcon",30),i())}function De(t,c){t&1&&(o(0,"th",31),l(1," % "),f(2,"p-treeTableSortIcon",32),i())}function he(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),f(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),f(6,"p-treeTableSortIcon",23),i(),x(7,Ie,3,0,"th",24)(8,Te,3,0,"th",25)(9,De,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function Be(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Fe(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Pe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),f(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),x(12,we,3,3,"td",37)(13,Be,3,3,"td",37)(14,Fe,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(21,xe))("queryParams",w(22,ye,r.ID)),a(),M(r.Name),a(2),p("matTooltip",V(r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,13,r.OnHand)+") Indirect ("+s(8,15,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,17,r.OnHandIndirect)+")":""))("routerLink",T(24,ve))("queryParams",w(25,ye,r.ID)),a(4),g("",s(11,19,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Ve(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Oe(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),x(6,Ee,3,3,"td",41)(7,Me,3,3,"td",41)(8,Ve,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Le(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),P(2,Se,3,0,"button",3),i(),o(3,"div",4),x(4,be,14,7,"ng-template",null,0,O),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),x(9,he,10,3,"ng-template",7)(10,Pe,15,27,"ng-template",8)(11,Oe,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),E(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,Ce))}}var fe=class t extends Y{constructor(e,r,n,d,Re,He){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Re;this.dialog=He}openExportModal(){this.dialog.open($,{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(r){return new(r||t)(C(ne),C(z),C(ie),C(W),C(J),C(Z))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],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"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["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"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&x(0,Le,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[H,L,ae,oe,N,A,ue,ce,K,ge,de,_e,se,pe,me,le,re,G,k,q,Q,j,X,U,R,ee,te],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{fe as InventoryByCategoryComponent};
1
+ import{a as ce,b as de,c as _e,d as se,e as ge,f as ue}from"./chunk-BCGNQKO5.js";import"./chunk-3Q5WV3VF.js";import"./chunk-6VYP636I.js";import"./chunk-GFSJZHCB.js";import"./chunk-VGHEGWAM.js";import{a as te}from"./chunk-Y7ZKGM5U.js";import{a as ee}from"./chunk-75FYOZH7.js";import"./chunk-CVN6ZXXJ.js";import{e as me}from"./chunk-AHTR7XKG.js";import"./chunk-NS6IC2PT.js";import"./chunk-3RK6DDJD.js";import"./chunk-SMEVWRVE.js";import"./chunk-JQDS4BXR.js";import"./chunk-F3HDP5CA.js";import"./chunk-AJAUI7BA.js";import"./chunk-MWGICBEB.js";import{d as re,e as le}from"./chunk-ODYEJFNJ.js";import"./chunk-WSWTWRKJ.js";import{c as pe}from"./chunk-AB7O2ERM.js";import{b as $}from"./chunk-YQ5PAXUW.js";import{a as Y}from"./chunk-XCSDEGWL.js";import"./chunk-55Z32OLJ.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{a as ie}from"./chunk-JT4M6AIA.js";import{e as oe,f as ae}from"./chunk-MZDVGN2B.js";import"./chunk-MJCLLJBB.js";import"./chunk-OB6KFXD6.js";import"./chunk-QJ3CWKQT.js";import"./chunk-ZOYWCF3Q.js";import"./chunk-SWF6XISV.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-TP6ZUC53.js";import"./chunk-RWW55Z7V.js";import{b as ne}from"./chunk-XPM7J5AN.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import"./chunk-3ZH3XK5V.js";import{b as U,c as X}from"./chunk-V6D6TV7B.js";import"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import"./chunk-SCGKVOSE.js";import{g as Z}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import{oa as K}from"./chunk-Z76C52NM.js";import{F as G,c as k,h as Q,o as j,q}from"./chunk-7MRUPBXU.js";import"./chunk-ABOSNV75.js";import"./chunk-RT7OZJYZ.js";import"./chunk-5RYL4EJ2.js";import{b as J}from"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-H6RHVRGW.js";import{s as z}from"./chunk-TANYEHMZ.js";import{Ab as P,Ac as w,Cb as E,Hb as p,Hc as _,Ib as o,Ic as s,Jb as i,Jc as D,Kb as f,Ld as W,Nc as O,Rb as I,Sd as A,Ub as h,Ud as N,Wb as m,Xa as a,eb as C,ib as B,jc as l,kc as M,lc as g,ld as L,mb as F,ob as x,oc as v,pc as S,qc as b,ta as u,ua as y,uc as V,ud as R,xd as H,zc as T}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ce=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),xe=()=>["/menu/Products/Catalog/Products"],ye=t=>({CategoryID:t}),ve=()=>["/menu/Inventory/Quantity/Valuation"];function Se(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),f(1,"i",11),l(2," Export "),i()}}function be(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function Ie(t,c){t&1&&(o(0,"th",27),l(1," Cost "),f(2,"p-treeTableSortIcon",28),i())}function Te(t,c){t&1&&(o(0,"th",29),l(1," Price "),f(2,"p-treeTableSortIcon",30),i())}function De(t,c){t&1&&(o(0,"th",31),l(1," % "),f(2,"p-treeTableSortIcon",32),i())}function he(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),f(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),f(6,"p-treeTableSortIcon",23),i(),x(7,Ie,3,0,"th",24)(8,Te,3,0,"th",25)(9,De,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function Be(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Fe(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Pe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),f(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),x(12,we,3,3,"td",37)(13,Be,3,3,"td",37)(14,Fe,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(21,xe))("queryParams",w(22,ye,r.ID)),a(),M(r.Name),a(2),p("matTooltip",V(r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,13,r.OnHand)+") Indirect ("+s(8,15,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,17,r.OnHandIndirect)+")":""))("routerLink",T(24,ve))("queryParams",w(25,ye,r.ID)),a(4),g("",s(11,19,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Ve(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Oe(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),x(6,Ee,3,3,"td",41)(7,Me,3,3,"td",41)(8,Ve,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Le(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),P(2,Se,3,0,"button",3),i(),o(3,"div",4),x(4,be,14,7,"ng-template",null,0,O),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),x(9,he,10,3,"ng-template",7)(10,Pe,15,27,"ng-template",8)(11,Oe,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),E(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,Ce))}}var fe=class t extends Y{constructor(e,r,n,d,Re,He){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Re;this.dialog=He}openExportModal(){this.dialog.open($,{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(r){return new(r||t)(C(ne),C(z),C(ie),C(W),C(J),C(Z))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],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"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["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"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&x(0,Le,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[H,L,ae,oe,N,A,ue,ce,K,ge,de,_e,se,pe,me,le,re,G,k,q,Q,j,X,U,R,ee,te],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{fe as InventoryByCategoryComponent};