ok

Mini Shell

Direktori : /home2/selectio/www/mm-tailor-billing/themes/default/views/pos/
Upload File :
Current File : /home2/selectio/www/mm-tailor-billing/themes/default/views/pos/view.php

<?php (defined('BASEPATH')) or exit('No direct script access allowed'); ?>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js" integrity="sha512-pumBsjNRGGqkPzKHndZMaAG+bir374sORyzM3uulLV14lN5LyykqNk8eEeUlUkB3U0M4FApyaHraT65ihJhDpQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<section class="content" style="background-color: white;" id="print-content">
    <div class="row">
		<div class="col-md-12">
            <?php $phdatas=$inv->pant_measure;
                  $shdatas=$inv->shirt_measure;
                  $extrapantdatas=$inv->another_pant_measure;
                  $extrashirtdatas=$inv->another_shirt_measure;
                $pant_measure= json_decode($phdatas, true);
                $shirt_measure= json_decode($shdatas, true);
                $extra_pant_measure= json_decode($extrapantdatas, true);
                $extra_shirt_measure= json_decode($extrashirtdatas, true);
            ?>
            <?php 
		    foreach($pant_measure as $r)
		    {
		            $inputVal = array("1/4", "1/2", "3/4");
    		        $replaceVal = array("&#188;", "&#189;", "&#190");
    		        $r = str_replace($inputVal,$replaceVal,$r);
		    }
		    
		    ?>
		    <div style="float: right; padding-right: 30px;">
		        <a id='clone' class="btn btn-success" style="background: #14a950; color: white; border-color: gray; padding: 6px; border-radius: 7px; cursor: pointer;text-decoration: none;" target="_blank" href="pos/?clone=<?=$inv->id?>"><i class="fa fa-copy"></i> Clone</a>
		        <button id='btn' onclick='printDiv();' class="btn btn-primary" style="background: #918181; color: white; border-color: gray; padding: 6px; border-radius: 7px; cursor: pointer;"><i class="fa fa-print"></i> Print</button>
		        <button class="btn btn-primary" style="background: blue; color: white; border-color: blue; padding: 6px; border-radius: 7px; cursor: pointer;"><a href="javascript:history.go(-1)" style="text-decoration: none; color: white;"><i class="fa fa-arrow-left"></i> Go Back</a></button>
		        <button class="btn btn-danger" id="close" style="background: red; color: white; border-color: red; padding: 6px; border-radius: 7px; cursor: pointer;text-decoration: none;"><i class="fa fa-close"></i> Close</button>
		        <!--<button class="btn btn-danger close" data-dismiss="modal" style="background: red; color: white; border-color: red; padding: 6px; border-radius: 7px; cursor: pointer;text-decoration: none;"><i class="fa fa-close"></i> Close</button>-->
		        <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i>-->
            </button>
		    </div>
		    <br>
		    
		    
		    
		    <div id='DivIdToPrint'>
			<div style="margin-top:20px;padding: 10px;border: 1px solid brown;border-style: dashed;">
			    
			    <center><h5 class="box-title"><b><i class="fa fa-user"></i> PANT MEASUREMENT DETAILS:</b></h5></center>
			    <table width="100%">
    			    <tr>
    			        <th width="12.5%" style="padding-bottom: 10px; font-size: 20px;">HE</th>
    			        <th width="12.5%" style="padding-bottom: 10px; font-size: 20px;">HIP</th>
    			        <th width="12.5%" style="padding-bottom: 10px; font-size: 20px;">BAC</th>
    			        <th width="12.5%" style="padding-bottom: 10px; font-size: 20px;">INN</th>
    			        <th width="12.5%" style="padding-bottom: 10px; font-size: 20px;">FL</th>
    			        <th width="12.5%" style="padding-bottom: 10px; font-size: 20px;">THI</th>
    			        <th width="12.5%" style="padding-bottom: 10px; font-size: 20px;">KNEE</th>
    			        <th width="12.5%" style="padding-bottom: 10px; font-size: 20px;">BOTT</th>
    			    </tr>
    			    <tr style="text-align:center;">
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%;font-size: 30px;"><?php echo $r['pf1'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%;font-size: 30px;"><?php echo $r['pf2'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%;font-size: 30px;"><?php echo $r['pf3'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%;font-size: 30px;"><?php echo $r['pf4'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%;font-size: 30px;"><?php echo $r['pf5'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%;font-size: 30px;"><?php echo $r['pf6'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%;font-size: 30px;"><?php echo $r['pf7'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%;font-size: 30px;"><?php echo $r['pf8'] ?></span></td>
    			    </tr>
    			    <tr style="text-align:center;">
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['ps1'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['ps2'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['ps3'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['ps4'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['ps5'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['ps6'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['ps7'] ?></span></td>
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['ps8'] ?></span></td>
    			    </tr>
    			    <tr style="text-align:center;">
    			        <td width="12.5%" style="padding-bottom: 10px;"><span style="width:50%; font-size: 30px;"><?php echo $r['pt1'] ?></span></td>
    			    </tr>
    			    
    			</table>
    			<center><h5 class="box-title"><b><i class="fa fa-cut"></i> PANT MODEL ITEMS:</b></h5></center>
			    <b style="font-size: 18px;"><?=$inv->pant_text;?></b>
    			
			</div>
			
			<?php
			    foreach($shirt_measure as $shm)
    		    {
    		        $inputVal = array("1/4", "1/2", "3/4");
    		        $replaceVal = array("&#188;", "&#189;", "&#190");
    		        $shm = str_replace($inputVal,$replaceVal,$shm);
    		    }
    		?>
			
			<div style="margin-top:20px;padding: 10px;border: 1px solid brown;border-style: dashed;">
			    
			    <center><h5 class="box-title"><b><i class="fa fa-user"></i> SHIRT MEASUREMENT DETAILS:</b></h5></center>
			    <table width="100%">
    			    <tr>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">HE</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">SOL</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">HA-HD.LEN</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">HA-LOOSE</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">BODY</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">COLLAR</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">SIDE LOW</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">SIDE FHED</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">SIDE HEIGHT</th>
    			        <th width="9%"style="padding-bottom: 10px; font-size: 20px;">CHEST</th>
    			        <th width="10%"style="padding-bottom: 10px; font-size: 20px;">SAMPLE</th>
    			    </tr>
    			    <tr style="text-align:center;">
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf1'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf2'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf3'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf4'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf5'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf6'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf7'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf8'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf9'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf10'] ?></span></td>
    			        <td width="10%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['sf11'] ?></span></td>
    			    </tr>
    			    <tr style="text-align:center;">
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss1'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss2'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss3'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss4'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss5'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss6'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss7'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss8'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss9'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss10'] ?></span></td>
    			        <td width="10%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['ss11'] ?></span></td>
    			    </tr>
    			    <tr style="text-align:center;">
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['st1'] ?></span></td>
    			    </tr>
    			    
    			    <tr style="text-align:center;">
    			        <td colspan="2" width="9%"style="padding-bottom: 10px;"><b>FULL HAND SHIRT :</b></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['fhf1'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['fhf2'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['fhf3'] ?></span></td>
    			    </tr>
    			    <tr style="text-align:center;">
    			        <td colspan="2" width="9%"style="padding-bottom: 10px;"></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['fhs1'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['fhs2'] ?></span></td>
    			        <td width="9%"style="padding-bottom: 10px;"><span style="width:70%; font-size: 30px;"><?php echo $shm['fhs3'] ?></span></td>
    			    </tr>
    			</table>
    			
    			<center><h5 class="box-title"><b><i class="fa fa-cut"></i> SHIRT MODEL ITEMS:</b></h5></center>
			    <b style="font-size: 18px;"><?=$inv->shirt_text;?></b>
			    
			</div>
			
			
			
			
			
	
			
			
			<!-- Extra Shirt and Pant Measurements Ends here -->
			
			    <table width="100%">
			        <tr>
			            <td width="50%" style="padding: 10px;background: #ffcfa1;">
			                <table style="width:100%;">
			                    <tr>
			                        <td width="40%" style="text-align:left; font-size:14px; font-weight:bold;">Prop: M.Madheswaran</td>
			                        <td width="60%" colspan="2"style="text-align: right; font-size:14px; font-weight:bold;">Ph: 0427-2447170 <br>Cell: 94876-48880</td>
			                    </tr>
			                    
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:center; font-weight:bold; font-size:30px;color: red; ">M.M. TAILOR</td>
			                    </tr>
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:center;  font-weight:bold; font-size:14px;">Near T.V.S., Omalur Main Road,</td>
			                    </tr>
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:center; font-weight:bold; font-size:14px;">(Near New Bus Stand), Salem -636 009</td>
			                    </tr>
			                 </table>
			                 <table style="width:100%;">
			                    <tr style="text-align:center; font-size:16px;">
			                        <td width="30%" style="text-align:left; padding-bottom: 10px; font-weight:bold;">Product</td>
			                        <td width="10%" style="padding-bottom: 10px; font-weight:bold;">Qty</td>
			                        <td width="30%" style="padding-bottom: 10px; font-weight:bold;">Per Rate</td>
			                        <td width="30%" style="padding-bottom: 10px; font-weight:bold;">Amount</td>
			                        
			                    </tr>
			                     <?php 
                                        $tax_summary = [];
                                        $total = 0;
                                        foreach ($rows as $row) { $total+=$row->quantity; ?>
			                    <tr>
			                        <td style="padding-bottom: 10px; font-weight:bold; font-size:16px;"><?= $row->product_name;?></td>
			                        <td style="padding-bottom: 10px; text-align:center; font-weight:bold;"><span><?= $this->tec->formatQuantity($row->quantity) ?></span></td>
			                        <td style="padding-bottom: 10px; text-align:center; font-weight:bold;"><span><?= $this->tec->formatMoney($row->net_unit_price + ($row->item_tax / $row->quantity)) ?></span></td>
			                        <td style="padding-bottom: 10px; text-align:center; font-weight:bold;"><span><?= $this->tec->formatMoney(($row->net_unit_price + ($row->item_tax / $row->quantity)) * $row->quantity) ?></span></td>
			                    </tr>
                                        <?php }
                                        ?>
        
			                    <tr>
			                       
			                        <td  style="text-align:left;padding-bottom: 10px; font-weight:bold; font-size:16px;">TOTAL</td>
			                        <td  style="text-align:center;padding-bottom: 10px; font-weight:bold; font-size:16px;"><?= $this->tec->formatMoney($total); ?></td>
			                        <td  style="text-align:center;padding-bottom: 10px; font-weight:bold; font-size:16px;"></td>
			                        <td  style="padding-bottom: 10px; text-align:center;"><span style="font-weight: bold;font-size: 16px;">Rs.<?= $this->tec->formatMoney($inv->total + $inv->product_tax); ?></span></td>
			                    </tr>
			                </table>
			            </td>
			            <td width="50%" style="vertical-align: top; padding: 10px;background: #e7e7e6;">
			                <table style="width:100%;border-collapse: separate;border-spacing: 0px 20px;">
			                    <tr>
			                        <td style="text-align:left; font-size:16px; font-weight:bold;">DC NO: <span style="font-size: 28px;"><?= $inv->dc_prefix; ?><?= $inv->hold_ref; ?></span></td>
			                        <td colspan="2" style="text-align: right; font-size:16px; font-weight:bold;">DATE: <?= date('d-m-Y', strtotime($inv->sale_date)); ?></td>
			                    </tr>
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:left; font-weight:bold; font-size:16px;">TO:</td>
			                    </tr>
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:left;  font-weight:bold; font-size:16px;">Customer Name: <span style="font-size: 20px;">&nbsp;Mr.<?= $inv->customer_name;?></span></td>
			                    </tr>
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:left; font-weight:bold; font-size:16px;">Mobile: <span style="font-size: 20px;">&nbsp;<?= $inv->customer_phone_no; ?></span></td>
			                    </tr>
			                    <?php if( $inv->reference_no!="" && $inv->reference_no!="0"){ ?>
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:left; font-weight:bold; font-size:16px;">MM-SUITING Reference No: <span style="font-size: 20px;">&nbsp;<?= $inv->reference_no; ?></span></td>
			                    </tr>
			                    <?php }?>
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:left; font-weight:bold; font-size:16px;">Advance Amount:&nbsp;<span style="font-size:18px;"><?= $this->tec->formatMoney($inv->paid); ?></span></td>
			                    </tr>
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align:left; font-weight:bold; font-size:16px;"></td>
			                    </tr>
			                   
			                    <tr>
			                        <td width="100%" colspan="3" style="text-align: right; font-size:16px; font-weight:bold;">DUE DATE: <?= date('d-m-Y', strtotime($inv->due_date)); ?></td>
			                    </tr>
			                    
			                </table>
			            </td>
			        </tr>
			        
			    </table>
			</div>
		</div>
	</div>
</section>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script>
function printDiv() 
{

  var divToPrint=document.getElementById('DivIdToPrint');

  var newWin=window.open('','Print-Window');

  newWin.document.open();

  newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>');

  newWin.document.close();

  setTimeout(function(){newWin.close();},0);

}
</script>
<script>
/*function close(){
    window.close();
}*/
$("#close").click(function(){
    window.close();
});
    /*$("#close").click(function(){
       location.reload(true);
    });*/
</script>
<script>
      /*$(document).ready(function(){
          $("#close").click(function(){
            window.close();
        });
      });*/
</script>
<script>
/*let myWindow;

function closeWin() {
  myWindow.close();
}*/
</script>

Zerion Mini Shell 1.0