<commit_before>﻿<div ng-controller="TransferRecapitulationCtrl as recapitulationCtrl" ng-if="indexCtrl.type == 'transfer' && indexCtrl.region.Type < 4">

    <div class="alert alert-success" style="font-size: small; padding: 5px 20px;">
        <a href="/Docs/_build/html/overview.html">Apa itu kawal desa?</a>
    </div>

    <div class="content-header">
        Penyaluran Pendapatan Desa Dari Pusat & Kabupaten/Kota <sup><a href="#help-penyaluran">?</a></sup>
    </div>

    <div class="table-responsive">
        <table class="table table-condensed table-responsive table-bordered">
            <thead>
                <tr>
                    <th rowspan="2" style="vertical-align: middle;">{{indexCtrl.childName}}</th>
                    <th colspan="3" style="text-align: center; width: 25%;">Dana Desa APBN (Pusat → Desa) <sup><a href="#help-dd">?</a></sup></th>
                    <th colspan="3" style="text-align: center; width: 25%;">ADD (Kabupaten → Desa)<sup><a href="#help-add">?</a></sup></th>
                    <th colspan="2" style="text-align: center; width: 25%;">Bagi Hasil Pajak (Kabupaten → Desa)<sup><a href="#help-bhpr">?</a></sup></th>
                </tr>
                <tr>
                    <th class="money" style="width: 8.3333%;">Anggaran <sup><a href="#help-anggaran">?</a></sup></th>
                    <th class="money" style="width: 8.3333%;">Target April (40%)<sup> <a href="#help-target">?</a></sup></th>
                    <th class="money" style="width: 8.3333%;">Tersalurkan</th>
                    <th class="money" style="width: 8.3333%;">Anggaran</th>
                    <th class="money" style="width: 8.3333%;">Target April (40%)</th>
                    <th class="money" style="width: 8.3333%;">Tersalurkan</th>
                    <th class="money" style="width: 10%;">Anggaran</th>
                    <th class="money" style="width: 10%;">Tersalurkan</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat-start="entity in entities"></tr>
                <tr class="detail-padding" ng-if="recapitulationCtrl.isExpanded(entity)">
                    <td colspan="7"></td>
                </tr>
                <tr ng-if="recapitulationCtrl.isExpanded(entity)
                    && recapitulationCtrl.isFormExpanded(entity)
                    && indexCtrl.hasAnyVolunteerRoles()">
                    <td style="border-top: 1px solid #fff; border-bottom: 1px solid #fff"></td>
                    <td colspan="6" style="box-shadow: -2px 0 2px rgba(0, 0, 0, 0.05);">
                        <div class="container-fluid">
                            <form class="form-horizontal" role="form" ng-submit="recapitulationCtrl.saveForm(entity)">
                                <h5 style="text-align: center; width: 100%">
                                    Tambah Laporan
                                    {{recapitulationCtrl.formTransactions[entity.RegionID].fkActorID == entity.RegionID ? 'Terima Transfer' : 'Transfer'}}
                                    {{recapitulationCtrl.formTransactions[entity.RegionID].fkSourceID == 0 ? 'APBN' : 'ADD'}}
                                    (
                                    {{recapitulationCtrl.formTransactions[entity.RegionID].fkSourceID == 0 ? 'Pusat' : indexCtrl.regionTree[2].Name}}
                                    -> Desa {{entity.RegionName}})
                                </h5>
                                <div class="form-group input-sm">
                                    <label for="date" class="col-sm-2 control-label">Tanggal</label>
                                    <div class="col-sm-10">
                                        <input type="text"
                                               ng-model="recapitulationCtrl.formTransactions[entity.RegionID].Date"
                                               class="form-control" id="date" placeholder="dd-mm-yyyy">
                                        <div ng-if="recapitulationCtrl.formErrors[entity.RegionID].Date" class="alert alert-danger" role="alert">
                                            {{recapitulationCtrl.formErrors[entity.RegionID].Date}}
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group input-sm">
                                    <label for="amount" class="col-sm-2 control-label">Jumlah</label>
                                    <div class="col-sm-10">
                                        <input type="number"
                                               ng-model="recapitulationCtrl.formTransactions[entity.RegionID].Amount"
                                               class="form-control" id="amount" placeholder="Jumlah Transfer">
                                        <div ng-if="recapitulationCtrl.formErrors[entity.RegionID].Amount" class="alert alert-danger" role="alert">
                                            {{recapitulationCtrl.formErrors[entity.RegionID].Amount}}
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group input-sm">
                                    <label for="proof" class="col-sm-2 control-label">Lampiran</label>
                                    <div class="col-sm-10">
                                        <input type="file" ng-file-select
                                               ng-model="recapitulationCtrl.formTransactions[entity.RegionID].File"
                                               id="proof" />
                                    </div>
                                </div>
                                <div class="form-group input-sm">
                                    <label for="amount" class="col-sm-2 control-label">URL Sumber</label>
                                    <div class="col-sm-10">
                                        <input type="text"
                                               ng-model="recapitulationCtrl.formTransactions[entity.RegionID].SourceURL"
                                               class="form-control" id="amount" placeholder="jika ada, masukkan URL sumber">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div style="width: 100%; text-align: center;" ng-hide="recapitulationCtrl.formSavingStates[entity.RegionID]">
                                        <button type="submit" class="btn btn-xs btn-primary">Simpan</button>
                                        <button class="btn btn-xs btn-danger" ng-click="recapitulationCtrl.setFormExpanded(entity, false)">Batal</button>
                                    </div>
                                    <div style="width: 100%; text-align: center;" ng-show="recapitulationCtrl.formSavingStates[entity.RegionID]">
                                        Menyimpan...
                                    </div>
                                </div>
                            </form>

                        </div>
                    </td>
                </tr>
                <tr class="detail" ng-if="recapitulationCtrl.isExpanded(entity)
                    && !recapitulationCtrl.isFormExpanded(entity)
                    && indexCtrl.hasAnyVolunteerRoles()
                    && indexCtrl.isInScope(entity.RegionID)">
                    <td colspan="1"></td>
                    <td style="box-shadow: -2px -1px 3px rgba(0, 0, 0, 0.06);"></td>
                    <td style="text-align: right;">
                        <button class="btn btn-primary btn-xs"
                                ng-click="recapitulationCtrl.setFormExpanded(entity, [0, entity.RegionID, 0])"
                                ng-if="indexCtrl.isInRoleAndScope('volunteer_apbn', entity.RegionID)">
                            Tambah
                        </button>
                    </td>
                    <td style="text-align: right;">
                        <button class="btn btn-primary btn-xs"
                                ng-click="recapitulationCtrl.setFormExpanded(entity, [0, entity.RegionID, entity.RegionID])"
                                ng-if="indexCtrl.isInRoleAndScope('volunteer_desa', entity.RegionID)">
                            Tambah
                        </button>
                    </td>

                    <td></td>
                    <td style="text-align: right;">
                        <button class="btn btn-primary btn-xs"
                                ng-click="recapitulationCtrl.setFormExpanded(entity, [indexCtrl.regionTree[2].ID, entity.RegionID, indexCtrl.regionTree[2].ID])"
                                ng-if="indexCtrl.isInRoleAndScope('volunteer_add', entity.RegionID)">
                            Tambah
                        </button>
                    </td>
                    <td style="text-align: right;">
                        <button class="btn btn-primary btn-xs"
                                ng-click="recapitulationCtrl.setFormExpanded(entity, [indexCtrl.regionTree[2].ID, entity.RegionID, entity.RegionID])"
                                ng-if="indexCtrl.isInRoleAndScope('volunteer_desa', entity.RegionID)">
                            Tambah
                        </button>
                    </td>
                </tr>
                <tr class="detail" ng-if="recapitulationCtrl.isExpanded(entity)" ng-repeat="transaction in recapitulationCtrl.transactions[entity.RegionID]">
                    <td colspan="1"></td>
                    <td style="box-shadow: -2px -1px 3px rgba(0, 0, 0, 0.06);"></td>
                    <td class="money">
                        <span class="info">
                            <a ng-if="transaction.APBN.TransferredProofID" target="_blank" href="/Content/files/{{transaction.APBN.TransferredProofID}}">
                                {{transaction.APBN.TransferredDate}}
                            </a>
                            <span ng-if="!transaction.APBN.TransferredProofID">{{transaction.APBN.TransferredDate}}</span>
                        </span>
                        {{transaction.APBN.TransferredAmount | number:0}}
                    </td>
                    <td class="money">
                        <span class="info">
                            <a ng-if="transaction.APBN.AcknowledgedProofID" target="_blank" href="/Content/files/{{transaction.APBN.AcknowledgedProofID}}">
                                {{transaction.APBN.AcknowledgedDate}}
                            </a>
                            <span ng-if="!transaction.APBN.AcknowledgedProofID">
                                {{transaction.APBN.AcknowledgedDate}}
                            </span>
                        </span>
                        {{transaction.APBN.AcknowledgedAmount | number:0}}
                    </td>
                    <td></td>
                    <td class="money">
                        <span class="info">
                            <a ng-if="transaction.ADD.TransferredProofID" target="_blank" href="/Content/files/{{transaction.ADD.TransferredProofID}}">
                                {{transaction.ADD.TransferredDate}}
                            </a>
                            <span ng-if="!transaction.ADD.TransferredProofID">{{transaction.ADD.TransferredDate}}</span>
                        </span>
                        {{transaction.ADD.TransferredAmount | number:0}}
                    </td>
                    <td class="money">
                        <span class="info">
                            <a ng-if="transaction.ADD.AcknowledgedProofID" target="_blank" href="/Content/files/{{transaction.ADD.AcknowledgedProofID}}">
                                {{transaction.ADD.AcknowledgedDate}}
                            </a>
                            <span ng-if="!transaction.ADD.AcknowledgedProofID">
                                {{transaction.ADD.AcknowledgedDate}}
                            </span>
                        </span>
                        {{transaction.ADD.AcknowledgedAmount | number:0}}
                    </td>
                </tr>
                <tr class="detail-sum" ng-if="recapitulationCtrl.isExpanded(entity)" style="box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.11)">
                    <td colspan="1"></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr ng-repeat-end="">
                    <td>
                        <a href="#" ng-click="indexCtrl.changeRegion(entity.RegionID, $event)">
                            {{entity.RegionName}}
                        </a>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedDd | number:0}} </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedDd * 0.4 | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.TransferredAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.TransferredDd | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.AcknowledgedAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedAdd | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.TransferredAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedAdd * 0.4 | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.TransferredAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.TransferredAdd | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.AcknowledgedAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedBhpr | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.AcknowledgedAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.TransferredBhpr | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.AcknowledgedAPBN)"> </div>
                    </td>
                </tr>
            </tbody>

            <tfoot ng-show="entities.length > 0">
                <tr class="success">
                    <td><a href="">Total</a></td>
                    <td class="money"> {{total.BudgetedDd | number:0}} </td>
                    <td class="money"> {{total.BudgetedDd * 0.4 | number:0}} </td>
                    <td class="money"> {{total.TransferredDd | number:0}} </td>

                    <td class="money"> {{total.BudgetedAdd | number:0}} </td>
                    <td class="money"> {{total.BudgetedAdd * 0.4 | number:0}} </td>
                    <td class="money"> {{total.TransferredAdd | number:0}} </td>

                    <td class="money"> {{total.BudgetedBhpr | number:0}} </td>
                    <td class="money"> {{total.TransferredBhpr | number:0}} </td>
                </tr>
            </tfoot>

            <tfoot ng-show="entities.length == 0">
                <tr>
                    <td colspan="10" style="padding: 10px 5px; text-align: center;">Memuat data...</td>
                </tr>
            </tfoot>

        </table>
    </div>
    <div class="container-fluid well help">
        <ul>
            <li id="help-penyaluran">
                Halaman penyaluran di kawaldesa.org menampilkan penyaluran 3 dari 7 pendapatan desa, yaitu:
                <ol>
                    <li id="help-dd">Dana Desa, yang dianggarkan di APBN</li>
                    <li id="help-add">Alokasi Dana Desa (ADD), yang dianggarkan di APBD</li>
                    <li id="help-bhpr">Bagi hasil pajak dan retribusi daerah</li>
                </ol>
            </li>
            <li id="help-anggaran">
                Detail alokasi anggaran bisa dilihat di halaman Alokasi,
                <ol>
                    <li><a href="/dd/0">Alokasi Dana Desa dari APBN</a></li>
                    <li><a href="/add/0">Alokasi ADD dari APBD</a></li>
                    <li><a href="/bhpr/0">Alokasi Bagi hasil retribusi &amp; pajak</a></li>
                </ol>
            </li>
            <li id="help-target">
                Menurut PP No. 22 tahun 2015, penyaluran dana desa dilakukan secara bertahap pada tahun anggaran berjalan dengan ketentuan:
                <ol>
                    <li>tahap I pada bulan April sebesar 40%</li>
                    <li>tahap II pada bulan Agustus sebesar 40%</li>
                    <li>tahap III pada bulan Oktober sebesar 20%</li>
                </ol>
            </li>
        </ul>
    </div>
