<?php
	include "../koneksi.php";
	$data = mysqli_query ($koneksi, " select
											deliverytbl.Del_ID,
											deliverytbl.SO_No,
											deliverytbl.DateDoc,
											deliverytbl.DetailEkspedisi_ID,
											product.QtyUnit
										from 
										deliverytbl
										INNER JOIN detail_po
										ON deliverytbl.DetailPO_ID=detail_po.DetailPO_ID
										INNER JOIN product
										ON detail_po.ProductID=product.ProductID		
										where deliverytbl.Del_ID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-tambah-so" method="post" action="rinciantambah.php">
<div class="form-group">
		<label>SO Number</label>
		<input type="hidden" name="del_id" value="<?php echo $row['Del_ID'] ; ?>">
		<input type="hidden" name="qtyu" value="<?php echo $row['QtyUnit'] ; ?>">
		<input type="hidden" name="ideks" value="<?php echo $row['DetailEkspedisi_ID'] ; ?>">
		<input class="form-control" id="so_no" name="so_no" value="<?php echo $row['SO_No'] ; ?>">
		<p style="color:red" id="error_edit_so_no"></p>
	</div>
	<div class="form-group">
		<label>Document Date</label>
		<input type="text" class="input-tanggal1 form-control" id="date_doc" name="date_doc" data-date-format="d-M-Y" value="<?php echo $row['DateDoc']; ?>" >
		<p style="color:red" id="error_edit_date_doc"></p>
	</div>								
</form>

