stock module latest today vadivel J 22-01-2025
This commit is contained in:
parent
6e73904d15
commit
fe8f187c89
@ -376,7 +376,7 @@
|
|||||||
|
|
||||||
<!-- 'td:eq(9)' -->
|
<!-- 'td:eq(9)' -->
|
||||||
<td class="celda_normal" >
|
<td class="celda_normal" >
|
||||||
<?php echo $record['Qty']??'0'; ?>
|
<?php echo $record['Qty'] ?? 0 ; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!-- 'td:eq(10)' -->
|
<!-- 'td:eq(10)' -->
|
||||||
@ -494,7 +494,7 @@
|
|||||||
|
|
||||||
<!-- 'td:eq(32)' -->
|
<!-- 'td:eq(32)' -->
|
||||||
<td class="celda_normal">
|
<td class="celda_normal">
|
||||||
<?php echo $record['salableQty'] ?? ''; ?>
|
<?php echo $record['salableQty'] ?? $record['Qty'] ; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!-- need to check the status and select values before hand -->
|
<!-- need to check the status and select values before hand -->
|
||||||
@ -1258,7 +1258,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<!-- Calculate Row -->
|
<!-- Calculate Row on oninput inside sand report modal -->
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function calculateRow(value){
|
function calculateRow(value){
|
||||||
@ -1267,8 +1267,8 @@
|
|||||||
|
|
||||||
if( value != "moistureValue" ){
|
if( value != "moistureValue" ){
|
||||||
var tr = $(value).closest('tr');
|
var tr = $(value).closest('tr');
|
||||||
var weighOfSand = tr.find('td:eq(3)').text();
|
var weighOfSand = validateInput(tr.find('td:eq(3)').text());
|
||||||
var factor = tr.find('td:eq(4)').text();
|
var factor = validateInput(tr.find('td:eq(4)').text());
|
||||||
tr.find('td:eq(5)').text(parseFloat((weighOfSand * factor).toFixed(2)));
|
tr.find('td:eq(5)').text(parseFloat((weighOfSand * factor).toFixed(2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1372,6 +1372,7 @@ $(document).ready(function() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- submitting calculated data of sand reports in ajax call from sand lab report modal -->
|
||||||
<script>
|
<script>
|
||||||
$('#labReportSubmitId').click(function(){
|
$('#labReportSubmitId').click(function(){
|
||||||
|
|
||||||
@ -1431,7 +1432,7 @@ $(document).ready(function() {
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- validation for empty string and non-integers -->
|
||||||
<script>
|
<script>
|
||||||
function validateInput(input) {
|
function validateInput(input) {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user