"Add linked record":"Verknüpften Beleg hinzufügen",
"Are you sure?":"Sind Sie sicher?",
"Database Connection Test":"Test der Datenbankverbindung",
+"Do you want to set the account number \"#1\" to \"#2\" and the name \"#3\" to \"#4\"?":"Soll die Kontonummer \"#1\" zu \"#2\" und den Name \"#3\" zu \"#4\" geändert werden?",
"Map":"Karte",
"Part picker":"Artikelauswahl",
"The description is missing.":"Die Beschreibung fehlt.",
'Do you really want to delete this warehouse?' => 'Wollen Sie dieses Lager wirklich löschen?',
'Do you want to <b>limit</b> your search?' => 'Wollen Sie Ihre Suche <b>spezialisieren</b>?',
'Do you want to carry this shipping address over to the new purchase order so that the vendor can deliver the goods directly to your customer?' => 'Wollen Sie diese Lieferadresse in den neuen Lieferantenauftrag übernehmen, damit der Händler die Waren direkt an Ihren Kunden liefern kann?',
+ 'Do you want to set the account number "#1" to "#2" and the name "#3" to "#4"?' => 'Soll die Kontonummer "#1" zu "#2" und den Name "#3" zu "#4" geändert werden?',
'Do you want to store the existing onhand values into a new warehouse?' => 'Möchten Sie die vorhandenen Mengendaten in ein Lager übertragen?',
'Document' => 'Dokument',
'Document Project Number' => 'Projektnummer des Belegs',
<label>
[% 'Account Number' | $T8 %]
</label></td>
- <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
+ <td><input id="accno" name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
</tr>
<tr>
<td>
[% 'Description' | $T8 %]
</label>
</td>
- <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
+ <td><input id="description" name="description" size="40" value="[% HTML.escape(description) %]"></td>
</tr>
<tr>
<td>
[% END %]
</fieldset>
<hr size="3" noshade>
+
+<script type="text/javascript">
+function callback_save() {
+ var prev_desc = "[% description | html %]";
+ var prev_accno = "[% accno | html %]";
+ var cur_desc = $("#description").val();
+ var cur_accno = $("#accno").val();
+
+ if ( prev_desc != cur_desc || prev_accno != cur_accno )
+ return confirm(kivi.t8("Do you want to set the account number \"#1\" to \"#2\" and the name \"#3\" to \"#4\"?", [prev_accno, cur_accno, prev_desc, cur_desc]));
+ else
+ return true;
+}
+</script>
[% L.hidden_tag('callback', callback) %]
<br>
-[%- IF show_save %][% L.submit_tag('action', LxERP.t8('Save')) %][% END %]
+[%- IF show_save %][% L.submit_tag('action', LxERP.t8('Save'), onclick = 'if ( typeof(callback_save) === "function" ) return callback_save(); ') %][% END %]
[%- IF show_delete %][% L.submit_tag('action', LxERP.t8('Delete')) %][% END %]
[%- IF show_save_as_new %][% L.submit_tag('action', LxERP.t8('Save as new')) %][% END %]