OBPIH-6813 Fix product source not displaying on invoice tab of PO show page#4942
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4942 +/- ##
=========================================
Coverage ? 7.58%
Complexity ? 806
=========================================
Files ? 597
Lines ? 42173
Branches ? 10261
=========================================
Hits ? 3200
Misses ? 38510
Partials ? 463 ☔ View full report in Codecov by Sentry. |
| </g:if> | ||
| <g:else> | ||
| <format:displayName product="${invoiceItem?.product}" productSupplier="${invoiceItem?.orderItem?.productSupplier}" showTooltip="${true}" /> | ||
| <format:displayName product="${invoiceItem?.product}" productSupplier="${invoiceItem?.shipmentItem?.orderItem?.productSupplier}" showTooltip="${true}" /> |
There was a problem hiding this comment.
What do you think about adding a getter that would allow us to hide the whole call chain?
| </g:if> | ||
| <g:else> | ||
| <format:displayName product="${invoiceItem?.product}" productSupplier="${invoiceItem?.orderItem?.productSupplier}" showTooltip="${true}" /> | ||
| <format:displayName product="${invoiceItem?.product}" productSupplier="${invoiceItem?.shipmentItem?.orderItem?.productSupplier}" showTooltip="${true}" /> |
There was a problem hiding this comment.
I remember you showing that the previous version (the one you are getting rid of) was displaying correctly for the prepayment items (there was invoiceItem.orderItem present).
Won't this change make an opposite situation, so that this will work for the rest now, but will not work for the prepayment items, as they do not have a shipmentItem? 🤔
566a82f to
e943a34
Compare
✨ Description of Change
Link to GitHub issue or Jira ticket: OBPIH-6320
Description:
📷 Screenshots & Recordings (optional)