done permintaan gizi : nama karyawan bisa input, dan tidak ada add catatan pada download verfikasi pekerjaan
This commit is contained in:
parent
e6e481ddf7
commit
5e26f48489
@ -285,7 +285,7 @@ class CustomerController extends Controller
|
||||
'entry_at' => Carbon::now()->format('Y-m-d H:i:s.u'),
|
||||
];
|
||||
if($jenisCustomer === "Karyawan RSAB Harapan Kita"){
|
||||
$nip_pns = Karyawan::where('namalengkap',$biodataResult['nama_pemesan'])->first()->nip_pns;
|
||||
$nip_pns = Karyawan::where('namalengkap',$biodataResult['nama_pemesan'])->first()?->nip_pns;
|
||||
$payloadOrder['nip'] = $nip_pns ?? null;
|
||||
$payloadOrder['bagian_instalasi'] = $biodataResult['bagian_instalasi'] ?? null;
|
||||
$payloadOrder['no_ekstensien'] = $biodataResult['no_ekstensien'] ?? null;
|
||||
|
||||
@ -785,20 +785,42 @@ function hitungTotalHarga(){
|
||||
function copyNoRek() {
|
||||
const text = document.getElementById('noRekText').innerText;
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
alert("Nomor rekening berhasil disalin: " + text);
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Disalin!',
|
||||
text: 'Nomor rekening berhasil disalin: ' + text,
|
||||
showConfirmButton: false,
|
||||
timer: 1500
|
||||
});
|
||||
}).catch(err => {
|
||||
console.error('Gagal menyalin: ', err);
|
||||
alert("Gagal menyalin teks.");
|
||||
Swal.fire({
|
||||
icon: 'warning',
|
||||
text: 'Gagal menyalin teks: ' + text,
|
||||
showConfirmButton: false,
|
||||
timer: 2000
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function copyNoOrder() {
|
||||
const text = document.getElementById('no_order_display').innerText;
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
alert("Nomor order berhasil disalin: " + text);
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Disalin!',
|
||||
text: 'Nomor order berhasil disalin: ' + text,
|
||||
showConfirmButton: false,
|
||||
timer: 1500
|
||||
});
|
||||
}).catch(err => {
|
||||
console.error('Gagal menyalin: ', err);
|
||||
alert("Gagal menyalin teks.");
|
||||
Swal.fire({
|
||||
icon: 'warning',
|
||||
text: 'Gagal menyalin teks: ' + text,
|
||||
showConfirmButton: false,
|
||||
timer: 2000
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@ -985,7 +1007,13 @@ function selectKaryawan(){
|
||||
valueField: 'label', // sama dengan labelField
|
||||
labelField: 'label',
|
||||
searchField: ['label'],
|
||||
create: false,
|
||||
create: function(input) {
|
||||
return {
|
||||
label: input,
|
||||
value: input
|
||||
};
|
||||
},
|
||||
createOnBlur: true,
|
||||
placeholder: "Cari nama karyawan...",
|
||||
maxItems: 1,
|
||||
load: function (query, callback) {
|
||||
|
||||
@ -148,9 +148,12 @@
|
||||
@if($label->total_kalori)
|
||||
<tr><td>Total Kalori</td><td>: {{ $label->total_kalori }}</td></tr>
|
||||
@endif
|
||||
@if($label->order?->jenis_customer !== 'MCU')
|
||||
<tr><td>Harga Satuan</td><td>: Rp {{ number_format($label?->harga_satuan, 0, ',', '.') }}</td></tr>
|
||||
@endif
|
||||
<tr><td>Catatan</td>
|
||||
<td><span style="vertical-align: top;">:</span>
|
||||
<span style="max-width: 54mm; word-wrap: break-word; white-space: normal; display: inline-block; vertical-align: top;">
|
||||
{{ $label?->catatan ?? '-' }}
|
||||
</span></td>
|
||||
</tr>
|
||||
<tr><td>Tanggal Produksi</td><td>: {{ $label?->tgl_antar ? \Carbon\Carbon::parse($label->tgl_antar)->translatedFormat('d F Y') : '-' }} </td></tr>
|
||||
<tr><td>No. Telp</td><td>: {{ $label?->order?->no_wa ?? '-' }}</td></tr>
|
||||
@if ($label?->order?->alamat)
|
||||
|
||||
@ -75,7 +75,6 @@
|
||||
}
|
||||
|
||||
th:nth-child(6), td:nth-child(6) {
|
||||
width: 110px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@ -126,6 +125,7 @@
|
||||
<th>Waktu Makan <br/> /Jam Layanan</th>
|
||||
<th>Menu</th>
|
||||
<th>Karbohidrat</th>
|
||||
<th>Catatan</th>
|
||||
<th>Total Kalori</th>
|
||||
<th>Keterangan</th>
|
||||
<th>Jumlah</th>
|
||||
@ -157,6 +157,7 @@
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $row['catatan'] ? $row['catatan'] . ' kal' : '' }}</td>
|
||||
<td>{{ $row['total_kalori'] ? $row['total_kalori'] . ' kal' : '' }}</td>
|
||||
<td class="keterangan">
|
||||
@php
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user