public function ajaxGetSupplyOrderDetail()
    {
        if (Tools::isSubmit('id_supplier_order')) {
            $no_result = true;
            $id_supplier_order = (int) pSQL(Tools::getValue('id_supplier_order'));
            /*  try to load supply order */
            $supply_order = new SupplyOrder($id_supplier_order);
            $enteries = $supply_order->getEntriesCollection();
            if (!empty($enteries)) {
                $i = 0;
                $j = 0;
                $nb_enteries = count($enteries);
                foreach ($enteries as $enterie) {
                    if ($no_result == true) {
                        echo '<table class="table" style="float: left;width:' . ($nb_enteries > 10 ? '400px' : '100%') . ';">
												<tr>
														<th width="60%">' . $this->l('Name') . '</th>
														<th width="20%">' . $this->l('Quantity') . '</th>
														<th width="20%">' . $this->l('Price') . '</th>
												</tr>';
                        $j = $j + 1;
                    }
                    /*  fields name :name, quantity_expected,name_displayed, price_te,price_ti
                     * ,price_with_order_discount_te, tax_rate , quantity_received
                     * , reference ,supplier_reference */
                    ?>
								<tr height="40">
										<td ><?php 
                    echo $enterie->name;
                    ?>
</td>
										<td class="right"><?php 
                    echo (int) $enterie->quantity_expected;
                    ?>
</td>
										<td  class="right"><?php 
                    echo Tools::displayPrice($enterie->price_te, (int) $supply_order->id_currency);
                    ?>
</td>
								</tr>
								<?php 
                    if ($i % 9 == 0 && $i != 0) {
                        if ($j % 4 == 0) {
                            echo '<br />';
                        }
                        echo '</table>
												<table class="table" style="float: right;width: 400px;">
												<tr>
														<th>' . $this->l('Name') . '</th>
														<th>' . $this->l('Quantity') . '</th>
														<th>' . $this->l('Price') . '</th>
												</tr>';
                        $j = $j + 1;
                        $i = 0;
                    } else {
                        $i = $i + 1;
                    }
                    $no_result = false;
                }
                echo '</table>';
            }
        } else {
            echo $this->l('Error: no supply order found !');
        }
    }