gltn / stdm

STDM is a free and open source pro-poor land recordation system based on QGIS, PostgreSQL and PostGIS.
http://stdm.gltn.net/
GNU General Public License v2.0
30 stars 30 forks source link

STDM510: Tool capturing future Dates where not applicable #506

Closed Thom03 closed 2 days ago

Thom03 commented 4 months ago

Issue No: ###STDM510

Expected Behavior

The tool should prevent users from capturing future dates that are not applicable.

Actual Behavior

The tools allow users to capture future dates where they are not applicable.

Steps to Reproduce the Problem

  1. Open QGIS for STDM.
  2. Login into STDM
  3. Open Entity Windows,
  4. Try to key in date data for one entity with a date field.

Additional details:

image

pgathogo commented 4 months ago

@Thom03 - For date data types, you can add the constraints when you are creating the column in the Configuration Wizard. You can set the Minimum and Maximum date constraint on your column: image

And when you are entering the data, the date widget will be constrained by your settings:

image