JezK
Edit File: individualtransactionview.php
<?php include("header.php"); if(isset($_GET['type']) && $_GET['type']==2){ $sql= "select umw.*,urq.currency_type,uc.currency from uflexit_material_transactions as umw join uflexit_request_quote as urq on urq.quotation_id=umw.quotation_id join uflexit_countries as uc on uc.country_id=urq.currency_type where umw.randval='".$_GET['rnd']."' and umw.type=2"; }else{ $sql= "select umw.*,urq.currency_type,uc.currency from uflexit_material_transactions as umw join uflexit_request_quote as urq on urq.quotation_id=umw.quotation_id join uflexit_countries as uc on uc.country_id=urq.currency_type where umw.randval='".$_GET['rnd']."'"; } $item_no=''; if(isset($_GET['ino']) && $_GET['ino'] !=''){ $item_no=$_GET['ino']; } $row = $wareHouseAdminObj->db->get_row($sql); // print_r($row); $currencyType=$row['currency']; $transactionsDetails=''; $quotation_id = isset($row['quotation_id']) ? $row['quotation_id'] : ""; $asn_id = isset($row['asn_id']) ? $row['asn_id'] : ""; $customer_name = isset($row['customer_name']) ? $row['customer_name'] : ""; $email = isset($row['email']) ? $row['email'] : ""; $country = isset($row['country']) ? $row['country'] : ""; $city = isset($row['city']) ? $row['city'] : ""; //print_r($row); /* Array ( [id] => 1 [quotation_id] => 1 [asn_id] => 1 [customer_name] => test [country] => test country [email] => test@gmail.com [city] => test city [itemcode] => 001 [item_desc] => item descrion [qty] => 100 [ref_number] => ref 001 [cost] => 1000 [pallet_no] => 001 [row_val] => 1 [rack] => 1 [pin] => 1 [created_date] => 2021-01-20 11:12:49+05:30 [status] => 1 ) */ ?> <div class="container"> <a href="javascript:history.go(-1)"><img src="images/back_main.png" class="pb-3"></a> <div class="mt-3 px-md-4 px-0"> <div class="row px-md-3 px-0"> <div class="container pl-0 pr-2 text-dark"> <h5><?php echo $lang['TRANSACTION_DETAILS'];?></h5> </div> </div> </div> <div class="warehouse_boxshadow mt-3 mb-5 pl-5"> <div class="container pt-4 pl-4 pb-2 "> <div class="row"> <div class="col-lg-6 col-md-12 col-sm-12"> <div class="row"> <div class="col-md-5"><p><strong><?php echo $lang['QUOTATION_ID'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $quotation_id ?></p></div> </div> <div class="row"> <div class="col-md-5"> <p><strong><?php echo $lang['ADVANCE_SHIPMENT_ID'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $asn_id ?></p></div> </div> <div class="row"> <div class="col-md-5"> <p><strong><?php echo $lang['CUSTOMER_NAME'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $customer_name ?></p></div> </div> <div class="row"> <div class="col-md-5"> <p><strong><?php echo $lang['EMAIL'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $email ?></p></div> </div> </div> <div class="col-lg-6 col-md-12 col-sm-12"> <div class="row"> <div class="col-md-5"> <p><strong><?php echo $lang['COUNTRY'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $country ?></p></div> </div> <div class="row"> <div class="col-md-5 col-sm-5"> <p><strong><?php echo $lang['CITY'];?></strong></p></div> <div class="col-md-1 col-sm-1 colon">:</div> <div class="col-md-6 col-sm-6"><p><?php echo $city ?></p></div> </div> </div> </div> </div> </div> <div class="mt-3 px-md-4 px-0"> <div class="row px-md-3 px-0 pb-3"> <div class="container pl-0 pr-2 text-dark"> <h5><?php echo $lang['ITEM_DETAILS'];?> </h5> </div> </div> </div> <div class="warehouse_boxshadow container py-5 table-responsive"> <table id='example' class="table table-bordered table_body"> <thead class="theadcolor"> <tr> <th><?php echo $lang['ITEM_CODE'];?></th> <th><?php echo $lang['ITEM_DESCRIPTION'];?></th> <th><?php echo $lang['QUANTITY'];?></th> <th><?php echo $lang['REFERENCE_NUMBER'];?></th> <th><?php echo $lang['COST'];?> (<?php echo $currencyType ?>)</th> <!-- <th>Number of Pallet</th> --> <th><?php echo $lang['PALLET_NO'];?>.</th> <th><?php echo $lang['ROW'];?></th> <th><?php echo $lang['RACK'];?></th> <th><?php echo $lang['PIN'];?></th> </tr> </thead> <tbody> <?php if(isset($_GET['type']) && $_GET['type']==2){ $sql_i= "select * from uflexit_material_transactions where type=2 and randval='".$_GET['rnd']."' and itemCode='".$item_no."'"; }else{ $sql_i= "select * from uflexit_material_transactions where randval='".$_GET['rnd']."' and itemCode='".$item_no."'"; } $rows_i = $wareHouseAdminObj->db->get_results($sql_i); if($rows_i){ foreach($rows_i as $fetch) { ?> <tr> <td><?php echo $fetch['itemcode'] ?></td> <td><?php echo $fetch['item_desc'] ?></td> <td><?php echo $fetch['qty'] ?></td> <td><?php echo $fetch['ref_number'] ?></td> <td><?php echo $fetch['cost'] ?></td> <td><?php echo $fetch['pallet_no'] ?></td> <td><?php echo $fetch['row_val'] ?></td> <td><?php echo $fetch['rack'] ?></td> <td><?php echo $fetch['pin'] ?></td> </tr> <?php } } ?> </tbody> </table> </div> </div> </div> <?php include("footer.php"); ?> <style> #example_length { display:none !important; } </style> <!-- <script> jQuery(document).ready(function() { jQuery('#example').DataTable( { "processing": true, "dataSrc": "", "dom": 'Bfrtip', "dom": 'Rlfrtlip', language: { search: '', searchPlaceholder: "Search", paginate: {previous: 'Prev',next: 'Next'} , paginate: {previous: 'Prev',next: 'Next'}}, "pagingType": "full_numbers", "bProcessing": true, "bServerSide": true, "sAjaxSource": "app/view-individual-received-list.php?rnd=<?php echo $_GET['rnd'] ?>", "ordering": false, "aoColumns": [{ mData: 'itemcode' } , { mData: 'item_desc' } , { mData: 'qty' }, { mData: 'ref_number' }, { mData: 'cost' }, { mData: 'pallet_no' }, { mData: 'row_val' }, { mData: 'rack' }, { mData: 'pin' } ] } ); } ); </script> -->