Lines 106-117
else {
Link Here
|
106 |
my $op = $input->param('op') // ''; |
106 |
my $op = $input->param('op') // ''; |
107 |
if ( $op eq 'cashup' ) { |
107 |
if ( $op eq 'cashup' ) { |
108 |
if ( $logged_in_user->has_permission( { cash_management => 'cashup' } ) ) { |
108 |
if ( $logged_in_user->has_permission( { cash_management => 'cashup' } ) ) { |
109 |
$cash_register->add_cashup( |
109 |
my $cashup = $cash_register->add_cashup( |
110 |
{ |
110 |
{ |
111 |
manager_id => $logged_in_user->id, |
111 |
manager_id => $logged_in_user->id, |
112 |
amount => $cash_register->outstanding_accountlines->total |
112 |
amount => $cash_register->outstanding_accountlines->total |
113 |
} |
113 |
} |
114 |
); |
114 |
); |
|
|
115 |
$template->param( cashup_id => $cashup->id ); |
116 |
$template->param( cashup_description => "Some stuff here" ); |
115 |
} |
117 |
} |
116 |
else { |
118 |
else { |
117 |
$template->param( error_cashup_permission => 1 ); |
119 |
$template->param( error_cashup_permission => 1 ); |
118 |
- |
|
|