EVOLUTION-NINJA
Edit File: view_stock_details.php
<?php $this->load->view('includes/header.php')?> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/grid_style.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/jqgrid/css/ui.jqgrid.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/jqgrid/css/ui.jqgrid-bootstrap.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/jqgrid/css/ui.jqgrid-bootstrap-ui.css'); ?>" /> <script type="text/ecmascript" src="<?php echo base_url('assets/jqgrid/js/jquery.jqGrid.min.js'); ?>"></script> <script type="text/ecmascript" src="<?php echo base_url('assets/jqgrid/js/i18n/grid.locale-en.js'); ?>"></script> <script type="text/javascript" src="<?php echo base_url('dashboard_assets/js/popper.min.js'); ?>" ></script> <script src="<?php echo base_url('assets/js/jquery-ui.js'); ?>" type="text/javascript"></script> <div class="container"> <div> <h3 style="padding-left: 15px;">View Stock Details</h3> </div> <div class="row" style="border-bottom: 1px solid black; padding-top: 20px;"> <div class="form-group"> <label for="exampleInputUsername1">Layout Name</label> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <input type="text" name="po_no" value="<?php echo $value->po_no; ?>" readonly> <?php break; }}?> </div> <div class="form-group"> <label for="exampleInputUsername1">Layout Name</label> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <input type="text" name="layout_name" value="<?php echo $value->layout_name; ?>" readonly> <?php break; }}?> </div> <?php if($po->godown_site == 'Godown') { ?> <div class="form-group"> <label for="exampleInputUsername1">Godown Name</label> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <input type="text" name="site_no" value="<?php echo $value->godown_name; ?>" readonly> <?php break; }}?> </div> <?php } ?> <?php if($po->godown_site == 'Site') { ?> <div class="form-group"> <label for="exampleInputUsername1">Site No</label> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <input type="text" name="site_no" value="<?php echo $value->site_no; ?>" readonly> <?php break; }}?> </div> <div class="form-group"> <label for="exampleInputUsername1">Level</label> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <input type="text" name="level_name" value="<?php echo $value->level_name; ?>" readonly> <?php break; }}?> </div> <div class="form-group"> <label for="exampleInputUsername1">Customer</label> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <input type="text" name="customer" value="<?php echo $value->customer; ?>" readonly> <?php break; }}?> </div> <?php } ?></div> <form class="forms-sample update_form"> <div class="table-responsive update_form2"> <table class="table table-bordered table-sm"> <thead> <tr> <th><label for="exampleInputUsername1" >Product Name</label></th> <th><label for="exampleInputUsername1" style="width: 50px;">PO Quantity</label></th> <th><label for="exampleInputUsername1" style="width: 50px;">Unit</label></th> <th><label for="exampleInputUsername1" style="width: 50px;">Unit Price</label></th> <th><label for="exampleInputUsername1" style="width: 50px;">INR Value</label></th> <th><label for="exampleInputUsername1" style="width: 50px;">CGST</label></th> <th><label for="exampleInputUsername1" style="width: 50px;">SGST</label></th> <th><label for="exampleInputUsername1" style="width: 50px;">IGST</label></th> <th><label for="exampleInputUsername1" style="width: 50px;">Total Amount</label></th> <th><label for="exampleInputUsername1" style="width: 150px;">Received Goods(GRN)<span style="color:red">*</span></label></th> <th><label for="exampleInputUsername1" style="width: 150px;">PO Balance Goods<span style="color:red">*</span></label></th> </tr> </thead> <tbody> <tr> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <div><input type="hidden" class="form-control product_id" name="product_id[]" value="<?php echo $value->product_id; ?>" readonly ></div> <div class="our_input"> <input type="text" class="form-control product_name" name="product_name" value="<?php echo $value->product_name; ?>" readonly ></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $key=>$value) {?> <div class="our_input"><input type="text" name="quantity" class="form-control pur_quantity<?php echo $key;?>" value="<?php echo $value->quantity ;?>" readonly id="Quantity"></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <div class="our_input"><input type="text" name="unit" class="form-control unit" value="<?php echo $value->unit_name ;?> " readonly id="Unit"></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <div class="our_input"><input type="text" name="unit_price" class="form-control unit" value="<?php echo $value->unit_price ;?> " readonly id="Unit"></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <div class="our_input"><input type="text" name="inr_value" class="form-control unit" value="<?php echo $value->inr_value ;?> " readonly id="Unit"></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <div class="our_input"><input type="text" name="cgst" class="form-control unit" value="<?php echo $value->cgst ;?> " readonly id="Unit"></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <div class="our_input"><input type="text" name="sgst" class="form-control unit" value="<?php echo $value->sgst ;?> " readonly id="Unit"></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <div class="our_input"><input type="text" name="igst" class="form-control unit" value="<?php echo $value->igst ;?> " readonly id="Unit"></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $value) {?> <div class="our_input"><input type="text" name="total_value" class="form-control unit" value="<?php echo $value->total_value ;?> " readonly id="Unit"></div> <?php }}?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $key=>$value) { if($value->received_goods != ''){?> <div class="our_input"><input type="text" name="" class="form-control already_received<?php echo $key;?>" value="<?php echo $value->received_goods ;?> " readonly id="Received_Goods"></div> <?php } else { ?> <div class="our_input"><input type="text" name="" class="form-control already_received<?php echo $key;?>" value="0" readonly ></div> <?php }} }?> </td> <td style="padding: 0;"> <?php if(isset($stock_data)) { foreach($stock_data as $key=>$value) { if($value->balance_goods != ''){?> <div class="our_input"><input type="text" name="" class="form-control balance_goods<?php echo $key;?>" value="<?php echo $value->balance_goods ;?> " readonly id="Received_Goods"></div> <?php } else { ?> <div class="our_input"><input type="text" name="" class="form-control already_received<?php echo $key;?>" value="0" readonly ></div> <?php }} }?> </td> </tr> </tbody> </table> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary cancel" data-dismiss="modal">Close</button> </div> <!-- <div class="row" style="border-bottom: 1px solid black; padding-top: 20px;"> <div class="form-group"> <label for="exampleInputUsername1">Layout Name</label> <?php if(isset($qc_data)) { foreach($qc_data as $value) {?> <input type="text" name="layout_name" value="<?php echo $value->layout_name; ?>" readonly> <?php break; }}?> </div> <?php if($po->godown_site == 'Site') { ?> <div class="form-group"> <label for="exampleInputUsername1">Site No</label> <?php if(isset($qc_data)) { foreach($qc_data as $value) {?> <input type="text" name="site_no" value="<?php echo $value->site_no; ?>" readonly> <?php break; }}?> </div> <div class="form-group"> <label for="exampleInputUsername1">Level</label> <?php if(isset($qc_data)) { foreach($qc_data as $value) {?> <input type="text" name="level_name" value="<?php echo $value->level_name; ?>" readonly> <?php break; }}?> </div> <div class="form-group"> <label for="exampleInputUsername1">Customer</label> <?php if(isset($qc_data)) { foreach($qc_data as $value) {?> <input type="text" name="customer" value="<?php echo $value->customer; ?>" readonly> <?php break; }}?> </div> <?php } ?></div> --> </form> </div> <script type="text/javascript"> $('.cancel').click(function(){ window.location = '<?php echo site_url("stock")?>'; }); </script> <style type="text/css"> form{ padding-top: 30px; } .update_form2 table tr input{ background: white !important; height: 35px; padding: 8px; border: none !important; /*border-bottom:1px solid red;*/ } .main-panel{ background: white; } .product_name{ width: auto; } .our_input { border-bottom:1px solid #000; } .our_input:last-child { border-bottom:initial; } /*.update_form2 table, .update_form2 td, .update_form2 th { border: 1px solid black !important; border-collapse: collapse !important; }*/ @media only screen and (min-width:320px) and (max-width:640px) { .add{ margin-left: 40%; margin-top: 10px; } } .form-group input{ //margin-bottom: 10px !important; } </style> <?php $this->load->view('includes/footer.php')?>