dealpostools 26.7.1 → 26.10.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/package.json +1 -1
- package/tools/{chunk-AXLUP37E.js → chunk-53ZSWGKX.js} +1 -1
- package/tools/{chunk-2WDTZ3VT.js → chunk-HTHPGNV2.js} +3 -3
- package/tools/chunk-LR6T3R3I.js +6 -0
- package/tools/{chunk-DJP2F6H5.js → chunk-SBCULXBI.js} +1 -1
- package/tools/{chunk-HSHUS5AK.js → chunk-ZI5QIHT3.js} +1 -1
- package/tools/index.html +2 -2
- package/tools/main-JJBMCFQB.js +3 -0
- package/tools/chunk-DHQHJ6UA.js +0 -7
- package/tools/main-VZYSE2DO.js +0 -3
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"dealpostools","version":"26.
|
|
1
|
+
{"name":"dealpostools","version":"26.10.0"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as T}from"./chunk-P5ZXR2EH.js";import{a as R,b as $}from"./chunk-
|
|
1
|
+
import{b as T}from"./chunk-P5ZXR2EH.js";import{a as R,b as $}from"./chunk-LR6T3R3I.js";import{m as F,n as N}from"./chunk-JE7GX46V.js";import"./chunk-ECQVGSVH.js";import"./chunk-H6RLFBCZ.js";import"./chunk-JDFDQJ6S.js";import"./chunk-BBGB7I4B.js";import{a as L}from"./chunk-COJKEZQI.js";import{a as E,b as I}from"./chunk-R7V244PA.js";import{A as w,F as P,Q as k,p as O,s as M}from"./chunk-BT72VCKJ.js";import{Ha as d,Hb as u,Lb as j,M as f,Mb as v,Nb as b,Pb as y,Sa as g,W as C,Xb as _,Yb as A,_ as a,ab as m,mb as n,nb as s,ob as S,va as c,vb as p,xc as D}from"./chunk-I36W3GX2.js";import"./chunk-K2H6WANG.js";var h=(()=>{class e{constructor(){this.httpService=a(M),this.url=`https://${localStorage.getItem("Domain")}/API/`}recalculateAdjustmentOutputCost(t,i,o){let l={From:t,To:i,ListIDs:o};return this.httpService.post(`${this.url}tools/UnitCost/InventoryAdjustmentItemCost`,l)}getOutletList(){return this.httpService.get(`${this.url}Outlet/SelectOptions/2`).pipe(f(1))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();var rt=(()=>{class e{constructor(){this.adjustmentCostService=a(h),this.toastr=a(O),this.outletList$=this.adjustmentCostService.getOutletList(),this.from=c(null),this.to=c(null),this.selectedOutlets=c([]),this.costDesc=R.Adjustment}onDateChange(t){this.from.set(t.from),this.to.set(t.to)}onProcess(){if(!this.from()||!this.to()||this.selectedOutlets().length===0){this.toastr.error("Please select a date range and an outlet.","Error");return}this.adjustmentCostService.recalculateAdjustmentOutputCost(this.from(),this.to(),this.selectedOutlets()).subscribe({next:t=>{t.Affected>0?this.toastr.success(`${t.Affected} job orders successfully recalculated. ${t.NotAffected} job orders not affected.`,"Success"):this.toastr.info("No job orders were affected.","Information")}})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=g({type:e,selectors:[["app-adjustment-cost"]],features:[y([h])],decls:16,vars:9,consts:[["Title","Adjustment",3,"hideSearchBox","hideSearchDropdown"],["type","button",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"container-fluid"],[3,"unitCostDesc"],[1,"d-inline","ms-10"],[1,"mb-2"],["bindLabel","v","bindValue","k","placeholder","Select an Outlet",2,"width","250px",3,"ngModelChange","clearable","items","multiple","ngModel"],[1,"mb-2","mt-8"],[2,"width","250px"],[1,"net-sales-filter",3,"dateChange"]],template:function(i,o){i&1&&(n(0,"mainpanel",0)(1,"actions")(2,"button",1),p("click",function(){return o.onProcess()}),u(3," Process "),s()(),n(4,"content")(5,"div",2),S(6,"unit-cost-description",3),n(7,"div",4)(8,"h6",5),u(9,"Outlet"),s(),n(10,"ng-select",6),_(11,"async"),b("ngModelChange",function(r){return v(o.selectedOutlets,r)||(o.selectedOutlets=r),r}),s(),n(12,"h6",7),u(13,"From - To"),s(),n(14,"div",8)(15,"app-datepicker-range",9),p("dateChange",function(r){return o.onDateChange(r)}),s()()()()()()),i&2&&(m("hideSearchBox",!0)("hideSearchDropdown",!0),d(6),m("unitCostDesc",o.costDesc),d(4),m("clearable",!0)("items",A(11,7,o.outletList$))("multiple",!0),j("ngModel",o.selectedOutlets))},dependencies:[I,E,T,k,w,P,D,L,N,F,$],encapsulation:2})}}return e})();export{rt as AdjustmentCostComponent};
|