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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-6 / +15 lines)
Lines 7-12 Link Here
7
[% PROCESS 'payments.inc' %]
7
[% PROCESS 'payments.inc' %]
8
[% PROCESS 'accounts.inc' %]
8
[% PROCESS 'accounts.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
10
[% BLOCK cash_register_required %]
11
    <div id="error_message" class="dialog message">
12
        <p>
13
            You must have at least one cash register associated with the library before you can record payments.
14
        </p>
15
        [% IF ( CAN_user_parameters_manage_cash_registers ) %]
16
            <form action="/cgi-bin/koha/admin/cash_registers.pl" method="get">
17
                <input type="hidden" name="op" value="add_form" />
18
                <button class="new" type="submit"><i class="fa fa-plus"></i> Create a new cash register</button>
19
            </form>
20
        [% END %]
21
    </div>
22
[% END %]
10
<title>Koha &rsaquo; Patrons &rsaquo;
23
<title>Koha &rsaquo; Patrons &rsaquo;
11
    [% IF type == 'WRITEOFF' %]
24
    [% IF type == 'WRITEOFF' %]
12
        Write off an amount for [% patron.firstname | html %] [% patron.surname | html %]
25
        Write off an amount for [% patron.firstname | html %] [% patron.surname | html %]
Lines 74-82 Link Here
74
87
75
[% IF ( pay_individual ) %]
88
[% IF ( pay_individual ) %]
76
    [% IF ( error_registers ) %]
89
    [% IF ( error_registers ) %]
77
    <div id="error_message" class="dialog alert">
90
        [% PROCESS 'cash_register_required' %]
78
        You must have at least one cash register associated with this branch before you can record payments.
79
    </div>
80
    [% ELSE %]
91
    [% ELSE %]
81
92
82
    <ul class="nav nav-pills">
93
    <ul class="nav nav-pills">
Lines 215-223 Link Here
215
    </form>
226
    </form>
216
[% ELSE %]
227
[% ELSE %]
217
    [% IF ( error_registers && type != 'writeoff' ) %]
228
    [% IF ( error_registers && type != 'writeoff' ) %]
218
    <div id="error_message" class="dialog alert">
229
        [% PROCESS 'cash_register_required' %]
219
        You must have at least one cash register associated with this branch before you can record payments.
220
    </div>
221
    [% ELSE %]
230
    [% ELSE %]
222
231
223
    [% IF selected_accts %]
232
    [% IF selected_accts %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-3 / +11 lines)
Lines 20-28 Link Here
20
        <div class="col-sm-10 col-sm-push-2">
20
        <div class="col-sm-10 col-sm-push-2">
21
21
22
        [% IF ( error_registers ) %]
22
        [% IF ( error_registers ) %]
23
        <div id="error_message" class="dialog alert">
23
            <div id="error_message" class="dialog message">
24
            You must have at least one cash register associated with this branch before you can record payments.
24
                <p>
25
        </div>
25
                    You must have at least one cash register associated with the library before you can record payments.
26
                </p>
27
                [% IF ( CAN_user_parameters_manage_cash_registers ) %]
28
                    <form action="/cgi-bin/koha/admin/cash_registers.pl" method="get">
29
                        <input type="hidden" name="op" value="add_form" />
30
                        <button class="new" type="submit"><i class="fa fa-plus"></i> Create a new cash register</button>
31
                    </form>
32
                [% END %]
33
            </div>
26
        [% ELSE %]
34
        [% ELSE %]
27
35
28
        [% IF payment_id && !Koha.Preference('FinePaymentAutoPopup') %]
36
        [% IF payment_id && !Koha.Preference('FinePaymentAutoPopup') %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-3 / +11 lines)
Lines 23-31 Link Here
23
        <div class="col-sm-10 col-sm-push-2">
23
        <div class="col-sm-10 col-sm-push-2">
24
24
25
            [% IF ( error_registers ) %]
25
            [% IF ( error_registers ) %]
26
            <div id="error_message" class="dialog alert">
26
                <div id="error_message" class="dialog message">
27
                You must have at least one cash register associated with this library before you can record payments.
27
                    <p>
28
            </div>
28
                        You must have at least one cash register associated with the library before you can record payments.
29
                    </p>
30
                    [% IF ( CAN_user_parameters_manage_cash_registers ) %]
31
                        <form action="/cgi-bin/koha/admin/cash_registers.pl" method="get">
32
                            <input type="hidden" name="op" value="add_form" />
33
                            <button class="new" type="submit"><i class="fa fa-plus"></i> Create a new cash register</button>
34
                        </form>
35
                    [% END %]
36
                </div>
29
            [% ELSE %]
37
            [% ELSE %]
30
38
31
            [% IF ( CAN_user_cash_management_cashup ) %]
39
            [% IF ( CAN_user_cash_management_cashup ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt (-5 / +11 lines)
Lines 20-29 Link Here
20
            <div class="col-sm-10 col-sm-push-2">
20
            <div class="col-sm-10 col-sm-push-2">
21
                <main>
21
                <main>
22
                    [% IF ( error_registers ) %]
22
                    [% IF ( error_registers ) %]
23
                    <div id="error_message" class="dialog alert">
23
                        <div id="error_message" class="dialog message">
24
                        You must have at least one cash register associated with this library before you
24
                            <p>
25
                        can record payments.
25
                                You must have at least one cash register associated with the library before you can record payments.
26
                    </div>
26
                            </p>
27
                            [% IF ( CAN_user_parameters_manage_cash_registers ) %]
28
                                <form action="/cgi-bin/koha/admin/cash_registers.pl" method="get">
29
                                    <input type="hidden" name="op" value="add_form" />
30
                                    <button class="new" type="submit"><i class="fa fa-plus"></i> Create a new cash register</button>
31
                                </form>
32
                            [% END %]
33
                        </div>
27
                    [% ELSE %]
34
                    [% ELSE %]
28
                    <div id="toolbar" class="btn-toolbar">
35
                    <div id="toolbar" class="btn-toolbar">
29
                        <button type="button" class="cashup_all btn btn-default" data-toggle="modal" data-target="#confirmCashupAllModal"><i class="fa fa-money"></i> Cashup all</button>
36
                        <button type="button" class="cashup_all btn btn-default" data-toggle="modal" data-target="#confirmCashupAllModal"><i class="fa fa-money"></i> Cashup all</button>
30
- 

Return to bug 26149