-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
242 lines (235 loc) · 14.1 KB
/
index.php
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Facturas SYC</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/build/alertify.min.js"></script>
<!-- CSS -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/css/alertify.min.css" />
<!-- Default theme -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/css/themes/default.min.css" />
<!-- Semantic UI theme -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/css/themes/semantic.min.css" />
<!-- Bootstrap theme -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/css/themes/bootstrap.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js" integrity="sha256-TQq84xX6vkwR0Qs1qH5ADkP+MvH0W+9E7TdHJsoIQiM=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.js" integrity="sha256-nZaxPHA2uAaquixjSDX19TmIlbRNCOrf5HO1oHl5p70=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.css" integrity="sha256-IvM9nJf/b5l2RoebiFno92E5ONttVyaEEsdemDC6iQA=" crossorigin="anonymous" />
<script type="text/javascript" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/select/1.3.1/js/dataTables.select.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/1.6.1/js/dataTables.buttons.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/select/1.3.1/css/select.dataTables.min.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.6.1/css/buttons.dataTables.min.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="funciones.js"></script>
</head>
<body>
<div class="container">
<div class="row top-buffer">
<div class="col-lg-4">
<h4 class="text-success">Facturas</h4>
</div>
</div>
<div class="row top-buffer" id="pestannas">
<ul class="nav nav-pills">
<li>
<a data-toggle="pill" class="lipestannas" id="liclientes" href="#clientes" title="Haga click para recargar los datos de esta pestaña">Clientes</a>
</li>
<li>
<a data-toggle="pill" class="lipestannas" id="lifacturas" href="#facturas" title="Haga click para recargar los datos de esta pestaña">Facturas</a>
</li>
<li>
<a data-toggle="pill" class="lipestannas" id="liestadosfacturas" href="#estadosfacturas" title="Haga click para recargar los datos de esta pestaña">Estados Facturas</a>
</li>
</ul>
<br/>
<div class="tab-content">
<div id="clientes" class="tabcategorias tab-pane fade" >
<div class="row top-buffer">
<div class="col-lg-4">
<button id="btnMostrarModalCliente" class="btn btn-success mt-3">Agregar Cliente</button>
</div>
</div>
<br/>
<div class="row top-buffer">
<div class="col-lg-12">
<table id="tabla_clientes" class="table table-bordered table-striped display"></table>
</div>
</div>
</div>
<div id="facturas" class="tabcategorias tab-pane fade" >
<div class="row top-buffer">
<div class="col-lg-2">
<button id="btnMostrarModalFacturas" class="btn btn-success mt-3">Agregar Factura</button>
</div>
<div class="col-lg-4">
<button id="btnConsultarValorTotales" class="btn btn-success mt-3">Total Facturas Seleccionadas</button>
</div>
</div>
<br/>
<div class="row top-buffer">
<div class="col-lg-12">
<table id="tabla_facturas" class="table table-bordered table-striped display"></table>
</div>
</div>
</div>
<div id="estadosfacturas" class="tabcategorias tab-pane fade" >
<div class="row top-buffer">
<div class="col-lg-4">
<button id="btnMostrarModalEstadosClientes" class="btn btn-success mt-3">Agregar Estado Factura</button>
</div>
</div>
<br/>
<div class="row top-buffer">
<div class="col-lg-12">
<table id="tabla_estadosfacturas" class="table table-bordered table-striped display"></table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal" id="modalFacturas">
<div class="modal-dialog modal-medium">
<div class="modal-content" style="overflow: visible;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Agregar/Editar Factura</h4>
</div>
<div class="modal-body" style="font-size: 9pt;">
<input type="hidden" id="facturas_id_factura" class="facturas">
<div class="row container-fluid">
<div class="row top-buffer">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="cursor:help;" title="Número de la Factura">Factura</span>
<input type="text" class="form-control facturas" id="facturas_factura" aria-describedby="basic-addon3">
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon input-fix-sm">
<div class="input-group-fix-width" style="cursor:help;" title="Nombre del Cliente">
Cliente
</div>
</span>
<select class="form-control facturas" id="facturas_nume_doc"></select>
</div>
</div>
</div>
<br />
<div class="row top-buffer">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon input-fix-sm">
<div class="input-group-fix-width" style="cursor:help;" title="Estado de la Factura">
Estado
</div>
</span>
<select class="form-control facturas" id="facturas_codi_estado"></select>
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="cursor:help;" title="Valor de la Factura">Valor</span>
<input type="text" class="form-control facturas" id="facturas_valor_fac" aria-describedby="basic-addon3">
</div>
</div>
</div>
<br />
<div class="row top-buffer">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="cursor:help;" title="Fecha de la Factura">Fecha</span>
<input type="date" class="form-control facturas" id="facturas_fecha_fac" aria-describedby="basic-addon3">
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button id="btnGuardarFactura" class="btn btn-primary btn-sm">
Guardar</button>
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">Cancelar</button>
</div>
</div>
</div>
</div>
<div class="modal" id="modalClientes">
<div class="modal-dialog modal-medium">
<div class="modal-content" style="overflow: visible;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Agregar/Editar Cliente</h4>
</div>
<div class="modal-body" style="font-size: 9pt;">
<input type="hidden" id="clientes_documentoanterior" class="datoscliente">
<div class="row container-fluid">
<div class="row top-buffer">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="cursor:help;" title="Nombre del Cliente">Nombre</span>
<input type="text" class="form-control datoscliente" id="clientes_nombres" aria-describedby="basic-addon3">
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="cursor:help;" title="Dirección del Cliente">Dirección</span>
<input type="text" class="form-control datoscliente" id="clientes_direccion" aria-describedby="basic-addon3">
</div>
</div>
</div>
<br />
<div class="row top-buffer">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="cursor:help;" title="Número de Documento del Cliente">#Doc</span>
<input type="text" class="form-control datoscliente" id="clientes_numerodocumento" aria-describedby="basic-addon3">
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button id="btnGuardarCliente" class="btn btn-primary btn-sm">
Guardar</button>
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">Cancelar</button>
</div>
</div>
</div>
</div>
<div class="modal" id="modalEstadosFacturas">
<div class="modal-dialog modal-medium">
<div class="modal-content" style="overflow: visible;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Agregar/Editar Estado de la Factura</h4>
</div>
<div class="modal-body" style="font-size: 9pt;">
<input type="hidden" id="estadosfacturas_codi_estado" class="estadosfacturas">
<div class="row container-fluid">
<div class="row top-buffer">
<div class="col-lg-12">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="cursor:help;" title="Descripción del Estado">Descripción</span>
<input type="text" class="form-control estadosfacturas" id="estadosfacturas_descripcion" aria-describedby="basic-addon3">
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button id="btnGuardarEstadoFactura" class="btn btn-primary btn-sm">
Guardar</button>
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">Cancelar</button>
</div>
</div>
</div>
</div>
</body>
</html>