FIX: deposit payment terms: unused variable

This commit is contained in:
Marc de Lima Lucio 2021-10-04 15:06:52 +02:00
parent f6b9336a82
commit 087157890e

View File

@ -711,7 +711,7 @@ if (empty($reshook)) {
$ret = $deposit->fetch($deposit->id); // Reload to get new records
$outputlangs = $langs;
if ($conf->global->MAIN_MULTILANGS && empty($newlang)) {
if ($conf->global->MAIN_MULTILANGS) {
$outputlangs = new Translate('', $conf);
$outputlangs->setDefaultLang($deposit->thirdparty->default_lang);
$outputlangs->load('products');