" class="show document_id inv_abc_valuation_id"><i class="fa fa-refresh"></i></a> 
    </li>
    <li><?php 
$f->l_text_field_d('valuation_name');
?>
</li>
    <li><?php 
$f->l_text_field_d('description');
?>
</li>
    <li><?php 
$f->l_select_field_from_object('criteria', inv_abc_valuation::abc_criteria(), 'option_line_code', 'option_line_value', ${$class}->criteria, 'criteria', '', 1, $readonly);
?>
</li>
    <li><?php 
$f->l_select_field_from_object('cost_type', bom_cost_type::find_all(), 'cost_type_code', 'cost_type', ${$class}->cost_type, 'cost_type', '', '', $readonly);
?>
</li>
    <li><?php 
$f->l_select_field_from_object('fp_mrp_header_id', fp_mrp_header::find_all(), 'fp_mrp_header_id', 'mrp_name', ${$class}->fp_mrp_header_id, 'fp_mrp_header_id', '', '', $readonly, '', '', '', 'org_id');
?>
</li>
    <li><?php 
$f->l_select_field_from_object('fp_forecast_header_id', fp_forecast_header::find_all(), 'fp_forecast_header_id', 'forecast', ${$class}->fp_forecast_header_id, 'fp_forecast_header_id', '', '', $readonly, '', '', '', 'org_id');
?>
</li>
   </ul>
  </div>
  <div id ="form_line" class="form_line"><span class="heading"><?php 
echo gettext('Valuation Details');
?>
</a></li>
   <li><a href="#tabsLine-2"><?php 
echo __('Future');
?>
 </a></li>
  </ul>
  <div class="tabContainer"> 
   <div id="tabsLine-1" class="tabContent">
    <div class="first_rowset"> 
     <ul class="column header_field"> 
      <li><?php 
$f->l_checkBox_field_d('multi_org_cb');
?>
      </li>
      <li><?php 
$f->l_select_field_from_object('default_cost_type', bom_cost_type::find_all(), 'bom_cost_type_id', 'cost_type', ${$class}->default_cost_type, 'default_cost_type', '', '', $readonly);
?>
      </li>
     </ul>
    </div>
    <div class="second_rowset">
     <ul class="three_column">

     </ul>
    </div>
    <!--end of tab1 div three_column-->
   </div> 
   <!--end of tab1-->
   <div id="tabsLine-2" class="tabContent">
    <div class="first_rowset"> 
     <ul class="column five_column"> 
         <th><?php 
echo gettext('Description');
?>
#</th>
         <th><?php 
echo gettext('Resource');
?>
#</th>
        </tr>
       </thead>
       <tbody class="form_data_line_tbody bom_overhead_resource_assignment_values" >
        <?php 
$count = 0;
foreach ($bom_overhead_resource_assignment_object as $bom_overhead_resource_assignment) {
    if (!empty($bom_overhead_resource_assignment->bom_cost_type)) {
        $bcy = new bom_cost_type();
        $bcy_i = $bcy->find_by_keyColumn($bom_overhead_resource_assignment->bom_cost_type);
        $bom_overhead_resource_assignment->bom_cost_type_description = $bcy_i->description;
    } else {
        $bom_overhead_resource_assignment->bom_cost_type_description = null;
    }
    ?>
         
         <tr class="bom_overhead_resource_assignment<?php 
    echo $count;
    ?>
">
          <td>
           <?php 
    echo ino_inline_action(${$class_second}->bom_overhead_resource_assignment_id, array('bom_overhead_id' => ${$class}->bom_overhead_id));
    ?>
       <th><?php 
echo __('Description');
?>
#</th>
       <th><?php 
echo __('Rate');
?>
#</th>
      </tr>
     </thead>
     <tbody class="form_data_line_tbody">
      <?php 
$count = 0;
foreach ($bom_resource_cost_object as $bom_resource_cost) {
    if (!empty($bom_resource_cost->bom_cost_type)) {
        $bcy = new bom_cost_type();
        $bcy_i = $bcy->find_by_keyColumn($bom_resource_cost->bom_cost_type);
        $bom_resource_cost->bom_cost_type_description = $bcy_i->description;
    } else {
        $bom_resource_cost->bom_cost_type_description = null;
    }
    ?>
         
       <tr class="bom_resource_cost<?php 
    echo $count;
    ?>
">
        <td>
         <?php 
    echo ino_inline_action(${$class_second}->bom_resource_cost_id, array('bom_resource_id' => ${$class}->bom_resource_id));
    ?>
         <tr class="bom_department_resource_assignment<?php 
    echo $count;
    ?>
">
          <td>
           <?php 
    echo ino_inline_action(${$class_second}->bom_department_resource_assignment_id, array('bom_department_id' => ${$class}->bom_department_id));
    ?>
          </td>
          <td><?php 
    $f->text_field_wid2sr('bom_department_resource_assignment_id');
    ?>
</td>
          <td>
           <?php 
    echo form::select_field_from_object('cost_type_id', bom_cost_type::find_all(), 'bom_cost_type_id', 'cost_type', ${$class_second}->cost_type_id, '', $readonly, 'cost_type_id');
    ?>
          </td>
          <td>
           <?php 
    echo form::select_field_from_object('resource_id', bom_resource::find_all(), 'bom_resource_id', 'resource', ${$class_second}->resource_id, '', $readonly, 'resource_id');
    ?>
          </td>
          <td><?php 
    form::number_field_wid2s('efficiency');
    ?>
</td>
          <td><?php 
    form::number_field_wid2s('utilization');
    ?>
</td>
Example #6
0
<?php

include_once "bom_cost_type.inc";
?>
<script src="bom_cost_type.js"></script>
<div id="json_bom_cost_type_find_all">
  <?php 
if (!empty($_GET['org_id']) && ($_GET['find_all_bom_cost_type'] = 1)) {
    $org_id = $_GET['org_id'];
    $bom_cost_type_of_org = bom_cost_type::find_all_of_org_id($org_id);
    if (count($bom_cost_type_of_org) == 0) {
        return false;
    } else {
        foreach ($bom_cost_type_of_org as $key => $value) {
            echo '<option value="' . $value->bom_cost_type_id . '"';
            echo '>' . $value->bom_cost_type . '</option>';
        }
    }
}
?>
</div>
<?php 
include_template('footer.inc');