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 caec0ed4d1
commit 6ea25a96a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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) {