-
Notifications
You must be signed in to change notification settings - Fork 19
/
mh_mr.html
281 lines (257 loc) · 17.3 KB
/
mh_mr.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Facturador</title>
<!-- Prevent the demo from appearing in search engines -->
<meta name="robots" content="noindex" />
<!-- App CSS -->
<link type="text/css" href="./assets/css/app.css" rel="stylesheet" />
<link type="text/css" href="./assets/css/app.rtl.css" rel="stylesheet" />
<link type="text/css" href="./assets/css/sweetalert.css" rel="stylesheet" />
<!-- Simplebar -->
<link type="text/css" href="./assets/vendor/simplebar.css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Import de Js -->
<script src="./assets/js/jquery-3.3.1.min.js"></script>
<script src="./assets/js/crLibreFront.js"></script>
<script src="./assets/js/crLibreApi.js"></script>
<script src="./assets/js/sweetalert.min.js"></script>
</head>
<body>
<div class="mdk-drawer-layout js-mdk-drawer-layout" data-fullbleed="" data-push="" data-responsive-width="992px" data-has-scrolling-region="">
<div class="mdk-drawer-layout__content">
<!-- header-layout -->
<div class="mdk-header-layout js-mdk-header-layout mdk-header--fixed mdk-header-layout__content--scrollable">
<!-- header -->
<div class="mdk-header js-mdk-header bg-primary" data-fixed="">
<div class="mdk-header__content">
<nav class="navbar navbar-expand-md navbar-dark bg-primary d-flex-none">
<button class="btn btn-link text-white pl-0" type="button" data-toggle="sidebar">
<i class="material-icons align-middle md-36">short_text</i>
</button>
<div class="page-title m-0">Configuracion</div>
</nav>
</div>
</div>
<!-- content -->
<div class="mdk-header-layout__content ls-top-navbar mdk-header-layout__content--scrollable h-100">
<!-- main content -->
<div class="container-fluid">
<div class="row align-items-center mb-3">
<div class="col-md-8">
<h1 class="h2 mb-0">Aceptacion de Facturas</h1>
<ol class="breadcrumb">
<li>
<a href="#">Inicio</a>
</li>
<li>
<a href="#">Comprobantes</a>
</li>
<li>
<a href="#">Aceptacion de Facturas</a>
</li>
</ol>
</div>
<div class="col-md-4 text-md-right">
<button class="btn btn-white">
<i class="material-icons md-18 align-middle">chevron_left</i>
<span class="align-middle">Atras</span>
</button>
</div>
</div>
<div class="card">
<div class="card-body">
<form />
<div class="form-group">
<label for="exampleFormControlFile1">Favor, adjuntar el XML de la Factura</label>
<input type='file' accept="text/xml" onchange='crLibreApi_read_xml(event, "resumen")' class='form-control-file'/>
</div>
<div class="form-group">
<label for="exampleFormControlFile1">Mensaje:</label>
<select onchange="crLibreApi_companny_consecutive_by_terminal($(this).val());" id="mensaje" class="form-control">
<option value="05" selected>Aceptacion</option>
<option value="06">Aceptacion Parcial</option>
<option value="07">Rechazo</option>
</select>
</div>
<div class="form-group">
<label for="order_expected">Detalles:</label>
<input id="detalle" type="text" class="form-control" placeholder="informacion extra...">
</div>
<div class="form-group">
<label for="order_created">Fecha de Emision Mensaje</label>
<input type="text" id="mrDate" class="datepicker-disabled form-control" disabled="" />
</div>
<div class="form-group">
<label for="order_created">Consecutivo Mensaje</label>
<input type="text" id="feConsecutivo" class="datepicker-disabled form-control" disabled="" />
</div>
<div class="form-group">
<label for="note">Resumen del emisor</label>
<div class="row">
<div class="col">
<div class="form-group">
<label for="order_created">Nombre Emisor</label>
<input readonly="" id="emisorNombre" class="datepicker-disabled form-control" disabled="">
</div>
<div class="form-group">
<label for="order_created">Nombre Comercial Emisor</label>
<input readonly="" id="emisorNombreComercial" class="datepicker-disabled form-control" disabled="">
</div>
<div class="form-group">
<label for="order_created">Correo</label>
<input readonly="" id="emisorCorreoElectronico" class="datepicker-disabled form-control" disabled="">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="order_created">Tipo Cedula Emisor</label>
<input readonly="" id="tipoCedulaEmisor" class="datepicker-disabled form-control" disabled="">
</div>
<div class="form-group">
<label for="order_created">Cedula Emisor</label>
<input readonly="" id="emisorNumero" class="datepicker-disabled form-control" disabled="">
</div>
</div>
</div>
</div>
<div class="form-group">
<label for="note">Resumen de Receptor</label>
<div class="row">
<div class="col">
<div class="form-group">
<label for="order_created">Nombre Receptor</label>
<input readonly="" id="nombreReceptor" class="datepicker-disabled form-control" disabled="">
</div>
<div class="form-group">
<label for="order_created">Nombre Comercial Receptor</label>
<input readonly="" id="nombreComercialReceptor" class="datepicker-disabled form-control" disabled="">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="order_created">Tipo Cedula Receptor</label>
<input readonly="" id="tipoCedulaReceptor" class="datepicker-disabled form-control" disabled="">
</div>
<div class="form-group">
<label for="order_created">Cedula del Recptor</label>
<input readonly="" id="cedulaReceptor" class="datepicker-disabled form-control" disabled="">
</div>
</div>
</div>
</div>
<div class="form-group">
<label for="note">Resumen de Factura</label>
<div class="row">
<div class="col">
<div class="form-group">
<label for="order_created">Clave</label>
<input readonly="" id="clave" class="datepicker-disabled form-control" disabled="">
</div>
<div class="form-group">
<label for="order_created">Moneda</label>
<input readonly="" id="moneda" class="datepicker-disabled form-control" disabled="">
</div>
<div class="form-group">
<label for="order_created">Total</label>
<input readonly="" id="total" class="datepicker-disabled form-control" disabled="">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="order_created">Fecha</label>
<input readonly="" id="fecha" class="datepicker-disabled form-control" disabled="">
</div>
<div class="form-group">
<label for="order_created">Impuesto</label>
<input readonly="" id="impuesto" class="datepicker-disabled form-control" disabled="">
</div>
</div>
</div>
</div>
<div class="form-group">
<input type="button" onclick="crLibreApi_mensaje_comprobacion();" class="btn btn-primary" value="Enviar"></input>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- // END drawer-layout__content -->
<!-- drawer -->
<div class="mdk-drawer js-mdk-drawer" id="default-drawer">
</div>
</div>
<!-- // END drawer-layout -->
<!-- jQuery -->
<script src="./assets/vendor/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="./assets/vendor/popper.js"></script>
<script src="./assets/vendor/bootstrap.min.js"></script>
<!-- Simplebar -->
<!-- Used for adding a custom scrollbar to the drawer -->
<script src="./assets/vendor/simplebar.js"></script>
<!-- Vendor -->
<script src="./assets/vendor/Chart.min.js"></script>
<script src="./assets/vendor/moment.min.js"></script>
<!-- APP -->
<script src="./assets/js/color_variables.js"></script>
<script src="./assets/js/app.js"></script>
<script src="./assets/vendor/dom-factory.js"></script>
<!-- DOM Factory -->
<script src="./assets/vendor/material-design-kit.js"></script>
<!-- MDK -->
<script>
checkUserLogin();
addmenu();
crLibreApi_companny_consecutive_by_terminal($("#mensaje").val());
(function () {
'use strict';
// Self Initialize DOM Factory Components
domFactory.handler.autoInit()
// Connect button(s) to drawer(s)
var sidebarToggle = document.querySelectorAll('[data-toggle="sidebar"]')
sidebarToggle.forEach(function (toggle) {
toggle.addEventListener('click', function (e) {
var selector = e.currentTarget.getAttribute('data-target') || '#default-drawer'
var drawer = document.querySelector(selector)
if (drawer) {
if (selector == '#default-drawer') {
$('.container-fluid').toggleClass('container--max');
}
drawer.mdkDrawer.toggle();
}
})
})
})()
// Get current date
let today = new Date();
let dd = today.getDate();
let mm = today.getMonth() + 1;
const yyyy = today.getFullYear();
let hora = today.getHours();
let minute = today.getMinutes();
let segundos = today.getSeconds();
if (dd < 10) {
dd = '0' + dd
}
if (hora < 10) {
hora = '0' + hora
}
if (minute < 10) {
minute = '0' + minute
}
if (mm < 10) {
mm = '0' + mm
}
//2018-05-15T16:00:00-06:00
today = yyyy + '-' + mm + '-' + dd + 'T' + hora + ':' + minute + ':' + segundos + '-06:00';
$('#mrDate').val(today);
</script>
</body>
</html>