import{b as u}from"./chunk-3CCCVZ2I.js";import{h as i,i as P,p as o,s as l}from"./chunk-HQWCEBNO.js";import{s,t as b,w as c,x as h}from"./chunk-CPKBOKTQ.js";import{c as n,d}from"./chunk-ANX7B7LC.js";import{nd as m,wa as a}from"./chunk-PGS4AHIT.js";m();b();P();d();h();var A=(()=>{class p{static{this.newIdentSearch={priceWidth:"120px",stockWidth:"60px"}}static produceNewIdentFields(t={}){return u(()=>{let e=a(c);return[i.number({id:t.quantity?.id||"quantity",label:"Quantity",required:!0,component:o}),i.number({id:t.price?.id||"price",label:"Price",required:!0,component:o},void 0,"thousands"),i.number({id:t.discount?.id||"rabate1",label:"DiscountPerc",required:!0,component:o}),{id:t.costDrv?.id||"costDrv",searchable:!0,label:"CostCarrier",isDisplayed:t.costDrv?.displayed||!1,component:l,apiRequest:r=>e.get(s.general.costdrvLookup(r)),valueMapper:r=>r.key,labelMapper:r=>`${r.value}`}]})}static afterIdentUpdate(t,e){e.taxPriceSale=e.taxPrice,n.isSet(t.totalPriceWithVAT)&&(e.totalPriceWithVAT=e.totalPrice),n.isSet(t.totalPriceWithVat)&&(e.totalPriceWithVat=e.totalPrice)}}return p})();export{A as a};
