diff --git a/public/js/app.js b/public/js/app.js index ff2a51a..5f866b8 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -78064,7 +78064,17 @@ var render = function () { : _vm.percentcumgadai + "%", }, }, - [_vm._v(" " + _vm._s(this.percentcumgadai) + "%")] + [ + _vm._v( + " " + + _vm._s( + this.percentcumgadai >= 0 + ? this.percentcumgadai + : 0.0 + ) + + "%" + ), + ] ), ] ), @@ -78079,7 +78089,16 @@ var render = function () { staticClass: "text-sm ml-2 font-bold -mt-0.5 xs:invisible", }, - [_vm._v("RM " + _vm._s(_vm.gadaianremaining))] + [ + _vm._v( + "RM " + + _vm._s( + _vm.gadaianremaining >= 0 + ? _vm.gadaianremaining + : "0.00" + ) + ), + ] ), ] ), @@ -78323,7 +78342,17 @@ var render = function () { : _vm.percentcumtebus + "%", }, }, - [_vm._v(" " + _vm._s(_vm.percentcumtebus) + "%")] + [ + _vm._v( + " " + + _vm._s( + _vm.percentcumtebus >= 0 + ? _vm.percentcumtebus + : 0.0 + ) + + "%" + ), + ] ), ] ), @@ -78335,7 +78364,16 @@ var render = function () { _c( "span", { staticClass: "text-sm ml-2 font-bold -mt-0.5" }, - [_vm._v("RM " + _vm._s(_vm.tebusremaining))] + [ + _vm._v( + "RM " + + _vm._s( + _vm.tebusremaining >= 0 + ? _vm.tebusremaining + : "0.00" + ) + ), + ] ), ] ), @@ -78579,7 +78617,17 @@ var render = function () { : _vm.percentcumkeuntungan + "%", }, }, - [_vm._v(" " + _vm._s(_vm.percentcumkeuntungan) + "%")] + [ + _vm._v( + " " + + _vm._s( + _vm.percentcumkeuntungan >= 0 + ? _vm.percentcumkeuntungan + : 0.0 + ) + + "%" + ), + ] ), ] ), @@ -78591,7 +78639,16 @@ var render = function () { _c( "span", { staticClass: "text-sm ml-2 font-bold -mt-0.5" }, - [_vm._v("RM " + _vm._s(_vm.keuntunganremaining))] + [ + _vm._v( + "RM " + + _vm._s( + _vm.keuntunganremaining >= 0 + ? _vm.keuntunganremaining + : "0.00" + ) + ), + ] ), ] ), diff --git a/resources/js/components/Analisa/Harian.vue b/resources/js/components/Analisa/Harian.vue index 8845d1c..57c7e7a 100644 --- a/resources/js/components/Analisa/Harian.vue +++ b/resources/js/components/Analisa/Harian.vue @@ -14,11 +14,11 @@
-
{{ this.percentcumgadai }}%
+
{{ this.percentcumgadai >= 0 ? this.percentcumgadai : 0.00 }}%
- RM {{ gadaianremaining }} + RM {{ gadaianremaining >= 0 ? gadaianremaining : '0.00' }}
@@ -76,11 +76,11 @@
-
{{ percentcumtebus }}%
+
{{ percentcumtebus >= 0 ? percentcumtebus : 0.00 }}%
- RM {{ tebusremaining }} + RM {{ tebusremaining >= 0 ? tebusremaining : '0.00' }}
@@ -141,11 +141,11 @@
-
{{percentcumkeuntungan}}%
+
{{percentcumkeuntungan >= 0 ? percentcumkeuntungan : 0.00}}%
- RM {{ keuntunganremaining }} + RM {{ keuntunganremaining >= 0 ? keuntunganremaining : '0.00' }}