tombol print

auth
Zelda Ababil 2024-01-21 14:28:05 +07:00
parent 0031a64d82
commit d41014da77
5 changed files with 31 additions and 49 deletions

View File

@ -76,6 +76,13 @@
</style>
<body style="width: 58mm;">
<!-- Button Print -->
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
</div>
<br>
<h2 style="text-align: center">Sepiring Telur Keriting</h2>
<p style="text-align: center">Jln. Jawa No. 28A, Jember</p>
<hr class="style2">
@ -225,18 +232,6 @@
</tbody>
</table>
<hr class="style2">
<!-- Button Print -->
<br>
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
<div class="col-6 mt-2">
<button class="btn btn-danger btn-block hidden-print" id="refresh">Refresh
Halaman</button>
</div>
</div>
</body>
<style>
/* Untuk menyembunyikan tombol print */

View File

@ -76,6 +76,13 @@
</style>
<body style="width: 58mm;">
<!-- Button Print -->
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
</div>
<br>
<h2 style="text-align: center">Sepiring Telur Keriting</h2>
<p style="text-align: center">Jln. Jawa No. 28A, Jember</p>
<hr class="style2">
@ -225,18 +232,6 @@
</tbody>
</table>
<hr class="style2">
<!-- Button Print -->
<br>
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
<div class="col-6 mt-2">
<button class="btn btn-danger btn-block hidden-print" id="refresh">Refresh
Halaman</button>
</div>
</div>
</body>
<style>
/* Untuk menyembunyikan tombol print */

View File

@ -76,6 +76,13 @@
</style>
<body style="width: 58mm;">
<!-- Button Print -->
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
</div>
<br>
@for ($i = 0; $i < 2; $i++)
<hr class="dashed-line" style="margin-top: 15px;">
<p style="text-align: center;font-size: 7pt">Print Dapur</p>
@ -142,18 +149,6 @@
</table>
<hr class="style2">
@endfor
<!-- Button Print -->
<br>
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
<div class="col-6 mt-2">
<button class="btn btn-danger btn-block hidden-print" id="refresh">Refresh
Halaman</button>
</div>
</div>
</body>
<style>
/* Untuk menyembunyikan tombol print */

View File

@ -76,6 +76,13 @@
</style>
<body style="width: 58mm;">
<!-- Button Print -->
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
</div>
<br>
@for ($i = 0; $i < 3; $i++)
<hr class="dashed-line" style="margin-top: 15px;">
<p style="text-align: center;font-size: 7pt">Print Dapur</p>
@ -145,18 +152,6 @@
</table>
<hr class="style2">
@endfor
<!-- Button Print -->
<br>
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
<div class="col-6 mt-2">
<button class="btn btn-danger btn-block hidden-print" id="refresh">Refresh
Halaman</button>
</div>
</div>
</body>
<style>
/* Untuk menyembunyikan tombol print */

View File

@ -595,11 +595,13 @@
window.open(url, '_blank');
location.reload(true);
}
function printDapurDuaKali(id) {
var url = "{{ route('transaksi.printDapurDuaKali', '') }}/" + id + '?print=true'
window.open(url, '_blank');
location.reload(true);
}
function printDapurSatuKali(id) {
var url = "{{ route('transaksi.printDapurSatuKali', '') }}/" + id + '?print=true'
window.open(url, '_blank');
@ -1123,7 +1125,7 @@
// // refresh page
setTimeout(function() {
window.location.reload(1);
}, 2000);
}, 1000);
},
error: function(xhr, status, error) {
document.getElementById('pesan-bayar').disabled = false;