Revision 85724239
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Controller/Admin.pm | ||
---|---|---|
20 | 20 |
( |
21 | 21 |
'scalar --get_set_init' => [ qw(client user group printer db_cfg is_locked |
22 | 22 |
all_dateformats all_numberformats all_countrycodes all_stylesheets all_menustyles all_clients all_groups all_users all_rights all_printers |
23 |
all_dbsources all_unused_dbsources all_accounting_methods all_inventory_systems all_profit_determinations all_charts) ],
|
|
23 |
all_dbsources all_used_dbsources all_accounting_methods all_inventory_systems all_profit_determinations all_charts) ], |
|
24 | 24 |
); |
25 | 25 |
|
26 | 26 |
__PACKAGE__->run_before(\&setup_layout); |
... | ... | |
462 | 462 |
sub init_all_numberformats { [ '1,000.00', '1000.00', '1.000,00', '1000,00' ] } |
463 | 463 |
sub init_all_stylesheets { [ qw(lx-office-erp.css Mobile.css kivitendo.css) ] } |
464 | 464 |
sub init_all_dbsources { [ sort User->dbsources($::form) ] } |
465 |
sub init_all_unused_dbsources { [ sort User->dbsources_unused($::form) ] }
|
|
465 |
sub init_all_used_dbsources { { map { (join(':', $_->dbhost || 'localhost', $_->dbport || 5432, $_->dbname) => $_->name) } @{ $_[0]->all_clients } } }
|
|
466 | 466 |
sub init_all_accounting_methods { [ { id => 'accrual', name => t8('Accrual accounting') }, { id => 'cash', name => t8('Cash accounting') } ] } |
467 | 467 |
sub init_all_inventory_systems { [ { id => 'perpetual', name => t8('Perpetual inventory') }, { id => 'periodic', name => t8('Periodic inventory') } ] } |
468 | 468 |
sub init_all_profit_determinations { [ { id => 'balance', name => t8('Balancing') }, { id => 'income', name => t8('Cash basis accounting') } ] } |
Auch abrufbar als: Unified diff
Datenbank löschen: auch benutzte auswählbar, dann aber mit Sonderwarnung
Fixt #2312.