Skip to content

OBPIH-6321 Show supplier product name in po documents#4930

Merged
awalkowiak merged 1 commit intodevelopfrom
OBPIH-6321
Nov 7, 2024
Merged

OBPIH-6321 Show supplier product name in po documents#4930
awalkowiak merged 1 commit intodevelopfrom
OBPIH-6321

Conversation

@kchelstowski
Copy link
Collaborator

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

If this PR contains a UI change, consider adding one or more screenshots here or link to a screen recording to help reviewers visualize the change. Otherwise, you can remove this section.

@kchelstowski kchelstowski self-assigned this Nov 7, 2024
@github-actions github-actions bot added the domain: backend Changes or discussions relating to the backend server label Nov 7, 2024
totalPrice: v?.sum { it.totalPrice() },
budgetCode: v?.budgetCode?.first()?.code ?: "",
expectedShippingDate: v?.estimatedReadyDate?.first() ? v?.estimatedReadyDate?.first()?.format(Constants.EUROPEAN_DATE_FORMAT) : ""
expectedShippingDate: v?.estimatedReadyDate?.first() ? v?.estimatedReadyDate?.first()?.format(Constants.EUROPEAN_DATE_FORMAT) : "",
Copy link
Collaborator

Choose a reason for hiding this comment

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

have you tried what will happen if estimatedReadyDate is null? I remember that .first() in Groovy is broken and even if there is a null safe operator it can throw an error.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have not changed anything here (except adding a comma), so I assume this must have been tested and is working properly.

@ewaterman
Copy link
Member

wow those methods in DocumentService are huge

@awalkowiak awalkowiak merged commit c24eb29 into develop Nov 7, 2024
@awalkowiak awalkowiak deleted the OBPIH-6321 branch November 7, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Changes or discussions relating to the backend server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants