Revision 8ad1534a
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
137 | 137 |
sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted } |
138 | 138 |
sub init_all_languages { SL::DB::Manager::Language->get_all_sorted } |
139 | 139 |
sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted } |
140 |
sub init_all_weightunits { SL::DB::Manager::Unit->find_by(name => 'g')->convertible_units }
|
|
140 |
sub init_all_weightunits { my $unit = SL::DB::Manager::Unit->find_by(name => 'g'); $unit ? $unit->convertible_units : [] }
|
|
141 | 141 |
sub init_all_templates { +{ SL::Template->available_templates } } |
142 | 142 |
|
143 | 143 |
sub init_posting_options { |
templates/webpages/client_config/_miscellaneous.html | ||
---|---|---|
95 | 95 |
<td align="center">[% L.radio_button_tag('defaults.currency_id', value=-1, id='defaults.currency_id__1', checked=(SELF.defaults.currency_id == -1)) %]</td> |
96 | 96 |
</tr> |
97 | 97 |
|
98 |
[% IF SELF.all_weightunits.size %] |
|
98 | 99 |
<tr><td class="listheading" colspan="4">[% LxERP.t8("Weight") %]</td></tr> |
99 | 100 |
|
100 | 101 |
<tr> |
... | ... | |
107 | 108 |
<td>[% L.yes_no_tag('defaults.show_weight', SELF.defaults.show_weight, style=style) %]</td> |
108 | 109 |
<td colspan="2">[% LxERP.t8('Show the weights of articles and the total weight in orders, invoices and delivery notes?') %]</td> |
109 | 110 |
</tr> |
111 |
[% END %] |
|
110 | 112 |
</table> |
111 | 113 |
</div> |
112 | 114 |
</div> |
Auch abrufbar als: Unified diff
Mandantenkonfig: Gewichtsoptionen nur anzeigen, wenn Gewichtseinheiten definiert sind