@@ -3519,12 +3517,13 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
// RejectedQty: rejectedqty,
// PendingQty: pendingqty
// }));
+ var shorten = materialName.length > 13 ? materialName.slice(0, 13) + "..." : materialName;
var rowHtml = `
| ${temp} |
${Reqnumber} |
${materialCode} |
- ${materialName} |
+ ${shorten} |
-
@@ -4189,19 +4188,14 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
//alert(stat);
//alert(JSON.stringify(txtStatus));
//exit();
- if (validate() && Budgetcheck()) {
- else if ($('#Importoption').val() == "0") {
- alert('Please Select Import Type');
- $('#Importoption').focus();
- return false;
-
- } else {
+ if (importValidate() && Budgetcheck()) {
// $('#content').loader('show');
var formData = new FormData($('.ImportPO')[0]);
formData.append('txtRowCount', txtRowCount);
formData.append('txtDeletedRow', txtDeletedRow);
formData.append('textStatus', stat);
+ disableButtons();
$.ajax({
// data:$('.ImportPO').serialize()+"&txtRowCount="+txtRowCount+"&txtDeletedRow="+txtDeletedRow+"&textStatus="+stat,
@@ -4220,17 +4214,22 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
//$('#SpcialInstruction').val('');
//$('#txtDeliveryAddress').val('');
window.location = "purchaseorderListing";
+ setTimeout(function() { enableButtons(); }, 2000);
} else {
alert("Error");
+ setTimeout(function() { enableButtons(); }, 2000);
}
- }
+ },
+ error: function(jqXHR, textStatus, errorThrown) {
+ console.error("AJAX Error: " + textStatus + ": " + errorThrown);
+ alert("Error: " + textStatus);
+ setTimeout(function() { enableButtons(); }, 2000);
+ }
});
- }
-
}
@@ -4333,4 +4332,12 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
calculateFreight(1);
});
+ function Reset() {
+ disableButtons();
+ location.reload();
+ setTimeout(function() {
+ enableButtons();
+ }, 2000);
+
+ }
\ No newline at end of file
diff --git a/app/Views/monthlypayinputs.php b/app/Views/monthlypayinputs.php
index 4b5759f6..65926394 100755
--- a/app/Views/monthlypayinputs.php
+++ b/app/Views/monthlypayinputs.php
@@ -233,6 +233,7 @@
| DOJ |
Designation |
Total Days |
+ Number Of Trips |
Days Worked |
LOP Days |
Paid Leave |
@@ -294,7 +295,7 @@
NoofDays; ?> |
-
+ |
Key)) {
echo "contenteditable='false';";
@@ -534,10 +535,16 @@
Designation; ?>
|
- no_of_loads." (trip)"; ?> |
+
+ total_cal_days; ?>
+ |
+
+
+ no_of_loads." (trip)"; ?>
+ |
-
+ unique_days, 2, '.', ''); ?>
|
@@ -557,7 +564,9 @@
|
-
+ total_cal_days ;
+ echo number_format($worked_amt, 2, '.', ''); ?>
|
@@ -565,7 +574,8 @@
|
-
+
|
@@ -675,7 +685,7 @@
| | | | | |
| | | | |
| | | | |
- Total |
+ | Total |
|
diff --git a/app/Views/purchaseorder.php b/app/Views/purchaseorder.php
index 45de4b7c..ec5fd8ce 100755
--- a/app/Views/purchaseorder.php
+++ b/app/Views/purchaseorder.php
@@ -411,7 +411,7 @@ if (!empty($INRSYMBOL)) {
});
$('#MaterialCode').change(function() {
-
+alert("**");
var id = $('#MaterialCode').val();
var drpSupplier = $('#drpSupplier').val();
$("#ItemName").val('');
@@ -432,6 +432,7 @@ if (!empty($INRSYMBOL)) {
$("#ItemName").val(obj.MaterialName);
$("#UOM").val(obj.UOM);
$("#Quantity").val(obj.Quantity);
+ $("#Rate").val(obj.Rate);
RequistQuantity = obj.Quantity;
}
});
@@ -2166,20 +2167,20 @@ if (!empty($INRSYMBOL)) {