if (!ttValidFloat($cl_tax, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.tax'));
if ($errors->isEmpty()) {
if (!ttValidFloat($cl_tax, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.tax'));
if ($errors->isEmpty()) {
$client = ttClientHelper::getClientByName($cl_name);
if (($client && ($cl_id == $client['id'])) || !$client) {
if (ttClientHelper::update(array(
$client = ttClientHelper::getClientByName($cl_name);
if (($client && ($cl_id == $client['id'])) || !$client) {
if (ttClientHelper::update(array(