fix pbg payments
This commit is contained in:
@@ -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}%`;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user