https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33501
--- Comment #43 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 211464 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211464&action=edit Bug 33501: (QA follow-up) Keep every payment type in the cashup summary CashupPaymentTypes decides which payment types are reconciled when a cashup is completed. The cashup summary had also been narrowed to that list, so a payment type outside it (e.g. card payments, which are taken directly and never go through the register) vanished from the summary while its amount was still part of the total. The per-type rows then no longer added up to the total. total_grouped is a complete split of the total again, as it was before this bug: types in CashupPaymentTypes come first, in preference order, followed by any other type with takings. Each row carries a cashed_up flag. The summary modal now shows the split as two groups under the total, each a heading row carrying the group total with the per-type rows beneath it: "Held in register" for the types in CashupPaymentTypes, and "Taken elsewhere" for payments such as cards that are only recorded at the register. A group with a single type names it in the heading instead. For a completed cashup, a type whose counted amount differed from the expected one also shows the expected amount. The CashupPaymentTypes preference description now says that types not selected still count towards the register total and appear in the summary, but are not part of the amount reconciled at cashup. The surplus and deficit rows now show the PAYMENT_TYPE authorised value description instead of the raw code, using a code to description map that cashup_summary.inc builds for the modal, and the "(bankable: ...)" text on the registers page is translatable. To test: 1. Set UseCashRegisters to Use, add a PAYMENT_TYPE authorised value CARD and a cash register 2. Pay a 30.00 fee with Cash and a 20.00 fee with Card at that register 3. Register page > Record cashup > Start cashup > Preview cashup summary => Total is 50.00, followed by "Held in register (Cash)" 30.00 and "Taken elsewhere (Card)" 20.00 4. Set CashupPaymentTypes to CASH,CARD and preview again => "Held in register" is 50.00 with Cash 30.00 and Card 20.00 listed beneath it, and Complete cashup asks for both amounts 5. Complete the cashup with a Cash amount different from expected => the Cash row reads "Cash, expected 30.00" with the counted amount, and the surplus/deficit row follows as before 6. prove t/db_dependent/Koha/Cash/Register/Cashup.t Co-Authored-By: Claude Sonnet 5.5 <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
