Explorar el Código

bug fix timesheet sync

master
sp hace 4 años
padre
commit
54c37ddd75
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      XeroOauth2Timesheet.php

+ 2
- 0
XeroOauth2Timesheet.php Ver fichero

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

public function approve_all(){

Cargando…
Cancelar
Guardar