echo "
| $sub | "; echo "$Part_noX[$i] | "; echo "$part_unit[$i] | "; echo "$Part_qtyX[$i] | "; if ($po_mr_no[$indexTot] != '') { $MR_Pending = explode(' ',$po_mr_no[$indexTot]); $num_MR_Pending = count($MR_Pending); echo ""; for ($k=0; $k < $mrForPart[$indexTot] ; $k++) { $sub_PartX = $Part_noX[$i] . "." . $j; if (($subperusahaan == 'WSALL') || ($subperusahaan == 'ALL')) { if ($MR_Pending[$k] != $mr_number) { if (($po_requeststatus[$sub_Partx] == 'PROCEED-PURCHASE') || ($po_requeststatus[$sub_Partx] == 'ON-DELIVERY')) { echo " "; } else { if ($po_requeststatus[$sub_Partx] == 'RECEIVED-PARTIALLY') { echo " "; } } } } else { if (strpos($subperusahaan, $po_namaworkshop[$sub_PartX]) !== false) { $tttemp = trim($MR_Pending[$k]); if ($tttemp != $mr_number) { if (($po_requeststatus[$sub_Partx] == 'PROCEED-PURCHASE') || ($po_requeststatus[$sub_Partx] == 'ON-DELIVERY')) { echo " "; } else { if ($po_requeststatus[$sub_Partx] == 'RECEIVED-PARTIALLY') { echo " "; } } } } else { $tttemp = trim($MR_Pending[$k]); if ($tttemp != $mr_number) echo " "; else echo "TIDAK ADA"; } } } echo " | "; } else echo "TIDAK ADA | "; echo "$itemname[$i] | "; if ($jumlah[$indexTot] > 0) echo ""; else echo " | $jumlah[$indexTot] | "; for ($j=0; $j < $numWS ; $j++) { $indexx = "$Part_noX[$i].$namaworkshop[$j]"; if ($qty_now[$indexx] == '') $qty_now[$indexx] = 0; if ($qty_now[$indexx] > 0) { if (($position == 'HEAD-LOGISTIK1') || ($position == 'HEAD-LOGISTIK2') || ($position == 'ACCOUNTING') || ($authority == 'managertambang') || ($userid == 'deny.esa@rimaugroup.com')) { //$ttempT = $namaworkshop[$j]; $costprice[$indexx] = number_format($costprice[$indexx]); echo "Price: $costprice[$indexx] | ";
}
else
echo ""; } else echo " | $qty_now[$indexx] | "; } echo "