-
Notifications
You must be signed in to change notification settings - Fork 0
/
credito.php
319 lines (268 loc) · 22.1 KB
/
credito.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
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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<?php
$url_base = "http://localhost/proyecto/";
include("./bd.php");
$data = obtenerProveedores($conexion);
$proveedores = $data['proveedores'];
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// Validación y limpieza de los datos recibidos del formulario
$proveedores = isset($_POST['id_proveedor']) ? (int)$_POST['id_proveedor'] : 0;
$numero_de_factura = isset($_POST['numero_de_factura']) ? (int)$_POST['numero_de_factura'] : 0;
$monto = isset($_POST['monto']) ? (int)$_POST['monto'] : 0; // Aseguramos que sea un entero
$fecha_limite = isset($_POST['fecha_limite']) ? $_POST['fecha_limite'] : "";
$fecha_limite = DateTime::createFromFormat('d/m/Y', $fecha_limite);
if ($fecha_limite !== false) {
$fecha_limite_formatted = $fecha_limite->format('Y-m-d');
} else {
$fecha_limite_formatted = null;
}
$sentencia = $conexion->prepare("INSERT INTO `deudas` (`NUMERO_DE_FACTURA`, `ID_PROVEEDOR`, `MONTO`, `FECHA_LIMITE`, `FECHA_CREACION`, `FECHA_ACTUALIZACION`) VALUES (:numero_de_factura, :id_proveedor, :monto, :fecha_limite, NOW(), NOW())");
// Vincular los parámetros correctamente
$sentencia->bindParam(":id_proveedor", $proveedores);
$sentencia->bindParam(":numero_de_factura", $numero_de_factura);
$sentencia->bindParam(":monto", $monto);
$sentencia->bindParam(":fecha_limite", $fecha_limite_formatted);
$sentencia->execute();
header("Location: credito.php");
exit(); //
}
$sentencia = $conexion->prepare("SELECT * FROM `deudas`");
$sentencia->execute();
$lista_creditos = $sentencia->fetchAll(PDO::FETCH_ASSOC);
if (isset($_GET['eliminar'])) {
$txtID = $_GET['eliminar'];
$sentencia = $conexion->prepare("DELETE FROM deudas WHERE NUMERO_DE_FACTURA = :numero_de_factura");
$sentencia->bindParam(":numero_de_factura", $txtID);
$sentencia->execute();
header('Location: ' . $_SERVER['PHP_SELF']);
exit();
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="./jquery/jquery.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/credito.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<script src="./bootstrap-datepicker-1.9.0-dist/js/bootstrap-datepicker.min.js"></script>
<link rel="stylesheet" href="bootstrap-datepicker-1.9.0-dist/css/bootstrap-datepicker.css">
<link rel="icon" type="image/x-icon" href="imagenes/logo-azul.ico">
<title>La Polar</title>
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-dark bg-dark">
<a class="navbar-brand" href="<?php echo $url_base . '/inicio.php'; ?>">
<img class="user" src="imagenes/logo.png" alt="User" height="70 px" />
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="links collapse navbar-collapse" id="mynavbar">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a class="inicio nav-link" href="<?php echo $url_base . '/inicio.php'; ?>">Inicio</a>
</li>
<li class="nav-item">
<a class="facturas nav-link" href="<?php echo $url_base . '/facturas.php'; ?>">Facturas</a>
</li>
<li class="nav-item">
<a class="agrein nav-link" href="<?php echo $url_base . '/inventario.php'; ?>">Inventario</a>
</li>
</ul>
<span class="bb badge rounded-pill">
<img class="user" src="imagenes/user.png" alt="User" height="30 px" />
Melitón Morales
</span>
<a href="cerrar_sesion.php" style="background-color:#F7E2E2; margin-right: 2%;" class="btn btn-sm ml-2">Salir</a>
</div>
</nav>
<div class="container-fluid">
<div class="arriba row">
<div class="fuser col-sm-3">
<img class="user" src="imagenes/user.png" alt="User" height="70 px" />
<p> </p>
<h6 class="bien">Melitón Morales</h6>
<p class="ceo">CEO</p>
</div>
<div class="bienn col-sm-9 ">
</div>
</div>
<div class="abajo row">
<div class="menu col-sm-3">
<div class="d-grid gap-2 d-md-block">
<a href="<?php echo $url_base . '/inicio.php'; ?>">
<button class="binicio btn btn-primary" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-house-door" viewBox="0 0 16 16">
<path d="M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146ZM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4H2.5Z" />
</svg>
<p>Inicio</p>
</button>
</a>
<a href="<?php echo $url_base . '/clientes.php'; ?>">
<button class="bclientes btn btn-primary" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-people" viewBox="0 0 16 16">
<path d="M15 14s1 0 1-1-1-4-5-4-5 3-5 4 1 1 1 1h8Zm-7.978-1A.261.261 0 0 1 7 12.996c.001-.264.167-1.03.76-1.72C8.312 10.629 9.282 10 11 10c1.717 0 2.687.63 3.24 1.276.593.69.758 1.457.76 1.72l-.008.002a.274.274 0 0 1-.014.002H7.022ZM11 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm3-2a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM6.936 9.28a5.88 5.88 0 0 0-1.23-.247A7.35 7.35 0 0 0 5 9c-4 0-5 3-5 4 0 .667.333 1 1 1h4.216A2.238 2.238 0 0 1 5 13c0-1.01.377-2.042 1.09-2.904.243-.294.526-.569.846-.816ZM4.92 10A5.493 5.493 0 0 0 4 13H1c0-.26.164-1.03.76-1.724.545-.636 1.492-1.256 3.16-1.275ZM1.5 5.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm3-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z" />
</svg>
<p>Clientes</p>
</button>
</a>
</div>
<div class="d-grid gap-2 d-md-block">
<a href="<?php echo $url_base . '/proveedores.php'; ?>">
<button class="binicio btn btn-primary" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-building" viewBox="0 0 16 16">
<path d="M4 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM7.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM4.5 8a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Z" />
<path d="M2 1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V1Zm11 0H3v14h3v-2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V15h3V1Z" />
</svg>
<p>Proveedores</p>
</button>
</a>
<a href="<?php echo $url_base . '/credito.php'; ?>">
<button class="bclientes btn btn-primary" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-coin" viewBox="0 0 16 16">
<path d="M5.5 9.511c.076.954.83 1.697 2.182 1.785V12h.6v-.709c1.4-.098 2.218-.846 2.218-1.932 0-.987-.626-1.496-1.745-1.76l-.473-.112V5.57c.6.068.982.396 1.074.85h1.052c-.076-.919-.864-1.638-2.126-1.716V4h-.6v.719c-1.195.117-2.01.836-2.01 1.853 0 .9.606 1.472 1.613 1.707l.397.098v2.034c-.615-.093-1.022-.43-1.114-.9H5.5zm2.177-2.166c-.59-.137-.91-.416-.91-.836 0-.47.345-.822.915-.925v1.76h-.005zm.692 1.193c.717.166 1.048.435 1.048.91 0 .542-.412.914-1.135.982V8.518l.087.02z" />
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" />
<path d="M8 13.5a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11zm0 .5A6 6 0 1 0 8 2a6 6 0 0 0 0 12z" />
</svg>
<p>Crédito</p>
</button>
</a>
</div>
<div class="d-grid gap-2 d-md-block">
<a href="<?php echo $url_base . '/inventario.php'; ?>">
<button class="binicio btn btn-primary" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-tools" viewBox="0 0 16 16">
<path d="M1 0 0 1l2.2 3.081a1 1 0 0 0 .815.419h.07a1 1 0 0 1 .708.293l2.675 2.675-2.617 2.654A3.003 3.003 0 0 0 0 13a3 3 0 1 0 5.878-.851l2.654-2.617.968.968-.305.914a1 1 0 0 0 .242 1.023l3.27 3.27a.997.997 0 0 0 1.414 0l1.586-1.586a.997.997 0 0 0 0-1.414l-3.27-3.27a1 1 0 0 0-1.023-.242L10.5 9.5l-.96-.96 2.68-2.643A3.005 3.005 0 0 0 16 3c0-.269-.035-.53-.102-.777l-2.14 2.141L12 4l-.364-1.757L13.777.102a3 3 0 0 0-3.675 3.68L7.462 6.46 4.793 3.793a1 1 0 0 1-.293-.707v-.071a1 1 0 0 0-.419-.814L1 0Zm9.646 10.646a.5.5 0 0 1 .708 0l2.914 2.915a.5.5 0 0 1-.707.707l-2.915-2.914a.5.5 0 0 1 0-.708ZM3 11l.471.242.529.026.287.445.445.287.026.529L5 13l-.242.471-.026.529-.445.287-.287.445-.529.026L3 15l-.471-.242L2 14.732l-.287-.445L1.268 14l-.026-.529L1 13l.242-.471.026-.529.445-.287.287-.445.529-.026L3 11Z" />
</svg>
<p>Inventario</p>
</button>
</a>
<a href="<?php echo $url_base . '/cobranza.php'; ?>">
<button class="bclientes btn btn-primary" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-piggy-bank" viewBox="0 0 16 16">
<path d="M5 6.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm1.138-1.496A6.613 6.613 0 0 1 7.964 4.5c.666 0 1.303.097 1.893.273a.5.5 0 0 0 .286-.958A7.602 7.602 0 0 0 7.964 3.5c-.734 0-1.441.103-2.102.292a.5.5 0 1 0 .276.962z" />
<path fill-rule="evenodd" d="M7.964 1.527c-2.977 0-5.571 1.704-6.32 4.125h-.55A1 1 0 0 0 .11 6.824l.254 1.46a1.5 1.5 0 0 0 1.478 1.243h.263c.3.513.688.978 1.145 1.382l-.729 2.477a.5.5 0 0 0 .48.641h2a.5.5 0 0 0 .471-.332l.482-1.351c.635.173 1.31.267 2.011.267.707 0 1.388-.095 2.028-.272l.543 1.372a.5.5 0 0 0 .465.316h2a.5.5 0 0 0 .478-.645l-.761-2.506C13.81 9.895 14.5 8.559 14.5 7.069c0-.145-.007-.29-.02-.431.261-.11.508-.266.705-.444.315.306.815.306.815-.417 0 .223-.5.223-.461-.026a.95.95 0 0 0 .09-.255.7.7 0 0 0-.202-.645.58.58 0 0 0-.707-.098.735.735 0 0 0-.375.562c-.024.243.082.48.32.654a2.112 2.112 0 0 1-.259.153c-.534-2.664-3.284-4.595-6.442-4.595zM2.516 6.26c.455-2.066 2.667-3.733 5.448-3.733 3.146 0 5.536 2.114 5.536 4.542 0 1.254-.624 2.41-1.67 3.248a.5.5 0 0 0-.165.535l.66 2.175h-.985l-.59-1.487a.5.5 0 0 0-.629-.288c-.661.23-1.39.359-2.157.359a6.558 6.558 0 0 1-2.157-.359.5.5 0 0 0-.635.304l-.525 1.471h-.979l.633-2.15a.5.5 0 0 0-.17-.534 4.649 4.649 0 0 1-1.284-1.541.5.5 0 0 0-.446-.275h-.56a.5.5 0 0 1-.492-.414l-.254-1.46h.933a.5.5 0 0 0 .488-.393zm12.621-.857a.565.565 0 0 1-.098.21.704.704 0 0 1-.044-.025c-.146-.09-.157-.175-.152-.223a.236.236 0 0 1 .117-.173c.049-.027.08-.021.113.012a.202.202 0 0 1 .064.199z" />
</svg>
<p>Cobranza</p>
</button>
</a>
</div>
</div>
<div class="col-sm-9" style="margin-bottom: 280px;">
<div class="row">
<div class="clientes col-sm-7">
<h4>Crédito</h4>
</div>
<div class="buscador col-sm-4">
<form class="d-flex">
<input id="searchInput" class="form-control me-2" type="text" placeholder="Encontrar créditos" />
<button class="bbuscar btn" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="lupa bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" />
</svg>
</button>
</form>
</div>
<div class="icon-add col-sm-1">
<button id="show-add" class="btn" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="38" height="38" fill="currentColor" class="bi bi-plus-circle-fill" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z" />
</svg>
</button>
<div class="popup">
<div class="close-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z" />
</svg>
</div>
<form action="" enctype="multipart/form-data" method="post">
<div class="form">
<select style="margin-bottom: 2%;" class="form-select" name="id_proveedor" aria-label="Seleccionar proveedor">
<option value="" selected disabled>Seleccionar proveedor</option>
<?php foreach ($proveedores as $proveedor) { ?>
<option value="<?php echo $proveedor['ID_PROVEEDOR']; ?>"><?php echo $proveedor['NOMBRE']; ?></option>
<?php } ?>
</select>
<div class="mb-3">
<label for="numero_de_factura" class="form-label">Número de factura</label>
<input type="text" class="form-control numero_de_factura" name="numero_de_factura" id="formGroupExampleInput2" placeholder="56">
</div>
<div class="mb-3">
<label for="formGroupExampleInput2" class="form-label">En crédito</label>
<input name="monto" type="text" class="form-control" id="formGroupExampleInput2" placeholder="2344">
</div>
<div class="mb-3">
<label for="formGroupExampleInput2" class="form-label">Fecha Límite</label>
<div class="input-group date fj-date">
<input name="fecha_limite" type="text" class="form-control"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
</div>
</div>
<div>
<button type="submit" class="guardar-btn btn">Guardar</button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php $proveedoresData = obtenerProveedores($conexion); // Obtener los datos de los proveedores
$proveedores = $proveedoresData['proveedores']; // Extraer los proveedores
?>
<div class="row">
<?php foreach ($lista_creditos as $registros) { ?>
<div class="cobross">
<div class="row">
<h5 class="refatexto col-sm-7">
<?php
$idProveedor = $registros['ID_PROVEEDOR'];
foreach ($proveedores as $proveedor) {
if ($proveedor['ID_PROVEEDOR'] === $idProveedor) {
echo $proveedor['NOMBRE']; // Mostrar el nombre del proveedor
break; // Salir del bucle una vez encontrado
}
}
?>
</h5>
<a name="editar" id="" class="editar btn col-sm-1 btn-sm" href="editar_creditos.php?txtID=<?php echo $registros['NUMERO_DE_FACTURA']; ?>" role="button" style="margin-left: 12%;margin-top: 6%;">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.5016 1.93934C15.6969 2.1346 15.6969 2.45118 15.5016 2.64645L14.4587 3.68933L12.4587 1.68933L13.5016 0.646447C13.6969 0.451184 14.0134 0.451185 14.2087 0.646447L15.5016 1.93934Z" fill="#312B4C" fill-opacity="0.9" />
<path d="M13.7516 4.39644L11.7516 2.39644L4.93861 9.20943C4.88372 9.26432 4.84237 9.33123 4.81782 9.40487L4.01326 11.8186C3.94812 12.014 4.13405 12.1999 4.32949 12.1348L6.74317 11.3302C6.81681 11.3057 6.88372 11.2643 6.93861 11.2094L13.7516 4.39644Z" fill="#312B4C" fill-opacity="0.9" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 13.5C1 14.3284 1.67157 15 2.5 15H13.5C14.3284 15 15 14.3284 15 13.5V7.5C15 7.22386 14.7761 7 14.5 7C14.2239 7 14 7.22386 14 7.5V13.5C14 13.7761 13.7761 14 13.5 14H2.5C2.22386 14 2 13.7761 2 13.5V2.5C2 2.22386 2.22386 2 2.5 2H9C9.27614 2 9.5 1.77614 9.5 1.5C9.5 1.22386 9.27614 1 9 1H2.5C1.67157 1 1 1.67157 1 2.5V13.5Z" fill="#312B4C" fill-opacity="0.9" />
</svg>
</a>
<a name="" id="" class="eliminar btn col-sm-1 btn-sm" href="<?php echo $_SERVER['PHP_SELF'] . '?eliminar=' . $registros['NUMERO_DE_FACTURA']; ?>" role="button" style="margin-top: 6%; margin-right: 4%;">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.5 1C1.94772 1 1.5 1.44772 1.5 2V3C1.5 3.55228 1.94772 4 2.5 4H3V13C3 14.1046 3.89543 15 5 15H11C12.1046 15 13 14.1046 13 13V4H13.5C14.0523 4 14.5 3.55228 14.5 3V2C14.5 1.44772 14.0523 1 13.5 1H10C10 0.447715 9.55229 0 9 0H7C6.44772 0 6 0.447715 6 1H2.5ZM5.5 5C5.77614 5 6 5.22386 6 5.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5L5 5.5C5 5.22386 5.22386 5 5.5 5ZM8 5C8.27614 5 8.5 5.22386 8.5 5.5V12.5C8.5 12.7761 8.27614 13 8 13C7.72386 13 7.5 12.7761 7.5 12.5V5.5C7.5 5.22386 7.72386 5 8 5ZM11 5.5V12.5C11 12.7761 10.7761 13 10.5 13C10.2239 13 10 12.7761 10 12.5V5.5C10 5.22386 10.2239 5 10.5 5C10.7761 5 11 5.22386 11 5.5Z" fill="#312B4C" fill-opacity="0.9" />
</svg>
</a>
</div>
<div class="adentroc">
<p class="fact numFactura">Factura #<?php echo $registros['NUMERO_DE_FACTURA']; ?></p>
<div class="row">
<div class="col-sm-6">
<h6 class="monto">$<?php echo $registros['MONTO']; ?></h6>
<p class="tcred">En crédito</p>
</div>
<div class="col-sm-6">
<h6 class="dia"><?php echo $registros['FECHA_LIMITE']; ?></h6>
<p class="tfec">Fecha Límite</p>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p>Copyright La Polar 2023</p>
</div>
</footer>
<script src="./js/popover.js"></script>
<script src="./js/busqueda_creditos.js"></script>
</body>
</html>