Opened 4 years ago
Last modified 4 years ago
#2738 assigned enhancement
Inventory availability trigger should cover more availability status codes
| Reported by: | dbmulg | Owned by: | Kurt Endress |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Trigger | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description (last modified by )
When quantity on hand drops below the distribution critical quantity the Inventory Status Data Trigger currently only changes is_available to 'N' if the availability_status_code is AVAIL. It ignores other status codes.
The scope of the automatic control should be expanded to cover all the status codes when setting is available to 'N' (still only when is_auto_deducted = 'Y'). But setting is_available to 'Y' should still only happen for availability status codes LOW or AVAIL, so as not to set PVP samples and similar to available.
Previously written up as:
Summary: Need to consider onhand amount and critical amount when deciding the availability
Currently we check the availability, we don't consider the onhand amount and critical amount even if the numbers are in the table. We need to.
Per Jeff from Ames NC7: Even if something in the Inv Table is marked as Y (Is Default) and Y (Is Available) and the onhand amount is LOWER than the critical amounts (dist and replenishment) the inventory is still available. For something to be available it needs to have the Y and Y plus an onhand amount greater than the criticals.
Attachments (2)
Change History (7)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
| Owner: | changed from to |
|---|
This is more of the data issue than the PW programming issue. The related trigger needs to be updated to make the inventory not available in this case.
comment:3 by , 4 years ago
For this ticket to work and not incorrectly make an inventory lot available, It should only go from Y to N for all other inventory availability status'. All inventory availability status should honor the "Distribution Critical Amount" when the onhand drops below the Distribution Critical amount and say "N" for "Is Available ?". It should only Flip to "Y" for "Low inventory" and no other inventory availability status.
comment:4 by , 4 years ago
Clonal sites were fine with this change as long as it didn't impact, the way they manage their plant inventories. They do not use "Distribution Critical Amount" they leave it blank. See attachment.
comment:5 by , 4 years ago
| Component: | Public Website 2 → Trigger |
|---|---|
| Description: | modified (diff) |
| Summary: | Need to consider onhand amount and critical amount when deciding the availability → Inventory availability trigger should cover more availability status codes |
| Type: | defect → enhancement |
Proposed logic:
Is_available would only be changed by the Inventory Status Data Trigger if is_auto_deducted = 'Y'
When quantity_on_hand <= distribution_critical_quantity
Set is_available to 'N'
if availability_status_code is equal to AVAIL set it to LOW
When quantity_on_hand > distribution_critical_quantity
and availability_status_code is LOW or AVAIL
Set is_available to 'Y'
Set availability_status_code to AVAIL

Jeff found this while testing the virtual inventory new feature, but this issue is always there, independent of new function.