marketplacepos 3.13.5 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/{chunk-KQ5DOU4A.js → chunk-27KRVOVV.js} +1 -1
- package/Marketplace/{chunk-BGN73QQI.js → chunk-2U52BOK6.js} +10 -9
- package/Marketplace/{chunk-GVS44OWQ.js → chunk-5DAS2XHT.js} +1 -1
- package/Marketplace/{chunk-LJDPILCP.js → chunk-5RBA5Q4C.js} +1 -1
- package/Marketplace/{chunk-OAKENGDC.js → chunk-6PK2RRGP.js} +1 -1
- package/Marketplace/{chunk-44JSD7TR.js → chunk-7SN6N4WR.js} +1 -1
- package/Marketplace/{chunk-V2UYOAT2.js → chunk-AQJ4BQQR.js} +1 -1
- package/Marketplace/{chunk-E3E6TUYP.js → chunk-ARA5O5PX.js} +1 -1
- package/Marketplace/{chunk-4XJJVBCX.js → chunk-D6ANC3SS.js} +1 -1
- package/Marketplace/{chunk-Q64RKYUS.js → chunk-F6UMOF3O.js} +1 -1
- package/Marketplace/chunk-FTV52HXX.js +1 -0
- package/Marketplace/{chunk-D4HBNVTL.js → chunk-H5G3XI3T.js} +1 -1
- package/Marketplace/{chunk-UYN5TJJ7.js → chunk-HNOVDG7D.js} +1 -1
- package/Marketplace/{chunk-O5GGWOBM.js → chunk-HRKBU5UW.js} +1 -1
- package/Marketplace/chunk-J47B3BJQ.js +1 -0
- package/Marketplace/{chunk-XLSYUMRS.js → chunk-LBHJSQBZ.js} +1 -1
- package/Marketplace/{chunk-N3VBGSQH.js → chunk-MOFF6ASU.js} +1 -1
- package/Marketplace/{chunk-GEQYSMX6.js → chunk-O2WRF4JL.js} +1 -1
- package/Marketplace/{chunk-YDGPF5OU.js → chunk-Q7FQTBT6.js} +1 -1
- package/Marketplace/{chunk-4A2BQXM5.js → chunk-SZX66K7N.js} +1 -1
- package/Marketplace/chunk-U75FY3SB.js +3 -0
- package/Marketplace/{chunk-HFUGRK45.js → chunk-U7BIKZZA.js} +1 -1
- package/Marketplace/{chunk-IYN33JGO.js → chunk-VQQXE7MA.js} +1 -1
- package/Marketplace/{chunk-BTKJJ5MP.js → chunk-WVF7SHZL.js} +1 -1
- package/Marketplace/{chunk-RPO7IHUU.js → chunk-ZPUPB7UU.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-TYOAJ6YV.js → main-SOGOPFYM.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-MLGEX4PW.js +0 -1
- package/Marketplace/chunk-T6XF6UXO.js +0 -3
- package/Marketplace/chunk-YUYOQ6ZT.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Q}from"./chunk-V6L3NRY3.js";import{a as Y}from"./chunk-N3VBGSQH.js";import{a as X}from"./chunk-VOWLO2M7.js";import{b as V,c as Z}from"./chunk-L34D7YAZ.js";import"./chunk-YG3KQ63T.js";import"./chunk-662E5VTA.js";import{a as J}from"./chunk-5WXM6HSA.js";import"./chunk-JTJLVSTV.js";import"./chunk-IPYNDMGQ.js";import"./chunk-RMD2ZXUN.js";import"./chunk-KWFES5F7.js";import{g as H}from"./chunk-XLSYUMRS.js";import{b as O,e as U}from"./chunk-DSF55IXM.js";import"./chunk-KCDL7SWP.js";import{d as K,l as q,m as z}from"./chunk-4R22UO7N.js";import"./chunk-MVPTQRFO.js";import"./chunk-EKCNJX26.js";import{c as k,h as j,k as G,m as W,u as $}from"./chunk-B3LBEB32.js";import"./chunk-QPRFFPO5.js";import{$a as d,B as F,Cc as B,Ia as u,Ib as _,Ja as h,Mb as S,Nb as v,Ob as y,Pb as E,Q as D,Qb as R,X as T,Za as w,Zb as C,_b as x,da as M,ga as N,lb as a,mb as p,nb as b,oa as s,pa as c,rb as I,ub as g,vc as L,wb as o,yc as A}from"./chunk-C3YE27TZ.js";import"./chunk-GNOSNGXM.js";function ee(r,l){if(r&1){let n=I();a(0,"button",15),g("click",function(){s(n);let t=o().ngIf,i=o(2);return c(i.onUpdateItems(t))}),b(1,"i",16),_(2," Update "),p()}}function te(r,l){if(r&1&&(a(0,"div"),w(1,ee,3,0,"button",14),p()),r&2){let n=l.ngIf,e=o(2);u(),d("ngIf",e.productService.hasSelectionVariant(n))}}function ie(r,l){if(r&1){let n=I();a(0,"mainpanel",1),g("onSubmit",function(t){s(n);let i=o();return c(i.onSearch(t))}),a(1,"actions")(2,"div",2),w(3,te,2,1,"div",3),C(4,"async"),a(5,"button",4),g("click",function(){s(n);let t=o();return c(t.openExportDialog())}),b(6,"i",5),a(7,"span"),_(8,"Export"),p()()()(),a(9,"filters")(10,"div")(11,"label",6),_(12,"Page Number"),p(),a(13,"input",7),y("ngModelChange",function(t){s(n);let i=o();return v(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),c(t)}),p()(),a(14,"div",8)(15,"label",6),_(16,"Page Size"),p(),a(17,"input",7),y("ngModelChange",function(t){s(n);let i=o();return v(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),c(t)}),p()()(),a(18,"content")(19,"div",9)(20,"div",10)(21,"div",11)(22,"app-table",12),C(23,"async"),g("onToggle",function(t){s(n);let i=o();return c(i.onShowDifferencePrice(t))})("onSubmit",function(t){s(n);let i=o();return c(i.updatePriceByVariant(t))}),p(),a(24,"infinite-paginator",13),C(25,"async"),g("onNextPage",function(){s(n);let t=o();return c(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){s(n);let t=o();return c(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){s(n);let t=o();return c(t.infinitePagination.getRowCount(t.searchFilter))}),p()()()()()()}if(r&2){let n=l.ngIf,e=o();d("textButton","Search"),u(3),d("ngIf",x(4,14,e.data$)),u(10),S("ngModel",e.searchFilter.PageNumber),u(4),S("ngModel",e.searchFilter.RowCount),u(5),d("showProductToggle",!0)("data",x(23,16,e.data$))("channel",e.channelOptions)("filter",n.Filter),u(2),d("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",x(25,18,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}}var Se=(()=>{let l=class l{constructor(e,t,i,P,f){this.http=e,this.toastr=t,this.dialog=i,this.productService=P,this.authService=f,this.infinitePagination=M(V),this.loaderAPI="PriceLoader/LoadMultiple",this.getDataAPI="Price/GetMultipleChannelComparison",this.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.data$=this.infinitePagination.data$.pipe(D()),this.filterOptions=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Price",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!0},{Title:"Price Realtime",Url:"/menu/price/realtime",Active:!1}]},this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.getDataAPI,this.infinitePagination.fethRowCountEndpoint=this.rowCountAPI,this.loader$=this.http.post(`/api/${this.loaderAPI}`).pipe(T(e=>{e.Filter={PageNumber:e.Filter.PageNumber,RowCount:e.Filter.RowCount,filterModel:1},this.searchFilter=e.Filter,this.infinitePagination.reloadPagination(this.searchFilter)}))}onShowDifferencePrice(e){this.searchFilter.filterModel=1,e&&(this.searchFilter.filterModel=3),this.infinitePagination.reloadPagination(this.searchFilter)}onSearch(e){this.searchFilter.text=e,this.infinitePagination.reloadPagination(this.searchFilter)}updatePrice(e){let t=this.productService.selectedVariantProduct(e);if(t.length>0){let P=t.map(m=>({ID:m.ID,Code:m.Code,Price:m.UnitPrice}));var i=this.channelOptions.filter(m=>m.selected).map(m=>m.ID);let f={ListChannelID:i,ListPrice:P};this.http.post("/api/Price/UpdateChannel",f).subscribe(m=>{this.infinitePagination.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+f.ListPrice.length+" items in "+f.ListChannelID.length+" channels","Success")})}}updatePriceByVariant(e){let t={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,Price:e.Price-0,VariantID:e.ID};this.http.post("/api/Price/UpdatePriceByID",t).subscribe(i=>{let P=this.productService.findChannelById(t.ID,this.channelOptions);this.toastr.success("Successfully updated "+e.ItemName+"("+e.VarName+") price in "+P.Name+" to "+t.Price,"Success"),this.infinitePagination.reloadPagination(this.searchFilter)})}onUpdateItems(e){let t=this.productService.selectedVariantProduct(e);this.dialog.open(X,{data:{selectedItems:t,channels:this.channelOptions},width:"600px"}).afterClosed().pipe(F(i=>i!==void 0)).subscribe(i=>{this.channelOptions=i,this.updatePrice(e)})}openExportDialog(){this.dialog.open(Q,{data:{title:"Export Multi Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountAPI,exportApi:"price/GetExportMultipleChannelComparison"}}).afterClosed().subscribe()}};l.\u0275fac=function(t){return new(t||l)(h(U),h(O),h(K),h(J),h(H))},l.\u0275cmp=N({type:l,selectors:[["app-price-pos-channel"]],standalone:!0,features:[E([V]),R],decls:2,vars:3,consts:[["headerTitle","Price Comparison",3,"textButton","onSubmit",4,"ngIf"],["headerTitle","Price Comparison",3,"onSubmit","textButton"],[1,"d-flex"],[4,"ngIf"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"mt-5"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["productToggleTitle","FILTER DIFFERENT PRICE","table","price",3,"onToggle","onSubmit","showProductToggle","data","channel","filter"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"]],template:function(t,i){t&1&&(w(0,ie,26,20,"mainpanel",0),C(1,"async")),t&2&&d("ngIf",x(1,1,i.loader$))},dependencies:[B,L,A,$,k,W,j,G,Z,z,q,Y],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]});let r=l;return r})();export{Se as PricePosChannelComponent};
|