Drucken und Buchen
authorfreiphone <kontakt@frei-phone.de>
Mon, 5 Jun 2017 13:42:08 +0000 (15:42 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Jun 2017 13:42:08 +0000 (15:42 +0200)
bin/mozilla/is.pl

index 1fe448f..1f7bbcf 100644 (file)
@@ -344,6 +344,11 @@ sub setup_is_action_bar {
           checks   => [ @req_trans_desc ],
           disabled => !$form->{id} && $form->{locked} ? t8('The billing period has already been locked.') : undef,
         ],
+        action => [ t8('Print and Post'),
+          call     => [ 'kivi.SalesPurchase.show_print_dialog', $form->{id} ? 'print' : 'print_and_post' ],
+          checks   => [ @req_trans_desc ],
+          disabled => $form->{id} ? t8('This invoice has already been posted.') : undef,,
+        ],
         action => [ t8('E Mail'),
           call     => [ 'kivi.SalesPurchase.show_email_dialog' ],
           checks   => [ @req_trans_desc ],