Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBPIH-4580 Add supplier information to inbound packing list download … #3340

Merged
merged 2 commits into from
Jul 7, 2022

Conversation

kchelstowski
Copy link
Collaborator

@kchelstowski kchelstowski commented Jul 5, 2022

…(excel)

Those empty strings, eg.

String supplierOutput = ""

are made and added to cell even if they are empty, because without at least empty string being added to the cell, the cell has no border, which would not be acceptable.

manufacturerOutput += supplier.manufacturer
manufacturerCodeOutput += supplier.manufacturerCode
}
row.createCell(CELL_INDEX).setCellValue(supplierOutput)
Copy link
Collaborator

Choose a reason for hiding this comment

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

row.createCell(CELL_INDEX).setCellValue(supplier?.supplierCode ?: '')

row.createCell(CELL_INDEX).setCellValue(supplierOutput)
row.getCell(CELL_INDEX++).setCellStyle(tableDataCenterStyle)

row.createCell(CELL_INDEX).setCellValue(manufacturerOutput)
Copy link
Collaborator

Choose a reason for hiding this comment

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

row.createCell(CELL_INDEX).setCellValue(supplier?.manufacturer ?: '')

row.createCell(CELL_INDEX).setCellValue(manufacturerOutput)
row.getCell(CELL_INDEX++).setCellStyle(tableDataCenterStyle)

row.createCell(CELL_INDEX).setCellValue(manufacturerCodeOutput)
Copy link
Collaborator

Choose a reason for hiding this comment

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

row.createCell(CELL_INDEX).setCellValue(supplier?.manufacturerCode ?: '')

row.getCell(CELL_INDEX++).setCellStyle(tableDataCenterStyle)

row.createCell(CELL_INDEX).setCellValue(manufacturerOutput)
row.createCell(CELL_INDEX).setCellValue(supplier?.manufacturer?.toString() ?: '')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

toString() was neccessary, because supplier.manufacturer is of Organization class and in this version it was said that

setCellValue cannot be applied to '(java.io.Serializable & java.lang.Comparable<? extends java.io.Serializable & java.lang.Comparable<?>>)' 

@awalkowiak awalkowiak merged commit 20e9dcb into develop Jul 7, 2022
@awalkowiak awalkowiak deleted the OBPIH-4580 branch July 7, 2022 17:36
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.

None yet

2 participants