stock module - 25-03-2025
This commit is contained in:
parent
40d64e1bcf
commit
f4c73c6bc3
@ -52,7 +52,6 @@
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Material Master Details</h4>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addRawmaterial">Add New Material</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -73,63 +72,77 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px; margin-bottom: -11px; margin-left: 33px;">
|
||||
|
||||
<input type="hidden" name="table" value="requisition">
|
||||
|
||||
<label for="fromDate">From:</label>
|
||||
<input class="form-control date_range form-date-search" id="fromDate" name="fromDate"
|
||||
placeholder="Select From Date" autocomplete="off">
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px; margin-bottom: -11px; margin-left: 33px;">
|
||||
|
||||
<input type="hidden" name="table" value="requisition">
|
||||
|
||||
<label for="toDate">To:</label>
|
||||
<input class="form-control date_range to-date-search" id="toDate" name="toDate"
|
||||
placeholder="Select To Date" autocomplete="off">
|
||||
<label for="fromDate">From:</label>
|
||||
<input class="form-control date_range form-date-search" id="fromDate" name="fromDate"
|
||||
placeholder="Select From Date" autocomplete="off">
|
||||
|
||||
<!-- New Category Field -->
|
||||
<div class="form-row">
|
||||
<label for="category" style="align-content: center !important;">Category:</label>
|
||||
<div class="form-group" style="width:180px !important; margin: 12px !important;">
|
||||
<select class="form-control category-search" autocomplete="off" id="category" name="category">
|
||||
<option value="">Select Category </option>
|
||||
<?php
|
||||
if (!empty($materialCategoryList)) {
|
||||
foreach ($materialCategoryList as $record) {
|
||||
if($record['isActive']){
|
||||
?>
|
||||
<option value="<?php echo $record['ConfigValue']?>"><?php echo $record['ConfigValue']?></option>
|
||||
<?php } } } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<label for="toDate">To:</label>
|
||||
<input class="form-control date_range to-date-search" id="toDate" name="toDate"
|
||||
placeholder="Select To Date" autocomplete="off">
|
||||
|
||||
<!-- New Category Field -->
|
||||
<div class="form-row">
|
||||
<label for="category" style="align-content: center !important;">Category:</label>
|
||||
<div class="form-group" style="width:180px !important; margin: 12px !important;">
|
||||
<select class="form-control category-search" autocomplete="off" id="category" name="category">
|
||||
<option value="">Select Category </option>
|
||||
<?php
|
||||
if (!empty($materialCategoryList)) {
|
||||
foreach ($materialCategoryList as $record) {
|
||||
if($record['isActive']){
|
||||
?>
|
||||
<option value="<?php echo $record['ConfigValue']?>"><?php echo $record['ConfigValue']?></option>
|
||||
<?php } } } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<button type="submit" class="range_search_button"><i class="fe-search" aria-hidden="true"
|
||||
class="icon-button" title="Search"></i></button>
|
||||
<button type="submit" class="range_search_button"><i class="fe-search" aria-hidden="true"
|
||||
class="icon-button" title="Search"></i></button>
|
||||
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton"
|
||||
title="Reset"></i>
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton"
|
||||
title="Reset"></i>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<div style="margin-left:auto">
|
||||
<div class="form-check" style="margin-right: 25px;">
|
||||
<form id="archiveFormId" action="<?php echo base_url()?>/rawmaterialListing" method="post">
|
||||
<input class="form-check-input" type="checkbox" id="showArchiveId"
|
||||
name="showArchive" value="1" <?php echo $showArchive ? "checked" : " " ?>
|
||||
style="width: 18px; height: 18px;">
|
||||
<label class="form-check-label" for="showArchiveId"
|
||||
style="font-size: 1rem; margin-left: 8px;">
|
||||
Show Archive
|
||||
</label>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<a class="btn btn-success mt-3" href="<?php echo base_url(); ?>addRawmaterial">Add New Material</a>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div style="margin-left:auto">
|
||||
<div class="form-check mt-4" style="margin-right: 25px;">
|
||||
<form id="archiveFormId" action="<?php echo base_url()?>/rawmaterialListing" method="post">
|
||||
<input class="form-check-input" type="checkbox" id="showArchiveId"
|
||||
name="showArchive" value="1" <?php echo $showArchive ? "checked" : " " ?>
|
||||
style="width: 18px; height: 18px;">
|
||||
<label class="form-check-label" for="showArchiveId"
|
||||
style="font-size: 1rem; margin-left: 8px;">
|
||||
Show Archive
|
||||
</label>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
<table id="raw_material_list_table" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
|
||||
@ -160,6 +160,22 @@
|
||||
|
||||
|
||||
.celda_normal {
|
||||
/*background-color: #fff;*/
|
||||
/* <!-- ad9271 into ffffff brown-light to green-light --> */
|
||||
text-align: center;
|
||||
border: 1px solid #ccc;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
#abstractTableId tbody td.celda_normal {
|
||||
/*background-color: #fff;*/
|
||||
/* <!-- ad9271 into ffffff brown-light to green-light --> */
|
||||
text-align: center;
|
||||
border: 1px solid #ccc;
|
||||
padding: 10px 4px;
|
||||
}
|
||||
|
||||
#trpProductionStockDetailsTableId tfoot tr td.celda_normal {
|
||||
/*background-color: #fff;*/
|
||||
/* <!-- ad9271 into ffffff brown-light to green-light --> */
|
||||
text-align: center;
|
||||
@ -2063,6 +2079,11 @@ $timeOtions[] = "12:00 AM";
|
||||
|
||||
if (trpOnTime != '' && trpOffTime != '') {
|
||||
|
||||
if(trpOnTime == trpOffTime){
|
||||
document.querySelector(`td.totalHours[data-id="${date} totalHours"]`).innerText = '24.0';
|
||||
return;
|
||||
}
|
||||
|
||||
const startDate = new Date(`1970-01-01T${convertTo24Hour(trpOnTime)}`);
|
||||
const endDate = new Date(`1970-01-01T${convertTo24Hour(trpOffTime)}`);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user