2019-07-30 16:06:35 +02:00
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="text-center red" translate>{{ 'invoices.export_accounting_data' }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2019-07-31 11:10:10 +02:00
|
|
|
<form role="form" name="exportForm">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="start_date" translate>{{ 'invoices.export_form_date' }}</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
|
|
<input type="text"
|
|
|
|
class="form-control"
|
|
|
|
name="start_date"
|
|
|
|
id="start_date"
|
|
|
|
ng-model="exportTarget.startDate"
|
|
|
|
uib-datepicker-popup="{{datePicker.format}}"
|
|
|
|
datepicker-options="datePicker.options"
|
|
|
|
is-open="datePicker.opened.start"
|
2019-07-31 12:00:52 +02:00
|
|
|
min-date="firstInvoice"
|
2019-07-31 11:10:10 +02:00
|
|
|
placeholder="{{datePicker.format}}"
|
|
|
|
ng-click="toggleDatePicker($event, 'start')"
|
|
|
|
required/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="end_date" translate>{{ 'invoices.export_to_date' }}</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
|
|
<input type="text"
|
|
|
|
class="form-control"
|
|
|
|
name="end_date"
|
|
|
|
id="end_date"
|
|
|
|
ng-model="exportTarget.endDate"
|
|
|
|
uib-datepicker-popup="{{datePicker.format}}"
|
|
|
|
datepicker-options="datePicker.options"
|
|
|
|
is-open="datePicker.opened.end"
|
2019-07-31 12:00:52 +02:00
|
|
|
min-date="exportTarget.startDate || firstInvoice"
|
2019-07-31 11:10:10 +02:00
|
|
|
placeholder="{{datePicker.format}}"
|
|
|
|
ng-click="toggleDatePicker($event, 'end')"
|
|
|
|
required/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<h4 class="control-label m-l" translate>{{ 'invoices.export_to' }}</h4>
|
|
|
|
<div class="form-group m-l-lg">
|
|
|
|
<label for="acd">
|
|
|
|
<input type="radio" name="acd" id="acd" ng-model="exportTarget.software" ng-value="'acd'" ng-click="fillSettings()" required/>
|
|
|
|
{{ 'invoices.acd' | translate }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" ng-show="exportTarget.settings">
|
|
|
|
<div class="col-md-4 font-bold" translate>{{ 'invoices.format' }}</div>
|
|
|
|
<div class="col-md-8">{{ exportTarget.settings.format }}</div>
|
|
|
|
<div class="col-md-4 font-bold" translate>{{ 'invoices.encoding' }}</div>
|
|
|
|
<div class="col-md-8">{{ exportTarget.settings.encoding }}</div>
|
|
|
|
<div class="col-md-4 font-bold" translate>{{ 'invoices.separator' }}</div>
|
|
|
|
<div class="col-md-8">{{ exportTarget.settings.separator }}</div>
|
|
|
|
<div class="col-md-4 font-bold" translate>{{ 'invoices.dateFormat' }}</div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<a href="https://apidock.com/ruby/DateTime/strftime" class="help-cursor" target="_blank">{{ exportTarget.settings.dateFormat }}</a>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 font-bold" translate>{{ 'invoices.columns' }}</div>
|
|
|
|
<table class="col-md-12 export-table-template">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td ng-repeat="column in exportTarget.settings.columns" translate>{{ 'invoices.exportColumns.' + column }}</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td ng-repeat="column in exportTarget.settings.columns"></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</form>
|
2019-07-30 16:06:35 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2019-07-31 15:47:02 +02:00
|
|
|
<form role="form" ng-submit="ok()" name="exportFormParams" method="post" action="{{ actionUrl }}" class="inline">
|
|
|
|
<input name="authenticity_token" type="hidden" ng-value="csrfToken"/>
|
|
|
|
<input name="_method" type="hidden" ng-value="method"/>
|
|
|
|
<input name="extension" type="hidden" ng-value="query.extension"/>
|
2019-09-16 14:39:47 +02:00
|
|
|
<input name="type" type="hidden" ng-value="exportTarget.software"/>
|
2019-07-31 15:47:02 +02:00
|
|
|
<input name="key" type="hidden" ng-value="query.key"/>
|
|
|
|
<input name="query" type="hidden" ng-value="query.query"/>
|
|
|
|
<input type="submit" class="btn btn-warning" value="{{ 'confirm' | translate }}" formtarget="export-frame"/>
|
|
|
|
</form>
|
2019-07-30 16:06:35 +02:00
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'cancel' }}</button>
|
|
|
|
</div>
|