?>
</th>
         <th><?php 
echo __('BPA Number');
?>
</th>
        </tr>
       </thead>
       <tbody class="form_data_line_tbody">
        <?php 
$count = 0;
$document_number_a = array(null);
foreach ($po_requisition_line_object as $po_requisition_line) {
    //echo $$class->bu_org_id . ' : '. $$class->supplier_site_id .  ' : ' . $$class_second->item_id_m ;
    if (!empty(${$class}->bu_org_id) && !empty(${$class}->supplier_site_id) && !empty(${$class_second}->item_id_m)) {
        $document_number_obj = po_blanket_v::find_all_active_bpa(${$class}->bu_org_id, ${$class}->supplier_site_id, ${$class_second}->item_id_m);
        $document_number_a = [];
        if ($document_number_obj) {
            foreach ($document_number_obj as $obj) {
                $document_number_a[$obj->po_line_id] = $obj->po_number . ' Line# ' . $obj->po_line_number;
            }
        }
    }
    ?>
         
         <tr class="po_requisition_line<?php 
    echo $count;
    ?>
">

          <td><?php 
Esempio n. 2
0
<?php

include_once "../../includes/basics/basics.inc";
if (!empty($_GET['bu_org_id']) && !empty($_GET['find_bpa_list'])) {
    $bu_org_id = !empty($_GET['bu_org_id']) ? $_GET['bu_org_id'] : null;
    $supplier_site_id = !empty($_GET['supplier_site_id']) ? $_GET['supplier_site_id'] : null;
    $item_id_m = !empty($_GET['item_id_m']) ? $_GET['item_id_m'] : null;
    $bpa_list = po_blanket_v::find_all_active_bpa($bu_org_id, $supplier_site_id, $item_id_m);
    echo header('Content-Type: application/json');
    echo json_encode($bpa_list);
}
if (!empty($_GET['po_header_id']) && !empty($_GET['find_bpa_details'])) {
    $bpa_details = po_all_v::find_by_id($_GET['po_header_id']);
    echo header('Content-Type: application/json');
    echo json_encode($bpa_details);
}
if (!empty($_GET['find_bpa_line_details']) && !empty($_GET['po_line_id'])) {
    $bpa_line_details_a = po_all_v::find_all_by_poLineId($_GET['po_line_id']);
    $bpa_line_details = $bpa_line_details_a[0];
    echo header('Content-Type: application/json');
    echo json_encode($bpa_line_details);
}