Koha/installer/data/mysql
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
..
atomicupdate Bug 28138: Add syspref to make the payment type required 2022-05-04 14:29:23 -10:00
db_revs Bug 30600: Fix recall reasons for branch transfers 2022-05-04 14:29:23 -10:00
en Bug 29894: (follow-up) Update notice terms 2022-05-02 11:22:58 -10:00
fr-FR Bug 30237: (follow-up) Add french sample notice 2022-04-20 09:03:39 -10:00
localization Bug 27622: Add stuffs to custom.sql 2021-10-07 15:49:01 +02:00
mandatory Bug 28138: Add syspref to make the payment type required 2022-05-04 14:29:23 -10:00
backfill_statistics.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
kohastructure.sql Bug 30600: Fix recall reasons for branch transfers 2022-05-04 14:29:23 -10:00
labels_upgrade.pl
patroncards_upgrade.pl
update22to30.pl Bug 29180: (QA follow-up) Don't alter old DB up date 2021-11-05 12:13:25 +01:00
updatedatabase.pl Bug 28263: Fix too_many auto renewal message 2021-11-02 16:50:01 +01:00