Enhance duplicate detection with sales/admin access and field updates
- Extend duplicate detection access from admin-only to sales/admin users - Update field names for better clarity (Email → Email Address, etc.) - Add duplicate notification banner to expenses page - Improve authorization checks with role-based access control
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
import type { Interest, Berth, Expense, ExpenseFilters } from "@/utils/types";
|
||||
|
||||
// Data normalization functions
|
||||
export const normalizePersonName = (name: string): string => {
|
||||
if (!name) return 'Unknown';
|
||||
|
||||
// Trim whitespace and normalize case
|
||||
return name.trim()
|
||||
.split(' ')
|
||||
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
||||
.join(' ');
|
||||
};
|
||||
|
||||
export interface PageInfo {
|
||||
pageSize: number;
|
||||
totalRows: number;
|
||||
|
||||
Reference in New Issue
Block a user