Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 10852277

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 10852277fadcc965e883724a6e9b6fefc5026d8c
  • Vorgänger a439697f
  • Nachfolger 64c45e8f

ActionBar: Verkaufsrechnungen: Drucken über Dialog implementiert

Unterschiede anzeigen:

bin/mozilla/is.pl
339 339
        action => [ t8('Export') ],
340 340
        action => [
341 341
          ($form->{id} ? t8('Print') : t8('Preview')),
342
          submit   => [ '#form', { action => "print" } ],
342
          call     => [ 'kivi.SalesPurchase.show_print_dialog', $form->{id} ? 'print' : 'preview' ],
343 343
          checks   => [ @req_trans_desc ],
344 344
          disabled => !$form->{id} && $form->{locked} ? t8('The billing period has already been locked.') : undef,
345 345
        ],
js/kivi.SalesPurchase.js
303 303
  this.print_record = function() {
304 304
    $('#print_dialog').dialog('close');
305 305

  
306
    kivi.submit_form_with_action('#form', 'print');
306
    kivi.submit_form_with_action('#form', $('#form').data('print-action'));
307 307
  };
308 308

  
309
  this.show_print_dialog = function() {
309
  this.show_print_dialog = function(print_action) {
310
    $('#form').data('print-action', print_action || 'print');
311

  
310 312
    kivi.popup_dialog({
311 313
      id:    'print_dialog',
312 314
      dialog: {
templates/webpages/is/form_footer.html
166 166
</script>
167 167

  
168 168
<div id="shipto_dialog" class="hidden"></div>
169
<div id="print_dialog" class="hidden">
170
 [%- PROCESS 'common/_print_dialog.html' %]
171
</div>

Auch abrufbar als: Unified diff