Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f5cba519

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

  • ID f5cba5199d6ec3d5e94ca998303d0b0594d8acca
  • Vorgänger 7f0e28ad
  • Nachfolger 23845cb4

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