Commit 67ae99dd authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Up : Détails des dépenses (Colonne Btar)

parent da61fa5f
Loading
Loading
Loading
Loading
+4 −2
Changes for ui/src/views/SpentLinePFI.vue: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -130,8 +130,10 @@
              </tbody>
            </table>

            <a :href="url_activity" v-if="url_activity" class="btn btn-default btn-xs"><i class="icon-cube"></i> Revenir à
              l'activité</a>
            <a :href="url_activity" v-if="url_activity" class="btn btn-default btn-xs">
              <i class="icon-cube"></i>
              Revenir à l'activité
            </a>

            <form :action="url_sync" method="post" class="form-inline" v-if="url_sync">
              <input type="hidden" name="action" value="update"/>
+32 −28
Changes for ui/src/views/SpentLinePFIGrouped.vue: 32 added lines, 28 removed lines.
Original line number Diff line number Diff line
@@ -5,13 +5,13 @@
            <tr>
                <th>N°</th>
                <th>Ligne(s)</th>
                <th>Statut</th>
                <th>Btar</th>
                <th>Type</th>
                <th>Description</th>
                <th style="width: 8%">Montant engagé</th>
                <th style="width: 8%">Montant effectué</th>
                <th style="width: 8%">Compte Budgetaire</th>
                <th style="width: 8%">Compte</th>
                <th style="width: 8%">Engagé</th>
                <th style="width: 8%">Fait</th>
                <th style="width: 8%">Cpt. Bdg.</th>
                <th style="width: 8%">Cpt.</th>
                <th style="width: 8%">Date Comptable</th>
                <th style="width: 8%">Date paiement</th>
                <th style="width: 8%">Année</th>
@@ -19,33 +19,27 @@
            </thead>
            <tbody>
            <tr v-for="l in lines">
                <td>{{ l.numpiece }}</td>

              <td><small>{{ l.numpiece }}</small></td>
                <td>
                    <button @click="$emit('detailsline', l)" class="btn btn-default xs">{{ l.details.length }}
                    </button>
                    <span class="cartouche xs" v-for="n in l.numSifac" title="N°SIFAC">
                      {{ n }}
                    </span>
                    <a @click="$emit('detailsline', l)"
                       :title="'N°' + l.numSifac.join(',')"
                       class="cartouche xs">
                      {{ l.details.length }} ligne(s)
                    </a>
                </td>
                <td>
                  <span v-if="l.btart == '0250'">
                    <i class="icon-calculator" ></i>
                    Payé
                  </span>
                  <span v-else-if="l.btart == '0100'">
                    <i class="icon-bank" ></i>
                    Engagé
                  </span>
                  <span v-else>
                    <i class="icon-attention-1" ></i>
                    Inconnu
                  </span>
                <td class="statut">
                  <span class="statut">
                    <i class="icon-calculator" v-if="l.btart == '0250'"></i>
                    <i class="icon-clock" v-else-if="l.btart == '0100'"></i>
                    <i class="icon-attention-1" v-else></i>
                    {{ l.btart }}
                  </span>
                </td>
                <td><small>{{ l.types ? l.types.join(',') : '' }}</small></td>
                <td><small>{{ l.text.join(', ') }}</small></td>
                <td style="text-align: right"><strong>{{ $filters.money(l.montant_engage) }}</strong></td>
                <td style="text-align: right"><strong>{{ $filters.money(l.montant_effectue) }}</strong></td>
                <td class="montant">{{ $filters.money(l.montant_engage) }}</td>
                <td class="montant">{{ $filters.money(l.montant_effectue) }}</td>
                <td>{{ l.compteBudgetaires.join(', ') }}</td>
                <td>
                    <span v-for="c in l.comptes" class="cartouche default xs" style="white-space: nowrap" @click="handlerEditCompte(c)">
@@ -61,8 +55,8 @@
            <tfoot>
            <tr style="font-weight: bold; font-size: 1.2em">
                <td colspan="5" style="text-align: right">Total :</td>
                <td style="text-align: right">{{ $filters.money(total_engage) }}</td>
                <td style="text-align: right">{{ $filters.money(total_effectue) }}</td>
                <td class="montant">{{ $filters.money(total_engage) }}</td>
                <td class="montant">{{ $filters.money(total_effectue) }}</td>
                <td colspan="2">&nbsp;</td>
            </tr>
            </tfoot>
@@ -111,3 +105,13 @@
        }
    }
</script>
<style>
.montant {
  white-space: nowrap;
  text-align: right;
}
.statut > span {
  white-space: nowrap;
  font-size: .8em;
}
</style>
 No newline at end of file