On Last Non Zero
Allocates the Money difference on the last item of non-zero value in the allocations list. If only zero values are available, allocates to the last item.
Functions
Link copied to clipboard
Allocates the difference in the allocations list.
Link copied to clipboard
open fun applyDifferenceAtIndex(difference: Money, index: Int, allocations: List<Money>): List<Money>
Apply the difference in the specific index of the allocations list.
Link copied to clipboard
open override fun applyDifferenceOnValue(difference: Money, value: Money, allocations: List<Money>): List<Money>
Apply the difference in a specific value in the allocations list.