Skip to content

OBPIH-7147 Separate Pack levels in Delivery Note#5219

Merged
awalkowiak merged 15 commits intodevelopfrom
OBPIH-7147-2
Apr 24, 2025
Merged

OBPIH-7147 Separate Pack levels in Delivery Note#5219
awalkowiak merged 15 commits intodevelopfrom
OBPIH-7147-2

Conversation

@SebastianLib
Copy link
Collaborator

✨ Description of Change

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

@github-actions github-actions bot added the domain: frontend Changes or discussions relating to the frontend UI label Apr 22, 2025
@codecov
Copy link

codecov bot commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 8.27%. Comparing base (f02bf36) to head (0067ecf).
Report is 162 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5219      +/-   ##
============================================
+ Coverage       8.19%   8.27%   +0.08%     
- Complexity       950     961      +11     
============================================
  Files            638     638              
  Lines          43214   43214              
  Branches       10503   10503              
============================================
+ Hits            3542    3577      +35     
+ Misses         39130   39087      -43     
- Partials         542     550       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

<g:set var="shipmentItems" value="${requisitionItem?.requisition?.shipment?.shipmentItems?.findAll { it.requisitionItem == requisitionItem }}"/>
<g:set var="picklistItemsGroup" value="${inventoryItemMap?.values()?.toList()}"/>
<g:set var="numInventoryItem" value="${inventoryItemMap?.size() ?: 1}"/>
<g:set var="shipmentItemCount" value="${shipmentItems ? shipmentItems.size() : (inventoryItemMap?.size() ?: 1)}"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why fallback to inventoryItemMap?.size() ?: 1? Should it not be just shipmentItems.size() ?: 1 now?

<g:if test="${j==0}">
<g:else>
<div class="${requisitionItem?.status}">
${requisitionItem?.totalQuantityPicked() ?: 0} ${requisitionItem?.product?.unitOfMeasure ?: "EA"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this line correct? Should not it be:

${requisitionItem?.quantity ?: 0} ${requisitionItem?.product?.unitOfMeasure ?: "EA"}

?

<td class="center middle">
<g:if test="${picklistItemsGroup}">
<g:if test="${shipmentItem}">
${shipmentItem?.quantity ?: 0} ${requisitionItem?.product?.unitOfMeasure ?: "EA"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this column header be Delivered by container if there are shipment items? And Delivered by lot if the data is pulled from grouped picklist items?

@github-actions github-actions bot added the domain: l10n Changes or discussions relating to localization & Internationalization label Apr 23, 2025
@SebastianLib SebastianLib requested a review from awalkowiak April 23, 2025 07:52
<g:set var="numInventoryItem" value="${inventoryItemMap?.size() ?: 1}"/>
<g:set var="shipmentItemCount" value="${shipmentItems.size() ?: 1}"/>
</g:if>
<g:else>
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could get rid of else block here and gave one shipmentItemCount var.

<th>${g.message(code: 'deliveryNote.deliveredByLot.label', default: "Delivered by Lot")}</th>
<th>
<g:if test="${requisitionItems.find { it.requisition?.shipment?.shipmentItems?.any { it.container }}}">
${g.message(code: 'deliveryNote.deliveredByContainer.label', default: "Delivered by Container")}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was a question, not a change request. Ensure this is ok.

@SebastianLib
Copy link
Collaborator Author

@awalkowiak I received this information what to do:

  • Rename the column “Split quantity” in all cases
  • Columns lot / exp / split quantity are split as expected. Column reason code remains combined. Columns Received and Comment should be split.

@SebastianLib SebastianLib requested a review from awalkowiak April 23, 2025 11:54
@SebastianLib
Copy link
Collaborator Author

I still have to fix my latest changes with split received and comment, so for now I'm setting this PR as draft

@SebastianLib SebastianLib marked this pull request as draft April 23, 2025 12:19
@SebastianLib SebastianLib marked this pull request as ready for review April 23, 2025 12:57
@awalkowiak awalkowiak merged commit 1b1f9ae into develop Apr 24, 2025
9 checks passed
@awalkowiak awalkowiak deleted the OBPIH-7147-2 branch April 24, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI domain: l10n Changes or discussions relating to localization & Internationalization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants