import { ItemListItem } from "@/types/master-data"

export function getSuggestedUnitPrice(items: ItemListItem[], itemId: number | null | undefined): number | null {
  if (!itemId) return null
  return items.find((item) => item.itemId === itemId)?.salePrice ?? null
}