Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e81ac5d3

Von Sven Schöling vor fast 3 Jahren hinzugefügt

  • ID e81ac5d3d14b1e60e3af583e1d09f58919d77233
  • Vorgänger ad6680f9
  • Nachfolger 5eac8958

DeliveryOrder: nur umlagern erlauben wenn bereits gespeichert wurde

Da das Umlagern kein redirect macht ist danach sonst die URL falsch.

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
1887 1887
          t8('Transfer out'),
1888 1888
          id   => 'transfer_out_action',
1889 1889
          call   => [ 'kivi.DeliveryOrder.save', 'transfer_stock' ],
1890
          disabled => $self->order->delivered ? t8('The parts for this order have already been transferred') : undef,
1890
          disabled => !$self->order->id ? t8('This object has not been saved yet.') :
1891
                      $self->order->delivered ? t8('The parts for this order have already been transferred') : undef,
1891 1892
          only_if => $self->type_data->properties('transfer') eq 'out',
1892 1893
          confirm  => t8('Do you really want to transfer the stock and set this order to delivered?'),
1893 1894
        ],
......
1895 1896
          t8('Transfer in'),
1896 1897
          id   => 'transfer_in_action',
1897 1898
          call   => [ 'kivi.DeliveryOrder.save', 'transfer_stock' ],
1898
          disabled => $self->order->delivered ? t8('The parts for this order have already been transferred') : undef,
1899
          disabled => !$self->order->id ? t8('This object has not been saved yet.') :
1900
                      $self->order->delivered ? t8('The parts for this order have already been transferred') : undef,
1899 1901
          only_if => $self->type_data->properties('transfer') eq 'in',
1900 1902
          confirm  => t8('Do you really want to transfer the stock and set this order to delivered?'),
1901 1903
        ],

Auch abrufbar als: Unified diff