type PlanningEntryIdentity = {
  id: string;
  entityId?: string | null;
  sourceAllocationId?: string | null;
};

export function getPlanningEntryMutationId(entry: PlanningEntryIdentity): string {
  return entry.entityId ?? entry.sourceAllocationId ?? entry.id;
}
