Topic: Wrong error text on foreign item entry
When we enter a Foreign Item Code without a quantity, the wrong error text is displayed as price instead of quantity - the code fragment that needs to be corrected is in inventory/manage/item_codes.php lines 38 to 43:
elseif (!input_num('quantity'))
{
$input_error = 1;
display_error( _("The price entered was not positive number."));
set_focus('quantity');
}
which should be:
elseif (!input_num('quantity'))
{
$input_error = 1;
display_error( _("The quantity entered was not positive number."));
set_focus('quantity');
}
This should also allow if a zero (0) is entered as the quantity.