0)
{
while ($set_user = mysqli_fetch_assoc($get_user)){
array_push($disc_arr, $set_user['user_id']);
}
}
$get_disc = mysqli_query($conn, "SELECT discount FROM shop_user where user_id='".$_SESSION['dealer_id']."'");
$set_disc = mysqli_fetch_assoc($get_disc);
$disc = $set_disc['discount'];
$arr = array("11363");
if(in_array($_SESSION['dealer_id'], $disc_arr)){
?>
DR ANBUGANAPATHI | VIEW BILL
= $set_info['name']; ?>
= nl2br($set_info['address']); ?>
= nl2br($set_info['city']); ?>
= nl2br($set_info['state'].' '.$set_info['postcode']); ?>
Contact: = $set_info['phone']; ?>
Order Id : = $ref_no ?>
Date : = date('d-m-Y H:i:s',strtotime($set_deal['order_date_time'])) ?>
Anbu Phaarmaa
# |
Product |
Content |
Rate |
Qty |
Total |
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
= $set_list['tot_price']?> |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==10 || $set_prod['vstatus']==11){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
NO STOCK |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==10 || $set_prod['vstatus']==11){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
CANCELLED |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==10 || $set_prod['vstatus']==11){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
DELETED |
|
|
|
TOTAL: |
= $tot_qty;?> |
= round($amount);?> |
|
|
|
DISCOUNT: |
= $disc;?> |
= round($anb_temp_disc);?> |
|
|
|
NET TOTAL: |
|
= round($amount - $anb_temp_disc);?> |
Energy Foods
# |
Product |
Content |
Rate |
Qty |
TOTAL |
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty'] ?> |
= $set_list['tot_price']?> |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==2 || $set_prod['vstatus']==7){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
NO STOCK |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==2 || $set_prod['vstatus']==7){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
CANCELLED |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==2 || $set_prod['vstatus']==7){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
DELETED |
|
|
|
TOTAL: |
= $tot_qty;?> |
= round($amount);?> |
|
|
|
DISCOUNT: |
= $disc;?> |
= round($ef_temp_disc);?> |
|
|
|
NET TOTAL: |
|
= round($amount - $ef_temp_disc);?> |
DR ANBUGANAPATHI | VIEW BILL
= $set_info['name']; ?>
= nl2br($set_info['address']); ?>
= nl2br($set_info['city']); ?>
= nl2br($set_info['state'].' '.$set_info['postcode']); ?>
Contact: = $set_info['phone']; ?>
Order Id : = $ref_no ?>
Date : = date('d-m-Y H:i:s',strtotime($set_deal['order_date_time'])) ?>
Anbu Phaarmaa
# |
Product |
Content |
Rate |
Qty |
Total |
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty'] .' + '. $set_list['free_qty']?> |
= $set_list['tot_price']?> |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==10 || $set_prod['vstatus']==11){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty'] .' + '. $set_list['free_qty']?> |
NO STOCK |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==10 || $set_prod['vstatus']==11){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty'] .' + '. $set_list['free_qty']?> |
CANCELLED |
|
|
|
TOTAL: |
= $tot_qty;?> |
= round($amount);?> |
Energy Foods
# |
Product |
Content |
Rate |
Qty |
TOTAL |
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty'] .' + '. $set_list['free_qty']?> |
= $set_list['tot_price']?> |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==2 || $set_prod['vstatus']==7){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty'] .' + '. $set_list['free_qty']?> |
NO STOCK |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==2 || $set_prod['vstatus']==7){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty'] .' + '. $set_list['free_qty']?> |
CANCELLED |
|
|
|
TOTAL: |
= $tot_qty;?> |
= round($amount);?> |
DR ANBUGANAPATHI | VIEW BILL
= $set_info['name']; ?>
= nl2br($set_info['address']); ?>
= nl2br($set_info['city']); ?>
= nl2br($set_info['state'].' '.$set_info['postcode']); ?>
Contact: = $set_info['phone']; ?>
Order Id : = $ref_no ?>
Date : = date('d-m-Y H:i:s',strtotime($set_deal['order_date_time'])) ?>
Anbu Phaarmaa
# |
Product |
Content |
Rate |
Qty |
Total |
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
= $set_list['tot_price']?> |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==10 || $set_prod['vstatus']==11){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
NO STOCK |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==10 || $set_prod['vstatus']==11){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
CANCELLED |
|
|
|
TOTAL: |
= $tot_qty;?> |
= round($amount);?> |
Energy Foods
# |
Product |
Content |
Rate |
Qty |
TOTAL |
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty'] ?> |
= $set_list['tot_price']?> |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==2 || $set_prod['vstatus']==7){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
NO STOCK |
0){
while($set_list = mysqli_fetch_assoc($get_list)){
$get_prod = mysqli_query($conn, "select * from shop_product where product_id='".$set_list['prod_id']."'");
$set_prod = mysqli_fetch_assoc($get_prod);
if($set_prod['vstatus']==2 || $set_prod['vstatus']==7){
$str='style="color:red"';
?>
>
= ($i=$i+1);?> |
= strtoupper($set_prod['name'])?> |
= $set_prod['product_url']?> |
= $set_list['price']?> |
= $set_list['qty']?> |
CANCELLED |
|
|
|
TOTAL: |
= $tot_qty;?> |
= round($amount);?> |