marketplacepos 3.11.4 → 3.11.6

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 (25) hide show
  1. package/Marketplace/{chunk-L4DP3Q4W.js → chunk-2O6KYIFC.js} +1 -1
  2. package/Marketplace/chunk-3QAMTLNB.js +3 -0
  3. package/Marketplace/{chunk-OHTJCLX7.js → chunk-5DJHCNOC.js} +1 -1
  4. package/Marketplace/chunk-BD5SMP3B.js +1 -0
  5. package/Marketplace/{chunk-ZIW2YTBP.js → chunk-BFB7MXXJ.js} +1 -1
  6. package/Marketplace/{chunk-C45X4NQK.js → chunk-CMKSEIUM.js} +1 -1
  7. package/Marketplace/{chunk-KYJA5TD4.js → chunk-HJDBNMZS.js} +1 -1
  8. package/Marketplace/{chunk-5SE72MGC.js → chunk-JGXFH32F.js} +1 -1
  9. package/Marketplace/{chunk-IPGAIBF6.js → chunk-JQO7P26T.js} +1 -1
  10. package/Marketplace/{chunk-JPAJ6YR6.js → chunk-NSXGLHYH.js} +1 -1
  11. package/Marketplace/{chunk-3LQ5TKLD.js → chunk-OKEA4W2I.js} +1 -1
  12. package/Marketplace/{chunk-VO5VAOZH.js → chunk-PPLACGQI.js} +1 -1
  13. package/Marketplace/{chunk-VK32VX4W.js → chunk-RKDI7CIB.js} +1 -1
  14. package/Marketplace/{chunk-D72PMDHY.js → chunk-RZ64BVFI.js} +1 -1
  15. package/Marketplace/{chunk-6HBK3C7G.js → chunk-SZAOPIAL.js} +1 -1
  16. package/Marketplace/{chunk-6WGRXHNE.js → chunk-UC57IYQT.js} +1 -1
  17. package/Marketplace/{chunk-3PX6SSDC.js → chunk-UKSDL7LF.js} +1 -1
  18. package/Marketplace/{chunk-PZJCL4YS.js → chunk-W57W62AZ.js} +1 -1
  19. package/Marketplace/{chunk-XOYXFFE6.js → chunk-W6KTDTXB.js} +1 -1
  20. package/Marketplace/index.html +2 -2
  21. package/Marketplace/{main-RSHB3ATI.js → main-AFNJEGW2.js} +1 -1
  22. package/Marketplace/{styles-D4MZYFH2.css → styles-STRQ65W6.css} +1 -1
  23. package/package.json +1 -1
  24. package/Marketplace/chunk-QK22WK2Q.js +0 -1
  25. package/Marketplace/chunk-SQDLJ6C7.js +0 -3
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"marketplacepos","version":"3.11.4"}
1
+ {"name":"marketplacepos","version":"3.11.6"}
@@ -1 +0,0 @@
1
- import{a as fe}from"./chunk-YZ67XPSX.js";import{b as _}from"./chunk-GSSZWMCP.js";import"./chunk-XDNW2F3I.js";import"./chunk-TDHJ34QP.js";import"./chunk-INNTQ5YN.js";import{a as de,b as ce}from"./chunk-SRYGE2HW.js";import"./chunk-DT3B54LD.js";import{a as L}from"./chunk-3LQ5TKLD.js";import"./chunk-OHTJCLX7.js";import{e as oe}from"./chunk-K3G6FMDF.js";import"./chunk-JM3LERUP.js";import{C as D,D as pe}from"./chunk-ZKBLXGXT.js";import"./chunk-6B64VOO7.js";import{u as me}from"./chunk-SP6QPE3M.js";import{c as f}from"./chunk-6F6NSBIF.js";import{$ as J,$a as X,Ab as c,Bb as N,Cb as Z,Eb as u,Fb as y,Gb as g,Ha as G,Ia as s,Ja as h,Jb as $,Ob as ee,Q as V,Rb as A,Sb as j,Wa as C,Wc as ae,X as H,Ya as p,Yc as le,_c as se,aa as Q,ca as K,fb as o,gb as a,ha as S,hb as T,ia as z,kb as Y,kc as te,lc as w,oa as q,ob as P,oc as ie,pc as b,qb as v,rc as re,sc as ne,tb as U}from"./chunk-6DRNAUKE.js";import"./chunk-GRMIXZTT.js";var he=(()=>{let r=class r{constructor(){this.reportTabs=[{Title:"Create Sales Order Order",Url:"/menu/sync-log/order/sync-order"},{Title:"Convert Sales Order To Invoice",Url:"/menu/sync-log/order/convert-to-invoice"},{Title:"Create Invoice",Url:"/menu/sync-log/order/invoice"},{Title:"Create Outbound Logistic",Url:"/menu/sync-log/order/delivery"},{Title:"Create Payment",Url:"/menu/sync-log/order/payment"},{Title:"Void Invoice",Url:"/menu/sync-log/order/void-invoice"},{Title:"All",Url:"/menu/sync-log/order/all"}]}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=S({type:r,selectors:[["app-order"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(i,t){i&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),T(3,"nav-tab",2),a()()(),T(4,"router-outlet")),i&2&&(s(3),p("Tabs",t.reportTabs))},dependencies:[de,ae],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]});let n=r;return n})();var F=class{};var I=(()=>{let r=class r{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((i,t)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(d=>{i(d)})})}GetSyncInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/CreateInvoice",JSON.stringify(e)).subscribe(d=>{i(d)})})}GetSyncVoidInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/Void",JSON.stringify(e)).subscribe(d=>{i(d)})})}GetSyncConvertInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/ConvertToInvoice",JSON.stringify(e)).subscribe(d=>{i(d)})})}GetSyncDelivery(e){return new Promise((i,t)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(d=>{i(d)})})}GetSyncPayment(e){return new Promise((i,t)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(d=>{i(d)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}};r.\u0275fac=function(i){return new(i||r)(K(oe))},r.\u0275prov=J({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var R=function(n){return n[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n}(R||{});var Fe=()=>["/menu/log/order"],Pe=(n,r,m,e,i)=>({responseCode:n,From:r,to:m,actionType:e,ChannelID:i});function we(n,r){if(n&1&&(o(0,"th",9)(1,"div",10)(2,"h4"),c(3),a(),o(4,"small",11),c(5),a()()()),n&2){let m=r.$implicit,e=v();s(3),N(m),s(),X(e.getTextBgColor(m)),s(),N(e.getHeaderStatusDesc(m))}}function be(n,r){if(n&1&&(o(0,"td",14)(1,"a",15),c(2),a()()),n&2){let m=r.$implicit,e=v().$implicit,i=v();s(),p("routerLink",$(3,Fe))("queryParams",ee(4,Pe,m.Key,i.fromQueryParam,i.toQueryParam,i.type,e.ChannelID)),s(),Z(" ",m.Value," ")}}function De(n,r){if(n&1&&(o(0,"tr")(1,"td")(2,"a",12),T(3,"img",13),a()(),o(4,"td")(5,"div")(6,"a",12),c(7),a()(),o(8,"div"),c(9),a()(),C(10,be,3,10,"td",8),a()),n&2){let m=r.$implicit,e=v();s(2),U("href",m.Url,G),s(),p("src",e.getChannelLogo(m.Type),G),s(3),U("href",m.Url,G),s(),N(m.Name),s(2),N(m.Url),s(),p("ngForOf",m.list)}}function Ie(n,r){if(n&1&&(o(0,"td",14)(1,"div",16),c(2),A(3,"number"),a()()),n&2){let m=r.$implicit;s(2),N(j(3,1,m.total))}}var E=(()=>{let r=class r{constructor(){this.type=null,this.headerStatus=R,this.listCalculationStatusCode=[]}set from(e){e&&(this.fromQueryParam=new Date(e).toJSON().toString())}set to(e){e&&(this.toQueryParam=new Date(e).toJSON().toString())}ngOnChanges(e){e.result&&this.calculateStatusCode()}getHeaderStatusDesc(e){let i=null;switch(e){case R.BAD_REQUEST:i="BAD REQUEST";break;case R.CONFLICT:i="CONFLICT";break;case R.INTERNAL_SERVER_ERROR:i="INTERNAL SERVER ERROR";break;case R.NOT_FOUND:i="NOT FOUND";break;default:i="OK";break}return i}getTextBgColor(e){let i=null;switch(e){case R.OK:i="bg-success";break;case R.INTERNAL_SERVER_ERROR:i="bg-danger";break;default:i="bg-warning";break}return i}getChannelLogo(e){return f.getChannelLogoByTypeId(e)}calculateStatusCode(){if(this.listCalculationStatusCode=[],this.result){let e,i;this.concatStatusCode().forEach(t=>{e=this.listCalculationStatusCode.findIndex(d=>d.status==t.Key),i=e!==-1,i?this.listCalculationStatusCode[e].total+=t.Value:this.listCalculationStatusCode=[...this.listCalculationStatusCode,{status:t.Key,total:t.Value}]})}}concatStatusCode(){return this.result.map(e=>e.list).reduce((e,i)=>[...e,...i])}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=S({type:r,selectors:[["app-table-report"]],inputs:{header:"header",result:"result",from:"from",to:"to",type:"type"},features:[q],decls:15,vars:3,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],["class","text-start","style","width: 10%;",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"text-center","h3","fw-bold"],["class","text-start",4,"ngFor","ngForOf"],[1,"text-start",2,"width","10%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href"],[2,"width","24px","height","24px",3,"src"],[1,"text-start"],[1,"h3","text-primary","fw-bold","ms-1",3,"routerLink","queryParams"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(i,t){i&1&&(o(0,"table",0)(1,"thead",1)(2,"tr"),T(3,"th",2),o(4,"th",3),c(5,"Channel"),a(),C(6,we,6,4,"th",4),a()(),o(7,"tbody"),C(8,De,11,6,"tr",5),a(),o(9,"tfoot")(10,"tr")(11,"td",6)(12,"div",7),c(13,"Total"),a()(),C(14,Ie,4,3,"td",8),a()()()),i&2&&(s(6),p("ngForOf",t.header),s(2),p("ngForOf",t.result),s(6),p("ngForOf",t.listCalculationStatusCode))},dependencies:[te,le,re],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]});let n=r;return n})();function Ee(n,r){if(n&1&&(o(0,"div",6)(1,"div",7),T(2,"app-table-report",8),a()()),n&2){let m=v();s(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",0)}}var ue=(()=>{let r=class r{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new F,this.pageTitle="New Order";let t=new Date;this.maxDate=t,this.minDate=f.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(i){return new(i||r)(h(I),h(b))},r.\u0275cmp=S({type:r,selectors:[["app-sales-order"]],decls:10,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.getChannelLogs()}),o(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),a(),o(5,"datepicker",2),g("dateChange",function(l){return y(t.filter.From,l)||(t.filter.From=l),l}),a(),o(6,"datepicker",3),g("dateChange",function(l){return y(t.filter.To,l)||(t.filter.To=l),l}),a()()(),o(7,"content")(8,"div",4),C(9,Ee,3,5,"div",5),a()()()),i&2&&(p("headerTitle",t.pageTitle)("hideSearchBox",!0),s(5),u("date",t.filter.From),s(),u("date",t.filter.To),s(3),p("ngIf",t.result))},dependencies:[w,D,_,E]});let n=r;return n})();function Oe(n,r){if(n&1&&(o(0,"div",6)(1,"div",7),T(2,"app-table-report",8),a()()),n&2){let m=v();s(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",1)}}var ye=(()=>{let r=class r{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new F,this.PageTitle="Ready to Ship";let t=new Date;this.maxDate=t,this.minDate=f.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(i){return new(i||r)(h(I),h(b))},r.\u0275cmp=S({type:r,selectors:[["app-invoice"]],decls:10,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),a(),o(5,"datepicker",2),g("dateChange",function(l){return y(t.filter.From,l)||(t.filter.From=l),l}),a(),o(6,"datepicker",3),g("dateChange",function(l){return y(t.filter.To,l)||(t.filter.To=l),l}),a()()(),o(7,"content")(8,"div",4),C(9,Oe,3,5,"div",5),a()()()),i&2&&(p("headerTitle",t.PageTitle)("hideSearchBox",!0),s(5),u("date",t.filter.From),s(),u("date",t.filter.To),s(3),p("ngIf",t.result))},dependencies:[w,D,_,E]});let n=r;return n})();function Re(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),T(2,"app-table-report",9),a()()),n&2){let m=v();s(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",3)}}var ge=(()=>{let r=class r{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new F;let t=new Date;this.maxDate=t,this.minDate=f.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncDelivery(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(i){return new(i||r)(h(I),h(b))},r.\u0275cmp=S({type:r,selectors:[["app-delivery"]],decls:10,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"filterDate"],[1,"fw-bold"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.onFilter()}),o(1,"filters")(2,"div",1)(3,"h6",2),c(4,"From/To"),a(),o(5,"datepicker",3),g("dateChange",function(l){return y(t.filter.From,l)||(t.filter.From=l),l}),a(),o(6,"datepicker",4),g("dateChange",function(l){return y(t.filter.To,l)||(t.filter.To=l),l}),a()()(),o(7,"content")(8,"div",5),C(9,Re,3,5,"div",6),a()()()),i&2&&(p("headerTitle",t.PageTitle)("hideSearchBox",!0),s(5),u("date",t.filter.From),s(),u("date",t.filter.To),s(3),p("ngIf",t.result))},dependencies:[w,D,_,E]});let n=r;return n})();function Le(n,r){if(n&1&&(o(0,"div",6)(1,"div",7),T(2,"app-table-report",8),a()()),n&2){let m=v();s(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",4)}}var Ce=(()=>{let r=class r{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new F,this.PageTitle="Completed";let t=new Date;this.minDate=f.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncPayment(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(i){return new(i||r)(h(I),h(b))},r.\u0275cmp=S({type:r,selectors:[["app-payment"]],decls:10,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),a(),o(5,"datepicker",2),g("dateChange",function(l){return y(t.filter.From,l)||(t.filter.From=l),l}),a(),o(6,"datepicker",3),g("dateChange",function(l){return y(t.filter.To,l)||(t.filter.To=l),l}),a()()(),o(7,"content")(8,"div",4),C(9,Le,3,5,"div",5),a()()()),i&2&&(p("headerTitle",t.PageTitle)("hideSearchBox",!0),s(5),u("date",t.filter.From),s(),u("date",t.filter.To),s(3),p("ngIf",t.result))},dependencies:[w,D,_,E]});let n=r;return n})();function Me(n,r){n&1&&Y(0)}function ke(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),T(2,"app-table-report",9),a()()),n&2){let m=r.ngIf,e=v();s(2),p("result",m.Body)("header",m.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var Te=(()=>{let r=class r{constructor(e,i){this.reportOrderService=e,this.datePipe=i,this.filter=new F}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":i+"-"} ${t})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe(H(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(V())}onFilter(){this.updatePageTitle(),this.initData()}};r.\u0275fac=function(i){return new(i||r)(h(I),h(b))},r.\u0275cmp=S({type:r,selectors:[["app-all"]],decls:13,vars:10,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[4,"ngIf"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(i,t){i&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),a(),o(5,"datepicker",2),g("dateChange",function(l){return y(t.filter.From,l)||(t.filter.From=l),l}),a(),o(6,"datepicker",3),g("dateChange",function(l){return y(t.filter.To,l)||(t.filter.To=l),l}),a()()(),o(7,"content")(8,"div",4),C(9,Me,1,0,"ng-container",5),A(10,"async"),C(11,ke,3,4,"div",6),A(12,"async"),a()()()),i&2&&(p("headerTitle",t.pageTitle)("hideSearchBox",!0),s(5),u("date",t.filter.From),s(),u("date",t.filter.To),s(3),p("ngIf",j(10,6,t.pageLoader$)),s(2),p("ngIf",j(12,8,t.reportData$)))},dependencies:[w,D,_,E,ie]});let n=r;return n})();function xe(n,r){if(n&1&&(o(0,"div",6)(1,"div",7),T(2,"app-table-report",8),a()()),n&2){let m=v();s(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",1)}}var ve=(()=>{let r=class r{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new F,this.PageTitle="Convert Sales Order To Invoice";let t=new Date;this.maxDate=t,this.minDate=f.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Convert Sales Order To Invoice (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(i){return new(i||r)(h(I),h(b))},r.\u0275cmp=S({type:r,selectors:[["app-convert-invoice"]],decls:10,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),a(),o(5,"datepicker",2),g("dateChange",function(l){return y(t.filter.From,l)||(t.filter.From=l),l}),a(),o(6,"datepicker",3),g("dateChange",function(l){return y(t.filter.To,l)||(t.filter.To=l),l}),a()()(),o(7,"content")(8,"div",4),C(9,xe,3,5,"div",5),a()()()),i&2&&(p("headerTitle",t.PageTitle)("hideSearchBox",!0),s(5),u("date",t.filter.From),s(),u("date",t.filter.To),s(3),p("ngIf",t.result))},dependencies:[w,D,_,E]});let n=r;return n})();function Ne(n,r){if(n&1&&(o(0,"div",6)(1,"div",7),T(2,"app-table-report",8),a()()),n&2){let m=v();s(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",1)}}var Se=(()=>{let r=class r{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new F,this.PageTitle="Ready to Ship";let t=new Date;this.maxDate=t,this.minDate=f.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(i){return new(i||r)(h(I),h(b))},r.\u0275cmp=S({type:r,selectors:[["app-void-invoice"]],decls:10,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),a(),o(5,"datepicker",2),g("dateChange",function(l){return y(t.filter.From,l)||(t.filter.From=l),l}),a(),o(6,"datepicker",3),g("dateChange",function(l){return y(t.filter.To,l)||(t.filter.To=l),l}),a()()(),o(7,"content")(8,"div",4),C(9,Ne,3,5,"div",5),a()()()),i&2&&(p("headerTitle",t.PageTitle)("hideSearchBox",!0),s(5),u("date",t.filter.From),s(),u("date",t.filter.To),s(3),p("ngIf",t.result))},dependencies:[w,D,_,E]});let n=r;return n})();var Be=[{path:"",component:he,children:[{path:"",redirectTo:"sync-order",pathMatch:"full"},{path:"sync-order",component:ue,canActivate:[L],data:{title:"Sync Order"}},{path:"convert-to-invoice",component:ve,canActivate:[L],data:{title:"Sync Convert to Invoice"}},{path:"invoice",component:ye,canActivate:[L],data:{title:"Sync Invoice"}},{path:"delivery",component:ge,canActivate:[L],data:{title:"Sync Delivery"}},{path:"payment",component:Ce,canActivate:[L],data:{title:"Sync Payment"}},{path:"void-invoice",component:Se,canActivate:[L],data:{title:"Sync void invoice"}},{path:"all",component:Te,canActivate:[L],data:{title:"All Report"}}]}],Rt=(()=>{let r=class r{};r.\u0275fac=function(i){return new(i||r)},r.\u0275mod=z({type:r}),r.\u0275inj=Q({imports:[ne,ce,me,pe,fe,_,se.forChild(Be)]});let n=r;return n})();export{Rt as OrderModule};