<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Fri Feb 09 00:35:04 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[CIRC-1626] Checkout allows &quot;Change due date&quot; to create a new due date/time earlier than the item checkout date/time</title>
                <link>https://folio-org.atlassian.net/browse/CIRC-1626</link>
                <project id="10133" key="CIRC">mod-circulation</project>
                    <description>&lt;p&gt;&lt;b&gt;Overview:&lt;/b&gt; Verified on a Lotus environment, and on Snapshot.&lt;/p&gt;

&lt;p&gt;When a patron has an item on loan, FOLIO users can change the loan due date. FOLIO allows users to choose a due date that is before the item loan date.&lt;/p&gt;

&lt;p&gt;This is likely to be user error, but FOLIO should stop this from occurring. If the date is mistakenly set to the past, it can trigger almost immediate overdue/lost notices to be sent to patrons, and then of course it also would cause issues with reporting.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Log into Snapshot as a user with permissions to check out items&lt;/li&gt;
	&lt;li&gt;Find a patron and an item that can be loaned to the patron&lt;/li&gt;
	&lt;li&gt;Go to Check out and check the item out to the patron&lt;/li&gt;
	&lt;li&gt;From the successful loan in the &quot;Scan items&quot; pane, click the &quot;...&quot; menu and choose &quot;Change due date&quot;&lt;/li&gt;
	&lt;li&gt;Choose a due date that is before the current day. The UI will warn you that the date is in the past.&lt;/li&gt;
	&lt;li&gt;Click &lt;b&gt;Save and close&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;b&gt;Expected Results:&lt;/b&gt; FOLIO returns an error message that says that the due date cannot be changed&lt;br/&gt;
&lt;b&gt;Actual Results:&lt;/b&gt; FOLIO changes the due date&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Additional Information:&lt;/b&gt;&lt;br/&gt;
In looking at original specs for this feature, it appears this scenario was not accounted for (or at least, I cannot find a jira.)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/browse/UIU-497&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://folio-org.atlassian.net/browse/UIU-497&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://folio-org.atlassian.net/browse/UIU-1516&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://folio-org.atlassian.net/browse/UIU-1516&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That means that the cause of this issue is likely &quot;Missing/incomplete requirements&quot;.&lt;/p&gt;

&lt;p&gt;Also, the API in Check out and Users uses a PUT to /circulation/loans rather than a POST to /circulation/loans/&lt;/p&gt;

{id}

&lt;p&gt;/change-due-date and I don&apos;t know why.&lt;/p&gt;

&lt;p&gt;Both Checkout and Users allow for changing loan due dates, but I am putting this into the back end module that I think is appropriate (mod-circulation) since this will also affect Bulk Edit (
    &lt;span class=&quot;jira-issue-macro&quot; data-jira-key=&quot;UXPROD-3805&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/UXPROD-3805&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Bulk edit - loan due dates&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium&quot; /&gt;
            UXPROD-3805
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-complete jira-macro-single-issue-export-pdf&quot;&gt;Draft&lt;/span&gt;
            &lt;/span&gt;
).&lt;/p&gt;

&lt;p&gt;In an ideal scenario, the back-end API would handle this, but there are use cases where you would potentially &lt;b&gt;need&lt;/b&gt; to set dates this way (e.g., bulk migration) and so this probably needs more discussion about how to address.&lt;/p&gt;

&lt;p&gt;URL: &lt;br/&gt;
&lt;b&gt;Interested parties:&lt;/b&gt; &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A8629b273-56f1-466d-b7c7-5cbac0c3379b&quot; class=&quot;user-hover&quot; rel=&quot;557058:8629b273-56f1-466d-b7c7-5cbac0c3379b&quot; data-account-id=&quot;557058:8629b273-56f1-466d-b7c7-5cbac0c3379b&quot; accountid=&quot;557058:8629b273-56f1-466d-b7c7-5cbac0c3379b&quot; rel=&quot;noreferrer&quot;&gt;Magda Zacharska&lt;/a&gt;, for bulk edit awareness&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="49540">CIRC-1626</key>
            <summary>Checkout allows &quot;Change due date&quot; to create a new due date/time earlier than the item checkout date/time</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                            <parent id="10047">UXPROD-788</parent>
                                    <priority id="10001" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p2.svg">P2</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Won&apos;t Do</resolution>
                                                        <assignee accountid="-1">Unassigned</assignee>
                                                                <reporter accountid="5c48911b54e1e6466b11f38c">Erin Nettifee</reporter>
                                    <labels>
                            <label>support</label>
                    </labels>
                <created>Tue, 27 Sep 2022 14:29:55 +0000</created>
                <updated>Wed, 12 Oct 2022 20:43:37 +0000</updated>
                            <resolved>Wed, 12 Oct 2022 14:53:00 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                                                            <comment id="116394" author="5c48911b54e1e6466b11f38c" created="Tue, 27 Sep 2022 15:42:57 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5d794c218ce6b60c3810eb8a&quot; class=&quot;user-hover&quot; rel=&quot;5d794c218ce6b60c3810eb8a&quot; data-account-id=&quot;5d794c218ce6b60c3810eb8a&quot; accountid=&quot;5d794c218ce6b60c3810eb8a&quot; rel=&quot;noreferrer&quot;&gt;Stephanie Buck&lt;/a&gt; I filed this today - glad to chat more.&lt;/p&gt;

