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, '28138', 'Add system preference RequirePaymentType');
9
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 568-573 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
568
('RentalsInNoissuesCharge','1',NULL,'Rental charges block checkouts (added to noissuescharge).','YesNo'),
568
('RentalsInNoissuesCharge','1',NULL,'Rental charges block checkouts (added to noissuescharge).','YesNo'),
569
('ReplyToDefault','',NULL,'Use this email address as the replyto in emails','Free'),
569
('ReplyToDefault','',NULL,'Use this email address as the replyto in emails','Free'),
570
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
570
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
571
('RequirePaymentType','0','','Require staff to select a payment type when a payment is made','YesNo'),
571
('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'),
572
('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'),
572
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
573
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
573
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
574
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/transaction_types.inc (-1 / +1 lines)
Lines 6-12 Link Here
6
[% END %]
6
[% END %]
7
[% IF payment_types.size > 0 %]
7
[% IF payment_types.size > 0 %]
8
    <li>
8
    <li>
9
        [% IF Koha.Preference('UseCashRegisters') %]
9
        [% IF Koha.Preference('UseCashRegisters') || Koha.Preference('RequirePaymentType') %]
10
            <label for="[% type | html %]_type" class="required">[% IF type == 'payment' %]Payment[% ELSE %]Transaction[% END %] type: </label>
10
            <label for="[% type | html %]_type" class="required">[% IF type == 'payment' %]Payment[% ELSE %]Transaction[% END %] type: </label>
11
            <select name="[% type | html %]_type" id="[% type | html %]_type" class="required" required="required">
11
            <select name="[% type | html %]_type" id="[% type | html %]_type" class="required" required="required">
12
                [% IF type == 'refund' %]
12
                [% IF type == 'refund' %]
(-)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