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

OBPIH-3979 Can ship PO shipment when not in destination or central purchasing location #3445

Conversation

drodzewicz
Copy link
Collaborator

No description provided.

@drodzewicz drodzewicz self-assigned this Aug 31, 2022
@drodzewicz drodzewicz marked this pull request as draft August 31, 2022 12:42
@drodzewicz drodzewicz force-pushed the OBPIH-3979-can-ship-po-shipment-when-not-in-destination-or-central-purchasing-location branch from be53713 to d485fb4 Compare August 31, 2022 14:56
@drodzewicz drodzewicz marked this pull request as ready for review August 31, 2022 14:57
@@ -245,7 +245,7 @@ class StockMovement {
boolean isDepot = origin?.isDepot()
boolean isCentralPurchasingEnabled = currentLocation?.supports(ActivityCode.ENABLE_CENTRAL_PURCHASING)

return !hasBeenReceived() && !hasBeenPartiallyReceived() && (isSameOrigin || (!isDepot && isSameDestination) || !isPending() || isElectronicType() || (isCentralPurchasingEnabled && isFromOrder))
return !hasBeenReceived() && !hasBeenPartiallyReceived() && (isSameOrigin || (!isDepot && isSameDestination) || (!isFromOrder && !isPending()) || isElectronicType() || (isCentralPurchasingEnabled && isFromOrder))
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line needs some refactoring, but I have no clear idea how we could improve it...

Copy link
Collaborator

Choose a reason for hiding this comment

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

(I added a todo in the code)

Copy link
Collaborator

@awalkowiak awalkowiak left a comment

Choose a reason for hiding this comment

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

Other than the one line I think it is ok

@awalkowiak awalkowiak merged commit be75641 into develop Sep 7, 2022
@awalkowiak awalkowiak deleted the OBPIH-3979-can-ship-po-shipment-when-not-in-destination-or-central-purchasing-location branch September 7, 2022 14:33
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.

None yet

2 participants