ok
Direktori : /home2/selectio/www/mm-tailor-billing/themes/default/views/sales/ |
Current File : /home2/selectio/www/mm-tailor-billing/themes/default/views/sales/view-bill.php |
<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); ?> <div class="modal-dialog" > <div class="modal-content" id="payment-modal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> </button> <h4 class="modal-title" id="myModalLabel"><?php echo lang('add_payment'); ?></h4> </div> <div class="modal-body"> <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("¼", "½", "¾"); $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;" 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 close" data-dismiss="modal" style="background: red; color: white; border-color: red; padding: 6px; border-radius: 7px; cursor: pointer;"><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("¼", "½", "¾"); $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> <tr style="text-align:center; font-size:16px;"> <td width="40%" style="text-align:left; padding-bottom: 10px; font-weight:bold;">Product</td> <td width="30%" style="padding-bottom: 10px; font-weight:bold;">Qty</td> <td width="30%" style="padding-bottom: 10px; font-weight:bold;">Amount</td> </tr> <?php $tax_summary = []; foreach ($rows as $row) {?> <tr> <td width="40%" style="padding-bottom: 10px; font-weight:bold; font-size:16px;"><?= $row->product_name;?></td> <td width="30%" style="padding-bottom: 10px; text-align:center; font-weight:bold;"><span><?= $this->tec->formatQuantity($row->quantity) ?></span></td> <td width="30%" 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> </tr> <?php } ?> <tr> <td width="20%" style="padding-bottom: 10px;"></td> <td width="50%" style="text-align:center;padding-bottom: 10px; font-weight:bold; font-size:16px;">TOTAL</td> <td width="30%" 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 NOO: <span style="font-weight: 20px;"><?= $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;">TOO:</td> </tr> <tr> <td width="100%" colspan="3" style="text-align:left; font-weight:bold; font-size:16px;">Customer Name: Mr.<?= $inv->customer_name;?></td> </tr> <tr> <td width="100%" colspan="3" style="text-align:left; font-weight:bold; font-size:16px;">Mobile: <?= $inv->customer_phone_no; ?></td> </tr> <tr> <td width="100%" colspan="3" style="text-align:left; font-weight:bold; font-size:16px;">Advance Amount: <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> <div class="clearfix"></div> </div> <div class="modal-footer"> <?php echo form_submit('add_payment', lang('add_payment'), 'class="btn btn-primary"'); ?> </div> </div> </div> <script src="<?= $assets ?>plugins/bootstrap-datetimepicker/js/moment.min.js" type="text/javascript"></script> <script src="<?= $assets ?>plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $('.datetimepicker').datetimepicker({ format: 'YYYY-MM-DD HH:mm' }); }); </script>