Project

General

Profile

Revision cb3e6027

Added by Martin Helmling martin.helmling@octosoft.eu over 1 year ago

Kreditorenbuchung: kein Storno möglich

Actionbar - Aufruf angepasst

fix #7269

View differences:

bin/mozilla/ir.pl
300 300
}
301 301

  
302 302
sub setup_ir_action_bar {
303
  my $closedto  = $::locale->parse_date_to_object($::instance_conf->get_closedto);
304
  my $transdate = $::locale->parse_date_to_object($::form->{transdate});
305
  my $is_closed = ( ref $closedto && $transdate <= $closedto ? 1 : 0  );
306

  
303 307
  my $form                    = $::form;
304 308
  my $change_never            = $::instance_conf->get_ir_changeable == 0;
305 309
  my $change_on_same_day_only = $::instance_conf->get_ir_changeable == 2 && ($form->current_date(\%::myconfig) ne $form->{gldate});
......
348 352

  
349 353
      combobox => [
350 354
        action => [ t8('Storno'),
351
          call     => [ 'kivi.SalesPurchase.stornoDialog', $form->{gldate}, $form->current_date(\%::myconfig), t8('Invoice #1 storno', $::form->{invnumber}) ],
355
          call     => [ 'kivi.SalesPurchase.stornoDialog', $transdate->to_kivitendo, $closedto ? $closedto->to_kivitendo : '' , t8('Invoice #1 storno', $::form->{invnumber}) ],
352 356
          checks   => [ 'kivi.validate_form' ],
353
          confirm  => t8('Do you really want to cancel this invoice?'),
354 357
          disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
355 358
        ],
356 359
        action => [ t8('Delete'),

Also available in: Unified diff