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

Implemented: dropdown for other shipments in a order in order details page (#358) #364

Merged
merged 16 commits into from
Jun 14, 2024

Conversation

amansinghbais
Copy link
Contributor

@amansinghbais amansinghbais commented Jan 5, 2024

Related Issues

Closes #358

Short Description and Why It's Useful

Implemented code to display other shipments in a order in order details page.

Screenshots of Visual Changes before/after (If There Are Any)

Screenshot from 2024-01-05 15-36-25

Contribution and Currently Important Rules Acceptance

@amansinghbais amansinghbais marked this pull request as ready for review January 5, 2024 10:10
@@ -258,8 +258,52 @@ const getShippingPhoneNumber = async (orderId: string): Promise<any> => {
return phoneNumber
}

const findOrderShipGroup = async (query: any): Promise<any> => {
return api({
// TODO: We can replace this with any API
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this TODO.


const params = {
groupBy: 'shipGroupSeqId',
'shipGroupSeqId': '[* TO *]', // check to ignore all those records for which shipGroupSeqId is not present, as in case of kit comp we does not get shipGroupSeqId on some items
Copy link
Contributor

Choose a reason for hiding this comment

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

Update comment.

resp = await OrderService.findOrderShipGroup(orderQueryPayload);

if (resp.status === 200 && !hasError(resp) && resp.data.grouped?.shipGroupSeqId.matches > 0) {
total = resp.data.grouped.shipGroupSeqId.ngroups
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused variable.

@ravilodhi ravilodhi merged commit 10b3da5 into hotwax:main Jun 14, 2024
2 checks passed
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.

Add dropdown to show other shipments
3 participants