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

124 lines
4.9 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-04-05 11:20:34 +00:00
data="$ctrl.balances">
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"
data="$ctrl.clientRisks">
2018-10-19 06:40:32 +00:00
</vn-crud-model>
<vn-vertical>
<vn-card pad-large>
<vn-horizontal>
2019-05-01 16:49:39 +00:00
<vn-one></vn-one>
2018-11-14 09:55:15 +00:00
<vn-one>
2019-05-01 16:49:39 +00:00
<vn-autocomplete
2019-04-05 11:20:34 +00:00
vn-id="company"
2018-11-14 09:55:15 +00:00
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="$ctrl.clientRisks.length">
2019-01-15 10:15:30 +00:00
<h6 translate>Total by company</h6>
<vn-auto ng-repeat="riskByCompany in $ctrl.clientRisks">
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>
2019-04-05 11:20:34 +00:00
<vn-th default-order>Date</vn-th>
2018-10-19 06:40:32 +00:00
<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>
2019-04-05 11:20:34 +00:00
<vn-tr ng-repeat="balance in $ctrl.balances">
<vn-td>{{::balance.payed | dateTime:'dd/MM/yyyy'}}</vn-td>
<vn-td>{{::balance.created | dateTime:'dd/MM/yyyy HH:mm'}}</vn-td>
2019-01-15 11:04:34 +00:00
<vn-td>
2019-04-05 11:20:34 +00:00
<span
class="link"
ng-click="$ctrl.showWorkerDescriptor($event, balance.workerFk)">
2019-04-05 11:20:34 +00:00
{{::balance.userNickname}}
</span>
2019-01-15 11:04:34 +00:00
</vn-td>
2019-04-05 11:20:34 +00:00
<vn-td>
<span
ng-class="{'link': balance.isInvoice}"
ng-click="$ctrl.showInvoiceOutDescriptor($event, balance)"
ng-show="balance.ref">{{balance.isInvoice ? 'BILL' : balance.ref | translate: {ref: balance.ref} }}
</span>
</vn-td>
<vn-td number>{{::balance.bankFk}}</vn-td>
<vn-td number>{{::balance.debit | currency: 'EUR':2}}</vn-td>
<vn-td number>{{::balance.credit | currency: 'EUR':2}}</vn-td>
<vn-td number>{{balance.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-04-05 11:20:34 +00:00
field="balance.isConciliate"
2019-01-14 16:26:59 +00:00
disabled="true">
</vn-check>
</vn-td>
2019-01-15 10:15:30 +00:00
<vn-td center>
2019-04-05 11:20:34 +00:00
<a ng-show="balance.pdf"
2019-01-15 11:17:33 +00:00
target="_blank"
2019-04-05 11:20:34 +00:00
href="api/InvoiceOuts/{{::balance.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"
2019-05-01 16:49:39 +00:00
title="{{'Download PDF' | translate}}">
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-balance-create vn-id="balanceCreateDialog">
</vn-client-balance-create>
2019-04-05 11:20:34 +00:00
<vn-worker-descriptor-popover
vn-id="workerDescriptor"
worker-fk="$ctrl.selectedWorker">
2019-04-05 11:20:34 +00:00
</vn-worker-descriptor-popover>
<vn-invoice-out-descriptor-popover
vn-id="invoiceOutDescriptor"
invoice-out-id="$ctrl.selectedInvoiceOut">
</vn-invoice-out-descriptor-popover>