Add ternary operator for value batu permata at view home penilai and khazanah gadaian

This commit is contained in:
amirhassan
2024-02-19 12:50:47 +08:00
parent a074b5d94e
commit 9486d9b8e5
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -289,6 +289,7 @@
},
success: function (marhun_ajax) {
bil_count++;
var valBatuPermata = marhun_detail['berat_batu_permata'] != null ? marhun_detail['berat_batu_permata'] : '';
$("#tablemarhun").append("<tr><td>" + bil_count +
"</td><td>" + marhun_ajax['descpt'] + "</td><td>" +
marhun_detail['berat'] + "</td><td>" +
@@ -298,7 +299,7 @@
minimumFractionDigits: 2
}) + "</td><td>" + marhun_detail['nota'] +
"</td><td>" + marhun_detail['batu_permata'] +
"</td><td>" + marhun_detail['berat_batu_permata'] +
"</td><td>" + valBatuPermata +
"</td></tr>");
}
});