diff --git a/Xero.php b/Xero.php index 74bdf53..4941642 100644 --- a/Xero.php +++ b/Xero.php @@ -78,7 +78,7 @@ class Xero { $this->logConsole($msg); try{ - $this->sync_clients(); + //$this->sync_clients(); $this->sync_employees(); }catch(RateLimitExceededException $e){ $msg= "Xero API rate limit exceeded, please try again later, existing sync within 600 seconds will by passed automatically\n"; @@ -157,6 +157,7 @@ class Xero { $args['ID'] = $user->ID; unset($args['user_pass']); wp_update_user($args); + update_user_meta($user->ID, 'mobile', $args['mobile']); } $this->mark_updated($user->ID); } @@ -170,6 +171,7 @@ class Xero { 'first_name' => $e->getFirstName(), 'last_name' => $e->getLastName(), 'nickname' => $e->getFirstName(), + 'mobile' => $e->getMobile(), 'role' => 'staff', ]; return $args; @@ -180,8 +182,8 @@ class Xero { } private function get_last_sync($userid){ - $lastsync = get_user_meta($userid, 'lastsync'); - return (int)($lastsync[0]); + $lastsync = get_user_meta($userid, 'lastsync', true); + return (int)($lastsync); } private function is_too_close_to_sync($user){ diff --git a/css/bts_timesheet.css b/css/bts_timesheet.css index 951322d..828a828 100644 --- a/css/bts_timesheet.css +++ b/css/bts_timesheet.css @@ -111,7 +111,7 @@ body { position: relative; margin-top: 10px; margin-bottom: 10px; - height: 100px; + height: 120px; background: transparent; } @@ -123,7 +123,7 @@ div.peopleitem > label { transform-style: preserve-3d; display: block; width: 100%; - height: 100px; + height: 100%; position: absolute; left: 50%; top: 50%; diff --git a/html/peopleitem.html b/html/peopleitem.html index fa94ace..0fceb48 100644 --- a/html/peopleitem.html +++ b/html/peopleitem.html @@ -1,17 +1,17 @@ -