Revision f4fe8246
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
10 | 10 |
use SL::DB::Currency; |
11 | 11 |
use SL::DB::Default; |
12 | 12 |
use SL::DB::Language; |
13 |
use SL::DB::Part; |
|
13 | 14 |
use SL::DB::Unit; |
14 | 15 |
use SL::Helper::Flash; |
15 | 16 |
use SL::Locale::String qw(t8); |
... | ... | |
18 | 19 |
__PACKAGE__->run_before('check_auth'); |
19 | 20 |
|
20 | 21 |
use Rose::Object::MakeMethods::Generic ( |
21 |
'scalar --get_set_init' => [ qw(defaults all_warehouses all_weightunits all_languages all_currencies all_templates posting_options payment_options accounting_options inventory_options profit_options accounts balance_startdate_method_options) ], |
|
22 |
'scalar --get_set_init' => [ qw(defaults all_warehouses all_weightunits all_languages all_currencies all_templates all_parts posting_options payment_options accounting_options inventory_options profit_options accounts balance_startdate_method_options) ],
|
|
22 | 23 |
); |
23 | 24 |
|
24 | 25 |
sub action_edit { |
... | ... | |
139 | 140 |
sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted } |
140 | 141 |
sub init_all_languages { SL::DB::Manager::Language->get_all_sorted } |
141 | 142 |
sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted } |
143 |
sub init_all_parts { SL::DB::Manager::Part->get_all_sorted } |
|
142 | 144 |
sub init_all_weightunits { my $unit = SL::DB::Manager::Unit->find_by(name => 'kg'); $unit ? $unit->convertible_units : [] } |
143 | 145 |
sub init_all_templates { +{ SL::Template->available_templates } } |
144 | 146 |
|
... | ... | |
218 | 220 |
$self->render('client_config/form', title => t8('Client Configuration'), |
219 | 221 |
make_chart_title => sub { $_[0]->accno . '--' . $_[0]->description }, |
220 | 222 |
make_templates_value => sub { 'templates/' . $_[0] }, |
223 |
make_part_title => sub { $_[0]->partnumber . ' ' . $_[0]->description }, |
|
221 | 224 |
); |
222 | 225 |
} |
223 | 226 |
|
templates/webpages/client_config/_features.html | ||
---|---|---|
56 | 56 |
<td>[% LxERP.t8('Automatic deletion of leading, trailing and excessive (repetitive) spaces in part description and part notes. Affects the CSV import as well.') %]</td> |
57 | 57 |
</tr> |
58 | 58 |
</tr> |
59 |
|
|
60 |
<tr><td class="listheading" colspan="4">[% LxERP.t8("Requirement Specs") %]</td></tr> |
|
61 |
|
|
62 |
<tr> |
|
63 |
<td align="right">[% LxERP.t8('Default article for converting into quotations and orders') %]</td> |
|
64 |
<td>[% L.select_tag('defaults.requirement_spec_section_order_part_id', SELF.all_parts, default=SELF.defaults.requirement_spec_section_order_part_id, with_empty=1, title_sub=\make_part_title) %]</td> |
|
65 |
<td>[% LxERP.t8('When converting a requirement spec into a quotation or an oder each section gets converted into a line position in the new record. This is the article used by default for this conversion.') %]</td> |
|
66 |
</tr> |
|
59 | 67 |
</table> |
60 | 68 |
</div> |
Auch abrufbar als: Unified diff
Pflichtenhefte: Standard-Artikel für Auftragswandlung in Mandantenkonfiguration eingeben können