https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44047 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 211194 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211194&action=edit Bug 44047: add_debit: check transaction_type, not payment_type, for SIP00 Bug 44047: add_debit: check transaction_type, not payment_type, for SIP00 Koha::Account->add_debit requires a cash register for CASH and SIP00 when UseCashRegisters is on, but compared $params->{payment_type} with SIP00. add_debit takes transaction_type (payment_type is add_credit's parameter), so a SIP00 debit was stored without a register and every non-CASH call warned "Use of uninitialized value in string eq". Test plan: 1. prove t/db_dependent/Koha/Account.t Without the patch the new subtest fails: no RegisterRequired for a SIP00 debit without a cash register, and the uninitialized-value warning. 2. With the patch the whole file passes. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.