salix/modules/client/front/risk/index/index.html

106 lines
4.0 KiB
HTML
Raw Normal View History

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-25 07:50:13 +00:00
data="$ctrl.risks"
auto-load="true">
2018-10-19 06:40:32 +00:00
</vn-crud-model>
<vn-crud-model
vn-id="riskModel"
url="/client/api/ClientRisks"
2019-01-25 07:50:13 +00:00
filter="$ctrl.filter"
2019-01-16 14:29:01 +00:00
data="riskTotal"
auto-load="true">
2018-10-19 06:40:32 +00:00
</vn-crud-model>
<vn-vertical>
<vn-card pad-large>
<vn-horizontal>
2018-11-14 09:55:15 +00:00
<vn-one>
</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: 'EUR':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.userNickname}}</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: 'EUR':2}}</vn-td>
<vn-td number>{{::risk.credit | currency: 'EUR':2}}</vn-td>
<vn-td number>{{risk.balance | currency: 'EUR':2}}</vn-td>
2019-01-15 10:15:30 +00:00
<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:17:33 +00:00
target="_blank"
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-table>
</vn-vertical>
2019-01-20 17:48:03 +00:00
<vn-pagination model="model"></vn-pagination>
2018-10-19 06:40:32 +00:00
</vn-card>
</vn-vertical>
2019-02-05 15:46:02 +00:00
<vn-float-button
vn-acl="administrative"
vn-acl-action="remove"
icon="add"
2019-01-15 10:15:30 +00:00
vn-tooltip="New payment"
vn-bind="+"
2019-02-05 15:46:02 +00:00
fixed-bottom-right
ng-click="$ctrl.openCreateDialog()">
</vn-float-button>
<vn-client-risk-create vn-id="riskCreateDialog">
</vn-client-risk-create>