fix data and dashboard count and sum
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { Grid, html } from "gridjs/dist/gridjs.umd.js";
|
||||
import GlobalConfig from "../global-config";
|
||||
import { Dropzone } from "dropzone";
|
||||
import { addThousandSeparators } from "../global-config";
|
||||
|
||||
Dropzone.autoDiscover = false;
|
||||
|
||||
class PbgTasks {
|
||||
@@ -87,6 +89,9 @@ class PbgTasks {
|
||||
"Function Type",
|
||||
"Consultation Type",
|
||||
{ name: "Due Date" },
|
||||
{
|
||||
name: "Retribution",
|
||||
},
|
||||
{
|
||||
name: "Action",
|
||||
formatter: (cell) => {
|
||||
@@ -191,6 +196,12 @@ class PbgTasks {
|
||||
item.function_type,
|
||||
item.consultation_type,
|
||||
item.due_date,
|
||||
item.pbg_task_retributions
|
||||
? addThousandSeparators(
|
||||
item.pbg_task_retributions
|
||||
.nilai_retribusi_bangunan
|
||||
)
|
||||
: "-",
|
||||
item,
|
||||
]),
|
||||
total: (data) => data.meta.total,
|
||||
|
||||
Reference in New Issue
Block a user