National-Forestry-Authority / farmers

0 stars 1 forks source link

Amounts paid and due #119

Closed peacog closed 1 year ago

peacog commented 1 year ago

Amount to be paid Farmer reference Year Area allocated in hectares Total due - calculate from area * land rent for the CFR (Land rent rates content type) Total paid - calculate from payments Outstanding amount - calculated = due - paid

Initial fields Amount assessed - the is current amount owed by farmer - initial setting - this is first Amount due in table Amount paid -

List amounts

System will compute amounts at start of year - Jan 1. Also allow administrator to request the recalculation- button/form in admin section

peacog commented 1 year ago

Computing the annual charges fails on staging with a memory error. This should be implemented as a batch process.

ygoex commented 1 year ago

Pending to fill the spreadsheet to upload the information in bulk.

ygoex commented 1 year ago

On admin page we need to be able to select the year (2004)

We would need be able to recalculate the charges for an individual farmer. We would need to add an autocomplete field on the same admin page.

peacog commented 1 year ago

Hi @Rashids2021 @LeScruf I've added the options we spoke about for calculating annual charges:

Image

You can test it here https://farmers.stg.envs.utils.nfa.go.ug/admin/config/nfafmis/settings

Note that the system will generate a payment advice (invoice) for each annual charge created. This is a feature that already existed from before we started working on it.

peacog commented 1 year ago

Hi @Rashids2021 @LeScruf

In staging I have generated all of the annual charges from 2004 to 2022. Please take a look when you have time.

peacog commented 1 year ago

@LeScruf @Rashids2021 I'm moving this ticket back to In Progress after discussing the problem of how to deal with land rate prior to 2016. We agreed that the calculate annual charges button should only apply after 2024

peacog commented 1 year ago

Closing in favor of https://github.com/National-Forestry-Authority/farmers/issues/158