Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme

This commit is contained in:
Gowtham M 2025-03-13 16:55:52 +05:30
commit d5a791979b
26 changed files with 1374 additions and 1143 deletions

View File

@ -186,7 +186,9 @@ class Driver extends BaseController
$where_arr = ['DATE_FORMAT(t_driver_attendance.date, "%Y-%m")' =>$to_mysql_date,'t_driver_attendance.driver_id' =>$arr['empid']];
$data = $this->driver_model->updateDieselAndShedValuesBasedonEmpID($where_arr,$update_arr);
return $data;
return $this->response->setJSON($data);
// return $data;
// [column] => shed_amount
// [value] => 400
// [date] => 21-02-2025

View File

@ -1249,7 +1249,7 @@ class Emergencypurchaseorder extends BaseController
}
}
if ($SkipInsert == "False") {
$POLineItemList = array('PONO' => $PONO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'CreatedBy' => $CreateBy, 'CreatedDate' => $createddt, 'CostCenterCode' => $CostCenter);
$POLineItemList = array('PONO' => $PONO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'CreatedBy' => $CreateBy, 'CreatedDate' => $createddt, 'CostCenterCode' => $CostCenter,'LineitemAuditorNotes' => $LineitemAuditorNotes);
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
@ -1419,7 +1419,7 @@ class Emergencypurchaseorder extends BaseController
}
if ($SkipInsert == "False") {
if (strlen((string)$POLineItemNo) == 0) {
$POLineItemList = array('PONO' => $PONO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'CreatedBy' => $updatedBy, 'CreatedDate' => $updateddt, 'CostCenterCode' => $CostCenter);
$POLineItemList = array('PONO' => $PONO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'CreatedBy' => $updatedBy, 'CreatedDate' => $updateddt, 'CostCenterCode' => $CostCenter,'LineitemAuditorNotes' => $LineitemAuditorNotes);
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
if (count($POLineItem) > 0) {
$LineItemNo = $POLineItem[0]['LineItemNo'];
@ -1427,7 +1427,7 @@ class Emergencypurchaseorder extends BaseController
} else {
$LineItemNo = $POLineItemNo;
$POLineItemList = array('PONO' => $PONO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'UpdateBY' => $updatedBy, 'UpdatedOn' => $updateddt, 'CostCenterCode' => $CostCenter);
$POLineItemList = array('PONO' => $PONO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'UpdateBY' => $updatedBy, 'UpdatedOn' => $updateddt, 'CostCenterCode' => $CostCenter,'LineitemAuditorNotes' => $LineitemAuditorNotes);
$POLineItem = $this->purchaseorder_model->updatePOLineItem($PONO, $POLineItemNo, $POLineItemList);
}
$isExists = $this->purchaseorder_model->LineItemExistsinRevenueTax($LineItemNo);

View File

@ -130,19 +130,21 @@ class Requisitionform extends BaseController
// echo 'ReqType'.$ReqPOType;
$data['ReqPOType'] = $ReqPOType == '' ? $ReqType : $ReqPOType;
$data['LineItem'] = $this->requistion_model->getEditRequistItemList($ReqNo);
// print_r($data['LineItem']);die;
$data['description'] = '';
foreach ($data['LineItem'] as $line) {
foreach ($data['LineItem'] as $key => $line) {
$description = isset($line->MaterialDescription) ? $line->MaterialDescription : null;
//echo $description;
$data['LineItem'][$key]->CategoryName = $line->MaterialCode
? $this->requistion_model->getCategoryName($line->MaterialCode)
: "";
}
$data['CostCenter'] = $this->requistion_model->getCostCenterUserID($userID);
$data['MaterialCode'] = $this->requistion_model->EditMaterialCode($ReqNo, $ReqType);
// $data['MaterialCode'] = $this->requistion_model->EditMaterialCode($ReqNo, $ReqType); // Old Based on Type..
$data['MaterialCode'] = $this->requistion_model->EditMaterialCode($ReqNo);
$data['ServiceOption'] = $this->requistion_model->getConfigValue('C022');
$this->loadViews("editrequisitionform", $this->global, $data, NULL);
}

View File

@ -36,6 +36,7 @@ use CodeIgniter\HTTP\ResponseInterface;
use DateTime;
use DatePeriod;
use DateInterval;
use Directory;
class StockController extends BaseController
{
@ -662,7 +663,13 @@ class StockController extends BaseController
$clientGivenName = $file->getClientName(); // Original filename
$newName = $file->getRandomName();
if ($file->move(WRITEPATH . 'uploads/batchcard', $newName)) {
$path = WRITEPATH . 'uploads' . DIRECTORY_SEPARATOR . 'batchcard';
if (!is_dir($path)) {
mkdir($path, 0777, true);
}
if ($file->move($path, $newName)) {
// Insert file details into the database
$db = \Config\Database::connect();
$builder = $db->table('t_batchcard_files');
@ -735,8 +742,13 @@ class StockController extends BaseController
$clientGivenName = $file->getClientName(); // User-given filename
$newName = $file->getRandomName(); // Randomized unique filename
// Move the new file to storage
if ($file->move(WRITEPATH . 'uploads/batchcard', $newName)) {
$path = WRITEPATH . 'uploads' . DIRECTORY_SEPARATOR . 'batchcard';
if (!is_dir($path)) {
mkdir($path, 0777, true);
}
if ($file->move($path, $newName)) {
// Insert new file record into the database
$data = [
'client_file_name' => $clientGivenName,
@ -817,7 +829,12 @@ class StockController extends BaseController
$fileRecord = $builder->select('filename')->where('id', $batchId)->get()->getRow();
if ($fileRecord) {
$filePath = WRITEPATH . 'uploads/batchcard/' . $fileRecord->filename;
$path = WRITEPATH . 'uploads' . DIRECTORY_SEPARATOR . 'batchcard';
if (!is_dir($path)) {
mkdir($path, 0777, true);
}
$filePath = $path . DIRECTORY_SEPARATOR . $fileRecord->filename;
// Step 2: Delete the file from storage
if (file_exists($filePath)) {
@ -856,8 +873,11 @@ class StockController extends BaseController
public function downloadBatchcardZip()
{
$coatingId = $this->request->getGet('coating_id');
$date = $this->request->getGet('date');
$batchCardFiles = $this->getBatchCardFiles($coatingId); // Fetch files from DB
if (empty($batchCardFiles)) {
@ -865,16 +885,34 @@ class StockController extends BaseController
}
$zipFileName = 'batchcard_files_' . $date . '.zip';
$zipFilePath = WRITEPATH . 'uploads/batchcard' . $zipFileName; // CI4 WRITEPATH safe directory
$zipPath = WRITEPATH . 'uploads' . DIRECTORY_SEPARATOR . 'batchcard';
if (!is_dir($zipPath))
{
mkdir($zipPath, 0777, true);
}
$zipFilePath = $zipPath . DIRECTORY_SEPARATOR . $zipFileName; // CI4 WRITEPATH safe directory
$zip = new \ZipArchive();
if ($zip->open($zipFilePath, \ZipArchive::CREATE | \ZipArchive::OVERWRITE) === true) {
foreach ($batchCardFiles as $file) {
$originalFilePath = WRITEPATH . 'uploads/batchcard/' . $file['filename']; // Actual stored file
$originalFilePath = $zipPath . DIRECTORY_SEPARATOR . $file['filename']; // Actual stored file
$clientFileName = $file['client_file_name'] ?? $file['filename']; // Use client name if available
if (file_exists($originalFilePath)) {
$zip->addFile($originalFilePath, $clientFileName); // Rename inside ZIP
}
}
$zip->close();

View File

@ -153,18 +153,18 @@ class Requistion_model extends Model
return $query->getResultArray();
}
function EditMaterialCode($ReqNo,$ReqType)
{
$subQuery ='SELECT Mat.MaterialCode,Mat.MaterialName,Mat.UOM
from t_materialmaster Mat where Mat.MaterialCode not in (select Req.MaterialCode from t_requestion_details Req
join t_requestion_master mast on Req.ReqNo = mast.ReqNo where mast.ReqNo=? and mast.ReqType=?
) and Mat.MaterialType=?';
$query = $this->db->query($subQuery, [$ReqNo,$ReqType,$ReqType]);
// This function also called in store req. also $reqType not removed.....
function EditMaterialCode($ReqNo, $ReqType = NULL){
$subQuery = 'SELECT Mat.MaterialCode, Mat.MaterialName, Mat.UOM FROM t_materialmaster Mat
WHERE Mat.MaterialCode NOT IN (
SELECT Req.MaterialCode FROM t_requestion_details Req
JOIN t_requestion_master mast ON Req.ReqNo = mast.ReqNo
WHERE mast.ReqNo = ?' . ($ReqType ? ' AND mast.ReqType = ?' : '') .')'
. ($ReqType ? ' AND Mat.MaterialType = ?' : '');
$params = $ReqType ? [$ReqNo, $ReqType, $ReqType] : [$ReqNo];
$query = $this->db->query($subQuery, $params);
return $query->getResult();
}
@ -583,6 +583,17 @@ class Requistion_model extends Model
return $query->getResult();
}
function getCategoryName($materialCode){
$subQuery ='SELECT MM.MaterialCode,MM.MaterialName,MM.MaterialType,MM.Category,MM.IsActive,CD.ConfigValue
from t_materialmaster as MM
left join t_configdetails as CD on CD.Key = MM.Category
where MM.MaterialCode = '.$materialCode;
$categoryName = $this->db->query($subQuery)->getRow()->ConfigValue;
return $categoryName;
}
}

View File

@ -1251,8 +1251,8 @@ if (!empty($getlogpodtl)) {
<th style="text-align:left !important; white-space: nowrap !important;">Item Code</th>
<th style="white-space: nowrap !important;">Item Description</th>
<th style="white-space: nowrap !important;">Line Item Specs</th>
<th style="white-space: nowrap !important;">UOM</th>
<th style="text-align: left; white-space: nowrap !important;">Quantity</th>
<th style="white-space: nowrap !important;">UOM</th>
<th style="text-align: right; white-space: nowrap !important;">Rate <?php echo "($INRSYM)" ?></th>
<th style="text-align: right; white-space: nowrap !important;">Basic Amount <?php echo "($INRSYM)" ?></th>
<th style="text-align: right; white-space: nowrap !important;">Tax Amount <?php echo "($INRSYM)" ?></th>
@ -1607,28 +1607,41 @@ if (!empty($getlogpodtl)) {
</tbody>
</table>
</div>
</div> <?php } else {} ?> -->
</div>--> <?php } else {} ?>
<div class="form-group col-md-12 px-4" align="left">
<label>Select Purchase Order File</label>
<br>
<div class="form-row">
<div class="form-group col-md-12 px-4">
<label>Select Purchase Order File</label><br>
<input type="file" name="POFile" id="POFile">
</div>
</div>
<div class="form-group col-md-12 px-4" id="deletePreviousPurchaseOrderFileDiv" align="left">
<?php if ($PrePOFile) { ?>
<label><a title="previously uploaded PO File" href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>"><span>previously uploaded - </span><small><?= $PrePOFile; ?></small></a></label>
<?php if (!empty($PrePOFile)) {
$PrePOFilePath = FCPATH . 'public/uploads/POfiles/' . $PrePOFile;
if (file_exists($PrePOFilePath)) { ?>
<div class="form-row">
<div class="form-group col-md-12" id="deletePreviousPurchaseOrderFileDiv" align="left">
<br />
<label><a title="previously uploaded PO File"
href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>">
<span>previously uploaded purchase order file- </span>
<small><?= $PrePOFile; ?></small></a></label>
&nbsp;&nbsp;&nbsp;&nbsp;
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile">Delete</button>
<?php } ?>
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" />
<br>
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
</div>
</div>
<?php } ?>
<?php } ?>
<!-- ends here -->
<div class="form-group col-md-12 px-4">

View File

@ -37,7 +37,7 @@
<div class="col-md-3">
<div class="form-group">
<span for="EmpID">Employee ID</span>
<label for="EmpID">Employee ID</label>
<font color="Red">*</font>
<div class="form-group">
@ -51,8 +51,7 @@
}
}
$js = array('id' => 'emp');
echo form_dropdown('EmpID', $Employee, set_value('EmpID'), 'class="form-control"', $js);
echo form_dropdown('EmpID', $Employee, set_value('EmpID'), 'class="form-control"', 'id="EmpID"', 'required="true"');
?>
</div>
@ -62,7 +61,7 @@
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Pay_Data_ID">Loan Amount</span>
<label for="Pay_Data_ID">Loan Amount</label>
<input type="text" class="form-control num" id="Loan_Amount"
name="Loan_Amount" value="0.00" pattern="([0-9]{1,7}([.][0-9]{1,2})?)"
title="Minimum 4 digit,Maximum 6 Digit" onchange="duecalculation();">
@ -73,7 +72,7 @@
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">No Of Due(s)</span>
<label for="Basic_Pay">No Of Due(s)</label>
<input type="text" value="0" class="form-control requried num"
id="no_of_due" name="no_of_due" value="" pattern="[0-9]{1,2}"
title="Minimum 1 digit,Maximum 2 Digit" onchange="duecalculation();">
@ -84,7 +83,7 @@
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Monthly Due</span>
<label for="Basic_Pay">Monthly Due</label>
<input type="text" value="0.00" class="form-control num" id="monthly_due"
name="monthly_due" value="" pattern="([0-9]{1,7}([.][0-9]{1,2})?)"
title="Minimum 1 digit,Maximum 6 Digit" >
@ -100,7 +99,7 @@
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="EmpID">Loan Issue(d) Date</span>
<label for="loan_issued_date">Loan Issue(d) Date</label>
<input
type="text"
name="loan_issued_date"
@ -115,7 +114,7 @@
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Due Started</span>
<label for="Basic_Pay">Due Started</label>
<input
type="text"
class="form-control requried"
@ -129,13 +128,13 @@
</div>
<!-- File -->
<h4 class="header-title">Loan Documents</h4>
<h4 class="header-title mt-2 mb-2">Loan Documents</h4>
<!-- Text input-->
<div class="row">
<div class="form-group" >
<div class="col-md-6">
<span class="col-form-label" for="request_letter">Request letter</span>
<label class="col-form-label" for="request_letter">Request letter</label>
<input style="margin-top: 5px;" type="file" size="20" accept=".docx,.pdf,.doc,.jpg,.png" id="request_letter" name="request_letter" />
</div>
@ -145,7 +144,7 @@
<div class="form-group" >
<div class=" col-md-6">
<span class="col-form-label" for="payment_statement">Payment Receipt</span>
<label class="col-form-label" for="payment_statement">Payment Receipt</label>
<input style="margin-top: 5px;" type="file" size="20" accept=".docx,.pdf,.doc,.jpg,.png" id="payment_statement" name="payment_statement" />
</div>
@ -159,8 +158,8 @@
</div>
</div>
<div class="col-md-12 text-right">
<input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" />
<input type="submit" onmouseover="finalCheck();" value="Submit" class="btn btn-success">
<input type="reset" id="reset" class="btn btn-secondary" style="margin-right: 15px;width: 80px;" value="Reset" />
<input type="submit" onclick="return finalCheck();" value="Submit" class="btn btn-success">
</div>
</div>
</form>
@ -212,7 +211,7 @@
<!--content-wrapper closed-->
<script src="<?php echo base_url(); ?>public/assets/js/addUser.js" type="text/javascript"></script>
<!-- <script src="<?php echo base_url(); ?>public/assets/js/addUser.js" type="text/javascript"></script> -->
<script>
@ -295,14 +294,28 @@
}
function finalCheck() {
var loanamount = document.getElementById('Loan_Amount').value;
if (loanamount != "" && loanamount != 0.00) {
var idate = document.getElementById('loan_issued_date').value;
var due = document.getElementById('monthly_due').value;
var dsdate = document.getElementById('due_started').value;
if (idate == "" || due == "" || due == 0.00 || dsdate == "") {
var loanamount = $('#Loan_Amount').val();
var emp = $("select[name=EmpID]").val();
if (loanamount !== "" && loanamount != 0.00) {
var idate = $('#loan_issued_date').val();
var due = $('#monthly_due').val();
var dsdate = $('#due_started').val();
if (idate === "" || due === "" || due == 0.00 || dsdate === "") {
console.log(idate);
alert("Enter All Loan Information Correctly...!");
return false;
}
}
if (emp === "0" || emp === "-1") {
alert('Please select the Employee');
return false;
}
return true;
}
</script>

View File

@ -95,6 +95,61 @@ if (!empty($INRSYMBOL)) {
width: 100% ! important;
}
</style>
<style>
.edit-container {
display: inline-flex;
align-items: center;
gap: 10px;
}
.edit-input-field {
padding: 2px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
width: 150px;
}
.edit-input-field:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.save-btn,
.cancel-btn {
border: none;
background: none;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border-radius: 50%;
transition: background-color 0.3s ease;
}
.save-btn {
color: #28a745;
background-color: #e8f5e9;
}
.save-btn:hover {
background-color: #c3e6cb;
}
.cancel-btn {
color: #dc3545;
background-color: #f8d7da;
}
.cancel-btn:hover {
background-color: #f5c6cb;
}
</style>
<script src="<?php echo base_url() ?>public/assets/lightswitch/lightswitch/lib/jquery.tabletojson.js"></script>
<script src="<?php echo base_url() ?>public/assets/lightswitch/lightswitch/lib/jquery.tabletojson.min.js"></script>
<script src="<?php echo base_url() ?>public/assets/tinymce/js/tinymce/tinymce.min.js"></script>
@ -150,6 +205,50 @@ if (!empty($INRSYMBOL)) {
toolbar: false
});
</script>
<script>
$(document).ready(function() {
$(document).on('click', '.editable-field', function(e) {
e.preventDefault();
const $link = $(this);
const value = $link.text().trim();
// Hide the <a> tag and show the edit container
$link.hide();
const $editContainer = $link.siblings('.edit-container');
$editContainer.find('.edit-input-field').val(value);
$editContainer.show();
});
// Handle click on the tick (save) button
$(document).on('click', '.save-btn', function(e) {
e.preventDefault();
const $btn = $(this);
const $editContainer = $btn.closest('.edit-container');
const $input = $editContainer.find('.edit-input-field');
const value = $input.val().trim();
const $link = $editContainer.siblings('.editable-field');
const LineItemNoteForAuditor = $link.data('notes');
const id = $link.data('id');
var theForm = $(".CreatePO");
$("#LineItemNoteForAuditor" + id).val(value); // to update the hidden fields
$link.text(value).show(); // to update table cell
$editContainer.hide();
});
// Handle click on the close (cancel) button
$(document).on('click', '.cancel-btn', function(e) {
e.preventDefault();
const $btn = $(this);
const $editContainer = $btn.closest('.edit-container');
const $link = $editContainer.siblings('.editable-field');
// Hide the edit container and show the <a> tag
$editContainer.hide();
$link.show();
});
});
</script>
<script type="text/html" id="ServiceList">
<tr id="<%=index%>">
<td align="left"><%=index%></td>
@ -2829,6 +2928,7 @@ if (!empty($INRSYMBOL)) {
<th style="white-space: nowrap !important; text-align:center !important">Requisition No</th>
<th style="white-space: nowrap !important;">Item Code</th>
<th style="white-space: nowrap !important;">Item Description</th>
<th style="white-space: nowrap !important;">Line Item Specs</th>
<th style="white-space: nowrap !important;" class="text-right">Quantity</th>
<th style="white-space: nowrap !important;">UOM</th>
<th style="white-space: nowrap !important;" class="text-right">Rate<?php echo "($INRSYM)" ?></th>
@ -6049,6 +6149,14 @@ if (!empty($INRSYMBOL)) {
<td style="text-align:center !important">${Reqnumber}</td>
<td>${materialCode}</td>
<td>${rshorten}</td>
<td><a href="#" class="editable-field"
data-id="${temp}"
data-notes="-">-</a>
<div class="edit-container" style="display:none;">
<input type="text" class="edit-input-field" />
<button class="save-btn"></button>
<button class="cancel-btn"></button>
</div></td>
<td align="right">${quantity}</td>
<td>${uom}</td>
<td align="right">${itemRate}</td>
@ -6107,6 +6215,8 @@ if (!empty($INRSYMBOL)) {
addHidden(theForm, "RevenueAfterSgst" + temp, AfterSgst);
addHidden(theForm, "RevenueIgst" + temp, Igst);
addHidden(theForm, "RevenueAfterIgst" + temp, AfterIgst);
addHidden(theForm, "LineItemNoteForAuditor" + temp, AfterIgst);
$('#txtRowCount1').val(temp);
$('#hiddenRevenueuserid').val(temp);
@ -6744,6 +6854,14 @@ if (!empty($INRSYMBOL)) {
<td style="text-align:center !important">${Reqnumber}</td>
<td>${materialCode}</td>
<td>${sshorten}</td>
<td><a href="#" class="editable-field"
data-id="${temp}"
data-notes="-">-</a>
<div class="edit-container" style="display:none;">
<input type="text" class="edit-input-field" />
<button class="save-btn"></button>
<button class="cancel-btn"></button>
</div></td>
<td align="right">${quantity}</td>
<td>${uom}</td>
<td align="right">${itemRate}</td>

View File

@ -20,7 +20,8 @@
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.save-btn, .cancel-btn {
.save-btn,
.cancel-btn {
border: none;
background: none;
cursor: pointer;
@ -174,12 +175,7 @@ if (!empty($AvlBudAmt)) {
$AvlAmount = number_format($AvlCapitalBudAmt, 2, '.', '');
}
// if(!empty($AvlimportBudAmt))
// {
// $AvlAmount = $AvlimportBudAmt;
// }
// if(!empty($AvlimportBudAmt)){ $AvlAmount = $AvlimportBudAmt; }
@ -398,7 +394,9 @@ if (!empty($INRSYMBOL)) {
alert('Please Select Budget Type');
$('#BudgetType').focus();
return false;
} else { return true; }
} else {
return true;
}
}
if (capitalType == 'Domestic') {
if ($('#drpSupplier').val() == "0") {
@ -437,13 +435,10 @@ if (!empty($INRSYMBOL)) {
alert('Please Select Budget Type');
$('#BudgetType').focus();
return false;
} else { return true; }
} else {
return true;
}
}
}
</script>
<div class="content-page">
@ -456,9 +451,9 @@ if (!empty($INRSYMBOL)) {
<div class="page-title-box page-title-box-alt">
<h4><?= "Capital Purchase Order"; ?></h4>
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-secondary" id="back" value="Back">Back</a>
</div>
</div>
</div>
</div><!-- page-title-box -->
</div> <!-- col-12 -->
</div><!-- row -->
<!-- end page title -->
<!-- Form row -->
<div class="row">
@ -469,9 +464,6 @@ if (!empty($INRSYMBOL)) {
$attributes = array('class' => 'form-label-left CapitalPO ', 'name' => 'CapitalPO', 'id' => 'ImportPO', 'enctype' => 'multipart/form-data');
echo form_open(base_url() . '/purchaseorder/addPO/', $attributes); ?>
<div class="form-row">
<div class="form-group col-md-3">
<label>Requistion No</label>
@ -488,7 +480,7 @@ if (!empty($INRSYMBOL)) {
}
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"');
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Purchase Order Type</label>
<div>
@ -498,7 +490,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Select Supplier<span class="text-danger">*</span></label>
<?php
@ -513,7 +505,7 @@ if (!empty($INRSYMBOL)) {
echo form_dropdown('drpSupplier', $options, set_value('drpSupplier'), 'id="drpSupplier" required="true" class="form-control select2"');
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Supplier Address</label>
<div>
@ -522,9 +514,8 @@ if (!empty($INRSYMBOL)) {
echo Form_textarea($data);
?>
</div>
</div>
</div>
</div><!-- form-group col-md-3 -->
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-3" id="currencyOpt">
@ -544,7 +535,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<b><u>Select Delivery By<span class="text-danger">*</span></u></b> <br />
<div style="display:inline-flex;">
@ -561,7 +552,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3" id="Schedulediv">
<label>Schedule By <span class="text-danger">*</span></label>
@ -570,7 +561,7 @@ if (!empty($INRSYMBOL)) {
echo form_textarea($data);
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3" id="Deliverydtdiv" style="display:none;">
<label>Dispatch Instruction<span class="text-danger">*</span></label>
@ -582,7 +573,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3" id="deliverydateby" style="display:none;">
<label>Delivery Date<span class="text-danger">*</span></label>
<div>
@ -592,7 +583,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Delivery Address</label>
<div>
@ -601,13 +592,13 @@ if (!empty($INRSYMBOL)) {
echo Form_textarea($data);
?>
</div>
</div>
</div>
</div><!-- form-group col-md-3 -->
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-3" id="FromOnlineRate">
Check Today's Foreign Exchange value <a href="http://www.xe.com/" target="_blank"><u>(Click here)</u></a>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3" id="hideExchangeRateOn">
<label>Exchange Rate On</label>
<div>
@ -617,7 +608,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3" id="hideExchangeRate">
<label id="CurrencySymbol">Exchange Rate</label><span class="text-danger">*</span>
<div>
@ -627,7 +618,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3" id="PlaceOforigindiv">
<label>Place of Origin<span class="text-danger">*</span></label>
<div>
@ -638,8 +629,8 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div>
</div><!-- form-group col-md-3 -->
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-3">
@ -651,7 +642,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Mode Of Shipment</label>
<div>
@ -661,7 +652,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Contact Reference</label>
<div>
@ -671,7 +662,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Supplier's Offer No</label>
<div>
@ -681,8 +672,8 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div>
</div><!-- form-group col-md-3 -->
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-3">
@ -694,7 +685,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Capital Type Options<span class="text-danger">*</span></label>
<div>
@ -713,7 +704,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label for="payablefrom">Payable Terms<span class="text-danger">*</span> </label>
<?php
@ -732,7 +723,7 @@ if (!empty($INRSYMBOL)) {
echo form_dropdown('PaymentMethod', $options1, set_value('PaymentMethod'), 'id="PaymentMethod" class="form-control" required="true"');
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3" id="otheroptiondiv" style="display:none;">
<label>Description of Payable Terms<span class="text-danger">*</span></label>
<div>
@ -741,12 +732,10 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div>
</div><!-- form-group col-md-3 -->
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-3">
<label>Insurance Options<span class="text-danger">*</span></label>
<div>
@ -761,7 +750,7 @@ if (!empty($INRSYMBOL)) {
echo form_dropdown('insuranceStatus', $optionsInsurance, set_value('insuranceStatus'), 'id="insuranceStatus" required="true" class="form-control select2"');
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3" id="insuranceTxtDiv" style="display:block;">
<label>Insurance No / Insurance Details <span class="text-danger">*</span></label>
<div>
@ -770,7 +759,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label for="BudgetType">Budget Type<span class="text-danger">*</span></label>
<?php
@ -780,20 +769,20 @@ if (!empty($INRSYMBOL)) {
echo form_dropdown('BudgetType', $optionsnew, set_value('BudgetType'), 'id="BudgetType" required="true" class="form-control select2"');
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
</div><!-- form-row -->
<div>
<!-- <a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-success" id="abcd" >Select Line Item</button> </a> -->
<div class="form-row">
<div class="form-group col-md-12 text-right">
<!-- <input type="checkbox" id="IsOpenOrder" name="IsOpenOrder" value="1"> IS THIS OPEN ORDER FORMAT -->
<a data-toggle="modal" class="btn btn-success" data-dismiss="modal" onclick="openModal();">Add Line Item </a>
</div>
</div>
</div><!-- form-group col-md-12 -->
</div><!-- form-row add line item -->
<br>
</div>
<div class="form-row">
<div class="table-responsive" style="padding-bottom: 30px;">
<table id="serviceTax" class="table nowrap table-bordered table-hover mb-0" style="font-size:12px;">
@ -819,7 +808,7 @@ if (!empty($INRSYMBOL)) {
</tbody>
</table>
</div>
</div>
</div><!-- form-row table -->
<div class="form-row" id="DOMdiv">
<div class="form-group col-md-3">
@ -829,7 +818,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'CapitalBasicOrder', 'value' => set_value('CapitalBasicOrder'), 'id' => 'CapitalBasicOrder', 'class' => 'form-control num', 'readonly' => 'true',);
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Total Discount Amount <?php echo "($INR)" ?> </label>
@ -839,28 +828,28 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Total CGST <?php echo "($INR)" ?></label>
<?php
$data = array('name' => 'txtTotCgst', 'value' => set_value('txtTotCgst'), 'id' => 'txtTotCgst', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Total SGST <?php echo "($INR)" ?> </label>
<?php
$data = array('name' => 'txtTotSgst', 'value' => set_value('txtTotSgst'), 'id' => 'txtTotSgst', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Total IGST <?php echo "($INR)" ?> </label>
<?php
$data = array('name' => 'txtTotIgst', 'value' => set_value('txtTotIgst'), 'id' => 'txtTotIgst', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Total Other Allowances <?php echo "($INR)" ?> </label>
<?php
@ -868,7 +857,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-3 -->
<div class="form-group col-md-3">
<label>Total Freight <?php echo "($INR)" ?> </label>
<?php
@ -876,8 +865,8 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group col-md-3 -->
</div><!-- form-row dom -->
<div class="form-row" id="HideImportTaxTotal">
@ -888,7 +877,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txttotallanding', 'value' => set_value('txttotallanding'), 'id' => 'txttotallanding', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
<div class="form-group col-md-4">
<label>Total Assessable Value <?php echo "($INR)" ?></label>
@ -897,7 +886,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txttotalAssessable', 'value' => set_value('txttotalAssessable'), 'id' => 'txttotalAssessable', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
<div class="form-group col-md-4">
<label>Total Custom Duty Charge <?php echo "($INR)" ?> </label>
@ -906,7 +895,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txttotalcustom', 'value' => set_value('txttotalcustom'), 'id' => 'txttotalcustom', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
<div class="form-group col-md-4">
<label>Total Subtotal Charge <?php echo "($INR)" ?></label>
@ -915,7 +904,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txttotalSubtotal', 'value' => set_value('txttotalSubtotal'), 'id' => 'txttotalSubtotal', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
<div class="form-group col-md-4">
<label>Total IGST <?php echo "($INR)" ?></label>
@ -924,7 +913,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txttotalIgst', 'value' => set_value('txttotalIgst'), 'id' => 'txttotalIgst', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
<div class="form-group col-md-4">
<label>Total Custom ED_cess Charge <?php echo "($INR)" ?> </label>
@ -933,7 +922,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txttotalcustomED', 'value' => set_value('txttotalcustomED'), 'id' => 'txttotalcustomED', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
<div class="form-group col-md-4">
<label>Total Custom S & H cess Charge <?php echo "($INR)" ?> </label>
@ -942,7 +931,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txttotalcustomSH', 'value' => set_value('txttotalcustomSH'), 'id' => 'txttotalcustomSH', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
<div class="form-group col-md-4">
<label>Total Gross duty payable Charge <?php echo "($INR)" ?> </label>
@ -951,7 +940,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txttotalgrossduty', 'value' => set_value('txttotalgrossduty'), 'id' => 'txttotalgrossduty', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
<div class="form-group col-md-4">
<label>Total Freight Amount <?php echo "($INR)" ?></label>
@ -961,9 +950,9 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- form-group col-md-4 -->
</div>
</div><!-- form-row international -->
<div class="form-row">
<div class="form-group col-md-3">
@ -974,7 +963,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row CapitalToatlOrder -->
<div class="form-row">
<div class="form-group col-md-12">
@ -984,7 +973,7 @@ if (!empty($INRSYMBOL)) {
echo form_textarea($data);
?>
</div>
</div>
</div><!-- form-row Instructions -->
<br>
@ -993,7 +982,7 @@ if (!empty($INRSYMBOL)) {
<label>Select Purchase Order File</label><br>
<input type="file" name="POFile" id="POFile"><br>
</div>
</div>
</div><!-- form-row PO file -->
<div align="right" style="padding:1% 0%;">
@ -1007,19 +996,22 @@ if (!empty($INRSYMBOL)) {
<!--<input type="hidden" name="CapitalToatlOrder" id="CapitalToatlOrder" /> -->
<a class="btn btn-success Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Reset</span></a>
<!-- <a class="btn btn-secondary Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Cancel</span></a> -->
<a class="btn btn-secondary Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
</div>
</div><!-- hiden and button -->
<br />
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
</div><!-- row -->
</div> <!-- container -->
</div> <!-- content -->
</div>
</div><!-- content-page -->
<!-- modal 1 add packing cal model -->
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-lg">
@ -1048,6 +1040,8 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
</div><!-- /.modal -->
<!-- modal 2 edit packing cal model -->
<div id="editpackagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-lg">
@ -1076,6 +1070,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div><!-- /.modal -->
<!-- modal 3 add capitial -->
<div align="center">
<div id="CAPITAL" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none; overflow-y:scroll !important">
@ -1687,7 +1682,7 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>&nbsp;&nbsp;
<a class="btn btn-secondary" data-dismiss="modal" value="Cancel">Cancel</a>&nbsp;&nbsp;
<a class="btn btn-success font AddCapital" ID="AddCapital"></i>&nbsp;&nbsp;<span class="bold">Add Capital</span></a>
</div>
</form>
@ -1696,6 +1691,7 @@ if (!empty($INRSYMBOL)) {
</div><!-- /.modal -->
</div>
<!-- modal 4 Edit capitial -->
<div align="center">
<div id="EDITCAPITAL" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
@ -1705,12 +1701,11 @@ if (!empty($INRSYMBOL)) {
<h4 class="modal-title">Edit Capital Purchase Order Item</h4>
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">×</button>
</div>
</div><!-- modal-header -->
<form>
<div class="modal-body p-4" align="left">
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-3">
<label>Req No<span class="text-danger">*</span></label>
<div>
@ -1730,7 +1725,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label>Department Name</label>
<div>
@ -1739,9 +1734,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label>Cost Center Code</label>
<div>
@ -1752,15 +1745,13 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3"> <label>Avail Bud Amount</label>
<div> <?php $data = array('name' => 'EditCapitalbudAmt', 'value' => set_value('EditCapitalbudAmt'), 'id' => 'EditCapitalbudAmt', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data); ?> </div>
</div>
echo form_input($data); ?>
</div>
</div><!-- form-col-3 -->
</div><!-- form-row-1 -->
<div class="form-row">
<div class="form-group col-md-9"></div>
@ -1773,9 +1764,9 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-col-3 -->
</div>
</div><!-- form-row-2 -->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-3">
@ -1786,7 +1777,7 @@ if (!empty($INRSYMBOL)) {
echo form_dropdown('MaterialCode', $options, set_value('EditMaterialCode'), 'id="EditMaterialCode" class="form-control select2"');
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3" style="padding-right:0px;">
<label>Item Name</label>
<div>
@ -1795,7 +1786,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label>UOM</label>
<div>
@ -1804,7 +1795,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label>Quantity<span class="text-danger">*</span></label>
<div>
@ -1813,10 +1804,8 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div>
</div><!-- form-col-3 -->
</div><!-- form-row-3 -->
<div class="form-row">
<div class="form-group col-md-3"></div>
@ -1828,12 +1817,12 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label>Per</label> <?php
$data = array('name' => 'EditPer', 'value' => set_value('EditPer'), 'id' => 'EditPer', 'class' => 'form-control');
echo form_input($data); ?>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label id="EditTotalAmount">Basic value <?php echo "($INR)" ?></label>
<div>
@ -1842,17 +1831,14 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div>
</div><!-- form-col-3 -->
</div><!-- form-row-4 -->
<div id="EDITCAPdiv">
<div class="form-row"> <!--<div class="form-group col-md-4">
</div>-->
<div class="form-group col-md-3">
</div>
<div class="form-row">
<!--<div class="form-group col-md-4"></div>-->
<div class="form-group col-md-3"></div>
<div class="form-group col-md-3">
<label>Discount Type </label>
<div>
@ -1873,7 +1859,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label>Discount Rate </label>
<div>
@ -1882,7 +1868,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label>Discounted Amt <?php echo "($INR)" ?> </label>
<div>
@ -1891,8 +1877,8 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div>
</div><!-- form-col-3 -->
</div><!-- form-row-5 -->
<div class="form-row">
@ -1909,7 +1895,7 @@ if (!empty($INRSYMBOL)) {
}
echo form_dropdown('drpFreighteditloc', $options, set_value('drpFreighteditloc'), 'id="drpFreighteditloc" class="form-control "');
?>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<label>Freight Rate </label>
@ -1917,7 +1903,7 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txtFreightlocedit', 'value' => set_value('txtFreightlocedit'), 'id' => 'txtFreightlocedit', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightloceditper();');
echo form_input($data);
?>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3" style="padding-left: -2px;">
<label>Freight Amt <?php echo "($INR)"; ?></label>
@ -1925,9 +1911,9 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'txtAfterFreightlocedit', 'value' => set_value('txtAfterFreightlocedit'), 'id' => 'txtAfterFreightlocedit', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- form-col-3 -->
</div>
</div><!-- form-row-6 -->
<div class="form-row" id="TripsValuelocedit" style="display:none;">
<div class="form-group col-md-9"></div>
@ -1937,15 +1923,14 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'NOOfTripslocedit', 'value' => set_value('NOOfTripslocedit'), 'id' => 'NOOfTripslocedit', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-col-3 -->
</div><!-- form-row-7 -->
<div class="form-row">
<div class="form-group col-md-6" align="right">
<label> CGST In % </label>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<div>
@ -1956,7 +1941,8 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<div>
@ -1966,14 +1952,15 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
</div><!-- form-row-8 -->
</div>
<div class="form-row">
<div class="form-group col-md-6" align="right">
<label> SGST In % </label>
</div>
</div><!-- form-col-6 -->
<div class="form-group col-md-3">
<div>
@ -1984,7 +1971,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<div>
@ -1994,14 +1981,15 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
</div><!-- form-row-9 -->
</div>
<div class="form-row">
<div class="form-group col-md-6" align="right">
<label> IGST In % </label>
</div>
</div><!-- form-col-6 -->
<div class="form-group col-md-3">
<div>
@ -2012,7 +2000,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
<div class="form-group col-md-3">
<div>
@ -2022,9 +2010,10 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- form-col-3 -->
</div><!-- form-row-10 -->
</div>
<div class="form-row">
<div class="col-md-9 col-md-offset-4" align="right">
<label>Other Allowances <?php echo "($INR)" ?></label>
@ -2048,9 +2037,9 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div><!-- form-row-11 -->
</div>
</div><!-- EDITCAPdiv -->
<div class="form-row" style="padding:1%;"></div>
<div class="form-row p-2" style="padding:0px;border:1px solid" id="EditModalImportTaxHide">
@ -2077,7 +2066,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
<label> Landing charge <?php echo "($INR)" ?> </label>
@ -2099,7 +2088,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
<label> Assessable Value (A)<?php echo "($INR)" ?> </label>
@ -2121,7 +2110,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
<label> Custom duty (B)<?php echo "($INR)" ?> </label>
@ -2143,10 +2132,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
<label> Custom ED_cess (C) </label>
@ -2168,7 +2154,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
<label> Custom S & H cess (D) </label>
@ -2190,14 +2176,14 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div>
</div><!-- form-row -->
</div><!-- form-group first 6-->
<div class="form-group col-md-6" style="padding:10px;">
<div class="form-row" style="text-align:left;">
<div class="form-group col-md-4">
<label> Subtotal (E) <?php echo "($INR) (A+B+C+D)" ?></label>
</div>
</div><!-- form-group -->
<div class="form-group col-md-4">
<div class="form-group" style="display: none;">
<?php
@ -2205,7 +2191,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- form-group -->
<div class="form-group col-md-4">
<div>
<?php
@ -2213,10 +2199,8 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div>
</div>
</div><!-- form-group -->
</div><!-- form-row -->
<div class="form-row" style="text-align:left;">
<div class="form-group col-md-4">
<!-- Additional Excise duty : (g) -->
@ -2240,8 +2224,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div><!-- form-row -->
<div class="form-row" style="text-align:left;">
<div class="form-group col-md-8">
<label> Total Duty (G)<?php echo "($INR) (B+C+D+F)" ?> </label>
@ -2255,8 +2238,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div><!-- form-row -->
<!--Start of Adding of Frieght model-->
<div class="form-row" style="padding:0px;">
@ -2299,7 +2281,6 @@ if (!empty($INRSYMBOL)) {
</div>
<!--End of Adding of freight in edit model -->
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
@ -2320,15 +2301,8 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div><!-- form-group second 6-->
</div><!-- EditModalImportTaxHide -->
<div class="form-row">
<div class="form-group col-md-6">
@ -2338,8 +2312,8 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- form-row 5 -->
</div>
<div class="form-row">
<div class="form-group col-md-6">
@ -2358,15 +2332,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div>
</div>
<br>
</div><!-- form-row 6 -->
<div class="form-row">
<div class="form-group col-md-12">
@ -2377,19 +2343,19 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'EditItemDescription', 'value' => set_value('EditItemDescription'), 'id' => 'EditItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
echo form_textarea($data); ?>
</div>
</div>
</div>
</div><!-- form-row 7 -->
</div><!-- modal-body -->
<div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin: 10px;">Cancel</a>
<a class="btn btn-secondary" data-dismiss="modal" value="Cancel" style="margin: 10px;">Cancel</a>
<a class="btn btn-success font EditCapital" ID="UpdateCapital">&nbsp;&nbsp;<span class="bold">Update Capital</span></a>
</div>
</div><!-- modal-footer -->
</form>
</div>
</div>
</div><!-- /.modal -->
</div>
<!-- modal 5 Domestical international Confirmation -->
<div class="modal fade" id="DomesticNOT" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->

View File

@ -553,7 +553,19 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
var column = $(this).data('column'); // Get the column name (diesel or shed)
var value = $(this).val(); // Get the updated value
let gobal_driver_id = urlParams.get("gobal_driver_id");
let gobal_date = urlParams.get("date");
let gobal_date = '';
if(gobal_date == ""){
let inputDate = urlParams.get("month_year");
let monthMap = {"Jan": "01", "Feb": "02", "Mar": "03", "Apr": "04","May": "05", "Jun": "06", "Jul": "07", "Aug": "08","Sep": "09", "Oct": "10", "Nov": "11", "Dec": "12"};
let [month, year] = inputDate.split('-');
gobal_date = `01-${monthMap[month]}-${year}`;
}else{
gobal_date = urlParams.get("date");
}
// Send data to the server using AJAX
$.ajax({

View File

@ -1544,7 +1544,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
<div class="form-row" style="padding:1% 0%;" id="HideImportTaxTotal" style="display:none;">
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total Frieght Amount <?php echo "($INR)" ?></label>
<?php
@ -1552,7 +1552,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total Landing Charge <?php echo "($INR)" ?></label>
<?php
@ -1561,7 +1561,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total Assessable Value <?php echo "($INR)" ?></label>
<?php
@ -1570,7 +1570,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total Custom Duty Charge <?php echo "($INR)" ?></label>
<?php
@ -1579,7 +1579,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total Custom ED_cess Charge <?php echo "($INR)" ?></label>
<?php
@ -1588,7 +1588,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total Custom S & H cess Charge <?php echo "($INR)" ?></label>
<?php
@ -1597,7 +1597,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total Subtotal Charge <?php echo "($INR)" ?></label>
<?php
@ -1607,7 +1607,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total IGST <?php echo "($INR)" ?></label>
<?php
@ -1618,7 +1618,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label>Total Gross duty payable Charge <?php echo "($INR)" ?></label>
<?php
@ -1650,7 +1650,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
</div> -->
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label id="lbl_international">Total Order Value <?php echo "($INR)" ?> </label>
<input type="hidden" name="preinterTotalorderValue"
value="<?php echo $totalCapitalOrder ?>">
@ -1667,7 +1667,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
<div class="form-row">
<div class="form-group col-md-12">
<label>Special Instructions </label> <?php
$data = array('name' => 'txtSpcialInstruction', 'value' => set_value('txtSpcialInstruction', $scopeofwork), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
$data = array('name' => 'txtSpcialInstruction', 'value' => set_value('txtSpcialInstruction', strip_tags($scopeofwork)), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
echo form_textarea($data);
?>
</div>

View File

@ -1592,12 +1592,12 @@ if (!empty($getlogpodtl)) {
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED) { ?>
<a class="btn btn-success Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<a class="btn btn-secondary Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<?php if ($PONOStatus == PO_DRAFT) { ?>
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<?php } ?>
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn btn-soft-primary waves-effect waves-light Save" ID="Submit" onclick="Save(4)">&nbsp;&nbsp;<span class="bold">Approve</span></a>
<a class="btn btn-soft-primary waves-effect waves-light Save" ID="Submit" onclick="Save(4)">&nbsp;&nbsp;<span class="bold">Approve</span></a>
<?php } else if($PONOStatus == PO_AMENDED){ ?>
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
<?php } else {

View File

@ -135,7 +135,7 @@ if (!empty($emppay)) {
<div class="row">
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title">Edit Loan Details</h4>
<h4 class="page-title">Edit Loan Details<?php echo $Empname ? " - ".$Empname." (".$EmpID.")" : "" ?></h4>
<a class="btn btn-secondary" href="<?php echo base_url(); ?>emppayListings"><span class="bold">Back</span></a>
</div>
</div>
@ -164,7 +164,7 @@ if (!empty($emppay)) {
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="EmpID">Employee ID</span>
<label for="EmpID">Employee ID</label>
<input type="text" class="form-control" readonly id="EmployeeID" name="EmpID" value="<?php echo $EmpID; ?>">
</div>
</div>
@ -174,25 +174,23 @@ if (!empty($emppay)) {
<div class="form-group">
<input type="hidden" name="loanid" value="<?php echo $loanid; ?>">
<span for="Pay_Data_ID">Loan Amount</span>
<label for="Pay_Data_ID">Loan Amount</label>
<input type="text" class="form-control num" id="Loan_Amount" name="Loan_Amount" value="<?php echo $Loan_Amount; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="duecalculation();">
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">No Of Due(s)</span>
<label for="Basic_Pay">No Of Due(s)</label>
<input type="text" class="form-control requried num" id="no_of_due" name="no_of_due" value="<?php echo $No_of_dues; ?>" pattern="[0-9]{1,2}" title="Minimum 1 digit,Maximum 2 Digit" onchange="duecalculation();">
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Monthly Due</span>
<label for="Basic_Pay">Monthly Due</label>
<input type="text" class="form-control requried num" id="monthly_due" name="monthly_due" value="<?php echo $Monthly_due; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" readonly>
</div>
</div>
@ -203,7 +201,7 @@ if (!empty($emppay)) {
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="EmpID">Loan Issue(d) Date</span>
<label for="EmpID">Loan Issue(d) Date</label>
<input type="text" class="form-control num" id="loan_issued_date" name="loan_issued_date" value="<?php echo $Loan_issued_date; ?>">
</div>
</div>
@ -212,7 +210,7 @@ if (!empty($emppay)) {
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Due Started</span>
<label for="Basic_Pay">Due Started</label>
<input type="text" class="form-control requried num" id="due_started" name="due_started" value="<?php echo $Due_start_date; ?>">
</div>
</div>
@ -221,20 +219,20 @@ if (!empty($emppay)) {
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Paid Amount</span>
<label for="Basic_Pay">Paid Amount</label>
<input type="text" class="form-control requried num" id="Paid_Amount" name="Paid_Amount" value="<?php echo $Paid_Amount; ?>" readonly>
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<span for="">Paid Due</span>
<label for="">Paid Due</label>
<input type="text" class="form-control requried num" id="paid_due" name="paid_due" value="<?php echo $Paid_Due; ?>" readonly>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<span for="">Remaining Due</span>
<label for="">Remaining Due</label>
<input type="text" class="form-control requried num" id="remaining_due" name="remaining_due" value="<?php echo $Remaining_Due; ?>" readonly>
</div>
</div>
@ -242,19 +240,21 @@ if (!empty($emppay)) {
</div>
<!-- File -->
<h4 class="header-title">Loan Documents</h4>
<h4 class="header-title mt-2 mb-2">Loan Documents</h4>
<!-- Text input-->
<div class="row">
<div class="form-group">
<div class="col-md-4">
<span class="col-form-label" for="request_letter">Request letter</span>
<input style="margin-top: 5px;" type="file" size="20" accept=".docx,.pdf,.doc,.jpg,.png" id="request_letter" name="request_letter" />
<div class="form-group">
<label class="d-block" for="request_letter">Request letter</label>
<input type="file" accept=".docx,.pdf,.doc,.jpg,.png" id="request_letter" name="request_letter" style="margin-top: 5px;" />
<input type="hidden" id="hidden_request_letter" name="hidden_request_letter" value="<?php echo $request_letter; ?>" />
</div>
</div>
<?php if ($request_letter) { ?>
<div class="form-group">
<div class="col-md-8">
<div class="form-group">
<br>
<u>
<a href="<?php echo base_url() . 'public/uploads/images/' . $request_letter ?>">
<span>Previously Uploaded Document - </span><small><?= $request_letter; ?></small>
@ -263,19 +263,21 @@ if (!empty($emppay)) {
</div>
</div>
<?php } ?>
</div>
</div> <!-- 1st row div closed here -->
<div class="row">
<div class="form-group">
<div class="col-md-4">
<span class="col-form-label" for="payment_statement">Payment Receipt</span>
<input style="margin-top: 5px;" type="file" size="20" accept=".docx,.pdf,.doc,.jpg,.png" id="payment_statement" name="payment_statement" />
<div class="form-group">
<label class="d-block" for="payment_statement">Payment Receipt</label>
<input type="file" accept=".docx,.pdf,.doc,.jpg,.png" id="payment_statement" name="payment_statement" style="margin-top: 5px;" />
<input type="hidden" id="hidden_payment_statement" name="hidden_payment_statement" value="<?php echo $payment_statement; ?>" />
</div>
</div>
<?php if ($payment_statement) { ?>
<div class="form-group">
<div class="col-md-8">
<div class="form-group">
<br>
<u>
<a href="<?php echo base_url() . 'public/uploads/images/' . $payment_statement ?>">
<span>Previously Uploaded Document - </span><small><?= $payment_statement; ?></small>
@ -284,8 +286,7 @@ if (!empty($emppay)) {
</div>
</div>
<?php } ?>
</div>
</div> <!-- 2nd row div closed here -->
@ -323,8 +324,9 @@ if (!empty($emppay)) {
</div>
</div>
<div class="col-md-12 text-right">
<input type="button" class="btn btn-success" value="Delete" id="deleteemp" style="background-color:#ee4d4d;color:white;margin-right:15px;width:80px;border:none;" />
<input type="submit" onmouseover="finalCheck();" value="Submit" class="btn btn-success">
<input type="button" class="btn btn-secondary" value="Delete" id="deleteemp" style="margin-right:15px;width:80px;border:none;" />
<input type="submit" onclick="return finalCheck();" value="Submit" class="btn btn-success">
<!-- <input type="submit" onmouseover="finalCheck();" value="Submit" class="btn btn-success"> -->
</div>
</div>
</form>
@ -464,24 +466,55 @@ if (!empty($emppay)) {
}
// function finalCheck() {
// var loanamount = document.getElementById('Loan_Amount').value;
// if (loanamount != "" && loanamount != 0.00) {
// var idate = document.getElementById('loan_issued_date').value;
// var due = document.getElementById('monthly_due').value;
// var dsdate = document.getElementById('due_started').value;
// if (idate == "" || due == "" || due == 0.00 || dsdate == "") {
// alert("Enter All Loan Information Correctly...!");
// return false;
// }
// }
// if ($('#Total_Salary').val() == '' || $('#HRA_Rate').val() == '' || $('#Allowances').val() == '' || $('#PF_Rate').val() == '' || $('#ESI_Rate').val() == '' || $('#Food_Allowances').val() == '' || $('#Incentives').val() == '') {
// alert("Please Enter All Information Correctly..!");
// return false;
// }
// }
function finalCheck() {
var loanamount = document.getElementById('Loan_Amount').value;
if (loanamount != "" && loanamount != 0.00) {
var idate = document.getElementById('loan_issued_date').value;
var due = document.getElementById('monthly_due').value;
var dsdate = document.getElementById('due_started').value;
if (idate == "" || due == "" || due == 0.00 || dsdate == "") {
var loanamount = $('#Loan_Amount').val();
var emp = $("select[name=EmpID]").val();
if (loanamount !== "" && loanamount != 0.00) {
var idate = $('#loan_issued_date').val();
var due = $('#monthly_due').val();
var dsdate = $('#due_started').val();
if (idate === "" || due === "" || due == 0.00 || dsdate === "") {
console.log(idate);
alert("Enter All Loan Information Correctly...!");
return false;
}
}
if (emp === "0" || emp === "-1") {
alert('Please select the Employee');
return false;
}
if ($('#Total_Salary').val() == '' || $('#HRA_Rate').val() == '' || $('#Allowances').val() == '' || $('#PF_Rate').val() == '' || $('#ESI_Rate').val() == '' || $('#Food_Allowances').val() == '' || $('#Incentives').val() == '') {
alert("Please Enter All Information Correctly..!");
return false;
}
return true;
}
$("#deleteemp").click(function() {

View File

@ -2918,8 +2918,7 @@ if (!empty($getlogpodtl)) {
<span>previously uploaded purchase order file- </span>
<small><?= $PrePOFile; ?></small></a></label>
&nbsp;&nbsp;&nbsp;&nbsp;
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile">Delete
</button>
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile">Delete</button>
<input type="hidden" id="PrePOFile" name="PrePOFile"
value="<?php echo $PrePOFile; ?>" /><br>
@ -2950,7 +2949,7 @@ if (!empty($getlogpodtl)) {
<input type="hidden" name="Budget" id="Budget" value="<?php echo $BudgetType; ?>" />
<div class="btn-container" style="text-align: right;">
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED) { ?>
<a class="btn btn-success Save" ID="Cancel"
<a class="btn btn-secondary Save" ID="Cancel"
href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span
class="bold">Cancel</span></a>
<?php if ($PONOStatus == PO_DRAFT) { ?>

View File

@ -1325,7 +1325,7 @@ foreach ($PaymentTerms as $TER) {
<label>Description Of Service </label><span class="text-danger">*</span>
<?php
$data = array('name' => 'amenddescofpo', 'value' => set_value('amenddescofpo', $DescriptionOfPo), 'id' => 'amenddescofpo', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
$data = array('name' => 'amenddescofpo', 'value' => set_value('amenddescofpo', strip_tags($DescriptionOfPo)), 'id' => 'amenddescofpo', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
echo form_textarea($data);
?>
@ -1341,7 +1341,7 @@ foreach ($PaymentTerms as $TER) {
<div class="form-group col-md-12">
<label>Scope Of Work</label>
<textarea name="ScopeofWork" id="ScopeofWork" class="form-control" rows="8" cols="40">
<?php echo set_value('ScopeofWork', $ServiceDescription); ?>
<?php echo set_value('ScopeofWork', strip_tags($ServiceDescription)); ?>
</textarea>
</div>

View File

@ -1300,26 +1300,35 @@ if (!empty($getlogpodtl)) {
<div class="form-row px-4">
<label>Select Purchase Order File</label>
<div class="form-group col-md-12" align="left">
<input type="file" class="" name="POFile" id="POFile">
</div>
</div>
<div class="form-row px-4">
<?php if (!empty($PrePOFile)) {
$PrePOFilePath = FCPATH . 'public/uploads/POfiles/' . $PrePOFile;
if (file_exists($PrePOFilePath)) { ?>
<div class="form-row">
<div class="form-group col-md-12" id="deletePreviousPurchaseOrderFileDiv" align="left">
<div>
<?php if ($PrePOFile) { ?>
<label><a title="previously uploaded PO File" href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>"><span>Previously Uploaded Purchase Order File- </span><small><?= $PrePOFile; ?></small></a></label>
<br />
<label><a title="previously uploaded PO File"
href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>">
<span>previously uploaded purchase order file- </span>
<small><?= $PrePOFile; ?></small></a></label>
&nbsp;&nbsp;&nbsp;&nbsp;
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile">Delete</button>
<?php } ?>
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" />
<input type="hidden" id="PrePOFile" name="PrePOFile"
value="<?php echo $PrePOFile; ?>" /><br>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
<div class="form-row px-4 ">
@ -1337,13 +1346,13 @@ if (!empty($getlogpodtl)) {
<input type="hidden" name="Budget" id="Budget" value="<?php echo $BudgetType; ?>" />
<a class="btn btn-success Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<a class="btn btn-secondary Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED) {
if ($PONOStatus == PO_DRAFT) { ?>
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-secondary Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<?php } ?>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn btn-soft-primary waves-effect waves-light Submit" ID="Submit" onclick="Save(4)">&nbsp;&nbsp;<span class="bold">Approve</span></a>
<a class="btn btn-soft-primary waves-effect waves-light Submit" ID="Submit" onclick="Save(4)">&nbsp;&nbsp;<span class="bold">Approve</span></a>
<?php } else if($PONOStatus == PO_AMENDED){ ?>
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
<?php } else { ?>

View File

@ -93,6 +93,7 @@ td {
text-align:center !important;
width:10%;
}
.hidden-column { display: none; }
</style>
<script type="text/javascript">
@ -209,6 +210,7 @@ td {
<th class="th th-PoQuantity">PoQuantity</th>
<th class="th th-status">Status</th>
<th class="th">Action</th>
<th class="hidden-column">Mategory Category</th>
</tr>
</thead>
<tbody id="tempAppend">
@ -234,6 +236,7 @@ td {
<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>
</td>
<td class="hidden-column"><?php echo $record->CategoryName; ?></td>
</tr>
<?php $RowCount = $index;
}
@ -403,14 +406,14 @@ td {
</div>
</div>
</div>
<!-- <div class="row">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="EditCategory" class="control-label">Category</label>
<input type ="text" id="EditCategory" readonly class="form-control">
</div>
</div>
</div> -->
</div>
<div class="row">
<div class="col-md-12" id="EditotherDescription">
<div class="form-group">
@ -831,6 +834,7 @@ td {
<span class="ri-delete-bin-7-fill"></span>
</a>
</td>
<td class="hidden-column">${categoryName}</td>
</tr>
`;
@ -929,6 +933,7 @@ td {
$('#EditDescription').val($cells.eq(2).text());
$('#EditUOM').val($cells.eq(3).text());
$('#EditQuantity').val($cells.eq(4).text());
$('#EditCategory').val($cells.eq(8).text());
$('#Edituserid').val(userid);
});
});

View File

@ -48,7 +48,7 @@
<td style="text-align: left;"><?php echo $record->EmpID ?>-<?php echo $record->FirstName; ?></td>
<td><?php echo $record->TotalSalary; ?></td>
<td><?php echo $record->Loan_Amount; ?></td>
<td><?php echo $record->Loan_Issued_Date; ?></td>
<td><?php echo get_date_time_dynamical_format('Y-m-d','d-m-Y',"$record->Loan_Issued_Date"); ?></td>
<td><?php echo $record->Monthly_Due; ?></td>
<td><?php echo $record->No_of_Dues; ?></td>
<td><?php echo $record->Paid_Due; ?></td>

View File

@ -78,7 +78,7 @@
</li>
</ol>
</div>
<a id="addExpense" class="btn btn-success" data-toggle="modal" href="#expenseModal">Add New Expense</a>
<a id="addExpense" class="btn btn-success" data-toggle="modal" data-target="#expenseModal" href="">Add New Expense</a>
</div>
</div>
</div>

View File

@ -998,7 +998,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
<!-- <a class="btn btn-success Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Reset</span></a> -->
<!-- <input type="reset" class="btn btn-success" value="Reset" onclick="window.location.reload()"> -->
<a class="btn btn-success Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Reset</span></a>
<a class="btn btn-secondary Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Reset</span></a>
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>

View File

@ -2311,7 +2311,7 @@ if (!empty($INRSYMBOL)) {
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
<input type="hidden" name="Budget" id="Budget" />
<div class="btn-container" style="text-align: right;">
<a class="btn btn-success Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Reset</span></a>
<a class="btn btn-success Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
</div>

View File

@ -69,6 +69,7 @@
echo show_alert($type, $success);
}
?>
<div class="row">
<div class="col-12">
<div class="card">
@ -85,8 +86,9 @@
placeholder="Select To Date" autocomplete="off">
<!-- New Category Field -->
<div class="form-group">
<label for="category">Category:</label>
<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
@ -97,6 +99,7 @@
<?php } } ?>
</select>
</div>
</div>
<button type="submit" class="range_search_button"><i class="fe-search" aria-hidden="true"
@ -209,6 +212,7 @@
</div> <!-- end card -->
</div><!-- end col-->
</div>
</div>
</div> <!-- container -->
</div> <!-- content -->
</div>

View File

@ -170,7 +170,7 @@ if (!empty($Status)) {
<td align="center"> <?php echo $record->newLineItem ?></td>
<td align="center"><?php echo $record->StatusName ?></td>
<td align="center"><?php echo strtoupper($record->StatusName); ?></td>
<td> <a data-toggle="tooltip"
href="<?php echo base_url() . 'EditRequisitionForm?ReqNo=' . $record->ReqNo . '&ReqType=' . $record->ReqType; ?>"><i

View File

@ -1067,9 +1067,11 @@
//recent work of adding gas shortage done here..!!
$("#Igrshow").on("shown.bs.modal", function(e) {
$('#Igrshow .modal-dialog').css({'max-width': '100%'});
$('#Igrshow .modal-dialog').show();
$('#loader').show();
var inx = $(e.relatedTarget).data('id');
@ -1322,7 +1324,9 @@
'<input type="file" id="txtWeightFile' + i + '" name="txtWeightFile' + i + '"value="' + item.WeightFile + '" style="display:none;">' +
'<input type="hidden" id="txtWeightFileName' + i + '" name="txtWeightFileName' + i + '"value="' + item.WeightFile + '">' ;
if(item.MaterialCategory == "gas"){
let regex = /gas/i;
if(regex.test(item.MaterialCategory) ){
$('#gasShortageHeader').show();
$('#gasShortageListHeader').show();
trIGRHTML += '<td style="width: 25px;"><a target="_blank" data-toggle="modal" data-target="#gasShortageCalculator" title="gas Shortage Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '" data-igrstatus = "' + igrstatus + '"><i class="fa fa-solid fa-gas-pump" style="text-align: center;"></i></a> </td>' ;
@ -1366,7 +1370,9 @@
'<input type="file" id="txtWeightFile' + i + '" name="txtWeightFile' + i + '"value="' + item.WeightFile + '">' +
'<input type="hidden" id="txtWeightFileName' + i + '" name="txtWeightFileName' + i + '"value="' + item.WeightFile + '">';
if(item.MaterialCategory == "gas"){
let regex = /gas/i;
if(regex.test(item.MaterialCategory) ){
$('#gasShortageHeader').show();
$('#gasShortageListHeader').show();
trIGRHTML += '<td style="width: 25px;"><a target="_blank" data-toggle="modal" data-target="#gasShortageCalculator" title="gas Shortage Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '" data-igrstatus = "' + igrstatus + '"><i class="fa fa-solid fa-gas-pump" style="text-align: center;"></i></a> </td>' ;

View File

@ -214,7 +214,7 @@ span.highlight1{
</div>
<div class="col-md-12">
<div class="col-md-3">
<label>Vechicle Number :</label>
<label>Vehicle Number :</label>
</div>
<div class="col-md-3">
<?php