<?php

if (empty($$class->fp_kanban_header_id) && !empty($_GET['fp_kanban_line_id'])) {
 $fp_kanban_line_id_i = $_GET['fp_kanban_line_id'];
 $fp_line_1 = fp_kanban_line::find_by_id($fp_kanban_line_id_i);
 if ($fp_line_1) {
  $fp_kanban_header_i = fp_kanban_header::find_by_id($fp_line_1->fp_kanban_header_id);
  foreach ($$class->field_a as $k => $v) {
   $$class->$v = $fp_kanban_header_i->$v;
  }
  $fp_kanban_line_object = fp_kanban_line::find_by_parent_id($fp_line_1->fp_kanban_header_id);
 }
}

if (!empty($$class->item_id_m)) {
 $item_i = item::find_by_item_id_m($$class->item_id_m);
 if (!empty($item_i)) {
  $$class->item_number = $item_i->item_number;
  $$class->item_description = $item_i->item_description;
 }
}

if (!empty($$class->supplier_id)) {
 $supplier_i = supplier::find_by_id($$class->supplier_id);
 if (!empty($supplier_i)) {
  $$class->supplier_name = $supplier_i->supplier_name;
 }
}
?>
