瀏覽代碼

bug fix timesheet sync

master
sp 4 年之前
父節點
當前提交
54c37ddd75
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      XeroOauth2Timesheet.php

+ 2
- 0
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(){

Loading…
取消
儲存