mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Fix: make backend monetary validation accept unpadded decimals (#6626)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user