changes in alterpurchase order -vadivel J

This commit is contained in:
vadivel J 2024-09-19 17:51:54 +05:30
parent bb8691da68
commit 0f2edb2f99
2 changed files with 100 additions and 127 deletions

View File

@ -36,6 +36,33 @@ if (!empty($INRSYMBOL)) {
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
<style>
.
.filemodal-dialog {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh; /* Ensures the modal is vertically centered */
min-width: 100%;
}
.filemodal-content {
width: 90%; /* Responsive width */
max-width: 950px; /* Maximum width */
max-height: 80vh; /* Ensures it doesn't overflow vertically */
overflow-y: auto; /* Enables scrolling inside the modal if content exceeds height */
}
.filemodal-body {
max-height: 60vh; /* Set a limit for the modal body */
overflow-y: auto; /* Make the body scrollable */
}
.txtSpcialInstruction{
background-color: #f4f9fb;
}
@ -2763,7 +2790,7 @@ if (!empty($INRSYMBOL)) {
<!-- Modal for Packing Calculation -->
<div id="submitmodel" class="modal fade" data-backdrop-limit="1" role="dialog"
<div id="submitmodel" class="modal fade" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog">
@ -2773,7 +2800,7 @@ if (!empty($INRSYMBOL)) {
<h4 class="modal-title">Material has been Received<span id="WeightTitle"></span></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div class="modal-body " style="padding:0px; max-height: 400px; overflow-y: auto;">
<form>
<div class="modal-body p-4">
<div class="form-group row">
@ -2798,147 +2825,83 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
</div>
<div id="filemodel" class="modal fade" data-backdrop-limit="1" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog">
<div id="filemodel" class="modal fade " tabindex="-1" data-backdrop="true" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog filemodal-dialog">
<!-- Modal content-->
<div class="modal-content" style="width:950px;">
<div class="modal-content filemodal-content">
<div class="modal-header">
<h4 class="modal-title">Add Bill Details</h4>
</div>
<div class="modal-body" style="padding:0px;">
<!-- <div class="col-md-4 pad"><strong>Select Item Code</strong>
<select id="emergencyitemcode" name="emergencyitemcode" class = "form-control select2">
<!-- <option value="1"> select material code</option>
</select>
</div>-->
<div class="col-md-4 pad"><strong>Delivery Challan /Inv No</strong>
<input type="text" name="ChallanInvNo" id="ChallanInvNo" maxlength="12"
class="form-control" value="" required onkeypress="return isNumberKey(event)">
</div>
<div class="col-md-4 pad"><strong>Delivery Challan /Inv Date</strong>
<!-- <input type="Date" name="Date1" onkeypress="return onlyAlphabets(event);" maxlength="100" id="Date1" class="form-control" required value="2"> -->
<?php
$data = array('name' => 'Date1', 'value' => set_value('Date1', $CurrentDate), 'id' => 'Date1', 'class' => 'form-control num', 'required' => 'true');
echo form_input($data); ?>
</div>
<div class="col-md-4 pad"> <strong>Material Received Date</strong>
<?php
$data = array('name' => 'MRC', 'value' => set_value('MRC', $CurrentDate), 'id' => 'MRC', 'class' => 'form-control num', 'required' => 'true');
echo form_input($data); ?>
<div class="modal-body filemodal-body">
<form action="">
<div class="row">
<div class="col-md-10 m-2 "><strong>Delivery Challan /Inv No</strong>
<input type="text" name="ChallanInvNo" id="ChallanInvNo" maxlength="12" class="form-control" value="" required onkeypress="return isNumberKey(event)">
</div>
<div class="col-md-10 m-2 "><strong>Delivery Challan /Inv Date</strong>
<?php
$data = array('name' => 'Date1', 'value' => set_value('Date1', $CurrentDate), 'id' => 'Date1', 'class' => 'form-control num', 'required' => 'true');
echo form_input($data); ?>
</div>
<div class="col-md-10 m-2 "><strong>Material Received Date</strong>
<?php
$data = array('name' => 'MRC', 'value' => set_value('MRC', $CurrentDate), 'id' => 'MRC', 'class' => 'form-control num', 'required' => 'true');
echo form_input($data); ?>
</div>
<div class="col-md-10 m-2 "><strong>Vehicle No</strong>
<input type="text" name="VehicleNo" id="VehicleNo" maxlength="13" class="form-control" value="" required>
</div>
<div class="col-md-10 m-2 "><strong>Courier No</strong>
<input type="text" name="CourierNo" id="CourierNo" maxlength="12" class="form-control" value="" required>
</div>
<div class="col-md-10 m-2 " id="QualityChecked"><strong>Is Quality Check Required</strong>
<div class="radio m-2">
<label><input type="radio" name="Quality" checked="checked" value='0' id="Quality">Yes</label>
</div>
<div class="radio m-2">
<label><input type="radio" name="Quality" id="Quality" value='1'>No</label>
</div>
</div>
<div class="col-md-10">
<div class="col-md-offset-10 col-md-1">
<input type="button" class="btn btn-success" id="addmorebutton" value=" + ADD FILES..">
</div>
</div>
<!-- <div class="col-md-4 pad"><strong>Advise Quantity</strong>
<input type="text" name="AQuantity" id="AQuantity" maxlength="12" class="form-control" value="" required>
</div> -->
<div id="newdiv"></div><!-- this div for add more section-->
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
</div>
<input type="hidden" id="tablevalues" value="sample" name="tablevalues" />
<input type="hidden" id="splrow" value="sample" name="splrow" />
<div class="col-md-4 pad"><strong>Vehicle No</strong>
<input type="text" name="VehicleNo" id="VehicleNo" maxlength="13"
class="form-control" value="" required>
</div>
<div class="col-md-4 pad"><strong>Courier No</strong>
<input type="text" name="CourierNo" id="CourierNo" maxlength="12"
class="form-control" value="" required>
</div>
<div class="col-md-4" id="QualityChecked"><strong>Is Quality Check Required</strong>
<div class="radio">
<label><input type="radio" name="Quality" checked="checked" value='0'
id="Quality">Yes</label>
<div class="col-md-4 col-md-offset-8">
<a class="btn btn-cancel" data-dismiss="modal" onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
<a class="btn btn-success ok" ID="ExciseOption12" onclick="rfilealert();">&nbsp;&nbsp;<span class="bold">Submit</span></a>
</div>
</div>
<div class="radio">
<label><input type="radio" name="Quality" id="Quality" value='1'>No</label>
</div>
</div>
<!-- <div class="col-md-5">
<input type = "file" size = "20" input accept=".docx,.pdf,.doc.JPG,.PNG,.jpg" id="imag" name="images" onChange="filecheck();"/>
<label for="images">Select file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
</div> -->
<div class="col-md-10">
<!-- <legend>Multiple File</legend> -->
<div class="col-md-offset-10 col-md-1">
<input type="button" class="btn btn-success" id="addmorebutton"
value=" + ADD FILES..">
</div>
<div id="newdiv"></div><!-- this div for add more section-->
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
</div>
</form>
<!-- Add more fields if needed -->
</div>
<table id="specialtable" class="table table-hover table-bordered"
style="background-color:#fff;font-size:12px;">
<!--<thead>
<tr>
<th>MaterialCode1</th>
<th>DeliveryChallanDate</th>
<th>DeliveryChallanNo</th>
<th>VehicleNo</th>
<th>CourierNo</th>
<th>Quantity12</th>
<th>File</th>
</tr>
</thead>-->
<tbody id="specialappend">
</tbody>
</table>
<div class="modal-footer">
<div class="col-md-12 text-right">
<!-- <div class="col-md-4">
<a class="btn btn-success Add" onclick="addtable();"><span class="bold">Add table</span></a>
</div> -->
<div class="col-md-4 col-md-offset-8">
<a class="btn btn-cancel" data-dismiss="modal"
onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
<a class="btn btn-success ok" ID="ExciseOption12"
onclick="rfilealert();">&nbsp;&nbsp;<span class="bold">Submit</span></a>
</div>
</div>
</div>
</div>
</div>
<!-- </form> -->
</div>
<div id="servicemodel" class="modal fade" data-backdrop-limit="1" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog">

View File

@ -81,7 +81,17 @@ td {
.th-Sno{
text-align:center !important;
width:15%;
width:5%;
}
.th-uom{
text-align:center !important;
width:10%;
}
.th-status{
text-align:center !important;
width:10%;
}
</style>
@ -194,10 +204,10 @@ td {
<th class="th th-Sno" >SNo</th>
<th class="th th-materialCode">Material Code</th>
<th class="th th-materialName">Material Name</th>
<th class="th">Uom</th>
<th class="th th-uom">Uom</th>
<th class="th th-requestedQuantity">RequestedQuantity</th>
<th class="th th-PoQuantity">PoQuantity</th>
<th class="th">Status</th>
<th class="th th-status">Status</th>
<th class="th">Action</th>
</tr>
</thead>
@ -216,10 +226,10 @@ td {
<input type="hidden" name="<?php echo 'te' . $index ?>" id="<?php echo 'tes' . $index ?>" value="<?php echo $record->Quantity; ?>" />
<td align="center"><?php echo $record->MaterialCode; ?></td>
<td align="left"><?php echo $record->MaterialName; ?></td>
<td align="left"><?php echo $record->UOM; ?></td>
<td align="center"><?php echo $record->UOM; ?></td>
<td align="center"><?php echo $record->Quantity; ?></td>
<td align="center"><?php echo $record->POQTY; ?></td>
<td align="left"><?php echo $record->StatusName; ?></td>
<td align="center"><?php echo $record->StatusName; ?></td>
<input type="hidden" name="<?php echo 'materialdesc' . $index ?>" id="<?php echo 'materialdesc' . $index ?>" value="<?php echo isset($record->MaterialDescription) ? $record->MaterialDescription : ''; ?>" />
<td>
<a data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-target='#edit-req-modal' data-toggle="modal" href="#edit-req-modal"><i class="ri-pencil-fill" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->MaterialCode; ?> Material details"></i>&nbsp;&nbsp;&nbsp;</a> <a onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $record->MaterialCode; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>