2018-10-19 06:40:32 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2020-04-25 09:50:04 +00:00
|
|
|
url="Receipts/filter"
|
2018-10-19 06:40:32 +00:00
|
|
|
limit="20"
|
2020-01-02 13:44:51 +00:00
|
|
|
data="$ctrl.balances">
|
2018-10-19 06:40:32 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
|
|
|
vn-id="riskModel"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ClientRisks"
|
2019-01-25 07:50:13 +00:00
|
|
|
filter="$ctrl.filter"
|
2019-04-16 11:40:26 +00:00
|
|
|
data="$ctrl.clientRisks">
|
2018-10-19 06:40:32 +00:00
|
|
|
</vn-crud-model>
|
2020-09-17 18:12:52 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="Companies"
|
|
|
|
data="companies"
|
|
|
|
order="code">
|
|
|
|
</vn-crud-model>
|
2020-03-30 15:30:03 +00:00
|
|
|
<vn-side-menu side="right">
|
|
|
|
<div class="vn-pa-md">
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
vn-id="company"
|
|
|
|
ng-model="$ctrl.companyId"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="companies"
|
2020-03-30 15:30:03 +00:00
|
|
|
show-field="code"
|
|
|
|
value-field="id"
|
|
|
|
label="Company">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<div
|
|
|
|
class="totalBox"
|
|
|
|
style="text-align: center;"
|
|
|
|
ng-if="$ctrl.clientRisks.length">
|
|
|
|
<h6 translate>Total by company</h6>
|
|
|
|
<vn-label-value
|
|
|
|
ng-repeat="riskByCompany in $ctrl.clientRisks"
|
|
|
|
label="{{riskByCompany.company.code}}"
|
|
|
|
value="{{riskByCompany.amount | currency: 'EUR':2}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn-side-menu>
|
2019-10-02 17:24:42 +00:00
|
|
|
<div class="vn-w-lg">
|
|
|
|
<vn-data-viewer model="model">
|
|
|
|
<vn-card>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-th expand>Date</vn-th>
|
|
|
|
<vn-th expand>Creation date</vn-th>
|
2019-10-01 14:17:57 +00:00
|
|
|
<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="balance in $ctrl.balances">
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-td expand>
|
2019-10-18 23:18:25 +00:00
|
|
|
<span title="{{::balance.payed | date:'dd/MM/yyyy'}}">
|
|
|
|
{{::balance.payed | date:'dd/MM/yyyy'}}
|
2019-10-14 13:20:03 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-td expand>
|
2019-10-18 23:18:25 +00:00
|
|
|
<span title="{{::balance.created | date:'dd/MM/yyyy HH:mm'}}">
|
|
|
|
{{::balance.created | date:'dd/MM/yyyy HH:mm'}}
|
2019-10-14 13:20:03 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="workerDescriptor.show($event, balance.workerFk)"
|
|
|
|
class="link">
|
2020-08-27 06:24:21 +00:00
|
|
|
{{::balance.userName}}
|
2019-10-01 14:17:57 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-08-27 09:23:39 +00:00
|
|
|
<vn-td-editable disabled="balance.isInvoice || !$ctrl.isAdministrative" expand>
|
2020-08-27 06:24:21 +00:00
|
|
|
<text>
|
|
|
|
<div ng-show="::balance.description">
|
|
|
|
<span
|
|
|
|
ng-if="balance.isInvoice"
|
|
|
|
title="{{'BILL' | translate: {ref: balance.description} }}"
|
|
|
|
vn-click-stop="$ctrl.showInvoiceOutDescriptor($event, balance)"
|
|
|
|
class="link">
|
|
|
|
{{'BILL' | translate: {ref: balance.description} }}
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
ng-if="!balance.isInvoice"
|
|
|
|
title="{{::balance.description}}">
|
|
|
|
{{balance.description}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</text>
|
|
|
|
<field>
|
2020-08-27 09:23:39 +00:00
|
|
|
<vn-textfield vn-acl="administrative" class="dense" vn-focus
|
2020-08-27 06:24:21 +00:00
|
|
|
ng-model="balance.description"
|
|
|
|
on-change="$ctrl.changeDescription(balance)">
|
|
|
|
</vn-textfield>
|
|
|
|
</field>
|
|
|
|
</vn-td-editable>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-td number>{{::balance.bankFk}}</vn-td>
|
2020-02-17 07:38:19 +00:00
|
|
|
<vn-td number expand>{{::balance.debit | currency: 'EUR':2}}</vn-td>
|
|
|
|
<vn-td number expand>{{::balance.credit | currency: 'EUR':2}}</vn-td>
|
|
|
|
<vn-td number expand>{{balance.balance | currency: 'EUR':2}}</vn-td>
|
2019-10-14 13:20:03 +00:00
|
|
|
<vn-td center shrink>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-check
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="balance.isConciliate"
|
2019-10-01 14:17:57 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2019-10-14 13:20:03 +00:00
|
|
|
<vn-td center shrink>
|
2019-10-01 14:17:57 +00:00
|
|
|
<a ng-show="balance.hasPdf"
|
|
|
|
target="_blank"
|
2020-09-14 09:54:34 +00:00
|
|
|
href="api/InvoiceOuts/{{::balance.id}}/download?access_token={{::$ctrl.vnToken.token}}">
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-icon-button
|
|
|
|
icon="cloud_download"
|
|
|
|
title="{{'Download PDF' | translate}}">
|
|
|
|
</vn-icon-button>
|
|
|
|
</a>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2019-10-01 14:17:57 +00:00
|
|
|
</div>
|
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
|
2020-03-30 15:30:03 +00:00
|
|
|
ng-click="balanceCreate.show()">
|
2019-02-05 15:46:02 +00:00
|
|
|
</vn-float-button>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-client-balance-create
|
2020-03-30 15:30:03 +00:00
|
|
|
vn-id="balance-create"
|
|
|
|
on-accept="$ctrl.getData()"
|
2021-02-01 09:51:17 +00:00
|
|
|
company-fk="$ctrl.companyId"
|
|
|
|
client-fk="$ctrl.$params.id">
|
2019-04-16 11:40:26 +00:00
|
|
|
</vn-client-balance-create>
|
2019-04-05 11:20:34 +00:00
|
|
|
<vn-worker-descriptor-popover
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-id="workerDescriptor">
|
2019-04-05 11:20:34 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
<vn-invoice-out-descriptor-popover
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-id="invoiceOutDescriptor">
|
2019-04-05 11:20:34 +00:00
|
|
|
</vn-invoice-out-descriptor-popover>
|