2016-03-23 18:39:41 +01:00
|
|
|
<section class="heading b-b">
|
|
|
|
<div class="row no-gutter">
|
|
|
|
<div class="col-xs-2 col-sm-2 col-md-1">
|
|
|
|
<section class="heading-btn">
|
|
|
|
<a href="#" ng-click="backPrevLocation($event)"><i class="fa fa-long-arrow-left "></i></a>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-10 col-sm-10 col-md-8 b-l">
|
|
|
|
<section class="heading-title">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h1 translate>{{ 'invoices.invoices' }}</h1>
|
2016-03-23 18:39:41 +01:00
|
|
|
</section>
|
|
|
|
</div>
|
2019-01-03 16:48:52 +01:00
|
|
|
<div class="col-xs-12 col-sm-12 col-md-3 b-t hide-b-md">
|
|
|
|
<section class="heading-actions wrapper">
|
|
|
|
<a class="btn btn-lg btn-default rounded m-t-sm text-sm" ng-click="closeAnAccountingPeriod()"><i class="fa fa-calendar-check-o"></i></a>
|
|
|
|
</section>
|
|
|
|
</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="m-lg">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<uib-tabset justified="true">
|
2019-01-03 17:39:50 +01:00
|
|
|
<uib-tab heading="{{ 'invoices.invoices_list' | translate }}">
|
|
|
|
<h3 class="m-t-xs"><i class="fa fa-filter"></i> {{ 'invoices.filter_invoices' | translate }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
2019-01-03 17:39:50 +01:00
|
|
|
<span class="input-group-addon" translate>{{ 'invoices.invoice_#_' }}</span>
|
2016-05-31 10:02:27 +02:00
|
|
|
<input type="text" ng-model="searchInvoice.reference" class="form-control" placeholder="" ng-change="handleFilterChange()">
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
2019-01-03 17:39:50 +01:00
|
|
|
<span class="input-group-addon" translate>{{ 'invoices.customer_' }}</span>
|
2016-05-31 10:02:27 +02:00
|
|
|
<input type="text" ng-model="searchInvoice.name" class="form-control" placeholder="" ng-change="handleFilterChange()">
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
2019-01-03 17:39:50 +01:00
|
|
|
<span class="input-group-addon">{{ "invoices.date_" | translate }}</span>
|
2016-05-31 10:02:27 +02:00
|
|
|
<input type="date" ng-model="searchInvoice.date" class="form-control" ng-change="handleFilterChange()">
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<table class="table" ng-if="invoices.length > 0">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-01-03 17:39:50 +01:00
|
|
|
<th style="width:15%"><a href="" ng-click="setOrderInvoice('reference')">{{ 'invoices.invoice_#' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-numeric-asc': orderInvoice=='reference', 'fa fa-sort-numeric-desc': orderInvoice=='-reference', 'fa fa-arrows-v': orderInvoice }"></i></a></th>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2019-01-03 17:39:50 +01:00
|
|
|
<th style="width:20%"><a href="" ng-click="setOrderInvoice('date')">{{ 'invoices.date' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-numeric-asc': orderInvoice=='date', 'fa fa-sort-numeric-desc': orderInvoice=='-date', 'fa fa-arrows-v': orderInvoice }"></i></a></th>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2019-01-03 17:39:50 +01:00
|
|
|
<th style="width:10%"><a href="" ng-click="setOrderInvoice('total')"> {{ 'invoices.price' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-numeric-asc': orderInvoice=='total', 'fa fa-sort-numeric-desc': orderInvoice=='-total', 'fa fa-arrows-v': orderInvoice }"></i></a></th>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2019-01-03 17:39:50 +01:00
|
|
|
<th style="width:20%"><a href="" ng-click="setOrderInvoice('name')">{{ 'invoices.customer' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-alpha-asc': orderInvoice=='name', 'fa fa-sort-alpha-desc': orderInvoice=='-name', 'fa fa-arrows-v': orderInvoice }"></i></a></th>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
<th style="width:30%"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-05-31 10:02:27 +02:00
|
|
|
<tr ng-repeat="invoice in invoices">
|
2016-03-23 18:39:41 +01:00
|
|
|
<td>{{ invoice.reference }}</td>
|
|
|
|
<td ng-if="!invoice.is_avoir">{{ invoice.date | amDateFormat:'L LTS' }}</td>
|
|
|
|
<td ng-if="invoice.is_avoir">{{ invoice.date | amDateFormat:'L' }}</td>
|
|
|
|
<td>{{ invoice.total | currency}}</td>
|
|
|
|
<td><a href="" ui-sref="app.admin.members_edit({id: invoice.user_id})">{{ invoice.name }} </a>
|
|
|
|
<td>
|
|
|
|
<div class="buttons">
|
|
|
|
<a class="btn btn-default" ng-href="api/invoices/{{invoice.id}}/download" target="_blank" ng-if="!invoice.is_avoir">
|
2019-01-03 17:39:50 +01:00
|
|
|
<i class="fa fa-file-pdf-o"></i> {{ 'invoices.download_the_invoice' | translate }}
|
2016-03-23 18:39:41 +01:00
|
|
|
</a>
|
|
|
|
<a class="btn btn-default" ng-href="api/invoices/{{invoice.id}}/download" target="_blank" ng-if="invoice.is_avoir">
|
2019-01-03 17:39:50 +01:00
|
|
|
<i class="fa fa-file-pdf-o"></i> {{ 'invoices.download_the_credit_note' | translate }}
|
2016-03-23 18:39:41 +01:00
|
|
|
</a>
|
|
|
|
<a class="btn btn-default" ng-click="generateAvoirForInvoice(invoice)" ng-if="(!invoice.has_avoir || invoice.has_avoir == 'partial') && !invoice.is_avoir && !invoice.prevent_refund">
|
2019-01-03 17:39:50 +01:00
|
|
|
<i class="fa fa-reply"></i> {{ 'invoices.credit_note' | translate }}
|
2016-03-23 18:39:41 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-05-31 10:02:27 +02:00
|
|
|
<div class="text-center">
|
2019-01-03 17:39:50 +01:00
|
|
|
<button class="btn btn-warning" ng-click="showNextInvoices()" ng-hide="noMoreResults"><i class="fa fa-search-plus" aria-hidden="true"></i> {{ 'invoices.display_more_invoices' | translate }}</button>
|
2016-05-31 10:02:27 +02:00
|
|
|
</div>
|
2019-01-03 17:39:50 +01:00
|
|
|
<p ng-if="invoices.length == 0" translate>{{ 'invoices.no_invoices_for_now' }}</p>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</uib-tab>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-03 17:39:50 +01:00
|
|
|
<uib-tab heading="{{ 'invoices.invoicing_settings' | translate }}">
|
2016-03-23 18:39:41 +01:00
|
|
|
<form class="invoice-placeholder">
|
|
|
|
<div class="invoice-logo" style="background-image: url({{invoice.logo}});">
|
|
|
|
<img src="data:image/png;base64," data-src="holder.js/100%x100%/text:/font:FontAwesome/icon" bs-holder ng-if="!invoice.logo" class="img-responsive">
|
|
|
|
<img base-sixty-four-image="invoice.logo" ng-if="invoice.logo && invoice.logo.base64">
|
|
|
|
<div class="tools-box">
|
|
|
|
<div class="btn-group">
|
|
|
|
<div class="btn btn-default btn-file">
|
2019-01-03 17:39:50 +01:00
|
|
|
<i class="fa fa-edit"></i> {{ 'invoices.change_logo' | translate }}
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="file" accept="image/png,image/jpeg,image/x-png,image/pjpeg" name="invoice[logo][attachment]" ng-model="invoice.logo" base-sixty-four-input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="invoice-buyer-infos">
|
2019-01-03 17:39:50 +01:00
|
|
|
<strong translate>{{ 'invoices.john_smith' }}</strong>
|
|
|
|
<div translate>{{ 'invoices.john_smith@example_com' }}</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
2019-01-03 17:39:50 +01:00
|
|
|
<div class="invoice-reference invoice-editable" ng-click="openEditReference()">{{ 'invoices.invoice_reference_' | translate }} {{mkReference()}}</div>
|
|
|
|
<div class="invoice-code invoice-editable" ng-show="invoice.code.active" ng-click="openEditCode()">{{ 'invoices.code_' | translate }} {{invoice.code.model}}</div>
|
|
|
|
<div class="invoice-code invoice-activable" ng-show="!invoice.code.active" ng-click="openEditCode()" translate>{{ 'invoices.code_disabled' }}</div>
|
|
|
|
<div class="invoice-order invoice-editable" ng-click="openEditInvoiceNb()"> {{ 'invoices.order_#' | translate }} {{mkNumber()}}</div>
|
|
|
|
<div class="invoice-date">{{ 'invoices.invoice_issued_on_DATE_at_TIME' | translate:{DATE:(today | amDateFormat:'L'), TIME:(today | amDateFormat:'LT')} }}</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="invoice-object">
|
2019-01-03 17:39:50 +01:00
|
|
|
{{ 'invoices.object_reservation_of_john_smith_on_DATE_at_TIME' | translate:{DATE:(inOneWeek | amDateFormat:'L'), TIME:(inOneWeek | amDateFormat:'LT')} }}
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="invoice-data">
|
2019-01-03 17:39:50 +01:00
|
|
|
{{ 'invoices.order_summary' | translate }}
|
2016-03-23 18:39:41 +01:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-01-03 17:39:50 +01:00
|
|
|
<th translate>{{ 'invoices.details' }}</th>
|
|
|
|
<th class="right" translate>{{ 'invoices.amount' }}</th>
|
2016-03-23 18:39:41 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2019-01-03 17:39:50 +01:00
|
|
|
<td>{{ 'invoices.machine_booking-3D_printer' | translate }} {{inOneWeek | amDateFormat:'LLL'}} - {{inOneWeekAndOneHour | amDateFormat:'LT'}}</td>
|
2016-03-23 18:39:41 +01:00
|
|
|
<td class="right">{{30.0 | currency}}</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="invoice-total" ng-class="{'bold vat-line':invoice.VAT.active}">
|
2019-01-03 17:39:50 +01:00
|
|
|
<td ng-show="!invoice.VAT.active" translate>{{ 'invoices.total_amount' }}</td>
|
|
|
|
<td ng-show="invoice.VAT.active" translate>{{ 'invoices.total_including_all_taxes' }}</td>
|
2016-03-23 18:39:41 +01:00
|
|
|
<td class="right">{{30.0 | currency}}</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="invoice-vat invoice-activable" ng-click="openEditVAT()" ng-show="!invoice.VAT.active">
|
2019-01-03 17:39:50 +01:00
|
|
|
<td translate>{{ 'invoices.VAT_disabled' }}</td>
|
2016-03-23 18:39:41 +01:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="invoice-vat invoice-editable vat-line italic" ng-click="openEditVAT()" ng-show="invoice.VAT.active">
|
2019-01-03 17:39:50 +01:00
|
|
|
<td>{{ 'invoices.including_VAT' | translate }} {{invoice.VAT.rate}} %</td>
|
2017-01-02 11:08:40 +01:00
|
|
|
<td>{{30-(30/(invoice.VAT.rate/100+1)) | currency}}</td>
|
2016-03-23 18:39:41 +01:00
|
|
|
</tr>
|
|
|
|
<tr class="invoice-ht vat-line italic" ng-show="invoice.VAT.active">
|
2019-01-03 17:39:50 +01:00
|
|
|
<td translate>{{ 'invoices.including_total_excluding_taxes' }}</td>
|
2017-01-02 11:08:40 +01:00
|
|
|
<td>{{30/(invoice.VAT.rate/100+1) | currency}}</td>
|
2016-03-23 18:39:41 +01:00
|
|
|
</tr>
|
|
|
|
<tr class="invoice-payed vat-line bold" ng-show="invoice.VAT.active">
|
2019-01-03 17:39:50 +01:00
|
|
|
<td translate>{{ 'invoices.including_amount_payed_on_ordering' }}</td>
|
2016-03-23 18:39:41 +01:00
|
|
|
<td>{{30.0 | currency}}</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p class="invoice-payment" translate translate-values="{DATE:(today | amDateFormat:'L'), TIME:(today | amDateFormat:'LT'), AMOUNT:(30.0 | currency)}">
|
2019-01-03 17:39:50 +01:00
|
|
|
{{ 'invoices.settlement_by_debit_card_on_DATE_at_TIME_for_an_amount_of_AMOUNT' }}
|
2016-03-23 18:39:41 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div medium-editor class="invoice-text invoice-editable" ng-model="invoice.text.content"
|
|
|
|
options='{
|
2019-01-03 17:39:50 +01:00
|
|
|
"placeholder": "{{ "invoices.important_notes" | translate }}",
|
2016-03-23 18:39:41 +01:00
|
|
|
"buttons": ["underline"]
|
|
|
|
}'
|
|
|
|
ng-blur="textEditEnd($event)">
|
|
|
|
</div>
|
|
|
|
<div medium-editor class="invoice-legals invoice-editable" ng-model="invoice.legals.content"
|
|
|
|
options='{
|
2019-01-03 17:39:50 +01:00
|
|
|
"placeholder": "{{ "invoices.address_and_legal_information" | translate }}",
|
2016-03-23 18:39:41 +01:00
|
|
|
"buttons": ["bold", "underline"]
|
|
|
|
}'
|
|
|
|
ng-blur="legalsEditEnd($event)">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</uib-tab>
|
|
|
|
</uib-tabset>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="editReference.html">
|
|
|
|
<div class="custom-invoice">
|
|
|
|
<div class="modal-header">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h3 class="modal-title" translate>{{ 'invoices.invoice_reference' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body row">
|
|
|
|
<div class="elements col-md-4">
|
|
|
|
<h4>Éléments</h4>
|
|
|
|
<ul>
|
2019-01-03 17:39:50 +01:00
|
|
|
<li ng-click="invoice.reference.help = 'addYear.html'">{{ 'invoices.year' | translate }}</li>
|
|
|
|
<li ng-click="invoice.reference.help = 'addMonth.html'">{{ 'invoices.month' | translate }}</li>
|
|
|
|
<li ng-click="invoice.reference.help = 'addDay.html'">{{ 'invoices.day' | translate }}</li>
|
|
|
|
<li ng-click="invoice.reference.help = 'addInvoiceNumber.html'">{{ 'invoices.#_of_invoice' | translate }}</li>
|
|
|
|
<li ng-click="invoice.reference.help = 'addOnlineInfo.html'">{{ 'invoices.online_sales' | translate }}</li>
|
|
|
|
<%# <li ng-click="invoice.reference.help = 'addWalletInfo.html'">{{ 'invoices.wallet' | translate }}</li> %>
|
|
|
|
<li ng-click="invoice.reference.help = 'addRefundInfo.html'">{{ 'invoices.refund' | translate }}</li>
|
2016-03-23 18:39:41 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="model">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h4 translate>{{ 'invoices.model' }}</h4>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="text" class="form-control" ng-model="model">
|
|
|
|
</div>
|
|
|
|
<div class="help">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h4 translate>{{ 'invoices.documentation' }}</h4>
|
2016-03-23 18:39:41 +01:00
|
|
|
<ng-include src="invoice.reference.help" autoscroll="true">
|
|
|
|
</ng-include>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button class="btn btn-warning" ng-click="ok()" translate>{{ 'confirm' }}</button>
|
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'cancel' }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="addYear.html">
|
|
|
|
<table class="invoice-element-legend">
|
2019-01-03 17:39:50 +01:00
|
|
|
<tr><td><strong>YY</strong></td><td translate>{{ 'invoices.2_digits_year_(eg_70)' }}</td></tr>
|
|
|
|
<tr><td><strong>YYYY</strong></td><td translate>{{ 'invoices.4_digits_year_(eg_1970)' }}</td></tr>
|
2016-03-23 18:39:41 +01:00
|
|
|
</table>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="addMonth.html">
|
|
|
|
<table class="invoice-element-legend">
|
2019-01-03 17:39:50 +01:00
|
|
|
<tr><td><strong>M</strong></td><td translate>{{ 'invoices.month_number_(eg_1)' }}</td></tr>
|
|
|
|
<tr><td><strong>MM</strong></td><td translate>{{ 'invoices.2_digits_month_number_(eg_01)' }}</td></tr>
|
|
|
|
<tr><td><strong>MMM</strong></td><td translate>{{ 'invoices.3_characters_month_name_(eg_JAN)' }}</td></tr>
|
2016-03-23 18:39:41 +01:00
|
|
|
</table>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="addDay.html">
|
|
|
|
<table class="invoice-element-legend">
|
2019-01-03 17:39:50 +01:00
|
|
|
<tr><td><strong>D</strong></td><td translate>{{ 'invoices.day_in_the_month_(eg_1)' }}</td></tr>
|
|
|
|
<tr><td><strong>DD</strong></td><td translate>{{ 'invoices.2_digits_day_in_the_month_(eg_01)' }}</td></tr>
|
2016-03-23 18:39:41 +01:00
|
|
|
</table>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="addInvoiceNumber.html">
|
|
|
|
<table class="invoice-element-legend">
|
2019-01-03 17:39:50 +01:00
|
|
|
<tr><td><strong>dd...dd</strong></td><td translate>{{ 'invoices.(n)_digits_daily_count_of_invoices_(eg_ddd_002_2nd_invoice_of_the_day)' }}</td></tr>
|
|
|
|
<tr><td><strong>mm...mm</strong></td><td translate>{{ 'invoices.(n)_digits_monthly_count_of_invoices_(eg_mmmm_0012_12th_invoice_of_this_month)' }}</td></tr>
|
|
|
|
<tr><td><strong>yy...yy</strong></td><td translate>{{ 'invoices.(n)_digits_annual_amount_of_invoices_(eg_yyyyyy_000008_8th_invoice_of_this_year)' }}</td></tr>
|
2016-03-23 18:39:41 +01:00
|
|
|
</table>
|
2019-01-03 17:39:50 +01:00
|
|
|
<span class="bottom-notes" translate>{{ 'invoices.beware_if_the_number_exceed_the_specified_length_it_will_be_truncated_by_the_left' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="addOrderNumber.html">
|
|
|
|
<table class="invoice-element-legend">
|
2019-01-03 17:39:50 +01:00
|
|
|
<tr><td><strong>nn...nn</strong></td><td translate>{{ 'invoices.(n)_digits_count_of_orders_(eg_nnnn_0327_327th_order)' }}</td></tr>
|
|
|
|
<tr><td><strong>dd...dd</strong></td><td translate>{{ 'invoices.(n)_digits_daily_count_of_orders_(eg_ddd_002_2nd_order_of_the_day)' }}</td></tr>
|
|
|
|
<tr><td><strong>mm...mm</strong></td><td translate>{{ 'invoices.(n)_digits_monthly_count_of_orders_(eg_mmmm_0012_12th_order_of_this_month)' }}</td></tr>
|
|
|
|
<tr><td><strong>yy...yy</strong></td><td translate>{{ 'invoices.(n)_digits_annual_amount_of_orders_(eg_yyyyyy_000008_8th_order_of_this_year)' }}</td></tr>
|
2016-03-23 18:39:41 +01:00
|
|
|
</table>
|
2019-01-03 17:39:50 +01:00
|
|
|
<span class="bottom-notes" translate>{{ 'invoices.beware_if_the_number_exceed_the_specified_length_it_will_be_truncated_by_the_left' }}</span>
|
2016-03-23 18:39:41 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="addOnlineInfo.html">
|
|
|
|
<table class="invoice-element-legend">
|
2019-01-03 17:39:50 +01:00
|
|
|
<tr><td><strong>X[texte]</strong></td><td>{{ 'invoices.add_a_notice_regarding_the_online_sales_only_if_the_invoice_is_concerned' | translate }} <mark translate>{{ 'invoices.this_will_never_be_added_when_a_refund_notice_is_present' }}</mark> {{ 'invoices.(eg_X[/VL]_will_add_/VL_to_the_invoices_settled_with_stripe)' | translate }}</td></tr>
|
2016-03-23 18:39:41 +01:00
|
|
|
</table>
|
|
|
|
</script>
|
|
|
|
|
2016-07-12 12:29:51 +02:00
|
|
|
<script type="text/ng-template" id="addWalletInfo.html">
|
|
|
|
<table class="invoice-element-legend">
|
2019-01-03 17:39:50 +01:00
|
|
|
<tr><td><strong>W[texte]</strong></td><td>{{ 'invoices.add_a_notice_regarding_the_wallet_only_if_the_invoice_is_concerned' | translate }} <mark translate>{{ 'invoices.this_will_never_be_added_when_a_refund_notice_is_present' }}</mark> {{ 'invoices.(eg_W[/PM]_will_add_/PM_to_the_invoices_settled_with_wallet)' | translate }}</td></tr>
|
2016-07-12 12:29:51 +02:00
|
|
|
</table>
|
|
|
|
</script>
|
|
|
|
|
2016-03-23 18:39:41 +01:00
|
|
|
<script type="text/ng-template" id="addRefundInfo.html">
|
|
|
|
<table class="invoice-element-legend">
|
2019-01-03 17:39:50 +01:00
|
|
|
<tr><td><strong>R[texte]</strong></td><td>{{ 'invoices.add_a_notice_regarding_refunds_only_if_the_invoice_is_concerned' | translate }}<mark translate>{{ 'invoices.this_will_never_be_added_when_an_online_sales_notice_is_present' }}</mark> {{ 'invoices.(eg_R[/A]_will_add_/A_to_the_refund_invoices)' | translate }}</td></tr>
|
2016-03-23 18:39:41 +01:00
|
|
|
</table>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="editCode.html">
|
|
|
|
<div class="custom-invoice">
|
|
|
|
<div class="modal-header">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h3 class="modal-title" translate>{{ 'invoices.code' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
2019-01-03 17:39:50 +01:00
|
|
|
<label for="enableCode" class="control-label" translate>{{ 'invoices.enable_the_code' }}</label>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input bs-switch
|
|
|
|
ng-model="isSelected"
|
|
|
|
id="enableCode"
|
|
|
|
type="checkbox"
|
|
|
|
class="form-control m-l-sm"
|
2019-01-03 17:39:50 +01:00
|
|
|
switch-on-text="{{ 'invoices.enabled' | translate }}"
|
|
|
|
switch-off-text="{{ 'invoices.disabled' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
switch-animate="true"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-show="isSelected">
|
2019-01-03 17:39:50 +01:00
|
|
|
<label for="codeModel" class="control-label" translate>{{ 'invoices.code' }}</label>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input id="codeModel" type="text" ng-model="codeModel" class="form-control"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button class="btn btn-warning" ng-click="ok()" translate>{{ 'confirm' }}</button>
|
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'cancel' }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="editNumber.html">
|
|
|
|
<div class="custom-invoice">
|
|
|
|
<div class="modal-header">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h3 class="modal-title" translate>{{ 'invoices.order_number' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body row">
|
|
|
|
<div class="elements col-md-4">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h4 translate>{{ 'invoices.elements' }}</h4>
|
2016-03-23 18:39:41 +01:00
|
|
|
<ul>
|
2019-01-03 17:39:50 +01:00
|
|
|
<li ng-click="invoice.number.help = 'addYear.html'">{{ 'invoices.year' | translate }}</li>
|
|
|
|
<li ng-click="invoice.number.help = 'addMonth.html'">{{ 'invoices.month' | translate }}</li>
|
|
|
|
<li ng-click="invoice.number.help = 'addDay.html'">{{ 'invoices.day' | translate }}</li>
|
|
|
|
<li ng-click="invoice.number.help = 'addOrderNumber.html'">{{ 'invoices.order_#' | translate }}</li>
|
2016-03-23 18:39:41 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="model">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h4 translate>{{ 'invoices.model' }}</h4>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="text" class="form-control" ng-model="model">
|
|
|
|
</div>
|
|
|
|
<div class="help">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h4 translate>{{ 'invoices.documentation' }}</h4>
|
2016-03-23 18:39:41 +01:00
|
|
|
<ng-include src="invoice.number.help" autoscroll="true">
|
|
|
|
</ng-include>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button class="btn btn-warning" ng-click="ok()" translate>{{ 'confirm' }}</button>
|
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'cancel' }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="editVAT.html">
|
|
|
|
<div class="custom-invoice">
|
|
|
|
<div class="modal-header">
|
2019-01-03 17:39:50 +01:00
|
|
|
<h3 class="modal-title" translate>{{ 'invoices.VAT' }}</h3>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
2019-01-03 17:39:50 +01:00
|
|
|
<label for="enableVAT" class="control-label" translate>{{ 'invoices.enable_VAT' }}</label>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input bs-switch
|
|
|
|
ng-model="isSelected"
|
|
|
|
id="enableVAT"
|
|
|
|
type="checkbox"
|
|
|
|
class="form-control m-l-sm"
|
2019-01-03 17:39:50 +01:00
|
|
|
switch-on-text="{{ 'invoices.enabled' | translate }}"
|
|
|
|
switch-off-text="{{ 'invoices.disabled' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
switch-animate="true"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-show="isSelected">
|
2019-01-03 17:39:50 +01:00
|
|
|
<label for="vatRate" class="control-label" translate>{{ 'invoices.VAT_rate' }}</label>
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon">% </span>
|
|
|
|
<input id="vatRate" type="number" ng-model="rate" class="form-control" min="0" max="100"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button class="btn btn-warning" ng-click="ok()" translate>{{ 'confirm' }}</button>
|
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'cancel' }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-12 12:29:51 +02:00
|
|
|
</script>
|