[Koha-bugs] [Bug 13098] Item lost multiple times by the same patron will create only be charged once
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 16 21:29:59 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13098
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomascohen at gmail.com
Version|unspecified |master
--- Comment #4 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Ok, this is the more complete tests I came up with.
Use cases:
- PF + L + Full write off
- PF + L + Full payment
- PF + L + No write off or payment
- PF + L + Partial write off, partial payment, some remaining debt (L,
amountoutstanding)
The idea is that _FixAccountForLostAndFound should:
- Consider write offs as good enough (so no CR for writeoffs)
- Generate a single CR for all payments that reduced amountoutstanding for L
- Write offs should be identified by looking at the account_offsets table,
specifically when credit_id IS NOT NULL, debit_id is the L accountlines_id and
type <> 'Writeoff'.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list