Defect #1489
closed
Slice - protection interval - problem when contract is not interrupted
Added by Vít Švanda almost 6 years ago.
Updated almost 6 years ago.
Category:
Contractual relationship
- Tracker changed from Task to Defect
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 0 to 90
Calculation of the protection worked correctly when some contract validity gap exist. If diff between contract validity from (on next slice) and contract validity till (on current slice) was less then 0, then was shrotened validity of main contract (because valid from on next slice was used as valid till on main contract).
Fix: Validity from on next slice is using as validity till of main contract only if diff (between contract validity from (on next slice) and contract validity till (on current slice)) is greater then 0.
Commit + test:
https://github.com/bcvsolutions/CzechIdMng/commit/6e4f2ae95c698c6b7d9dd35fc8ac41a2d9f0d27b
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 90 to 100
I did test and review, it works! Thx.
Note: can be cherry picked into older versions (or workarround with overriding DefaultContractManager can be used), if needed.
- Status changed from Resolved to Closed
Also available in: Atom
PDF