Revision eb0fa244
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
1760 | 1760 |
action => [ |
1761 | 1761 |
t8('Save'), |
1762 | 1762 |
id => 'save_action', |
1763 |
call => [ 'kivi.DeliveryOrder.save', { action => 'save', |
|
1764 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1765 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate }, |
|
1766 |
], |
|
1763 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1764 |
action => 'save', |
|
1765 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1766 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate, |
|
1767 |
}], |
|
1767 | 1768 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') |
1768 | 1769 |
: $self->order->delivered ? t8('This record has already been delivered.') |
1769 | 1770 |
: undef, |
1770 | 1771 |
], |
1771 | 1772 |
action => [ |
1772 | 1773 |
t8('Save as new'), |
1773 |
call => [ 'kivi.DeliveryOrder.save', { action => 'save_as_new', |
|
1774 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts }, |
|
1775 |
], |
|
1774 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1775 |
action => 'save_as_new', |
|
1776 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1777 |
}], |
|
1776 | 1778 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') |
1777 | 1779 |
: $self->type eq 'supplier_delivery_order' ? t8('Need a workflow for Supplier Delivery Order') |
1778 | 1780 |
: $self->type eq 'rma_delivery_order' ? t8('Need a workflow for RMA Delivery Order.') |
... | ... | |
1811 | 1813 |
], |
1812 | 1814 |
action => [ |
1813 | 1815 |
t8('Save and Delivery Order'), |
1814 |
call => [ 'kivi.DeliveryOrder.save', { action => 'save_and_delivery_order', |
|
1815 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1816 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate }, |
|
1817 |
], |
|
1816 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1817 |
action => 'save_and_delivery_order', |
|
1818 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1819 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate, |
|
1820 |
}], |
|
1818 | 1821 |
only_if => $self->type_data->show_menu("save_and_delivery_order"), |
1819 | 1822 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef, |
1820 | 1823 |
], |
1821 | 1824 |
action => [ |
1822 | 1825 |
t8('Save and Invoice'), |
1823 |
call => [ 'kivi.DeliveryOrder.save', { action => 'save_and_invoice', |
|
1824 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts }, |
|
1825 |
], |
|
1826 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1827 |
action => 'save_and_invoice', |
|
1828 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1829 |
}], |
|
1826 | 1830 |
only_if => $self->type_data->show_menu("save_and_invoice"), |
1827 | 1831 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef, |
1828 | 1832 |
], |
1829 | 1833 |
action => [ |
1830 | 1834 |
t8('Save and AP Transaction'), |
1831 |
call => [ 'kivi.DeliveryOrder.save', { action => 'save_and_ap_transaction', |
|
1832 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts }, |
|
1833 |
], |
|
1835 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1836 |
action => 'save_and_ap_transaction', |
|
1837 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1838 |
}], |
|
1834 | 1839 |
only_if => $self->type_data->show_menu("save_and_ap_transaction"), |
1835 | 1840 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef, |
1836 | 1841 |
], |
... | ... | |
1843 | 1848 |
], |
1844 | 1849 |
action => [ |
1845 | 1850 |
t8('Save and preview PDF'), |
1846 |
call => [ 'kivi.DeliveryOrder.save', { action => 'preview_pdf', |
|
1847 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1848 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate }, |
|
1849 |
], |
|
1851 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1852 |
action => 'preview_pdf', |
|
1853 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1854 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate, |
|
1855 |
}], |
|
1850 | 1856 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef, |
1851 | 1857 |
], |
1852 | 1858 |
action => [ |
... | ... | |
1859 | 1865 |
action => [ |
1860 | 1866 |
t8('Save and E-mail'), |
1861 | 1867 |
id => 'save_and_email_action', |
1862 |
call => [ 'kivi.DeliveryOrder.save', { action => 'save_and_show_email_dialog', |
|
1863 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1864 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate }, |
|
1865 |
], |
|
1868 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1869 |
action => 'save_and_show_email_dialog', |
|
1870 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
|
1871 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate, |
|
1872 |
}], |
|
1866 | 1873 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') |
1867 | 1874 |
: !$self->order->id ? t8('This object has not been saved yet.') |
1868 | 1875 |
: undef, |
... | ... | |
1893 | 1900 |
action => [ |
1894 | 1901 |
t8('Transfer out'), |
1895 | 1902 |
id => 'transfer_out_action', |
1896 |
call => [ 'kivi.DeliveryOrder.save', { action => 'transfer_stock' } ], |
|
1903 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1904 |
action => 'transfer_stock', |
|
1905 |
}], |
|
1897 | 1906 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') |
1898 | 1907 |
: !$self->order->id ? t8('This object has not been saved yet.') |
1899 | 1908 |
: $self->order->delivered ? t8('The parts for this order have already been transferred') |
... | ... | |
1904 | 1913 |
action => [ |
1905 | 1914 |
t8('Transfer in'), |
1906 | 1915 |
id => 'transfer_in_action', |
1907 |
call => [ 'kivi.DeliveryOrder.save', { action => 'transfer_stock' } ], |
|
1916 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1917 |
action => 'transfer_stock', |
|
1918 |
}], |
|
1908 | 1919 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') |
1909 | 1920 |
: !$self->order->id ? t8('This object has not been saved yet.') |
1910 | 1921 |
: $self->order->delivered ? t8('The parts for this order have already been transferred') |
... | ... | |
1915 | 1926 |
action => [ |
1916 | 1927 |
t8('Undo Transfer'), |
1917 | 1928 |
id => 'undo_transfer_action', |
1918 |
call => [ 'kivi.DeliveryOrder.save', { action => 'undo_transfers' } ], |
|
1929 |
call => [ 'kivi.DeliveryOrder.save', { |
|
1930 |
action => 'undo_transfers', |
|
1931 |
}], |
|
1919 | 1932 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') |
1920 | 1933 |
: !$self->order->id ? t8('This object has not been saved yet.') |
1921 | 1934 |
: undef, |
Auch abrufbar als: Unified diff
Records: js-save Aufrufe angepasst und vereinheitlicht