style: Pint 포맷팅 적용
This commit is contained in:
@@ -18,7 +18,9 @@ class BankTransaction extends Model
|
||||
|
||||
// 거래 유형 상수
|
||||
public const TYPE_DEPOSIT = 'deposit'; // 입금
|
||||
|
||||
public const TYPE_WITHDRAWAL = 'withdrawal'; // 출금
|
||||
|
||||
public const TYPE_TRANSFER = 'transfer'; // 이체
|
||||
|
||||
protected $fillable = [
|
||||
@@ -106,7 +108,8 @@ public function getIsWithdrawalAttribute(): bool
|
||||
public function getFormattedAmountAttribute(): string
|
||||
{
|
||||
$prefix = $this->is_deposit ? '+' : '-';
|
||||
return $prefix . number_format(abs($this->amount)) . '원';
|
||||
|
||||
return $prefix.number_format(abs($this->amount)).'원';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,7 +117,7 @@ public function getFormattedAmountAttribute(): string
|
||||
*/
|
||||
public function getFormattedBalanceAfterAttribute(): string
|
||||
{
|
||||
return number_format($this->balance_after) . '원';
|
||||
return number_format($this->balance_after).'원';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user