<?php

 if (!empty($inv_moveorder_line_object)) {
  foreach ($inv_moveorder_line_object as &$inv_moveorder_lines) {
//   pa($inv_moveorder_lines);
   if (!empty($inv_moveorder_lines->item_id_m)) {
    $item = item::find_by_id($inv_moveorder_lines->item_id_m);
    $inv_moveorder_lines->item_number = $item->item_number;
    $inv_moveorder_lines->from_current_onhand = null;
    $inv_moveorder_lines->from_future_onhand = null;
    $inv_moveorder_lines->to_current_onhand = null;
    $inv_moveorder_lines->to_future_onhand = null;
   }
  }
  $readonly = 1;
 }

 
 if($$class->status == 'ON_HOLD' || $$class->status == 'COMPLETED'){
  $mode= 2; $readonly = 1;
 }
?>
