$mdb2 = getConnection();
$group_id = (int) $fields['group_id'];
+ $org_id = (int) $fields['org_id'];
$name = $fields['name'];
$address = $fields['address'];
$tax = $fields['tax'];
$tax = str_replace(',', '.', $tax);
if ($tax == '') $tax = 0;
- $sql = "insert into tt_clients (group_id, name, address, tax, projects, status)".
- " values ($group_id, ".$mdb2->quote($name).", ".$mdb2->quote($address).", $tax, ".$mdb2->quote($comma_separated).", ".$mdb2->quote($status).")";
+ $sql = "insert into tt_clients (group_id, org_id, name, address, tax, projects, status)".
+ " values ($group_id, $org_id, ".$mdb2->quote($name).", ".$mdb2->quote($address).", $tax, ".$mdb2->quote($comma_separated).", ".$mdb2->quote($status).")";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error'))
$this->clientMap[$this->currentElement['ID']] =
ttClientHelper::insert(array(
'group_id' => $this->group_id,
+ 'org_id' => $this->org_id,
'name' => $this->currentElement['NAME'],
'address' => $this->currentElement['ADDRESS'],
'tax' => $this->currentElement['TAX'],
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.09.4380 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.09.4381 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
if ($err->no()) {
if (!ttClientHelper::getClientByName($cl_name)) {
if (ttClientHelper::insert(array(
- 'group_id' => $user->group_id,
+ 'group_id' => $user->getActiveGroup(),
+ 'org_id' => $user->org_id,
'name' => $cl_name,
'address' => $cl_address,
'tax' => $cl_tax,
if ($request->getParameter('btn_copy')) {
if (!ttClientHelper::getClientByName($cl_name)) {
if (ttClientHelper::insert(array(
- 'group_id' => $user->group_id,
+ 'group_id' => $user->getActiveGroup(),
+ 'org_id' => $user->org_id,
'name' => $cl_name,
'address' => $cl_address,
'tax' => $cl_tax,
if ($err->no()) {
if (!ttClientHelper::getClientByName($cl_name)) {
if (ttClientHelper::insert(array(
- 'group_id' => $user->group_id,
+ 'group_id' => $user->getActiveGroup(),
+ 'org_id' => $user->org_id,
'name' => $cl_name,
'address' => $cl_address,
'tax' => $cl_tax,
if ($request->getParameter('btn_copy')) {
if (!ttClientHelper::getClientByName($cl_name)) {
if (ttClientHelper::insert(array(
- 'group_id' => $user->group_id,
+ 'group_id' => $user->getActiveGroup(),
+ 'org_id' => $user->org_id,
'name' => $cl_name,
'address' => $cl_address,
'tax' => $cl_tax,