Bladeren bron

bugfix for xero refresh token when things goes wrong, email is sent to patrick for manual operation.

master
sp 3 jaren geleden
bovenliggende
commit
5d6a450011
3 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. +1
    -0
      .idea/vcs.xml
  2. +3
    -1
      Storage.php
  3. +2
    -3
      XeroOauth2Timesheet.php

+ 1
- 0
.idea/vcs.xml Bestand weergeven

<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" /> <mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/ts" vcs="Git" />
</component> </component>
</project> </project>

+ 3
- 1
Storage.php Bestand weergeven

$this->write_json(); $this->write_json();
} }



public function tokenExpiresHumanRedable(){
return $this->oauth2['expires_human'];
}
private function getExpiresHuman($time_stamp) { private function getExpiresHuman($time_stamp) {
$expire = date("Y-m-d H:i:s", $time_stamp); $expire = date("Y-m-d H:i:s", $time_stamp);
$utc_date = \DateTime::createFromFormat( $utc_date = \DateTime::createFromFormat(

+ 2
- 3
XeroOauth2Timesheet.php Bestand weergeven

$ts->setStatus(\XeroAPI\XeroPHP\Models\PayrollAu\TimesheetStatus::DRAFT); $ts->setStatus(\XeroAPI\XeroPHP\Models\PayrollAu\TimesheetStatus::DRAFT);
} }
//adding lines //adding lines
$tsLines = [];
$tsLines=[];
foreach ($rateshours as $rateId => $hours) foreach ($rateshours as $rateId => $hours)
{ {
$ts_line = new \XeroAPI\XeroPHP\Models\PayrollAu\TimesheetLine; $ts_line = new \XeroAPI\XeroPHP\Models\PayrollAu\TimesheetLine;
} }
} }
$this->apiPayrollAu->createTimesheet($this->oauth2->getTenantId(),$to_save); $this->apiPayrollAu->createTimesheet($this->oauth2->getTenantId(),$to_save);
return;
} }


public function approve_all(){ public function approve_all(){
$line->setNumberOfUnits($unit); $line->setNumberOfUnits($unit);
return $line; return $line;
} }
}
}

Laden…
Annuleren
Opslaan