Revision f4fe8246
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
use SL::DB::Currency;
|
||
use SL::DB::Default;
|
||
use SL::DB::Language;
|
||
use SL::DB::Part;
|
||
use SL::DB::Unit;
|
||
use SL::Helper::Flash;
|
||
use SL::Locale::String qw(t8);
|
||
... | ... | |
__PACKAGE__->run_before('check_auth');
|
||
|
||
use Rose::Object::MakeMethods::Generic (
|
||
'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) ],
|
||
'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) ],
|
||
);
|
||
|
||
sub action_edit {
|
||
... | ... | |
sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted }
|
||
sub init_all_languages { SL::DB::Manager::Language->get_all_sorted }
|
||
sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted }
|
||
sub init_all_parts { SL::DB::Manager::Part->get_all_sorted }
|
||
sub init_all_weightunits { my $unit = SL::DB::Manager::Unit->find_by(name => 'kg'); $unit ? $unit->convertible_units : [] }
|
||
sub init_all_templates { +{ SL::Template->available_templates } }
|
||
|
||
... | ... | |
$self->render('client_config/form', title => t8('Client Configuration'),
|
||
make_chart_title => sub { $_[0]->accno . '--' . $_[0]->description },
|
||
make_templates_value => sub { 'templates/' . $_[0] },
|
||
make_part_title => sub { $_[0]->partnumber . ' ' . $_[0]->description },
|
||
);
|
||
}
|
||
|
templates/webpages/client_config/_features.html | ||
---|---|---|
<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>
|
||
</tr>
|
||
</tr>
|
||
|
||
<tr><td class="listheading" colspan="4">[% LxERP.t8("Requirement Specs") %]</td></tr>
|
||
|
||
<tr>
|
||
<td align="right">[% LxERP.t8('Default article for converting into quotations and orders') %]</td>
|
||
<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>
|
||
<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>
|
||
</tr>
|
||
</table>
|
||
</div>
|
Auch abrufbar als: Unified diff
Pflichtenhefte: Standard-Artikel für Auftragswandlung in Mandantenkonfiguration eingeben können