Informe Tesoreria

This commit is contained in:
Juan Pablo Vial
2024-02-13 01:16:17 -03:00
parent 19333bc338
commit e44ab30665
23 changed files with 896 additions and 40 deletions

View File

@ -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";
}
}