mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 12:32:59 +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]),
|
Name: strings.TrimSpace(row[nameCol]),
|
||||||
Position: safeGet(row, positionCol, ""),
|
Position: safeGet(row, positionCol, ""),
|
||||||
Phone: formatPhoneNumber(safeGet(row, phoneCol, "")),
|
Phone: formatPhoneNumber(safeGet(row, phoneCol, "")),
|
||||||
ServicePhone: formatPhoneNumber(safeGet(row, servicePhoneCol, "")),
|
ServicePhone: formatPhoneNumber(safeGet(row, servicePhoneCol, "")), // Full mobile number
|
||||||
PhoneFlap: formatPhoneFlap(safeGet(row, flapCol, "")),
|
PhoneFlap: formatPhoneFlap(safeGet(row, flapCol, "")), // Internal extension with *
|
||||||
}
|
|
||||||
|
|
||||||
// Check for mobile klapka if exists
|
|
||||||
if len(row) > 4 && row[4] != "" {
|
|
||||||
contact.ServicePhone = formatPhoneNumber(row[4])
|
|
||||||
}
|
}
|
||||||
|
|
||||||
contacts = append(contacts, contact)
|
contacts = append(contacts, contact)
|
||||||
|
|||||||
Reference in New Issue
Block a user