Merge 4a6a3d19af62708450dfcb8944d6ea72f2e1b4f2 into a81b7855de814be8c3e4fb1c9341e2c507f34b6b

This commit is contained in:
Sunny Side Up 2024-09-24 11:27:09 +12:00 committed by GitHub
commit 7316d1f3f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,13 @@ class DBInt extends DBField
{
return sprintf('%d', $this->value);
}
public function SpelledOut()
{
$v = $this->prepValueForDB($this->value);
return (new NumberFormatter(i18n::get_locale(), NumberFormatter::SPELLOUT))->format($v);
}
public function scaffoldFormField($title = null, $params = null)
{
return NumericField::create($this->name, $title);