From de597eb0864bdceeed4e0d9f1c7f25dc87a3c29c Mon Sep 17 00:00:00 2001 From: Pusdatin BPKD Jkt Date: Fri, 28 Jul 2023 09:14:23 +0700 Subject: [PATCH] Update --- resources/views/realisasi_pendapatan/index.blade.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/views/realisasi_pendapatan/index.blade.php b/resources/views/realisasi_pendapatan/index.blade.php index 4a1fca5..332482b 100644 --- a/resources/views/realisasi_pendapatan/index.blade.php +++ b/resources/views/realisasi_pendapatan/index.blade.php @@ -242,6 +242,14 @@ return a + b * 1; }, 0); + let sum4 = rows.data().pluck("retur").reduce( function (a, b) { + return a + b * 1; + }, 0); + + let sum5 = rows.data().pluck("bersih").reduce( function (a, b) { + return a + b * 1; + }, 0); + let textmuted = index == 1 ? "text-muted":""; let labelGroup = index == 1 ?"JUMLAH | " + group : "TOTAL"; return $("") @@ -250,6 +258,8 @@ .append(""+ separateNumberIndo(sum) +"" ) .append(""+ separateNumberIndo(sum2) +"" ) .append(""+ separateNumberIndo(sum3) +"" ) + .append(""+ separateNumberIndo(sum4) +"" ) + .append(""+ separateNumberIndo(sum5) +"" ) .append("") }, startRender: function ( rows, group, index ) {