perbaikan diskon data pembanding, luas tanah, bangunan, apartement di form inspeksi
This commit is contained in:
@@ -405,12 +405,12 @@
|
||||
<tr>
|
||||
<td class="px-4 py-2">Harga</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga" class="input currency"
|
||||
<input type="text" name="harga" class="input currency-format"
|
||||
value="{{ $inspectionData['asset']['harga'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_pembanding[]"
|
||||
class="input currency">
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -428,7 +428,7 @@
|
||||
<td class=" px-4 py-2">
|
||||
<div class="input">
|
||||
<input type="text" name="diskon_pembanding[]"
|
||||
class="currency-format">
|
||||
class="currency">
|
||||
<span class="btn btn-icon">
|
||||
<i class="ki-outline ki-percentage"></i>
|
||||
</i>
|
||||
@@ -445,18 +445,18 @@
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="total_pembanding[]"
|
||||
class="input currency">
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Harga Setelah Diskon</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_diskon" class="input currency" readonly
|
||||
<input type="text" name="harga_diskon" class="input currency-format" readonly
|
||||
value="{{ $inspectionData['asset']['harga_diskon'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_diskon_pembanding[]" readonly
|
||||
class="input currency">
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -529,9 +529,7 @@
|
||||
|
||||
// Batasi diskon maksimal 100%
|
||||
diskon = Math.min(diskon, 100);
|
||||
diskonInput.value = formatCurrency(diskon.toString());
|
||||
|
||||
// Hitung total dan harga setelah diskon
|
||||
|
||||
const total = harga;
|
||||
const hargaSetelahDiskon = harga - (harga * (diskon / 100));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user