|
@@ -1420,9 +1420,19 @@
|
|
|
|
|
|
|
|
var isEdit = false;
|
|
var isEdit = false;
|
|
|
|
|
|
|
|
- Livewire.on('showReceipt', (id) =>
|
|
|
|
|
- {
|
|
|
|
|
- window.open("{{env('APP_URL', '')}}/receipt/" + id, '_blank').focus();
|
|
|
|
|
|
|
+ Livewire.on('showReceipt', (id) => {
|
|
|
|
|
+ const url = '/receipt/' + id;
|
|
|
|
|
+ console.log('Attempting to open URL:', url);
|
|
|
|
|
+
|
|
|
|
|
+ const form = document.createElement('form');
|
|
|
|
|
+ form.method = 'GET';
|
|
|
|
|
+ form.action = url;
|
|
|
|
|
+ form.target = '_blank';
|
|
|
|
|
+ form.style.display = 'none';
|
|
|
|
|
+
|
|
|
|
|
+ document.body.appendChild(form);
|
|
|
|
|
+ form.submit();
|
|
|
|
|
+ document.body.removeChild(form);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
Livewire.on('setEdit', (x) =>
|
|
Livewire.on('setEdit', (x) =>
|