Revision f1fc6f27
Von Tamino Steinert vor 3 Monaten hinzugefügt
| js/kivi.Validator.js | ||
|---|---|---|
|
return false;
|
||
|
} else
|
||
|
{
|
||
|
let input_decimal_places = parsed_number.toString().split('.')[1];
|
||
|
let count_input_decimal_places = 0;
|
||
|
if(input_decimal_places){
|
||
|
count_input_decimal_places = input_decimal_places.length;
|
||
|
}
|
||
|
var formatted_number = kivi.format_amount(parsed_number);
|
||
|
if (formatted_number != number_string)
|
||
|
if (formatted_number != number_string) {
|
||
|
ns.val($e, formatted_number);
|
||
|
if(count_input_decimal_places > decimal_places) {
|
||
|
kivi.display_flash('warning',kivi.t8('Input was rounded'));
|
||
|
}
|
||
|
}
|
||
|
ns.annotate($e_annotate);
|
||
|
return true;
|
||
|
}
|
||
| js/locale/de.js | ||
|---|---|---|
|
"Carry over shipping address":"Lieferadresse übernehmen",
|
||
|
"Chart picker":"Kontenauswahl",
|
||
|
"Clear":"Löschen",
|
||
|
"Close Flash":"Schließen",
|
||
|
"Copy":"Kopieren",
|
||
|
"Copy requirement spec":"Pflichtenheft kopieren",
|
||
|
"Copy template":"Vorlage kopieren",
|
||
| ... | ... | |
|
"Edit text block":"Textblock bearbeiten",
|
||
|
"Edit the configuration for periodic invoices":"Konfiguration für wiederkehrende Rechnungen bearbeiten",
|
||
|
"Enter longdescription":"Langtext eingeben",
|
||
|
"Error":"Fehler",
|
||
|
"Error: #1":"Fehler: #1",
|
||
|
"Error: Name missing":"Fehler: Name fehlt",
|
||
|
"Error: This is not a sales reclamation.":"Fehler: Dies ist keine Verkaufreklamaiton.",
|
||
| ... | ... | |
|
"History":"Historie",
|
||
|
"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.",
|
||
|
"Import documents from #1":"Importiere Dateien von Quelle '#1'",
|
||
|
"Information":"Information",
|
||
|
"Input was rounded":"Eingabe wurde gerundet",
|
||
|
"Invoice Date missing!":"Rechnungsdatum fehlt!",
|
||
|
"Invoice Number missing!":"Rechnungsnummer fehlt!",
|
||
|
"Jan":"Jan",
|
||
| ... | ... | |
|
"Vendor details":"Lieferantendetails",
|
||
|
"Vendor missing!":"Lieferant fehlt!",
|
||
|
"Version actions":"Aktionen für Versionen",
|
||
|
"Warning":"Warnung",
|
||
|
"Wed":"Mi",
|
||
|
"Wednesday":"Mittwoch",
|
||
|
"Wrong date format (#1)":"Falsches Datumsformat (#1)",
|
||
| js/locale/en.js | ||
|---|---|---|
|
"Carry over shipping address":"",
|
||
|
"Chart picker":"",
|
||
|
"Clear":"",
|
||
|
"Close Flash":"",
|
||
|
"Copy":"",
|
||
|
"Copy requirement spec":"",
|
||
|
"Copy template":"",
|
||
| ... | ... | |
|
"Edit text block":"",
|
||
|
"Edit the configuration for periodic invoices":"",
|
||
|
"Enter longdescription":"",
|
||
|
"Error":"",
|
||
|
"Error: #1":"",
|
||
|
"Error: Name missing":"",
|
||
|
"Error: This is not a sales reclamation.":"",
|
||
| ... | ... | |
|
"History":"",
|
||
|
"If you switch to a different tab without saving you will lose the data you've entered in the current tab.":"",
|
||
|
"Import documents from #1":"",
|
||
|
"Information":"",
|
||
|
"Input was rounded":"",
|
||
|
"Invoice Date missing!":"",
|
||
|
"Invoice Number missing!":"",
|
||
|
"Jan":"",
|
||
| ... | ... | |
|
"Vendor details":"",
|
||
|
"Vendor missing!":"",
|
||
|
"Version actions":"",
|
||
|
"Warning":"",
|
||
|
"Wed":"",
|
||
|
"Wednesday":"",
|
||
|
"Wrong date format (#1)":"",
|
||
| locale/de/all | ||
|---|---|---|
|
'Initial version.' => 'Initiale Version.',
|
||
|
'Input from string: #1' => 'Eingabe Von-Zeichenkette: #1',
|
||
|
'Input to string: #1' => 'Eingabe Bis-Zeichenkete: #1',
|
||
|
'Input was rounded' => 'Eingabe wurde gerundet',
|
||
|
'Insert' => 'Einfügen',
|
||
|
'Insert Date' => 'Erfassungsdatum',
|
||
|
'Insert new' => 'Hinzufügen',
|
||
| locale/en/all | ||
|---|---|---|
|
'Initial version.' => '',
|
||
|
'Input from string: #1' => '',
|
||
|
'Input to string: #1' => '',
|
||
|
'Input was rounded' => '',
|
||
|
'Insert' => '',
|
||
|
'Insert Date' => '',
|
||
|
'Insert new' => '',
|
||
Auch abrufbar als: Unified diff
Validator.js: Flash Meldung wenn eine Eingabe gerundet wird