fix duit pelanggan kat sag lama dan fix rebet keuntungan
This commit is contained in:
@@ -642,9 +642,12 @@
|
|||||||
$('#bayaranditerima').val(data);
|
$('#bayaranditerima').val(data);
|
||||||
}else{
|
}else{
|
||||||
let ujrah = Number($('#jumujrah').val());
|
let ujrah = Number($('#jumujrah').val());
|
||||||
|
let onepercent = Number($('#jumonepercent').val());
|
||||||
|
|
||||||
let total = ujrah - data['ujrah'];
|
let total = ujrah - data['ujrah'];
|
||||||
$('#jumujrahrebet').val(total.toFixed(2));
|
let keuntotal = onepercent - data['keuntungan'];
|
||||||
$('#jumonepercentrebet').val(data['keuntungan']);
|
$('#jumujrahrebet').val(formatter.format(total.toFixed(2)));
|
||||||
|
$('#jumonepercentrebet').val(keuntotal.toFixed(2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -657,6 +657,22 @@ hr.new5 {
|
|||||||
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
|
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<table id="inside" style="width: 45%; margin-top:20px">
|
||||||
|
<tr>
|
||||||
|
<td>Duit Pelanggan</td>
|
||||||
|
<td>: RM {{ number_format($transaction_tebus['duitpelanggan'], 2) }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Jumlah Perlu Dibayar</td>
|
||||||
|
<td>: RM {{ number_format($transaction_tebus['duit_masuk'], 2) }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Baki</td>
|
||||||
|
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<table id="semakan" style="margin-top: 0">
|
<table id="semakan" style="margin-top: 0">
|
||||||
<tr style="visibility: hidden">
|
<tr style="visibility: hidden">
|
||||||
<td colspan="3">.................................................... </td>
|
<td colspan="3">.................................................... </td>
|
||||||
|
|||||||
Reference in New Issue
Block a user