Commit 8a8d4428 authored by Mahmoud Aglan's avatar Mahmoud Aglan

dxfdgfnzdfh

parent 2dd20e37
...@@ -123,6 +123,16 @@ ...@@ -123,6 +123,16 @@
</div> </div>
<script> <script>
(function(){
var params = new URLSearchParams(window.location.search);
var printId = params.get('print_receipt');
if (printId) {
window.open('/receipts/' + printId + '/print', '_blank');
params.delete('print_receipt');
var newUrl = window.location.pathname + (params.toString() ? '?' + params.toString() : '');
window.history.replaceState({}, '', newUrl);
}
})();
setTimeout(function(){ location.reload(); }, 30000); setTimeout(function(){ location.reload(); }, 30000);
</script> </script>
<?php $__template->endSection(); ?> <?php $__template->endSection(); ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment