protected function getTransactionReason($key)
{
$reason = Lang::get('inventory::reasons.transactions.' . $key, ['id' => $this->getKey(), 'date' => date('Y-m-d H:i:s')]);
/*
* Make sure we set the reason to null if no translation is found
* so the default stock change reason is used
*/
if (empty($reason)) {
$reason = null;
}
return $reason;
}