public static function formatAccountside($value) {
        if ($value === StaticEb::$accountsideDebitSign) {
            return \Yii::t('common/staticeb', 'Debit');
        } else if ($value === StaticEb::$accountsideCreditSign) {
            return \Yii::t('common/staticeb', 'Credit');
        } else {
            throw new Exception(\Yii::t('common/staticeb', '{value} is not a accounside. Valid values: ' . StaticEb::$accountsideDebitSign . ',' . StaticEb::$accountsideCreditSign, [ 'value' => $value]
            ));
        }
    }