echo "<div class='page-header'>"; echo "<h1>Laporan Pembelian <small> Cendikia SALON & SPA</small></h1>"; echo "<small>Dari Tanggal {$datefrom} Sampai {$dateto} </small>"; echo "</div>"; echo "<table class='table table-striped table-bordered'>"; echo "<tr>"; echo "<th>No</th>"; // echo "<th>Kode</th>"; echo "<th>Barang </th>"; //echo "<th>Pelanggan</th>"; echo "<th>Qty</th>"; echo "<th>Harga Beli</th>"; echo "<th>Total Harga</th>"; echo "<th>Supplier</th>"; echo "</tr>"; $statement = $laporan->ShowPembelianByDate($datefrom, $dateto); $no = 0; $total = 0; while ($row = $statement->fetch(PDO::FETCH_ASSOC)) { extract($row); $no += 1; echo "<tr>"; echo "<td>" . $no . "</td>"; // echo "<td>" . $row['item_kode'] . "</td>"; echo "<td>" . $row['item_name'] . "</td>"; echo "<td>" . $row['qty'] . "</td>"; echo "<td>Rp." . number_format($row['harga'], 2, '.', ',') . "</td>"; echo "<td>Rp." . number_format($row['qty'] * $row['harga'], 2, '.', ',') . "</td>"; echo "<td>" . $row['supplier_nama'] . "</td>"; /*echo "<td>" . $no . "</td>"; echo "<td>" . $row['item_name'] . "</td>";