+ $self->{posting_options} = [ { title => $::locale->text("never"), value => 0 },
+ { title => $::locale->text("every time"), value => 1 },
+ { title => $::locale->text("on the same day"), value => 2 }, ];
$self->{payment_options} = [ { title => $::locale->text("never"), value => 0 },
{ title => $::locale->text("every time"), value => 1 },
{ title => $::locale->text("on the same day"), value => 2 }, ];
$self->{payment_options} = [ { title => $::locale->text("never"), value => 0 },
{ title => $::locale->text("every time"), value => 1 },
{ title => $::locale->text("on the same day"), value => 2 }, ];
{ title => $::locale->text("cash"), value => "cash" }, ];
$self->{inventory_options} = [ { title => $::locale->text("perpetual"), value => "perpetual" },
{ title => $::locale->text("periodic"), value => "periodic" }, ];
$self->{profit_options} = [ { title => $::locale->text("balance"), value => "balance" },
{ title => $::locale->text("income"), value => "income" }, ];
{ title => $::locale->text("cash"), value => "cash" }, ];
$self->{inventory_options} = [ { title => $::locale->text("perpetual"), value => "perpetual" },
{ title => $::locale->text("periodic"), value => "periodic" }, ];
$self->{profit_options} = [ { title => $::locale->text("balance"), value => "balance" },
{ title => $::locale->text("income"), value => "income" }, ];
map { $self->{$_} = SL::DB::Default->get->$_ } qw(accounting_method inventory_system profit_determination);
$self->{show_bestbefore} = SL::DB::Default->get->show_bestbefore;
map { $self->{$_} = SL::DB::Default->get->$_ } qw(accounting_method inventory_system profit_determination);
$self->{show_bestbefore} = SL::DB::Default->get->show_bestbefore;
map { SL::DB::Default->get->update_attributes($_ => $::form->{$_}); } qw(accounting_method inventory_system profit_determination);
SL::DB::Default->get->update_attributes('show_bestbefore' => $::form->{show_bestbefore});
map { SL::DB::Default->get->update_attributes($_ => $::form->{$_}); } qw(datev_check_on_sales_invoice datev_check_on_purchase_invoice datev_check_on_ar_transaction datev_check_on_ap_transaction datev_check_on_gl_transaction);
map { SL::DB::Default->get->update_attributes($_ => $::form->{$_}); } qw(accounting_method inventory_system profit_determination);
SL::DB::Default->get->update_attributes('show_bestbefore' => $::form->{show_bestbefore});
map { SL::DB::Default->get->update_attributes($_ => $::form->{$_}); } qw(datev_check_on_sales_invoice datev_check_on_purchase_invoice datev_check_on_ar_transaction datev_check_on_ap_transaction datev_check_on_gl_transaction);
flash_later('info', $::locale->text('Client Configuration saved!'));
$self->redirect_to(action => 'edit');
flash_later('info', $::locale->text('Client Configuration saved!'));
$self->redirect_to(action => 'edit');