if ($errors->isEmpty()) {
if (ttInvoiceHelper::getInvoiceByName($cl_number))
$errors->add($i18n->getKey('error.invoice_exists'));
if ($errors->isEmpty()) {
if (ttInvoiceHelper::getInvoiceByName($cl_number))
$errors->add($i18n->getKey('error.invoice_exists'));