Koha-clms/installer/data/mysql/mandatory
Julian Maurice a7139af17a Bug 28138: Add syspref to make the payment type required
The payment type is already required when using the cash register
feature, but some users want to force selecting a payment type even
when cash registers are not used

The new system preference name is RequirePaymentType

Test plan:
1. Apply patch and run updatedatabase.pl
2. Disable UseCashRegisters and RequirePaymentType sysprefs
3. Create some authorised values in PAYMENT_TYPE category if needed
4. Create a manual invoice and pay it. Notice that the payment type is
   optional.
5. Enable RequirePaymentType
6. Create a manual invoice and pay it. Notice that the payment type is
   now required.
7. Enable UseCashRegisters and verify that the payment type is always
   required, even if RequirePaymentType is disabled

Rebased by Thibaud Guillot <thibaud.guillot@biblibre.com> on 21-12-02

Signed-off-by: shiyao <shiyao@inlibro.com>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-05-04 14:29:23 -10:00
..
account_credit_types.sql Bug 24603: (follow-up) Update to double entry accounting 2020-11-10 15:00:14 +01:00
account_debit_types.sql Bug 27946: (QA follow-up) Remove 'scan' terminology, requests may not be scans 2022-01-28 11:09:07 -10:00
audio_alerts.sql Bug 23895: Move installer file into the mandatory directory 2020-10-14 14:50:07 +02:00
auth_val_cat.sql Bug 30373: Add TYPEDOC authorised_values_category 2022-04-21 13:41:35 -10:00
keyboard_shortcuts.sql Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
message_transport_types.sql Bug 25334: Add generic 'phone' message transport type 2020-11-05 15:24:20 +01:00
sample_notices_message_attributes.sql Bug 29586: Fix typos in installer files 2021-12-13 15:52:29 -10:00
sample_notices_message_transports.sql Bug 29586: Fix typos in installer files 2021-12-13 15:52:29 -10:00
subtag_registry.sql Bug 29596: Add Yiddish language 2022-02-01 21:39:39 -10:00
sysprefs.sql Bug 28138: Add syspref to make the payment type required 2022-05-04 14:29:23 -10:00
userflags.sql Bug 19532: Database and installer stuff 2022-03-14 22:45:50 -10:00
userpermissions.sql Bug 26346: Database changes 2022-04-12 17:13:02 +02:00