This commit is contained in:
afiq
2021-02-09 11:25:16 +08:00
parent 5c6700ae22
commit 369ba4b22f
4 changed files with 163 additions and 110 deletions
+4 -13
View File
@@ -778,8 +778,7 @@ let teller = "{{ Auth::user()->name }}";
function bayaransemua()
{
if($('#sltjenistebus').find(":selected").val() == 'T')
{
if($('#sltjenistebus').find(":selected").val() == 'T'){
let jenisbayarantebus = '';
if(tarikhgadai < tarikhtawarruq)
{
@@ -849,9 +848,7 @@ function bayaransemua()
//End File//
///////////
}
else if($('#sltjenistebus').find(":selected").val() == 'A')
{
}else if($('#sltjenistebus').find(":selected").val() == 'A'){
let jenisbayarantebus = '';
let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1);
@@ -1013,9 +1010,7 @@ function bayaransemua()
//End File//
////////////
}
else if($('#sltjenistebus').find(":selected").val() == 'S')
{
}else if($('#sltjenistebus').find(":selected").val() == 'S'){
let jenisbayarantebus = '';
if(tarikhgadai < tarikhtawarruq)
{
@@ -1030,11 +1025,7 @@ function bayaransemua()
if($('#perludibayar').val() < (parseFloat($('#bayaran').val()) + parseFloat($('#jumlahupah').val())))
{
Swal.fire(
'Amaran!',
'Jumlah bayaran kurang daripada jumlah yang perlu dibayar!',
'error'
)
Swal.fire('Amaran!','Jumlah bayaran kurang daripada jumlah yang perlu dibayar!','error');
return false;
}