View | Details | Raw Unified | Return to bug 40445
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-1 / +14 lines)
Lines 68-75 Link Here
68
            <div id="error_message" class="alert alert-warning"> Failed to start cashup. Please try again. </div>
68
            <div id="error_message" class="alert alert-warning"> Failed to start cashup. Please try again. </div>
69
        [% END %]
69
        [% END %]
70
70
71
        [% IF ( error_cashup_missing_param ) %]
72
            <div id="error_message" class="alert alert-warning"> Missing required parameter for cashup: [% error_message | html %] </div>
73
        [% END %]
74
75
        [% IF ( error_cashup_amount_invalid ) %]
76
            <div id="error_message" class="alert alert-warning"> The cashup amount must be a positive number greater than zero. </div>
77
        [% END %]
78
71
        [% IF ( error_cashup_complete ) %]
79
        [% IF ( error_cashup_complete ) %]
72
            <div id="error_message" class="alert alert-warning"> Failed to complete cashup. Please try again. </div>
80
            <div id="error_message" class="alert alert-warning">
81
                Failed to complete cashup. Please try again.
82
                [% IF error_details %]
83
                    <br /><strong>Error details:</strong> [% error_details | html %]
84
                [% END %]
85
            </div>
73
        [% END %]
86
        [% END %]
74
87
75
        [% IF ( error_refund_permission ) %]
88
        [% IF ( error_refund_permission ) %]
(-)a/pos/register.pl (-2 / +7 lines)
Lines 157-164 if ( !$registers->count ) { Link Here
157
                        $template->param( error_no_cashup_start => 1 );
157
                        $template->param( error_no_cashup_start => 1 );
158
                    } elsif ( $@->isa('Koha::Exceptions::Object::DuplicateID') ) {
158
                    } elsif ( $@->isa('Koha::Exceptions::Object::DuplicateID') ) {
159
                        $template->param( error_cashup_already_completed => 1 );
159
                        $template->param( error_cashup_already_completed => 1 );
160
                    } elsif ( $@->isa('Koha::Exceptions::MissingParameter') ) {
161
                        $template->param( error_cashup_missing_param => 1, error_message => $@ );
162
                    } elsif ( $@->isa('Koha::Exceptions::Account::AmountNotPositive') ) {
163
                        $template->param( error_cashup_amount_invalid => 1 );
160
                    } else {
164
                    } else {
161
                        $template->param( error_cashup_complete => 1 );
165
166
                        # Log the actual exception for debugging
167
                        $template->param( error_cashup_complete => 1, error_details => "$@" );
162
                    }
168
                    }
163
                } else {
169
                } else {
164
170
165
- 

Return to bug 40445