return true;
};
+
+ // Printing records.
+ this.setup_print_dialog = function() {
+ kivi.SalesPurchase.show_all_print_options_elements();
+
+ $('#print_options').children().remove().appendTo('#print_dialog_print_options');
+
+ $('#print_dialog_print_button').focus();
+ };
+
+ this.finish_print_dialog = function() {
+ $('#print_dialog_print_options').children().remove().appendTo('#print_options');
+ };
+
+ this.print_record = function() {
+ $('#print_dialog').dialog('close');
+
+ kivi.submit_form_with_action('#form', 'print');
+ };
+
+ this.show_print_dialog = function() {
+ kivi.popup_dialog({
+ id: 'print_dialog',
+ dialog: {
+ height: 600,
+ title: kivi.t8('Print record'),
+ open: kivi.SalesPurchase.setup_print_dialog,
+ close: kivi.SalesPurchase.finish_print_dialog,
+ }
+ });
+ };
});
"Please select a vendor.":"Bitte wählen Sie einen Lieferanten aus.",
"Price Types":"Preistypen",
"Print options":"Druckoptionen",
+"Print record":"Beleg drucken",
"Project link actions":"Projektverknüpfungs-Aktionen",
"Quotations/Orders actions":"Aktionen für Angebote/Aufträge",
"Re-numbering all sections and function blocks in the order they are currently shown cannot be undone.":"Das Neu-Nummerieren aller Abschnitte und Funktionsblöcke kann nicht rückgängig gemacht werden.",
'During the next update a taxkey 0 with tax rate of 0 will automatically created.' => 'Beim nächsten Ausführen des Updates wird ein Steuerschlüssel 0 mit einem Steuersatz von 0% automatisch erzeugt.',
'E Mail' => 'E-Mail',
'E-Mail' => 'E-Mail',
- 'E-Mail is sent to #1' => 'Die E-Mail wurde an \'#1\' gesendet',
'E-Mail-Journal' => 'E-Mail-Journal',
'E-mail' => 'E-Mail',
'E-mail Statement to' => 'Fälligkeitsabrechnung als E-Mail an',
'Print dunnings' => 'Mahnungen drucken',
'Print list' => 'Liste ausdrucken',
'Print options' => 'Druckoptionen',
+ 'Print record' => 'Beleg drucken',
'Print selected' => 'Drucken',
'Print selected delivery orders both sided' => 'Ausgewählte Lieferscheine (ggf beidseitig)',
'Print template base file name' => 'Druckvorlagen-Basisdateiname',
--- /dev/null
+[%- USE LxERP -%][%- USE L -%]
+<div id="print_dialog_print_options"></div>
+
+<p>
+ [% L.button_tag("kivi.SalesPurchase.print_record()", LxERP.t8("Print"), id="print_dialog_print_button") %]
+ [% L.button_tag("\$('#print_dialog').dialog('close');", LxERP.t8("Abort"), id="print_dialog_abort_button") %]
+</p>
</form>
<div id="shipto_dialog" class="hidden"></div>
+<div id="print_dialog" class="hidden">
+ [%- PROCESS 'common/_print_dialog.html' %]
+</div>