﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
2738	Inventory availability trigger should cover more availability status codes	dbmulg	Kurt Endress	"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.  "	enhancement	assigned	medium		Trigger	N/A					N/A	N/A
