stock module latest today vadivel J 03-1-2025
This commit is contained in:
parent
3d086e2c1c
commit
3113701bd0
@ -1330,6 +1330,13 @@ class StockController extends BaseController
|
|||||||
return $times;
|
return $times;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function drierMachineDetails()
|
public function drierMachineDetails()
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -1472,7 +1479,6 @@ class StockController extends BaseController
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Generate the form and submit it via JavaScript
|
|
||||||
echo '<form id="postForm" action="' . base_url('drierMachineDetails') . '" method="POST">';
|
echo '<form id="postForm" action="' . base_url('drierMachineDetails') . '" method="POST">';
|
||||||
foreach ($postData as $key => $value) {
|
foreach ($postData as $key => $value) {
|
||||||
echo '<input type="hidden" name="' . $key . '" value="' . $value . '">';
|
echo '<input type="hidden" name="' . $key . '" value="' . $value . '">';
|
||||||
|
|||||||
@ -450,16 +450,13 @@
|
|||||||
|
|
||||||
function finalRoughStockChange(tdElement) {
|
function finalRoughStockChange(tdElement) {
|
||||||
|
|
||||||
try{
|
try {
|
||||||
console.log("just an alert from finalRoughStockChange..!!")
|
|
||||||
console.log(tdElement.innerText)
|
|
||||||
let dataId = tdElement.getAttribute('data-id')
|
let dataId = tdElement.getAttribute('data-id')
|
||||||
let finalRoughStock = tdElement.innerText;
|
let finalRoughStock = tdElement.innerText;
|
||||||
let dustStock = document.querySelector(`td.dust[data-id="${dataId}"]`).innerText;
|
let dustStock = document.querySelector(`td.dust[data-id="${dataId}"]`).innerText;
|
||||||
let total = (Number(finalRoughStock) + Number(dustStock)) ;
|
let total = (Number(finalRoughStock) + Number(dustStock)) ;
|
||||||
document.querySelector(`td.total[data-id="${dataId}"]`).innerText=total;
|
document.querySelector(`td.total[data-id="${dataId}"]`).innerText=total;
|
||||||
|
|
||||||
|
|
||||||
} catch(error){
|
} catch(error){
|
||||||
console.error("There is an error updating stock ..!!" + error);
|
console.error("There is an error updating stock ..!!" + error);
|
||||||
}
|
}
|
||||||
@ -467,9 +464,6 @@
|
|||||||
|
|
||||||
function dustStockChange(tdElement) {
|
function dustStockChange(tdElement) {
|
||||||
try{
|
try{
|
||||||
|
|
||||||
console.log("just an alert from dustStockChange..!!")
|
|
||||||
console.log(tdElement.innerText)
|
|
||||||
let dataId = tdElement.getAttribute('data-id')
|
let dataId = tdElement.getAttribute('data-id')
|
||||||
let finalRoughStock = document.querySelector(`td.finalRough[data-id="${dataId}"]`).innerText;
|
let finalRoughStock = document.querySelector(`td.finalRough[data-id="${dataId}"]`).innerText;
|
||||||
let dustStock = tdElement.innerText;
|
let dustStock = tdElement.innerText;
|
||||||
|
|||||||
@ -753,7 +753,8 @@ function convertToDate(dateString) {
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#fromDateFilter ').select2();
|
$('#fromDateFilter ').select2();
|
||||||
$('#toDateFilter ').select2();
|
$('#toDateFilter ').select2();
|
||||||
initialFilterDate();
|
|
||||||
|
// initialFilterDate();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user