From d19e9afc91b0523641c041a733c01ead26224afa Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 4 May 2020 02:29:41 +1000 Subject: [PATCH] using ndis code from price id --- ts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts.php b/ts.php index 32c9d77..e49f4bb 100644 --- a/ts.php +++ b/ts.php @@ -1539,8 +1539,8 @@ ZOT; // $payment = get_user_meta($user->ID, "payment", true); // if ($payment != "invoice") // 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); $xero = $this->xero->get_xero_handle(); @@ -1591,7 +1591,7 @@ ZOT; Time: %s - %s By Carer : %s', $price->get_tos_str($job->tos), - $job->tos, + $price->get_tos_ndis_code($job->tos), $job->start, $job->finish, $this->get_user_name_by_login($job->staff)