Exemplo n.º 1
0
        <th><?php 
echo gettext('Reference1');
?>
</th>
        <th><?php 
echo gettext('Reference2');
?>
</th>
       </tr>
      </thead>
      <tbody class="form_data_line_tbody fa_asset_component_line_values" >
       <?php 
$detailCount = 0;
foreach ($fa_asset_component_object as $fa_asset_component) {
    if (!empty($fa_asset_component->component_asset_id)) {
        $comp_asset = new fa_asset();
        $comp_asset->findBy_id($fa_asset_component->component_asset_id);
        //         pa($comp_asset);
        $fa_asset_component->component_asset_number = $comp_asset->asset_number;
        $fa_asset_component->component_asset_description = $comp_asset->description;
    } else {
        $fa_asset_component->component_asset_number = $fa_asset_component->component_asset_description = null;
    }
    ?>
        <tr class="fa_asset_component<?php 
    echo $detailCount;
    ?>
">
         <td>
          <?php 
    echo ino_inline_action($fa_asset_component->fa_asset_component_id, array('fa_asset_id' => $fa_asset->fa_asset_id));
Exemplo n.º 2
0
        <th>Total Dprn</th>
        <th>Account</th>
        <th>Cost Before Dprn</th>
        <th>NBV Before Dprn</th>
        <th>Salvage</th>
       </tr>
      </thead>
      <tbody class="form_data_line_tbody fa_depreciation_line_values" >
       <?php 
$count = 0;
$fa_depreciation_line_object_ai = new ArrayIterator($fa_depreciation_line_object);
$fa_depreciation_line_object_ai->seek($position);
while ($fa_depreciation_line_object_ai->valid()) {
    $fa_depreciation_line = $fa_depreciation_line_object_ai->current();
    if (!empty(${$class_second}->asset_id)) {
        $asset_i = fa_asset::find_by_id(${$class_second}->asset_id);
        if (!empty($asset_i->asset_number)) {
            ${$class_second}->asset_number = $asset_i->asset_number;
        }
    } else {
        ${$class_second}->asset_number = null;
    }
    ?>
         
        <tr class="fa_depreciation_line<?php 
    echo $count;
    ?>
">
         <td>    
          <ul class="inline_action">
           <li class="add_row_img"><img  src="<?php