<?php $this->load->view("common/header");
?>

<body onLoad="window.print()">
    <div class="col-xs-12">
        <div style="page-break-after:always;">
            
            
            <div class=" text-center">
                <?php /* ?>
                <br>
                <img src="<?php echo base_url('thems/images/golden_lanka.png'); ?>" width="100px"
                    style="margin-top:-6px;" height="60px" /><br>
                <?php */ ?>
                <h4>
                    <?php  echo $warehouse_details['name']; ?>
                </h4>
                <p id="bill_no" style="font-weight:bold; margin-bottom: 0px"><?php echo $stn_info['stn_code']; ?> </p>
            </div>

            <!--col-xs-12-->

<!--<div class=" text-center" style="border:dashed 1px;margin-top:5px;">-->
    
<!--</div>-->
<!--<div class=" text-center" style="margin-top:-10px;"><span style="background:white">DUPLICATE COPY</span></div>-->

            <div>
                <div class="row">
                    <div class="col-md-12"> <?php /* ?>
                        <p style="margin-bottom: 0px">Reg.No :
                            <?php echo $warehouse_details['reg_no'] ?> </p><?php */ ?>
                        <p id="bill_no" style="font-weight:bold; margin-bottom: 0px">Bill No:
                            <?php echo $stn_info['sale_id']; ?> </p>
                            <p>Customer :<?php echo $stn_info['cus_name']; ?>
                            <!--<br>Customer Address:<?php echo $stn_info['cus_address']; ?>-->
                            <br>
                            Date:
                            <?php echo date("Y-m-d", strtotime($stn_info['stn_date_time'])); ?>
                            <br>
                            Cashier:
                            <?php echo $stn_info['issued_by'] ?> </p>
                                 
                    </div>
                    <div class="col-md-6">

                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        
                        
                        <!--<p style="margin-bottom:0px;">Cashier :-->
                        <!--	<?php echo $this->session->userdata['ss_user_first_name'] ?>-->
                        <!--</p>-->
                    </div>
                    <div class="col-md-7">

                    </div>
                </div>

            </div>
            <div>
                <!--class="col-md-12"-->
                <table id="bill_table" class="print-table" style="width:100%">
                    <thead style="">
                        <tr class="report_view_th text-center" style="border-bottom: dashed 1px">
                            <th style="width:5%" class="text-center">*</th>
                            <th style="width:40%;text-align:center">Item</th>
                            <th style="width:15%" class="text-right">Qty</th>
                            <th style="width:15%;text-align:center">Collected</th>
                            <!--<th style="width:15%" class="text-right">Price</th>-->
                            <!--<th style="width:15%" class="text-center">Discount</th>-->
                            <!--<th style="text-align:right"> Amount</th>-->
                        </tr>
                    </thead>
                    <tbody>

                        <?php
                        $tmpcount = 0;
                        $tot_qty = 0;
                        $g_total = 0;
                        foreach ($stn_items as $row) {
                            $tmpcount++;
                            $tot_qty = $tot_qty + $row['quantity'];
                        ?>
                        <!--any exchange should be done within seven days-->
                        <tr style="border-top: dashed;">
                            <td style="text-align:center; vertical-align:middle; ">
                                <?php echo $tmpcount ?>
                            </td>
                            <td style="">
                                <?php echo $row['product_name']; ?>
                            </td>
                            <td style="text-align:right; vertical-align:middle; padding-right:10px; ">
                                <strong style="font-size:16px">
                                    <?php echo number_format($row['quantity'], 2, '.', ','); ?>
                                </strong>
                            </td>
                            <td style="text-align:center; vertical-align:middle; padding-right:10px; ">
                                <strong style="font-size:16px">
                                    <input type="checkbox">
                                </strong>
                            </td>
                        </tr>


                        <?php } ?>




                        <!--<tr style="display:none">-->
                        <!--	<td style="text-align:center; width:40px; vertical-align:middle;font-weight:bold; font-size:16px">*</td>-->
                        <!--	<td style="vertical-align:middle;font-weight:bold; font-size:15px">&nbsp;</td>-->
                        <!--	<td style="width: 80px; text-align:center; vertical-align:middle;font-weight:bold; font-size:15px">&nbsp;</td>-->
                        <!--	<td style="text-align:right; width:100px;">&nbsp;</td>-->
                        <!--	<td style="text-align:right; width:120px; padding-right:10px;">&nbsp;</td>-->
                        <!--</tr>-->
                        <!--<tr style="border-top: dashed 1px">-->
                        <!--	<td style="" colspan="5">SubTotal</td>-->
                        <!--	<td style="text-align:right; " class="td_sub_total">-->
                        <!--		<?php echo number_format($g_total, 2, '.', ',') ?>-->
                        <!--	</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                        <!--	<td style="text-align:left; font-weight:bold;" colspan="5">Order Discount</td>-->
                        <!--	<td style="text-align:right;  border-bottom:solid 1px #000000" id="td_order_discount">-->
                        <!--		<?php echo number_format($stn_info['sale_inv_discount_amount'], 2, '.', ',') ?>-->
                        <!--	</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                        <!--	<td style="  font-size:16px" colspan="5">Total:</td>-->
                        <!--	<td style="text-align:right;  font-size:16px;  border-bottom:4px double #000;" id="print_bill_total">-->
                        <!--		<?php echo number_format($g_total - $stn_info['sale_inv_discount_amount'], 2, '.', ',') ?>-->
                        <!--	</td>-->
                        <!--</tr>-->


                    </tbody>
                </table>
                <br />
            </div><br />
            <div style="text-align: center">
                <p>........................</p>
                <P>Cashier Sign</P>
            </div>
            <div style="text-align: center">
                <p>........................</p>
                <P>Stock Keeper Sign</P>
            </div>

        </div>
        <div style="page-break-after:always;">



        </div>
    </div>
</body>