EBMS Tickets

Issue Number 5
Summary [Travel] Reimbursement Request Form - Use Pop-up Calendar for Dates
Created 2013-09-17 09:07:22
Issue Type Improvement
Submitted By Juthe, Robin (NIH/NCI) [E]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2014-01-02 11:44:32
Resolution Fixed
Path /home/bkline/backups/jira/oceebms/issue.113288
Description

TIR #2369 created 2013-02-07 by Robin Juthe

Could the pop-up calendar be added beside the date fields on the reimbursement request forms for consistency with the hotel request form?

Comment entered 2013-11-05 11:25:45 by chengep

Developer note: there are multiple calendar widgets; need to make sure we are using the desired widget.

Comment entered 2013-12-12 21:01:11 by alan

Looking at https://ebms-dev.nci.nih.gov/travel/reimbursement-request, I see that "ARRIVAL DATE" and "DEPARTURE DATE" both have calendar widgets next to the Month / Day / Year fields. "TRANSPORTATION DATE" and "PARKING AND TOLLS DATE" both have the same Month / Day / Year fields but have no calendar widgets.

I presume that the purpose of this task is to make the latter two be just like the former two, each with the same calendar widget used in the two fields that have calendar widgets. That's what I'll assume until someone says I'm mistaken.

Comment entered 2013-12-13 09:54:14 by Juthe, Robin (NIH/NCI) [E]

That's right, Alan. Thanks.

Comment entered 2013-12-17 16:56:37 by alan
I've gone over the existing logic with Bob and we also got some good
ideas from Dan and I think we have a plan about what to do.

It would seem straightforward - just replace the month/day/year date
input fields with a calendar popup widget.  Easy, right?  Well, maybe
not.  The problem is that the month/day/year input fields and the
calendar widget produce dates in very different formats.

What I'm planning to do is to, experimentally at least, is the
following:

    Replace the month/day/year input field with a calendar popup widget.

    Process the data when it is submitted to change the input data from
    the format produced by the popup widget back to the original format.

    Store the new data in the database using that original format.

Assuming I can do that straightforwardly, I'm thinking that all of the
existing reports on this data will continue to work without
modification.  I'm also thinking that we never edit this data, so I
never have to do a reverse conversion to recreate the calendar widget
format and put the data back on the screen for editing.

The format produced by the calendar widget is probably a better format
for straightforward programming, but we've already written code to use
the old format and we'd have to re-write existing reports either to use
two different date formats, or else to use the new format exclusively
and run a conversion on the existing data.  That's the cleanest solution
but is relatively much more expensive and had no specific benefit for
users, only for future program modifications.

I'm going to make the changes on a private virtual machine and make sure
the reports work and the database is okay.  If all goes well, I'll
install the changes on DEV.  If I learn that the plan has unforeseen
problems, I'll report back.
Comment entered 2013-12-17 18:02:07 by alan

In case you are wondering about why you got two identical appearing comments from me, the second one fixes a one character typo. It probably wasn't worth it, but extra credit goes to anyone who spots the typo without using a diff program.

Comment entered 2014-01-02 11:44:32 by Kline, Bob (NIH/NCI) [C]

I think I've got this one licked. Please test thoroughly.

  • R12230 modules/custom/ebms_webforms/ebms_webforms.module

Comment entered 2014-01-06 00:47:55 by Kline, Bob (NIH/NCI) [C]

Promoted to QA.

Comment entered 2014-01-16 13:15:03 by Shields, Victoria (NIH/NCI) [E]

Verified on QA.

Comment entered 2014-02-13 14:40:20 by Baldwin, Robin (NIH/NCI) [E]

Verified on production.

Elapsed: 0:00:00.000591