From 54c37ddd75df4281170fe78cfdf94fed579e7cde Mon Sep 17 00:00:00 2001 From: sp Date: Wed, 6 Oct 2021 18:24:16 +1100 Subject: [PATCH] bug fix timesheet sync --- XeroOauth2Timesheet.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/XeroOauth2Timesheet.php b/XeroOauth2Timesheet.php index 5f4175a..ee9fd1d 100644 --- a/XeroOauth2Timesheet.php +++ b/XeroOauth2Timesheet.php @@ -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(){