<div class="content-add01">
	<div class="heading01"><h1>Réception de la commande "<?php echo $katao_order->getNumber() ?>" du fournisseur "<?php echo $katao_order->getSupplierName() ?>" pour la période "<?php echo $katao_order->getKataoPeriod()->getName() ?>"</h1></div>
</div>

<?php echo form_tag('@katao_order_receive?id=' . $katao_order->getId()) ?>

<table class="admin-sub-list">
<tr>
	<td style="border:none!important">&nbsp;</td>
	<th colspan="3" style="text-align:center!important">Quantités</th>
</tr>
<tr>
	<th>Produit</th>
	<th nowrap="nowrap" width="1%" style="text-align:center!important">Commandée</th>
	<th nowrap="nowrap" width="1%" style="text-align:center!important">Réceptionnée</th>
</tr>
<?php foreach ($katao_order->getKataoOrderProducts() as/*(KataoOrderProduct)*/ $katao_order_product): ?>
<tr>
 	<td><?php echo $katao_order_product->getProductName() ?></td>
 	<td style="text-align:center!important"><?php echo $katao_order_product->getQuantity() ?></td>
 	<td nowrap="nowrap" style="text-align:center!important">
		<?php echo input_number_tag('quantity[' . $katao_order_product->getId() . ']', $katao_order_product->getHasBeenReceived()?$katao_order_product->getQuantityReceived():$katao_order_product->getQuantity(), array('style' => 'width: 60px; height: 20px; text-align: center;')) ?>
	</td>
</tr>
<?php endforeach ?>
</table>

<br /><?php echo submit_tag('Réceptionner') ?> ou <a href="<?php echo url_for('kataoOrder/index') ?>">annuler</a>

</form>