foreach ($this->WorkOrderItemList as $woi) { // Header Row if ($x_kind != $woi['kind'] || $x_status != $woi['status']) { //drawSummaryRow($bill_quantity, $bill_total); if ($woi['invoice_id']) { $text = Radix::link("/invoice/view/{$woi['invoice_id']}", "Invoice #{$woi['invoice_id']}"); } else { $text = $woi['status'] . ' ' . $woi['kind'] . ' Items'; } // echo "<tr><th colspan='6'>". $text . '</th></tr>'; $bill_total = 0; $bill_quantity = 0; } $name = html((isset($woi['date']) ? date('m/d/y ', strtotime($woi['date'])) . ' ' : null) . $woi['name']); echo '<tr class="rero">'; echo '<td>' . Form::checkbox('woi_id[]', $woi['id'], array('checked' => 'checked')) . '</td>'; echo '<td>' . Form::text('woi_q_' . $woi['id'], $woi['a_quantity'], array('style' => 'width:3em')) . '</td>'; echo '<td>' . Form::text('woi_status_' . $woi['id'], $woi['status']) . '</td>'; echo '<td class="c">' . $woi['kind'] . '</td>'; //echo '<td><strong>' . $this->link('/workorder.item/view/' . $woi->id,$name) . '</strong></td>'; echo '<td>' . $name . '</td>'; echo "<td class='c'>{$woi['a_rate']}/{$woi['a_unit']}</td>"; echo '<td class="r">' . tax_rate_format($woi['a_tax_rate']) . '</td>'; // Sub-Total $st = $woi->a_quantity * $woi->a_rate; $st += $st * floatval($woi->a_tax_rate); echo '<td class="r">' . number_format($st, 2) . "</td>"; echo '</tr>'; // Build Sums $full_total += $woi->a_quantity * $woi->a_rate; $full_quantity += $woi->a_quantity;
<?php /** Select an Account Period @copyright 2002 Edoceo, Inc @package edoceo-imperium @link http://imperium.edoceo.com @since File available since Release 1013 */ namespace Edoceo\Imperium; use Edoceo\Radix; use Edoceo\Radix\HTML\Form; echo '<div class="bf c">'; echo Form::select('m', $_GET['m'], Radix::$view->MonthList); //null,$this->data['month'],null,false); // Month echo Form::select('y', $_GET['y'], Radix::$view->YearList); //null,$this->data['year'],null,false); // Year echo Form::select('p', $_GET['p'], Radix::$view->PeriodList); //null,$this->data['period'],null,false); // Period echo Form::submit('c', 'View'); echo '<div class="bf c">'; echo '<label for="xc"> ' . Form::checkbox('xc', 'true', 'true' == $_GET['xc'] ? array('checked' => 'checked') : null) . ' Exclude Closing Transactions</label>'; echo ' '; echo '<label for="xz"> ' . Form::checkbox('xz', 'true', 'true' == $_GET['xz'] ? array('checked' => 'checked') : null) . ' Exclude Zero Balance Accounts</label>'; echo '</div>'; echo '</div>';