Skip to content

OBPIH-5978 Improve the date shipped field to show a user who shipped the SM, not the one, who created it.#4599

Merged
awalkowiak merged 3 commits intofeature/upgrade-to-grails-3.3.10from
OBPIH-5978
Apr 26, 2024
Merged

OBPIH-5978 Improve the date shipped field to show a user who shipped the SM, not the one, who created it.#4599
awalkowiak merged 3 commits intofeature/upgrade-to-grails-3.3.10from
OBPIH-5978

Conversation

@kchelstowski
Copy link
Collaborator

No description provided.

<g:formatDate format="MMMM dd, yyyy" date="${stockMovement?.dateShipped}"/>
</span>
<g:if test="${stockMovement?.shipment?.createdBy}">
<g:if test="${stockMovement?.shipment?.shippedBy || stockMovement?.shipment?.createdBy}">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this fallback to created by to the shipment's shippedBy method? It could be something like if there is no shipped event and there is a case we want to return created by, then it would be returned.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@awalkowiak I guess it should be if there IS shipped event, because otherwise we don't want to display any user (until the SM is shipped).
I'm gonna push the change and let me know if we are on the same page

@kchelstowski kchelstowski requested a review from awalkowiak April 25, 2024 13:49
@awalkowiak awalkowiak merged commit 67a9e3c into feature/upgrade-to-grails-3.3.10 Apr 26, 2024
@awalkowiak awalkowiak deleted the OBPIH-5978 branch April 26, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants