Revision 1ba15ec4
Von Tamino Steinert vor 10 Monaten hinzugefügt
js/kivi.Validator.js | ||
---|---|---|
104 | 104 |
return false; |
105 | 105 |
} else |
106 | 106 |
{ |
107 |
let input_decimal_places = parsed_number.toString().split('.')[1]; |
|
108 |
let count_input_decimal_places = 0; |
|
109 |
if(input_decimal_places){ |
|
110 |
count_input_decimal_places = input_decimal_places.length; |
|
111 |
} |
|
107 | 112 |
var formatted_number = kivi.format_amount(parsed_number); |
108 |
if (formatted_number != number_string) |
|
113 |
if (formatted_number != number_string) {
|
|
109 | 114 |
ns.val($e, formatted_number); |
115 |
if(count_input_decimal_places > decimal_places) { |
|
116 |
kivi.display_flash('warning',kivi.t8('Input was rounded')); |
|
117 |
} |
|
118 |
} |
|
110 | 119 |
ns.annotate($e_annotate); |
111 | 120 |
return true; |
112 | 121 |
} |
js/locale/de.js | ||
---|---|---|
24 | 24 |
"Carry over shipping address":"Lieferadresse übernehmen", |
25 | 25 |
"Chart picker":"Kontenauswahl", |
26 | 26 |
"Clear":"Löschen", |
27 |
"Close Flash":"Schließen", |
|
27 | 28 |
"Copy":"Kopieren", |
28 | 29 |
"Copy requirement spec":"Pflichtenheft kopieren", |
29 | 30 |
"Copy template":"Vorlage kopieren", |
... | ... | |
71 | 72 |
"Edit text block":"Textblock bearbeiten", |
72 | 73 |
"Edit the configuration for periodic invoices":"Konfiguration für wiederkehrende Rechnungen bearbeiten", |
73 | 74 |
"Enter longdescription":"Langtext eingeben", |
75 |
"Error":"Fehler", |
|
74 | 76 |
"Error: #1":"Fehler: #1", |
75 | 77 |
"Error: Name missing":"Fehler: Name fehlt", |
76 | 78 |
"Error: This is not a sales reclamation.":"Fehler: Dies ist keine Verkaufreklamaiton.", |
... | ... | |
88 | 90 |
"History":"Historie", |
89 | 91 |
"If you switch to a different tab without saving you will lose the data you've entered in the current tab.":"Wenn Sie auf einen anderen Tab wechseln, ohne vorher zu speichern, so gehen die im aktuellen Tab eingegebenen Daten verloren.", |
90 | 92 |
"Import documents from #1":"Importiere Dateien von Quelle '#1'", |
93 |
"Information":"Information", |
|
94 |
"Input was rounded":"Eingabe wurde gerundet", |
|
91 | 95 |
"Invoice Date missing!":"Rechnungsdatum fehlt!", |
92 | 96 |
"Invoice Number missing!":"Rechnungsnummer fehlt!", |
93 | 97 |
"Jan":"Jan", |
... | ... | |
203 | 207 |
"Vendor details":"Lieferantendetails", |
204 | 208 |
"Vendor missing!":"Lieferant fehlt!", |
205 | 209 |
"Version actions":"Aktionen für Versionen", |
210 |
"Warning":"Warnung", |
|
206 | 211 |
"Wed":"Mi", |
207 | 212 |
"Wednesday":"Mittwoch", |
208 | 213 |
"Wrong date format (#1)":"Falsches Datumsformat (#1)", |
js/locale/en.js | ||
---|---|---|
24 | 24 |
"Carry over shipping address":"", |
25 | 25 |
"Chart picker":"", |
26 | 26 |
"Clear":"", |
27 |
"Close Flash":"", |
|
27 | 28 |
"Copy":"", |
28 | 29 |
"Copy requirement spec":"", |
29 | 30 |
"Copy template":"", |
... | ... | |
71 | 72 |
"Edit text block":"", |
72 | 73 |
"Edit the configuration for periodic invoices":"", |
73 | 74 |
"Enter longdescription":"", |
75 |
"Error":"", |
|
74 | 76 |
"Error: #1":"", |
75 | 77 |
"Error: Name missing":"", |
76 | 78 |
"Error: This is not a sales reclamation.":"", |
... | ... | |
88 | 90 |
"History":"", |
89 | 91 |
"If you switch to a different tab without saving you will lose the data you've entered in the current tab.":"", |
90 | 92 |
"Import documents from #1":"", |
93 |
"Information":"", |
|
94 |
"Input was rounded":"", |
|
91 | 95 |
"Invoice Date missing!":"", |
92 | 96 |
"Invoice Number missing!":"", |
93 | 97 |
"Jan":"", |
... | ... | |
203 | 207 |
"Vendor details":"", |
204 | 208 |
"Vendor missing!":"", |
205 | 209 |
"Version actions":"", |
210 |
"Warning":"", |
|
206 | 211 |
"Wed":"", |
207 | 212 |
"Wednesday":"", |
208 | 213 |
"Wrong date format (#1)":"", |
locale/de/all | ||
---|---|---|
2072 | 2072 |
'Initial version.' => 'Initiale Version.', |
2073 | 2073 |
'Input from string: #1' => 'Eingabe Von-Zeichenkette: #1', |
2074 | 2074 |
'Input to string: #1' => 'Eingabe Bis-Zeichenkete: #1', |
2075 |
'Input was rounded' => 'Eingabe wurde gerundet', |
|
2075 | 2076 |
'Insert' => 'Einfügen', |
2076 | 2077 |
'Insert Date' => 'Erfassungsdatum', |
2077 | 2078 |
'Insert new' => 'Hinzufügen', |
locale/en/all | ||
---|---|---|
2071 | 2071 |
'Initial version.' => '', |
2072 | 2072 |
'Input from string: #1' => '', |
2073 | 2073 |
'Input to string: #1' => '', |
2074 |
'Input was rounded' => '', |
|
2074 | 2075 |
'Insert' => '', |
2075 | 2076 |
'Insert Date' => '', |
2076 | 2077 |
'Insert new' => '', |
Auch abrufbar als: Unified diff
Validator.js: Flash Meldung wenn eine Eingabe gerundet wird