Fix: make backend monetary validation accept unpadded decimals (#6626)

This commit is contained in:
shamoon
2024-05-07 14:38:52 -07:00
committed by GitHub
parent 90c0ac004e
commit 0e03be895c
3 changed files with 10 additions and 18 deletions

View File

@@ -17,7 +17,15 @@ import { getLocaleCurrencyCode } from '@angular/common'
})
export class MonetaryComponent extends AbstractInputComponent<string> {
public currency: string = ''
public monetaryValue: string = ''
public _monetaryValue: string = ''
public get monetaryValue(): string {
return this._monetaryValue
}
public set monetaryValue(value: string) {
if (value) this._monetaryValue = value
}
defaultCurrencyCode: string
constructor(@Inject(LOCALE_ID) currentLocale: string) {