2 Commits

Author SHA1 Message Date
bd7e0422e6 Merge pull request 'Updated capacitor focus logic' (#342) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #342
2026-02-17 04:14:22 +00:00
dhanabalan
84e547ec4b Updated capacitor focus logic
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled
2026-02-17 09:43:53 +05:30

View File

@@ -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(() => {