mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-14 03:57:13 +00:00
Fix: make backend monetary validation accept unpadded decimals (#6626)
This commit is contained in:
1 parent
caec0ed4d1
commit
6ea25a96a3
3 files changed
+10
-18
No files matched your search
@@ -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