Esempio n. 1
0
 <tr bgcolor="#cccce5">
   <th>Delete</th><th>Product</th><th>Quantity Ordered</th><th>Unit Price</th><th>Amount</th><th></th>
 </tr>
 <?php 
 /*$items=$purchaseorder->get_order_details($orderno);
 while($results3=$purchaseorder->fetch_object($items)){
     	$itemcode=$result3->item_id;
     	$Quantity=$result3->quantity;
     	$unit_cost=$result3->unit_cost;
     	$totalcost=$result3->total_cost;
     //	echo "<tr><td></td><td>$itemcode</td><td>$Quantity</td><td>$unit_cost</td><td>$totalcost</td></tr>";
     echo $itemcode;
     }
     */
 $ss = $purchaseorder->get_total($orderno);
 $sss = $purchaseorder->formatMoney($ss);
 $results = mysql_query("select order_no,no,quantity,unit_cost,total_cost,item_description,care_tz_purchase_order_detail.item_id from care_tz_purchase_order_detail,care_tz_drugsandservices where order_no='{$orderno}' AND care_tz_purchase_order_detail.item_id=care_tz_drugsandservices.item_id") or die(mysql_error());
 $k = 0;
 while ($result3 = $purchaseorder->fetch_object($results)) {
     $o = $result3->order_no;
     $noo = $result3->no;
     $itemcode = $result3->item_description;
     $Quantity = $result3->quantity;
     $unit_cost = $result3->unit_cost;
     $totalcost = $result3->total_cost;
     $itid = $result3->item_id;
     if ($k == 1) {
         echo "<tr bgcolor='#CCCCCC'>";
         $k = 0;
     } else {
         echo "<tr bgcolor='#EEEEEE'>";
Esempio n. 2
0
<tr >
<th>Delete</th><th>Receive</th><th>Order no</th><th>Supplier</th><th>Order date</th><th>Order total</th><th>Show</th>
</tr>
</p>
<?php 
$k = 0;
while ($order = $orders->fetch_object($rs)) {
    $o = $order->order_no;
    $s = $order->Company_Name;
    $sid = $order->supplier_id;
    $d = $order->order_date;
    $oby = $order->ordered_by;
    $orders->getstatus($o);
    $st = $orders->status;
    $ss = $orders->get_total($o);
    $sss = $orders->formatMoney($ss);
    if ($k == 1) {
        echo "<tr bgcolor='#CCCCCC'>";
        $k = 0;
    } else {
        echo "<tr bgcolor='#EEEEEE'>";
        $k++;
    }
    echo "<td align='center'>";
    if ($st != 'received' && $st != 'attended') {
        ?>
 <a href='purchase_orders.php?del_order=$o'><IMG src='includes/images/delete.png' border='0' align='center' alt='Delete'></a><?php 
    }
    echo "</td><td>";
    if ($st != 'received') {
        echo "<a href='receiving_goods.php?oid={$o}&odate={$d}&sp={$s}&total={$sss}&pby={$oby}&si={$sid}'>Receive</a>";