User/Created Date not Recorded for Receipt

Description

The user would like saved entities to be updated with the correct created-by user and created date.

The user created a Receipt in the system but, when saved, the created date and created by user were blank.

  • Investigate, record findings in comments, and fix

Link to screenshot:  https://mcoecn.atlassian.net/wiki/x/rcAw

During the meeting it was discovered that the accountQueryService is not limiting the results to active accounts (parent account must also be active).   This will be corrected on USASR-3154.

When selecting an inactive account the created date and user custom fields are removed.  After further testing, errors on the item will wipe out the custom fields, but not on the header.

Research and fix.

Environment

None

Activity

Show:

Jason Klinger May 11, 2018 at 3:00 PM

After much debugging, I found that the customFields for createdDate and user were getting saved to the database. However, the relationship between the receipt and customFields was not being persisted. We believe that the customFields were created when the error occurred, and then persisted when the error was fixed. The fix for this was to set the customFields to null, and then set the value again.

Fixed

Details

Assignee

Reporter

Fix versions

Times Requested

1

Source

120 Eligible

Yes

Time tracking

4d 1h logged

Components

Affects versions

Priority

Better PDF Exporter

Created April 20, 2018 at 1:22 PM
Updated May 29, 2018 at 2:06 PM
Resolved May 29, 2018 at 2:06 PM