weight calc
This commit is contained in:
parent
0fe6b4018e
commit
76325bda64
@ -1441,6 +1441,7 @@
|
||||
if (fileInput && fileInput.files.length > 0) {
|
||||
var file = fileInput.files[0];
|
||||
formData.append('WeightFile', file);
|
||||
$("#txtWeightFileName" + inx).val(file.name);
|
||||
} else {
|
||||
console.log("No file selected or file input not found.");
|
||||
}
|
||||
|
||||
@ -234,6 +234,7 @@
|
||||
<th>Driver</th>
|
||||
<th>Transporter</th>
|
||||
<th>IGR Status</th>
|
||||
<!-- <th>Remark</th> -->
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -296,6 +297,7 @@
|
||||
<td><?php echo $record->DriverName ?></td>
|
||||
<td><?php echo $record->TransporterName ?></td>
|
||||
<td><?php if($record->IGRStatus == 'ST029'){ echo 'Cancel'; } elseif($record->IGRStatus == 'ST074'){ echo 'Draft'; } else{ echo 'Completed'; } ?></td>
|
||||
<!-- <td style="width: 3% !important;"><?php // echo $record->Remark; ?></td> -->
|
||||
<td>
|
||||
|
||||
|
||||
@ -1843,7 +1845,8 @@
|
||||
$("#WeightCalculator").on("shown.bs.modal", function(e) {
|
||||
var inx = $(e.relatedTarget).data('index');
|
||||
var material = $(e.relatedTarget).data('material');
|
||||
// console.log(material);// toolbox
|
||||
console.log("xyz");
|
||||
console.log(material);// toolbox
|
||||
var modal = $(this);
|
||||
|
||||
|
||||
@ -1924,10 +1927,16 @@
|
||||
formData.append('NetWeight', v5);
|
||||
formData.append('IGR', IGRNO1);
|
||||
formData.append('IGRlineitem', txtIGRLineItem);
|
||||
$("#txtGrossWeight" + inx).val(v1);
|
||||
$("#txtGrossWeightDate" + inx).val(v2);
|
||||
$("#txtTareWeight" + inx).val(v3);
|
||||
$("#txtTareWeightDate" + inx).val(v4);
|
||||
$("#txtNetWeight" + inx).val(v5);
|
||||
|
||||
if (fileInput && fileInput.files.length > 0) {
|
||||
var file = fileInput.files[0];
|
||||
formData.append('WeightFile', file);
|
||||
$("#txtWeightFileName" + inx).val(file.name);
|
||||
console.log("File selected:", file.name);
|
||||
} else {
|
||||
console.log("No file selected.");
|
||||
@ -1947,6 +1956,13 @@
|
||||
console.log("Upload error:", error);
|
||||
}
|
||||
});
|
||||
|
||||
$("#GrossWeight").val('');
|
||||
$("#GrossWeightDate").val('');
|
||||
$("#TareWeight").val('');
|
||||
$("#TareWeightDate").val('');
|
||||
$("#NetWeight").val('');
|
||||
$("#WeightFile").val('');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user