Skip to content

OBAM-178 Create association between order and picklist#2623

Merged
jmiranda merged 2 commits intodevelopfrom
OBAM-178
Sep 7, 2021
Merged

OBAM-178 Create association between order and picklist#2623
jmiranda merged 2 commits intodevelopfrom
OBAM-178

Conversation

@awalkowiak
Copy link
Collaborator

No description provided.

@awalkowiak awalkowiak requested a review from jmiranda September 3, 2021 13:53
}

// TODO: OBAM-169: Remove user modified picklist for given orderItem
// replenishmentService.removePicklist(orderItem)
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain the commented out code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Each order item in the replenishment will be auto-picked at first, and then the user will have an option to change the pick or go back to the auto-pick (it is the same as currently existing picking for requisitions). These lines are commented out because the auto picking and picking is not yet implemented and it should be added in the mentioned ticket (or in OBAM-173).

action = [DELETE: "removeItem"]
}

"/api/replenishments/$id/createPicklist"(parseRequest: true) {
Copy link
Member

Choose a reason for hiding this comment

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

I'd like to avoid remote procedure call naming convention so let's go with a subresource. I can't tell if we want the subresource should be picklist or picklistItems.

"/api/replenishments/$id/picklists"(parseRequest: true) {
    controller = { "replenishmentApi" }
    action = [POST: "createPicklist", PUT: "updatePicklist", DELETE: "deletePicklist"]
}

Copy link
Member

Choose a reason for hiding this comment

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

My guess would be picklistItems as the subresource and methods could be createPicklistItems, updatePicklistItems, deletePicklistItems.

* You must not remove this notice, or any other, from this software.
**/
package replenishment
package org.pih.warehouse.replenishment
Copy link
Member

Choose a reason for hiding this comment

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

thank you. i just noticed this last night when i was browsing the code for something else.

@jmiranda jmiranda merged commit 3bc9e96 into develop Sep 7, 2021
@jmiranda jmiranda deleted the OBAM-178 branch September 7, 2021 02:09
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.

2 participants