Compare commits
2 Commits
53f14711b2
...
bd7e0422e6
| Author | SHA1 | Date | |
|---|---|---|---|
| bd7e0422e6 | |||
|
|
84e547ec4b |
@@ -39,7 +39,7 @@
|
|||||||
{{-- Modal for empty invoice--}}
|
{{-- Modal for empty invoice--}}
|
||||||
@if ($emptyInvoice)
|
@if ($emptyInvoice)
|
||||||
<div class="text-center text-red-500">
|
<div class="text-center text-red-500">
|
||||||
<p>No data found for invoice number <strong>{{ $invoiceNumber }}</strong>.</p>
|
<p>No data found for the invoice number <strong>{{ $invoiceNumber }}</strong>.</p>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
@empty
|
@empty
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="12" class="text-center py-4 text-gray-500">
|
<td colspan="12" class="text-center py-4 text-gray-500">
|
||||||
No data found for invoice number <strong>{{ $invoiceNumber }}</strong>.
|
No data found for the invoice number <strong>{{ $invoiceNumber }}</strong>.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
@empty
|
@empty
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="10" class="text-center py-4 text-gray-500">
|
<td colspan="10" class="text-center py-4 text-gray-500">
|
||||||
No data found for invoice number <strong>{{ $invoiceNumber }}</strong>.
|
No data found for the invoice number <strong>{{ $invoiceNumber }}</strong>.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
@@ -182,15 +182,34 @@
|
|||||||
});
|
});
|
||||||
</script> --}}
|
</script> --}}
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('focus-capacitor-input', () => {
|
window.addEventListener('focus-capacitor-input', (event) => {
|
||||||
|
console.log('Item Code:', event.detail.itemCode);
|
||||||
|
const container = document.getElementById('focus-capacitor-input');
|
||||||
|
if (container) {
|
||||||
|
container.dataset.itemCode = event.detail.itemCode;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const input = document.getElementById('capacitorInput');
|
// const container = document.getElementById('focus-capacitor-input');
|
||||||
if (input) {
|
const input = container?.querySelector('input'); // gets the actual input inside
|
||||||
input.focus();
|
|
||||||
input.select();
|
if (input) {
|
||||||
}
|
input.focus();
|
||||||
}, 50);
|
input.select();
|
||||||
|
}
|
||||||
|
}, 50);
|
||||||
});
|
});
|
||||||
|
// window.addEventListener('focus-capacitor-input', (event) => {
|
||||||
|
// console.log('Item Code:', event.detail.itemCode);
|
||||||
|
|
||||||
|
// setTimeout(() => {
|
||||||
|
// const input = document.querySelector('#capacitorInput input');
|
||||||
|
|
||||||
|
// if (input) {
|
||||||
|
// input.focus();
|
||||||
|
// input.select();
|
||||||
|
// }
|
||||||
|
// }, 50);
|
||||||
|
// });
|
||||||
|
|
||||||
window.addEventListener('focus-serial-number', () => {
|
window.addEventListener('focus-serial-number', () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user