<table class="form_line_data_table"> <thead> <tr> <th><?php echo gettext('Seq') ?>#</th> <th><?php echo gettext('Agreed Quantity') ?></th> <th><?php echo gettext('Released Quantity') ?></th> <th><?php echo gettext('Agreed Amount') ?></th> <th><?php echo gettext('Released Amount') ?></th> </tr> </thead> <tbody class="form_data_line_tbody"> <?php $count = 0; foreach ($po_line_object as $po_line) { if (($$class->po_type == 'BLANKET') && !empty($$class_second->po_line_id)) { $agrrement_details = po_line::find_agreement_details_by_lineId($$class_second->po_line_id); if ($agrrement_details) { $$class_second->agreed_quantity = $agrrement_details->agreed_quantity; $$class_second->agreed_amount = $agrrement_details->agreed_amount; $$class_second->released_quantity = $agrrement_details->released_quantity; $$class_second->released_amount = $agrrement_details->released_amount; } else { $$class_second->agreed_quantity = $$class_second->agreed_amount = $$class_second->released_quantity = $$class_second->released_amount = null; } } else { $$class_second->agreed_quantity = $$class_second->agreed_amount = $$class_second->released_quantity = $$class_second->released_amount = null; } ?> <tr class="po_line<?php echo $count ?>"> <td><?php $f->seq_field_d($count) ?></td> <td><?php $f->text_field_wid2r('agreed_quantity'); ?></td>
<th><?php echo gettext('Agreed Amount'); ?> #</th> <th><?php echo gettext('Released Amount'); ?> #</th> </tr> </thead> <tbody class="form_data_line_tbody"> <?php $count = 0; foreach ($po_line_object as $po_line) { if (!empty(${$class_second}->bpa_line_id)) { $agrrement_details = po_line::find_agreement_details_by_lineId(${$class_second}->bpa_line_id); // pa($agrrement_details); ${$class_second}->agreed_quantity = $agrrement_details->agreed_quantity; ${$class_second}->agreed_amount = $agrrement_details->agreed_amount; ${$class_second}->released_quantity = $agrrement_details->released_quantity; ${$class_second}->released_amount = $agrrement_details->released_amount; } else { ${$class_second}->agreed_quantity = ${$class_second}->agreed_amount = ${$class_second}->released_quantity = ${$class_second}->released_amount = null; } ?> <tr class="po_line<?php echo $count; ?> "> <td><?php