return false;
}
if (!is_new_reference($_POST['wo_ref'], systypes::work_order()))
{
display_error(_("The entered reference is already in use."));
return false;
}
if (!is_new_reference($_POST['wo_ref'], systypes::work_order()))
{
display_error(_("The entered reference is already in use."));
if (!check_num('quantity', 0))
{
display_error( _("The quantity entered is invalid or less than zero."));
if (!check_num('quantity', 0))
{
display_error( _("The quantity entered is invalid or less than zero."));
return false;
}
elseif (!is_date_in_fiscalyear($_POST['date_']))
{
display_error(_("The entered date is not in fiscal year."));
return false;
}
elseif (!is_date_in_fiscalyear($_POST['date_']))
{
display_error(_("The entered date is not in fiscal year."));
if (!has_bom($_POST['stock_id']))
{
display_error(_("The selected item to manufacture does not have a bom."));
if (!has_bom($_POST['stock_id']))
{
display_error(_("The selected item to manufacture does not have a bom."));
if (!check_num('Costs', 0))
{
display_error( _("The cost entered is invalid or less than zero."));
if (!check_num('Costs', 0))
{
display_error( _("The cost entered is invalid or less than zero."));
{
display_error(_("The work order cannot be processed because there is an insufficient quantity for component:") .
" " . $bom_item["component"] . " - " . $bom_item["description"] . ". " . _("Location:") . " " . $bom_item["location_name"]);
{
display_error(_("The work order cannot be processed because there is an insufficient quantity for component:") .
" " . $bom_item["component"] . " - " . $bom_item["description"] . ". " . _("Location:") . " " . $bom_item["location_name"]);
if ($_POST['released'])
label_row(_("Quantity Manufactured:"), qty_format($_POST['units_issued']));
date_row(_("Date") . ":", 'date_');
if ($_POST['released'])
label_row(_("Quantity Manufactured:"), qty_format($_POST['units_issued']));
date_row(_("Date") . ":", 'date_');