mirror of
https://github.com/itflow-org/itflow
synced 2026-11-29 23:58:59 +00:00
Offices: list other offices under Admin > Settings > Company Details with who works from each, pick an agent's office in Admin > Users and on invites, start new trips from the driver's office with From following the driver, and show the agent's office address and contact line at the foot of ticket emails; database 3.9.0 adds the offices table, users.user_office_id and user_invites.invite_office_id
This commit is contained in:
@@ -15,8 +15,8 @@ $sent = function ($field, $current) {
|
||||
|
||||
$trip_in = [
|
||||
'date' => $sent('trip_date', $trip_row['trip_date'] ?? date('Y-m-d')),
|
||||
// From the office, unless it says otherwise
|
||||
'source' => $sent('trip_source', $trip_row['trip_source'] ?? tripOfficeAddress()),
|
||||
// From the driver's office, unless it says otherwise
|
||||
'source' => $sent('trip_source', $trip_row['trip_source'] ?? (officeTripStart($sent('trip_user_id', $session_user_id)) ?: tripOfficeAddress())),
|
||||
'destination' => $sent('trip_destination', $trip_row['trip_destination'] ?? ''),
|
||||
'purpose' => $sent('trip_purpose', $trip_row['trip_purpose'] ?? ''),
|
||||
// The distance one way - a round trip is twice it
|
||||
|
||||
Reference in New Issue
Block a user