-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
[14.0][ADD] stock_restrict_by_planned_consumed_date #1509
base: 14.0
Are you sure you want to change the base?
[14.0][ADD] stock_restrict_by_planned_consumed_date #1509
Conversation
d6c0428
to
d4ddd3e
Compare
d4ddd3e
to
b5eeb51
Compare
or quant.lot_id | ||
and quant.lot_id.expiration_date > planned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion,nitpick: Maybe add parenthesis to clearly separate the or
and the and
?
b5eeb51
to
11fe34b
Compare
11fe34b
to
8f87ddb
Compare
Co-authored-by: Alexandre Galdeano <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
or quant.lot_id | ||
and quant.lot_id.expiration_date >= planned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or quant.lot_id | |
and quant.lot_id.expiration_date >= planned | |
or ( | |
quant.lot_id | |
and quant.lot_id.expiration_date >= planned | |
) |
This module avoid to reserve goods if the planned consumed date by | ||
the customer is after expiration time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This module avoid to reserve goods if the planned consumed date by | |
the customer is after expiration time. | |
This module avoids to reserve goods having an expiration time prior to the customer's planned consumed date. |
* Today we restrict expiration lot date must be greater thant planned consumed date in | ||
some circumstance we probably want something flexible based on product configuration and | ||
probably based on use_date (best before). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Today we restrict expiration lot date must be greater thant planned consumed date in | |
some circumstance we probably want something flexible based on product configuration and | |
probably based on use_date (best before). | |
* Today we restrict the reservation based on the lot expiration date, but in | |
some circumstances we probably want something configurable to base the restriction on `use_date` (best before). |
based on #1724 to avoid product reservation if expiration lot is before the expected consumed date