&lt;p&gt;I think the issue here is that if you don&apos;t stop it, you can almost immediately generate notice policies to be delivered (so it makes the error super visible.)&lt;/p&gt;</comment>
                                                            <comment id="116397" author="5c48911b54e1e6466b11f38c" created="Tue, 27 Sep 2022 16:29:00 +0000"  >&lt;p&gt;Brooks noted over in the comments of &lt;a href=&quot;https://folio-org.atlassian.net/browse/UXPROD-3805&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://folio-org.atlassian.net/browse/UXPROD-3805&lt;/a&gt; that there are production use cases for creating loan records where the loan due date is earlier than the loan create date - particularly around migration workflows.&lt;/p&gt;

&lt;p&gt;That raises some questions... I might flag this for discussion over in the data-migration channel.&lt;/p&gt;</comment>
                                                            <comment id="116399" author="5c48911b54e1e6466b11f38c" created="Tue, 27 Sep 2022 16:43:05 +0000"  >&lt;p&gt;Started thread here: &lt;a href=&quot;https://folio-project.slack.com/archives/CB5BQFEK1/p1664296960422089&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://folio-project.slack.com/archives/CB5BQFEK1/p1664296960422089&lt;/a&gt;&lt;/p&gt;</comment>
                                                            <comment id="116401" author="632e148361dbef2805be710f" created="Tue, 27 Sep 2022 18:15:07 +0000"  >&lt;p&gt;Yeah, I&apos;d argue that this is not a bug.&lt;/p&gt;</comment>
                                                            <comment id="116403" author="5d794c218ce6b60c3810eb8a" created="Tue, 11 Oct 2022 12:44:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5c48911b54e1e6466b11f38c&quot; class=&quot;user-hover&quot; rel=&quot;5c48911b54e1e6466b11f38c&quot; data-account-id=&quot;5c48911b54e1e6466b11f38c&quot; accountid=&quot;5c48911b54e1e6466b11f38c&quot; rel=&quot;noreferrer&quot;&gt;Erin Nettifee&lt;/a&gt;&#160; &amp;amp; &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=632e148361dbef2805be710f&quot; class=&quot;user-hover&quot; rel=&quot;632e148361dbef2805be710f&quot; data-account-id=&quot;632e148361dbef2805be710f&quot; accountid=&quot;632e148361dbef2805be710f&quot; rel=&quot;noreferrer&quot;&gt;Brooks Travis&lt;/a&gt;, &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A12031ab4-cff4-4571-b23b-43dcfc15a6ac&quot; class=&quot;user-hover&quot; rel=&quot;712020:12031ab4-cff4-4571-b23b-43dcfc15a6ac&quot; data-account-id=&quot;712020:12031ab4-cff4-4571-b23b-43dcfc15a6ac&quot; accountid=&quot;712020:12031ab4-cff4-4571-b23b-43dcfc15a6ac&quot; rel=&quot;noreferrer&quot;&gt;Alexander Kurash&lt;/a&gt; and Vega are under the impression that the idea was to be able to change a due date to one in the past. This ticket implies that the user should not be able to change a due date to a past date. Can you clarify?&#160;&lt;/p&gt;</comment>
                                                            <comment id="116405" author="5c48911b54e1e6466b11f38c" created="Wed, 12 Oct 2022 14:52:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5d794c218ce6b60c3810eb8a&quot; class=&quot;user-hover&quot; rel=&quot;5d794c218ce6b60c3810eb8a&quot; data-account-id=&quot;5d794c218ce6b60c3810eb8a&quot; accountid=&quot;5d794c218ce6b60c3810eb8a&quot; rel=&quot;noreferrer&quot;&gt;Stephanie Buck&lt;/a&gt;. it&apos;s not that you can&apos;t change it to the past, but that you can&apos;t change it to a date &lt;b&gt;before&lt;/b&gt; the item was checked out.&lt;/p&gt;

&lt;p&gt;Scenario 1: item was checked out 9-1-2021, returned 12-30-2021, backdated to 11-1-2021 - that&apos;s OK, because then it looks like a loan from September 1 to November 1&lt;/p&gt;

&lt;p&gt;Scenario 2: item was checked out 9-1-2021, returned 12-30-2021, backdated to 7-1-2021 - that&apos;s not OK because then it looks like a loan that was returned before it happened.&lt;/p&gt;

&lt;p&gt;Having said all that, the Slack discussion and ensuing convos with Brooks point out that changing this has a data migration impact and it&apos;s definitely not the simple bug I impulsively thought it was. So I&apos;m going to close this as &quot;won&apos;t do&quot; but the overall question will still need to be resolved, I think, in order to prevent potentially ugly errors on the Bulk Edit side.&lt;/p&gt;
</comment>
                                                            <comment id="116407" author="5d794c218ce6b60c3810eb8a" created="Wed, 12 Oct 2022 20:43:37 +0000"  >&lt;p&gt;Thanks, &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5c48911b54e1e6466b11f38c&quot; class=&quot;user-hover&quot; rel=&quot;5c48911b54e1e6466b11f38c&quot; data-account-id=&quot;5c48911b54e1e6466b11f38c&quot; accountid=&quot;5c48911b54e1e6466b11f38c&quot; rel=&quot;noreferrer&quot;&gt;Erin Nettifee&lt;/a&gt; for the explanation and follow-up on this!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="13380">UXPROD-3805</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10187"><![CDATA[Vega]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10014" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue key="$xmlutils.escape($text)">Loans</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10063" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>PO Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10106" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>RCA Group</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10367"><![CDATA[TBD]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzx268:ix5zficoxyiwzk3zrs0r8</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10046" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Release</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10061"><![CDATA[Nolana (R3 2022)]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 27 Sep 2022 18:15:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>