-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
Conversation
manufacturerOutput += supplier.manufacturer | ||
manufacturerCodeOutput += supplier.manufacturerCode | ||
} | ||
row.createCell(CELL_INDEX).setCellValue(supplierOutput) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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() ?: '') |
There was a problem hiding this comment.
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<?>>)'
…(excel)
Those empty strings, eg.
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.