| // $payment = get_user_meta($user->ID, "payment", true); | // $payment = get_user_meta($user->ID, "payment", true); | ||||
| // if ($payment != "invoice") | // if ($payment != "invoice") | ||||
| // return NULL; | // return NULL; | ||||
| $sql = "SELECT * from $this->table_name WHERE tos != '00_000_0000_0_0' and start>='$start 00:00:00' and start<='$finish 23:59:59' and client='$client_login' ORDER BY start"; | |||||
| // tos ==1 is code 00_000_0000_0_0 = NOT NDIS | |||||
| $sql = "SELECT * from $this->table_name WHERE tos != 1 and start>='$start 00:00:00' and start<='$finish 23:59:59' and client='$client_login' ORDER BY start"; | |||||
| $rows = $this->db->get_results($sql); | $rows = $this->db->get_results($sql); | ||||
| $xero = $this->xero->get_xero_handle(); | $xero = $this->xero->get_xero_handle(); | ||||
| Time: %s - %s | Time: %s - %s | ||||
| By Carer : %s', | By Carer : %s', | ||||
| $price->get_tos_str($job->tos), | $price->get_tos_str($job->tos), | ||||
| $job->tos, | |||||
| $price->get_tos_ndis_code($job->tos), | |||||
| $job->start, | $job->start, | ||||
| $job->finish, | $job->finish, | ||||
| $this->get_user_name_by_login($job->staff) | $this->get_user_name_by_login($job->staff) |