import{j as e}from"./index-B1H8BCL7.js";import{v as t,w as r,x as a,y as o}from"./stockApi-D1nxeMJU.js";import{M as i}from"./MasterCrudPage-CDZ3AmII.js";import"./Add-DvXlrcIU.js";import"./EditOutlined-DJ1zS7Rv.js";import"./DeleteOutline-DENqzAfR.js";import"./Search-B5Qac1u3.js";import"./snackbarUtils-DGP0fyXd.js";import"./DialogBox-CKrZZv0I.js";import"./Close-CR51dqFW.js";import"./Stack-BIAbaqpj.js";import"./useThemeProps-DL_l3A7P.js";import"./InputAdornment-BMBVR6Ec.js";import"./TableContainer-CXAjhAg6.js";import"./TableRow-BfKE_xn9.js";import"./TableCell-D8CotAsC.js";import"./Grid-CTEl0Elf.js";const s=[{key:"vendorCode",header:"Code",width:110},{key:"name",header:"Name"},{key:"gstin",header:"GSTIN",width:140},{key:"contactPhone",header:"Phone",width:140},{key:"contactEmail",header:"Email",width:200},{key:"leadTimeDays",header:"Lead (d)",width:90,align:"right"}],d=[{key:"vendorCode",label:"Vendor Code",required:!0},{key:"name",label:"Vendor Name",required:!0,fullWidth:!0},{key:"gstin",label:"GSTIN"},{key:"contactPhone",label:"Contact Phone"},{key:"contactEmail",label:"Contact Email",type:"email"},{key:"leadTimeDays",label:"Lead Time (days)",type:"number",helperText:"Used by reorder suggestions"},{key:"paymentTerms",label:"Payment Terms",helperText:"e.g. NET 30 / Advance / On Delivery"},{key:"address",label:"Address",fullWidth:!0,multiline:!0,minRows:2}],n={vendorCode:"",name:"",gstin:"",contactPhone:"",contactEmail:"",address:"",leadTimeDays:7,paymentTerms:"",active:!0},L=()=>e.jsx(i,{title:"Vendors",subtitle:"Suppliers used on Purchase Orders + Goods Receipts. Lead time feeds the reorder algorithm.",hooks:{useList:o,useCreate:a,useUpdate:r,useDeactivate:t},columns:s,formFields:d,defaultRow:n,searchKeys:["vendorCode","name","gstin"]});export{L as default};
