fix pbg payments

This commit is contained in:
arifal
2025-08-19 22:00:20 +07:00
parent 1bcd2023da
commit 4b28bebcc2
9 changed files with 563 additions and 16 deletions

View File

@@ -535,16 +535,49 @@ class BigData {
});
}
initChartNonBusinessDLH() {
document.querySelectorAll("#business-dlh-count").forEach((element) => {
const count = this.safeGet(
this.resumeBigData,
"business_dlh_count",
0
);
element.innerText = `${count}`;
});
}
initChartPotensiTataRuang() {
document
.querySelectorAll("#non-business-dlh-count")
.querySelectorAll(".document-count.chart-payment-pbg-task")
.forEach((element) => {
const count = this.safeGet(
this.resumeBigData,
"business_dlh_count",
"pbg_task_payments.count",
0
);
element.innerText = `${count}`;
});
document
.querySelectorAll(".document-total.chart-payment-pbg-task")
.forEach((element) => {
const sum = this.safeGet(
this.resumeBigData,
"pbg_task_payments.sum",
0
);
element.innerText = `Rp.${addThousandSeparators(
sum.toString()
)}`;
});
document
.querySelectorAll(".small-percentage.chart-payment-pbg-task")
.forEach((element) => {
const percentage = this.safeGet(
this.resumeBigData,
"pbg_task_payments.percentage",
0
);
element.innerText = `${percentage}%`;
});
}
}