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">
|
2019-01-15 10:15:30 +00:00
|
|
|
<h6 translate>Total by company</h6>
|
2018-11-14 09:55:15 +00:00
|
|
|
<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>
|
2019-01-15 10:15:30 +00:00
|
|
|
<vn-th number>Bank</vn-th>
|
|
|
|
<vn-th number>Debit</vn-th>
|
|
|
|
<vn-th number>Havings</vn-th>
|
|
|
|
<vn-th number>Balance</vn-th>
|
|
|
|
<vn-th center>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-15 11:04:34 +00:00
|
|
|
<vn-td>
|
|
|
|
<span ng-show="risk.ref" translate>BILL</span> {{::risk.ref}}
|
|
|
|
</vn-td>
|
2019-01-15 10:15:30 +00:00
|
|
|
<vn-td number>{{::risk.bankFk}}</vn-td>
|
|
|
|
<vn-td number>{{::risk.debit | currency:'€':2}}</vn-td>
|
|
|
|
<vn-td number>{{::risk.credit | currency:'€':2}}</vn-td>
|
|
|
|
<vn-td number>{{risk.balance | currency:'€':2}}</vn-td>
|
|
|
|
<vn-td 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>
|
2019-01-15 10:15:30 +00:00
|
|
|
<vn-td center>
|
|
|
|
<a ng-show="risk.pdf"
|
2019-01-15 11:04:34 +00:00
|
|
|
href="api/InvoiceOuts/{{::risk.id}}/download?access_token={{::$ctrl.accessToken}}">
|
2019-01-15 10:15:30 +00:00
|
|
|
<vn-icon-button
|
2019-01-14 16:26:59 +00:00
|
|
|
icon="cloud_download"
|
|
|
|
title="Download PDF">
|
2019-01-15 10:15:30 +00:00
|
|
|
</vn-icon-button>
|
2019-01-14 16:26:59 +00:00
|
|
|
</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>
|
2019-01-15 10:15:30 +00:00
|
|
|
<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>
|
2018-10-19 06:40:32 +00:00
|
|
|
</a>
|