</div><commit_msg>fix region link on penyaluran<commit_after>﻿<div ng-controller="TransferRecapitulationCtrl as recapitulationCtrl" ng-if="indexCtrl.type == 'transfer' && indexCtrl.region.Type < 4">

    <div class="alert alert-success" style="font-size: small; padding: 5px 20px;">
        <a href="/Docs/_build/html/overview.html">Apa itu kawal desa?</a>
    </div>

    <div class="content-header">
        Penyaluran Pendapatan Desa Dari Pusat & Kabupaten/Kota <sup><a href="#help-penyaluran">?</a></sup>
    </div>

    <div class="table-responsive">
        <table class="table table-condensed table-responsive table-bordered">
            <thead>
                <tr>
                    <th rowspan="2" style="vertical-align: middle;">{{indexCtrl.childName}}</th>
                    <th colspan="3" style="text-align: center; width: 25%;">Dana Desa APBN (Pusat → Desa) <sup><a href="#help-dd">?</a></sup></th>
                    <th colspan="3" style="text-align: center; width: 25%;">ADD (Kabupaten → Desa)<sup><a href="#help-add">?</a></sup></th>
                    <th colspan="2" style="text-align: center; width: 25%;">Bagi Hasil Pajak (Kabupaten → Desa)<sup><a href="#help-bhpr">?</a></sup></th>
                </tr>
                <tr>
                    <th class="money" style="width: 8.3333%;">Anggaran <sup><a href="#help-anggaran">?</a></sup></th>
                    <th class="money" style="width: 8.3333%;">Target April (40%)<sup> <a href="#help-target">?</a></sup></th>
                    <th class="money" style="width: 8.3333%;">Tersalurkan</th>
                    <th class="money" style="width: 8.3333%;">Anggaran</th>
                    <th class="money" style="width: 8.3333%;">Target April (40%)</th>
                    <th class="money" style="width: 8.3333%;">Tersalurkan</th>
                    <th class="money" style="width: 10%;">Anggaran</th>
                    <th class="money" style="width: 10%;">Tersalurkan</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat-start="entity in entities"></tr>
                <tr class="detail-padding" ng-if="recapitulationCtrl.isExpanded(entity)">
                    <td colspan="7"></td>
                </tr>
                <tr ng-if="recapitulationCtrl.isExpanded(entity)
                    && recapitulationCtrl.isFormExpanded(entity)
                    && indexCtrl.hasAnyVolunteerRoles()">
                    <td style="border-top: 1px solid #fff; border-bottom: 1px solid #fff"></td>
                    <td colspan="6" style="box-shadow: -2px 0 2px rgba(0, 0, 0, 0.05);">
                        <div class="container-fluid">
                            <form class="form-horizontal" role="form" ng-submit="recapitulationCtrl.saveForm(entity)">
                                <h5 style="text-align: center; width: 100%">
                                    Tambah Laporan
                                    {{recapitulationCtrl.formTransactions[entity.RegionID].fkActorID == entity.RegionID ? 'Terima Transfer' : 'Transfer'}}
                                    {{recapitulationCtrl.formTransactions[entity.RegionID].fkSourceID == 0 ? 'APBN' : 'ADD'}}
                                    (
                                    {{recapitulationCtrl.formTransactions[entity.RegionID].fkSourceID == 0 ? 'Pusat' : indexCtrl.regionTree[2].Name}}
                                    -> Desa {{entity.RegionName}})
                                </h5>
                                <div class="form-group input-sm">
                                    <label for="date" class="col-sm-2 control-label">Tanggal</label>
                                    <div class="col-sm-10">
                                        <input type="text"
                                               ng-model="recapitulationCtrl.formTransactions[entity.RegionID].Date"
                                               class="form-control" id="date" placeholder="dd-mm-yyyy">
                                        <div ng-if="recapitulationCtrl.formErrors[entity.RegionID].Date" class="alert alert-danger" role="alert">
                                            {{recapitulationCtrl.formErrors[entity.RegionID].Date}}
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group input-sm">
                                    <label for="amount" class="col-sm-2 control-label">Jumlah</label>
                                    <div class="col-sm-10">
                                        <input type="number"
                                               ng-model="recapitulationCtrl.formTransactions[entity.RegionID].Amount"
                                               class="form-control" id="amount" placeholder="Jumlah Transfer">
                                        <div ng-if="recapitulationCtrl.formErrors[entity.RegionID].Amount" class="alert alert-danger" role="alert">
                                            {{recapitulationCtrl.formErrors[entity.RegionID].Amount}}
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group input-sm">
                                    <label for="proof" class="col-sm-2 control-label">Lampiran</label>
                                    <div class="col-sm-10">
                                        <input type="file" ng-file-select
                                               ng-model="recapitulationCtrl.formTransactions[entity.RegionID].File"
                                               id="proof" />
                                    </div>
                                </div>
                                <div class="form-group input-sm">
                                    <label for="amount" class="col-sm-2 control-label">URL Sumber</label>
                                    <div class="col-sm-10">
                                        <input type="text"
                                               ng-model="recapitulationCtrl.formTransactions[entity.RegionID].SourceURL"
                                               class="form-control" id="amount" placeholder="jika ada, masukkan URL sumber">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div style="width: 100%; text-align: center;" ng-hide="recapitulationCtrl.formSavingStates[entity.RegionID]">
                                        <button type="submit" class="btn btn-xs btn-primary">Simpan</button>
                                        <button class="btn btn-xs btn-danger" ng-click="recapitulationCtrl.setFormExpanded(entity, false)">Batal</button>
                                    </div>
                                    <div style="width: 100%; text-align: center;" ng-show="recapitulationCtrl.formSavingStates[entity.RegionID]">
                                        Menyimpan...
                                    </div>
                                </div>
                            </form>

                        </div>
                    </td>
                </tr>
                <tr class="detail" ng-if="recapitulationCtrl.isExpanded(entity)
                    && !recapitulationCtrl.isFormExpanded(entity)
                    && indexCtrl.hasAnyVolunteerRoles()
                    && indexCtrl.isInScope(entity.RegionID)">
                    <td colspan="1"></td>
                    <td style="box-shadow: -2px -1px 3px rgba(0, 0, 0, 0.06);"></td>
                    <td style="text-align: right;">
                        <button class="btn btn-primary btn-xs"
                                ng-click="recapitulationCtrl.setFormExpanded(entity, [0, entity.RegionID, 0])"
                                ng-if="indexCtrl.isInRoleAndScope('volunteer_apbn', entity.RegionID)">
                            Tambah
                        </button>
                    </td>
                    <td style="text-align: right;">
                        <button class="btn btn-primary btn-xs"
                                ng-click="recapitulationCtrl.setFormExpanded(entity, [0, entity.RegionID, entity.RegionID])"
                                ng-if="indexCtrl.isInRoleAndScope('volunteer_desa', entity.RegionID)">
                            Tambah
                        </button>
                    </td>

                    <td></td>
                    <td style="text-align: right;">
                        <button class="btn btn-primary btn-xs"
                                ng-click="recapitulationCtrl.setFormExpanded(entity, [indexCtrl.regionTree[2].ID, entity.RegionID, indexCtrl.regionTree[2].ID])"
                                ng-if="indexCtrl.isInRoleAndScope('volunteer_add', entity.RegionID)">
                            Tambah
                        </button>
                    </td>
                    <td style="text-align: right;">
                        <button class="btn btn-primary btn-xs"
                                ng-click="recapitulationCtrl.setFormExpanded(entity, [indexCtrl.regionTree[2].ID, entity.RegionID, entity.RegionID])"
                                ng-if="indexCtrl.isInRoleAndScope('volunteer_desa', entity.RegionID)">
                            Tambah
                        </button>
                    </td>
                </tr>
                <tr class="detail" ng-if="recapitulationCtrl.isExpanded(entity)" ng-repeat="transaction in recapitulationCtrl.transactions[entity.RegionID]">
                    <td colspan="1"></td>
                    <td style="box-shadow: -2px -1px 3px rgba(0, 0, 0, 0.06);"></td>
                    <td class="money">
                        <span class="info">
                            <a ng-if="transaction.APBN.TransferredProofID" target="_blank" href="/Content/files/{{transaction.APBN.TransferredProofID}}">
                                {{transaction.APBN.TransferredDate}}
                            </a>
                            <span ng-if="!transaction.APBN.TransferredProofID">{{transaction.APBN.TransferredDate}}</span>
                        </span>
                        {{transaction.APBN.TransferredAmount | number:0}}
                    </td>
                    <td class="money">
                        <span class="info">
                            <a ng-if="transaction.APBN.AcknowledgedProofID" target="_blank" href="/Content/files/{{transaction.APBN.AcknowledgedProofID}}">
                                {{transaction.APBN.AcknowledgedDate}}
                            </a>
                            <span ng-if="!transaction.APBN.AcknowledgedProofID">
                                {{transaction.APBN.AcknowledgedDate}}
                            </span>
                        </span>
                        {{transaction.APBN.AcknowledgedAmount | number:0}}
                    </td>
                    <td></td>
                    <td class="money">
                        <span class="info">
                            <a ng-if="transaction.ADD.TransferredProofID" target="_blank" href="/Content/files/{{transaction.ADD.TransferredProofID}}">
                                {{transaction.ADD.TransferredDate}}
                            </a>
                            <span ng-if="!transaction.ADD.TransferredProofID">{{transaction.ADD.TransferredDate}}</span>
                        </span>
                        {{transaction.ADD.TransferredAmount | number:0}}
                    </td>
                    <td class="money">
                        <span class="info">
                            <a ng-if="transaction.ADD.AcknowledgedProofID" target="_blank" href="/Content/files/{{transaction.ADD.AcknowledgedProofID}}">
                                {{transaction.ADD.AcknowledgedDate}}
                            </a>
                            <span ng-if="!transaction.ADD.AcknowledgedProofID">
                                {{transaction.ADD.AcknowledgedDate}}
                            </span>
                        </span>
                        {{transaction.ADD.AcknowledgedAmount | number:0}}
                    </td>
                </tr>
                <tr class="detail-sum" ng-if="recapitulationCtrl.isExpanded(entity)" style="box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.11)">
                    <td colspan="1"></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr ng-repeat-end="">
                    <td>
                        <a ng-if="indexCtrl.guessType(entity.RegionId) < 4" href="/p/{{entity.RegionId}}" ng-click="indexCtrl.changeRegion(entity.RegionId, $event)">
                            {{entity.RegionName}}
                        </a>
                        <span ng-if="indexCtrl.guessType(entity.RegionId) == 4">
                            {{entity.RegionName}}
                        </span>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedDd | number:0}} </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedDd * 0.4 | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.TransferredAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.TransferredDd | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.AcknowledgedAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedAdd | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.TransferredAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedAdd * 0.4 | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.TransferredAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.TransferredAdd | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.AcknowledgedAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.BudgetedBhpr | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.AcknowledgedAPBN)"> </div>
                    </td>
                    <td class="money">
                        <div style="float:right;">{{entity.TransferredBhpr | number:0}} </div>
                        <div class="fill-meter-bar" ng-style="recapitulationCtrl.moveFillMeterBar(entity.BudgetedAPBN, entity.AcknowledgedAPBN)"> </div>
                    </td>
                </tr>
            </tbody>

            <tfoot ng-show="entities.length > 0">
                <tr class="success">
                    <td><a href="">Total</a></td>
                    <td class="money"> {{total.BudgetedDd | number:0}} </td>
                    <td class="money"> {{total.BudgetedDd * 0.4 | number:0}} </td>
                    <td class="money"> {{total.TransferredDd | number:0}} </td>

                    <td class="money"> {{total.BudgetedAdd | number:0}} </td>
                    <td class="money"> {{total.BudgetedAdd * 0.4 | number:0}} </td>
                    <td class="money"> {{total.TransferredAdd | number:0}} </td>

                    <td class="money"> {{total.BudgetedBhpr | number:0}} </td>
                    <td class="money"> {{total.TransferredBhpr | number:0}} </td>
                </tr>
            </tfoot>

            <tfoot ng-show="entities.length == 0">
                <tr>
                    <td colspan="10" style="padding: 10px 5px; text-align: center;">Memuat data...</td>
                </tr>
            </tfoot>

        </table>
    </div>
    <div class="container-fluid well help">
        <ul>
            <li id="help-penyaluran">
                Halaman penyaluran di kawaldesa.org menampilkan penyaluran 3 dari 7 pendapatan desa, yaitu:
                <ol>
                    <li id="help-dd">Dana Desa, yang dianggarkan di APBN</li>
                    <li id="help-add">Alokasi Dana Desa (ADD), yang dianggarkan di APBD</li>
                    <li id="help-bhpr">Bagi hasil pajak dan retribusi daerah</li>
                </ol>
            </li>
            <li id="help-anggaran">
                Detail alokasi anggaran bisa dilihat di halaman Alokasi,
                <ol>
                    <li><a href="/dd/0">Alokasi Dana Desa dari APBN</a></li>
                    <li><a href="/add/0">Alokasi ADD dari APBD</a></li>
                    <li><a href="/bhpr/0">Alokasi Bagi hasil retribusi &amp; pajak</a></li>
                </ol>
            </li>
            <li id="help-target">
                Menurut PP No. 22 tahun 2015, penyaluran dana desa dilakukan secara bertahap pada tahun anggaran berjalan dengan ketentuan:
                <ol>
                    <li>tahap I pada bulan April sebesar 40%</li>
                    <li>tahap II pada bulan Agustus sebesar 40%</li>
                    <li>tahap III pada bulan Oktober sebesar 20%</li>
                </ol>
            </li>
        </ul>
    </div>
</div>
{'fraction_non_alphanumeric': 0.13359403167207476, 'fraction_numerical': 0.009984191696480573, 'mean_word_length': 1.2636700357837907, 'pattern_counts': {'":': 0, '<': 668, '<?xml version=': 0, '>': 669, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 126, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1878011', 'n_tokens_mistral': 10133, 'n_tokens_neox': 9174, 'n_words': 1596}