update print out
This commit is contained in:
@@ -154,7 +154,7 @@
|
||||
<td class="px-4 py-2">Hak atas properti yang dialihkan</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="hak_properti" class="input"
|
||||
value="{{ $inspectionData['hak_properti'] ?? '' }}">
|
||||
value="{{ $inspectionData['asset']['hak_properti'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="hak_properti_pembanding[]"
|
||||
@@ -165,7 +165,7 @@
|
||||
<td class="px-4 py-2">Penawaran/ Transaksi</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="penawaran" class="input"
|
||||
value="{{ $inspectionData['penawaran'] ?? '' }}">
|
||||
value="{{ $inspectionData['asset']['penawaran'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="penawaran_pembanding[]"
|
||||
@@ -178,7 +178,7 @@
|
||||
<td class="px-4 py-2">Telepon Contact Person</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="telepon" class="input"
|
||||
value="{{ $inspectionData['telepon'] ?? '' }}">
|
||||
value="{{ $inspectionData['asset']['telepon'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="telepon_pembanding[]"
|
||||
@@ -523,7 +523,9 @@
|
||||
|
||||
// Ambil nilai numerik dari input
|
||||
const harga = parseFloat(hargaInput.value.replace(/[^\d]/g, '') || '0');
|
||||
let diskon = parseFloat(diskonInput.value.replace(/[^\d]/g, '') || '0');
|
||||
let diskonInput_value = diskonInput.value.replace(',', '.');
|
||||
let diskon = parseFloat(diskonInput_value.replace(/[^\d.]/g, '') || '0');
|
||||
|
||||
|
||||
// Batasi diskon maksimal 100%
|
||||
diskon = Math.min(diskon, 100);
|
||||
@@ -582,6 +584,9 @@
|
||||
'harga_diskon_pembanding[]': data.harga_diskon,
|
||||
'total_pembanding[]': data.total,
|
||||
'diskon_pembanding[]': data.diskon,
|
||||
'hak_properti_pembanding[]': data.hak_properti,
|
||||
'telepon_pembanding[]': data.telepon,
|
||||
'penawaran_pembanding[]': data.penawaran,
|
||||
};
|
||||
|
||||
Object.entries(inputs).forEach(([name, value]) => {
|
||||
|
||||
Reference in New Issue
Block a user