fix syntax

This commit is contained in:
Florian HENRY 2021-06-04 12:27:49 +02:00
parent 729ca70bf3
commit ac6e108be6

View File

@ -800,11 +800,6 @@ class AccountingAccount extends CommonObject
$suggestedid = $this->accountingaccount_codetotid_cache[$code_sell_l]; $suggestedid = $this->accountingaccount_codetotid_cache[$code_sell_l];
} }
} }
} else {
if (is_array($hookmanager->resArray) && !empty($hookmanager->resArray)) {
return $hookmanager->resArray;
}
}
return array( return array(
'suggestedaccountingaccountbydefaultfor' => $suggestedaccountingaccountbydefaultfor, 'suggestedaccountingaccountbydefaultfor' => $suggestedaccountingaccountbydefaultfor,
'suggestedaccountingaccountfor' => $suggestedaccountingaccountfor, 'suggestedaccountingaccountfor' => $suggestedaccountingaccountfor,
@ -813,6 +808,11 @@ class AccountingAccount extends CommonObject
'code_sell_p' => $code_sell_p, 'code_sell_p' => $code_sell_p,
'code_sell_t' => $code_sell_t, 'code_sell_t' => $code_sell_t,
); );
} else {
if (is_array($hookmanager->resArray) && !empty($hookmanager->resArray)) {
return $hookmanager->resArray;
}
}
} }
/** /**