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}%`;
});
}
}

View File

@@ -202,6 +202,17 @@
])
@endcomponent
@component('components.circle',[
'document_title' => 'Pembayaran Realisasi PBG',
'document_color' => '#8cc540',
'document_type' => 'Berkas',
'document_id' => 'chart-payment-pbg-task',
'visible_small_circle' => false,
'style' => 'top:550px;left:-150px;',
'document_url' => '#'
])
@endcomponent
<div class="square" style="top:650px;left:200px;width:250px;height:2px;background-color:black;">
</div>