2018-10-19 06:40:32 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/client/api/receipts/filter"
|
2018-11-14 09:55:15 +00:00
|
|
|
params="$ctrl.params"
|
2018-10-19 06:40:32 +00:00
|
|
|
limit="20"
|
2019-01-14 16:26:59 +00:00
|
|
|
data="$ctrl.risks"
|
|
|
|
auto-load="false">
|
2018-10-19 06:40:32 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
|
|
|
vn-id="riskModel"
|
|
|
|
url="/client/api/ClientRisks"
|
|
|
|
filter="::$ctrl.filter"
|
|
|
|
data="riskTotal">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
2018-11-14 09:55:15 +00:00
|
|
|
<vn-one>
|
2018-12-19 10:22:16 +00:00
|
|
|
<vn-title>Balance</vn-title>
|
2018-11-14 09:55:15 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
field="$ctrl.companyFk"
|
|
|
|
on-change="$ctrl.setOrder(value)"
|
|
|
|
url="/client/api/Companies"
|
|
|
|
show-field="code"
|
|
|
|
value-field="id"
|
|
|
|
label="Select company">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<div class="totalBox" ng-if="riskTotal.length">
|
|
|
|
<h6> Total por empresa</h6>
|
|
|
|
<vn-auto ng-repeat="riskByCompany in riskTotal">
|
2019-01-14 16:26:59 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="{{riskByCompany.company.code}}"
|
|
|
|
value="{{riskByCompany.amount | currency:'€':2}}">
|
2018-11-14 09:55:15 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</vn-auto>
|
|
|
|
</div>
|
|
|
|
</vn-one>
|
2018-10-19 06:40:32 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th>Date</vn-th>
|
|
|
|
<vn-th>Creation date</vn-th>
|
|
|
|
<vn-th>Employee</vn-th>
|
|
|
|
<vn-th>Reference</vn-th>
|
|
|
|
<vn-th>Bank</vn-th>
|
|
|
|
<vn-th>Debit</vn-th>
|
2018-12-10 08:31:32 +00:00
|
|
|
<vn-th>Havings</vn-th>
|
2018-11-19 08:48:14 +00:00
|
|
|
<vn-th>Balance</vn-th>
|
2018-10-19 06:40:32 +00:00
|
|
|
<vn-th>Conciliated</vn-th>
|
2019-01-14 16:26:59 +00:00
|
|
|
<vn-th></vn-th>
|
2018-10-19 06:40:32 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2018-11-14 09:55:15 +00:00
|
|
|
<vn-tr ng-repeat="risk in $ctrl.risks">
|
2018-10-19 06:40:32 +00:00
|
|
|
<vn-td>{{::risk.payed | dateTime:'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td>{{::risk.created | dateTime:'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
|
|
<vn-td>{{::risk.firstName}} {{::risk.name}}</vn-td>
|
2019-01-14 16:26:59 +00:00
|
|
|
<vn-td>{{::risk.ref ? 'N/FRA ' + risk.ref : ''}}</vn-td>
|
2018-10-19 06:40:32 +00:00
|
|
|
<vn-td>{{::risk.bankFk}}</vn-td>
|
2019-01-14 16:26:59 +00:00
|
|
|
<vn-td>{{::risk.debit | currency:'€':2}}</vn-td>
|
|
|
|
<vn-td>{{::risk.credit | currency:'€':2}}</vn-td>
|
|
|
|
<vn-td>{{risk.balance | currency:'€':2}}</vn-td>
|
|
|
|
<vn-td style="text-align: center">
|
2018-10-19 06:40:32 +00:00
|
|
|
<vn-check
|
2019-01-14 16:26:59 +00:00
|
|
|
field="risk.isConciliate"
|
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td style="text-align: center">
|
|
|
|
<a ng-show="risk.ref"
|
|
|
|
href="api/InvoiceOuts/{{::risk.ref}}/download?access_token={{::$ctrl.accessToken}}">
|
|
|
|
<vn-icon
|
|
|
|
icon="cloud_download"
|
|
|
|
title="Download PDF">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
2018-10-19 06:40:32 +00:00
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
|
|
|
<a ui-sref="client.card.risk.create" vn-tooltip="New payment"
|
|
|
|
vn-bind="+" fixed-bottom-right>
|
|
|
|
<vn-float-button vn-acl="administrative" vn-acl-action="remove" icon="add"></vn-float-button>
|
|
|
|
</a>
|
|
|
|
|