Informe Tesoreria
This commit is contained in:
@ -25,12 +25,12 @@ class Format
|
||||
{
|
||||
return "{$this->number($number, $decimal_places)}%";
|
||||
}
|
||||
public function pesos(string $valor): string
|
||||
public function pesos(string $valor, int $decimal_places = 0): string
|
||||
{
|
||||
return "$ {$this->number($valor)}";
|
||||
return "$ {$this->number($valor, $decimal_places)}";
|
||||
}
|
||||
public function ufs(string $valor): string
|
||||
public function ufs(string $valor, int $decimal_places = 2): string
|
||||
{
|
||||
return "{$this->number($valor, 2)} UF";
|
||||
return "{$this->number($valor, $decimal_places)} UF";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user