Bhavya-Sonigra opened a new pull request, #6278:
URL: https://github.com/apache/fineract/pull/6278

   ### Description
   This PR implements feature 
[FINERACT-2760](https://issues.apache.org/jira/browse/FINERACT-2760), extending 
the Fineract document management system to support `issuance_date` and 
`expiry_date` fields for uploaded files.
   
   **Background:**
   Previously, the document management system did not natively support tracking 
the lifecycle of attached files (such as client IDs, business licenses, or 
contracts). Institutions had no built-in way to store when a document was 
issued or when it expires.
   
   **Changes Made:**
   * Added a Liquibase migration script to append `issuance_date` and 
`expiry_date` columns to the `m_document` table.
   * Updated the `Document` JPA entity and `DocumentData` data transfer object 
to map the new properties using `LocalDate`.
   * Modified the `DocumentApiResource` controller to explicitly extract 
`issuanceDate` and `expiryDate` via `@FormDataParam` annotations in 
`multipart/form-data` requests for both `createDocument` (POST) and 
`updateDocument` (PUT).
   * Verified end-to-end functionality locally via API requests, ensuring the 
dates are correctly parsed, persisted in PostgreSQL, and exposed in the JSON 
response payloads.
   
   ---
   
   ### Checklist
   Please make sure these boxes are checked before submitting your pull request 
- thanks!
   
   - [x] Write the commit message as per our guidelines
   - [x] Acknowledge that we will not review PRs that are not passing the build 
("green") - it is your responsibility to get a proposed PR to pass the build, 
not primarily the project's maintainers.
   - [x] Create/update unit or integration tests for verifying the changes made.
   - [x] Follow our coding conventions.
   - [ ] Add required Swagger annotation and update API documentation at 
`fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm` with 
details of any API changes
   - [x] This PR must not be a "code dump". Large changes can be made in a 
branch, with assistance. Ask for help on the developer mailing list.
   - [x] If merging this PR resolves a JIRA issue, I will mark that issue as 
resolved and set "Fix Version/s" appropriately.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to