106 lines
4.0 KiB
HTML
106 lines
4.0 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="/client/api/receipts/filter"
|
|
params="$ctrl.params"
|
|
limit="20"
|
|
data="$ctrl.risks"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<vn-crud-model
|
|
vn-id="riskModel"
|
|
url="/client/api/ClientRisks"
|
|
filter="$ctrl.filter"
|
|
data="riskTotal"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<vn-vertical>
|
|
<vn-card pad-large>
|
|
<vn-horizontal>
|
|
<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">
|
|
<h6 translate>Total by company</h6>
|
|
<vn-auto ng-repeat="riskByCompany in riskTotal">
|
|
<vn-label-value
|
|
label="{{riskByCompany.company.code}}"
|
|
value="{{riskByCompany.amount | currency: 'EUR':2}}">
|
|
</vn-label-value>
|
|
</vn-auto>
|
|
</div>
|
|
</vn-one>
|
|
</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 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>
|
|
<vn-th></vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody>
|
|
<vn-tr ng-repeat="risk in $ctrl.risks">
|
|
<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>
|
|
<vn-td>
|
|
<span ng-show="risk.ref" translate>BILL</span> {{::risk.ref}}
|
|
</vn-td>
|
|
<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>
|
|
<vn-td center>
|
|
<vn-check
|
|
field="risk.isConciliate"
|
|
disabled="true">
|
|
</vn-check>
|
|
</vn-td>
|
|
<vn-td center>
|
|
<a ng-show="risk.pdf"
|
|
target="_blank"
|
|
href="api/InvoiceOuts/{{::risk.id}}/download?access_token={{::$ctrl.accessToken}}">
|
|
<vn-icon-button
|
|
icon="cloud_download"
|
|
title="Download PDF">
|
|
</vn-icon-button>
|
|
</a>
|
|
</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
</vn-vertical>
|
|
<vn-pagination model="model"></vn-pagination>
|
|
</vn-card>
|
|
</vn-vertical>
|
|
|
|
<vn-float-button
|
|
vn-acl="administrative"
|
|
vn-acl-action="remove"
|
|
icon="add"
|
|
vn-tooltip="New payment"
|
|
vn-bind="+"
|
|
fixed-bottom-right
|
|
ng-click="$ctrl.openCreateDialog()">
|
|
</vn-float-button>
|
|
|
|
<vn-client-risk-create vn-id="riskCreateDialog">
|
|
</vn-client-risk-create> |