Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision dc154326

Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt

  • ID dc154326907a16cc4b8ba6c45d3a486bec76b86a
  • Vorgänger 51a586e7
  • Nachfolger 2e19657a

Kosmetik: DeliveryOrder: actionbar: Einrückung und Ausrichtung

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
1788 1788
      combobox => [
1789 1789
        action => [
1790 1790
          t8('Save'),
1791
          call      => [ 'kivi.DeliveryOrder.save', 'save', $::instance_conf->get_order_warn_duplicate_parts,
1792
                                                    $::instance_conf->get_order_warn_no_deliverydate,
1793
                                                                                                      ],
1791
          call     => [ 'kivi.DeliveryOrder.save', 'save', $::instance_conf->get_order_warn_duplicate_parts,
1792
                                                           $::instance_conf->get_order_warn_no_deliverydate,
1793
          ],
1794 1794
        ],
1795 1795
        action => [
1796 1796
          t8('Save as new'),
1797
          call      => [ 'kivi.DeliveryOrder.save', 'save_as_new', $::instance_conf->get_order_warn_duplicate_parts ],
1798
          disabled  =>   $self->type eq 'supplier_delivery_order' ? t8('Need a workflow for Supplier Delivery Order')
1799
                       : !$self->order->id                        ? t8('This object has not been saved yet.')
1800
                       : undef,
1797
          call     => [ 'kivi.DeliveryOrder.save', 'save_as_new', $::instance_conf->get_order_warn_duplicate_parts ],
1798
          disabled => $self->type eq 'supplier_delivery_order' ? t8('Need a workflow for Supplier Delivery Order')
1799
                    : !$self->order->id                        ? t8('This object has not been saved yet.')
1800
                    :                                            undef,
1801 1801
        ],
1802 1802
      ], # end of combobox "Save"
1803 1803

  
......
1822 1822
        ],
1823 1823
        action => [
1824 1824
          t8('Save and Purchase Order'),
1825
          call      => [ 'kivi.DeliveryOrder.purchase_order_check_for_direct_delivery' ],
1825
          call     => [ 'kivi.DeliveryOrder.purchase_order_check_for_direct_delivery' ],
1826 1826
          only_if  => $self->type_data->show_menu("save_and_purchase_order"),
1827 1827
        ],
1828 1828
        action => [
1829 1829
          t8('Save and Delivery Order'),
1830
          call      => [ 'kivi.DeliveryOrder.save', 'save_and_delivery_order', $::instance_conf->get_order_warn_duplicate_parts,
1831
                                                                       $::instance_conf->get_order_warn_no_deliverydate,
1832
                                                                                                                        ],
1830
          call     => [ 'kivi.DeliveryOrder.save', 'save_and_delivery_order', $::instance_conf->get_order_warn_duplicate_parts,
1831
                                                                              $::instance_conf->get_order_warn_no_deliverydate,
1832
          ],
1833 1833
          only_if  => $self->type_data->show_menu("save_and_delivery_order"),
1834 1834
        ],
1835 1835
        action => [
1836 1836
          t8('Save and Invoice'),
1837
          call      => [ 'kivi.DeliveryOrder.save', 'save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ],
1837
          call     => [ 'kivi.DeliveryOrder.save', 'save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ],
1838 1838
          only_if  => $self->type_data->show_menu("save_and_invoice"),
1839 1839
        ],
1840 1840
        action => [
1841 1841
          t8('Save and AP Transaction'),
1842
          call      => [ 'kivi.DeliveryOrder.save', 'save_and_ap_transaction', $::instance_conf->get_order_warn_duplicate_parts ],
1842
          call     => [ 'kivi.DeliveryOrder.save', 'save_and_ap_transaction', $::instance_conf->get_order_warn_duplicate_parts ],
1843 1843
          only_if  => $self->type_data->show_menu("save_and_ap_transaction"),
1844 1844
        ],
1845 1845

  
......
1851 1851
        ],
1852 1852
        action => [
1853 1853
          t8('Save and preview PDF'),
1854
           call => [ 'kivi.DeliveryOrder.save', 'preview_pdf', $::instance_conf->get_order_warn_duplicate_parts,
1855
                                                       $::instance_conf->get_order_warn_no_deliverydate,
1856
                                                                                                         ],
1854
           call    => [ 'kivi.DeliveryOrder.save', 'preview_pdf', $::instance_conf->get_order_warn_duplicate_parts,
1855
                                                                  $::instance_conf->get_order_warn_no_deliverydate,
1856
          ],
1857 1857
        ],
1858 1858
        action => [
1859 1859
          t8('Save and print'),
1860
          call => [ 'kivi.DeliveryOrder.show_print_options', $::instance_conf->get_order_warn_duplicate_parts,
1861
                                                     $::instance_conf->get_order_warn_no_deliverydate,
1862
                                                                                                      ],
1860
          call     => [ 'kivi.DeliveryOrder.show_print_options', $::instance_conf->get_order_warn_duplicate_parts,
1861
                                                                 $::instance_conf->get_order_warn_no_deliverydate,
1862
          ],
1863 1863
        ],
1864 1864
        action => [
1865 1865
          t8('Save and E-mail'),
1866
          id   => 'save_and_email_action',
1867
          call => [ 'kivi.DeliveryOrder.save', 'save_and_show_email_dialog', $::instance_conf->get_order_warn_duplicate_parts,
1868
                                                                     $::instance_conf->get_order_warn_no_deliverydate,
1869
                  ],
1866
          id       => 'save_and_email_action',
1867
          call     => [ 'kivi.DeliveryOrder.save', 'save_and_show_email_dialog', $::instance_conf->get_order_warn_duplicate_parts,
1868
                                                                                 $::instance_conf->get_order_warn_no_deliverydate,
1869
          ],
1870 1870
          disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef,
1871 1871
        ],
1872 1872
        action => [
......
1882 1882
        id       => 'delete_action',
1883 1883
        call     => [ 'kivi.DeliveryOrder.delete_order' ],
1884 1884
        confirm  => $::locale->text('Do you really want to delete this object?'),
1885
        disabled => !$self->order->id       ? t8('This object has not been saved yet.') :
1886
                    $self->order->delivered ? t8('The parts for this order have already been transferred') : undef,
1885
        disabled => !$self->order->id       ? t8('This object has not been saved yet.')
1886
                  : $self->order->delivered ? t8('The parts for this order have already been transferred')
1887
                  :                           undef,
1887 1888
        only_if  => $self->type_data->show_menu("delete"),
1888 1889
      ],
1889 1890

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

Auch abrufbar als: Unified diff