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

(-)a/installer/data/mysql/atomicupdate/add-system-preference-RequirePaymentType.perl (+9 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if ( CheckVersion($DBversion) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
5
        VALUES ('RequirePaymentType','0','','Require staff to select a payment type when a payment is made','YesNo')
6
    });
7
8
    NewVersion( $DBversion, 'XXXXX', 'Add system preference RequirePaymentType');
9
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 561-566 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
561
('ReplyToDefault','',NULL,'Use this email address as the replyto in emails','Free'),
561
('ReplyToDefault','',NULL,'Use this email address as the replyto in emails','Free'),
562
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
562
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
563
('RequestOnOpac','1',NULL,'If ON, globally enables patron holds on OPAC','YesNo'),
563
('RequestOnOpac','1',NULL,'If ON, globally enables patron holds on OPAC','YesNo'),
564
('RequirePaymentType','0','','Require staff to select a payment type when a payment is made','YesNo'),
564
('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'),
565
('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'),
565
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
566
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
566
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
567
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/payments.inc (-1 / +1 lines)
Lines 7-13 Link Here
7
    [% END %]
7
    [% END %]
8
    [% IF payment_types.size > 0 %]
8
    [% IF payment_types.size > 0 %]
9
        <li>
9
        <li>
10
            [% IF Koha.Preference('UseCashRegisters') %]
10
            [% IF Koha.Preference('UseCashRegisters') || Koha.Preference('RequirePaymentType') %]
11
                <label for="payment_type" class="required">Payment type: </label>
11
                <label for="payment_type" class="required">Payment type: </label>
12
                <select name="payment_type" id="payment_type" class="required" required="required">
12
                <select name="payment_type" id="payment_type" class="required" required="required">
13
                    [% FOREACH pt IN payment_types %]
13
                    [% FOREACH pt IN payment_types %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounting.pref (-1 / +7 lines)
Lines 12-17 Accounting: Link Here
12
                  1: "Do"
12
                  1: "Do"
13
                  0: "Don't"
13
                  0: "Don't"
14
            - automatically display a print dialog for a payment receipt when making a payment.
14
            - automatically display a print dialog for a payment receipt when making a payment.
15
        -
16
            - pref: RequirePaymentType
17
              choices:
18
                  0: "Do not require"
19
                  1: "Require"
20
            - staff to select a payment type when a payment is made.
21
            - This preference has no effect when UseCashRegisters is enabled or when no payment type is defined in PAYMENT_TYPE authorised value category
15
        -
22
        -
16
            - pref: RoundFinesAtPayment
23
            - pref: RoundFinesAtPayment
17
              choices:
24
              choices:
18
- 

Return to bug 28138