mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 04:22:58 +00:00
Add files via upload
This commit is contained in:
@@ -243,13 +243,8 @@ func parseTable(f *excelize.File, sheetName, startCol, endCol string) []Contact
|
||||
Name: strings.TrimSpace(row[nameCol]),
|
||||
Position: safeGet(row, positionCol, ""),
|
||||
Phone: formatPhoneNumber(safeGet(row, phoneCol, "")),
|
||||
ServicePhone: formatPhoneNumber(safeGet(row, servicePhoneCol, "")),
|
||||
PhoneFlap: formatPhoneFlap(safeGet(row, flapCol, "")),
|
||||
}
|
||||
|
||||
// Check for mobile klapka if exists
|
||||
if len(row) > 4 && row[4] != "" {
|
||||
contact.ServicePhone = formatPhoneNumber(row[4])
|
||||
ServicePhone: formatPhoneNumber(safeGet(row, servicePhoneCol, "")), // Full mobile number
|
||||
PhoneFlap: formatPhoneFlap(safeGet(row, flapCol, "")), // Internal extension with *
|
||||
}
|
||||
|
||||
contacts = append(contacts, contact)
|
||||
|
||||
Reference in New Issue
Block a user