import{b as m}from"./chunk-EWAR5E4G.js";import{h as i,i as v,p as o,s as u}from"./chunk-RAGTUOY6.js";import{q as a,r as P,u as p,v as f}from"./chunk-DYEAP73Z.js";import{c,d as b}from"./chunk-I6HXBYFU.js";import{od as s,wa as n}from"./chunk-HEIW4SFT.js";s();P();v();b();f();var l=class{static produceNewIdentFields(r={}){return m(()=>{let t=n(p);return[i.number({id:r.quantity?.id||"quantity",label:"Quantity",required:!0,component:o}),i.number({id:r.price?.id||"price",label:"Price",required:!0,component:o},void 0,"thousands"),i.number({id:r.discount?.id||"rabate1",label:"DiscountPerc",required:!0,component:o}),{id:r.costDrv?.id||"costDrv",searchable:!0,label:"CostCarrier",isDisplayed:r.costDrv?.displayed||!1,component:u,apiRequest:e=>t.get(a.general.costdrvLookup(e)),valueMapper:e=>e.key,labelMapper:e=>`${e.value}`}]})}static afterIdentUpdate(r,t){t.taxPriceSale=t.taxPrice,c.isSet(r.totalPriceWithVAT)&&(t.totalPriceWithVAT=t.totalPrice),c.isSet(r.totalPriceWithVat)&&(t.totalPriceWithVat=t.totalPrice)}};export{l as a};
