Agregar Bono Pie

This commit is contained in:
Juan Pablo Vial
2024-11-18 23:25:20 -03:00
parent 1e1994264e
commit cb2edb1543
9 changed files with 156 additions and 4 deletions

View File

@ -28,6 +28,9 @@ $app->group('/venta/{venta_id:[0-9]+}', function($app) {
});
$app->get('[/]', [Ventas::class, 'pie']);
});
$app->group('/bono_pie', function($app) {
$app->get('/add[/]', [Ventas\Bonos::class, 'add']);
});
$app->group('/escritura', function($app) {
$app->get('/add[/]', [Ventas\Escrituras::class, 'add']);
});

View File

@ -31,6 +31,9 @@ $app->group('/venta/{venta_id}', function($app) {
$app->post('/add[/]', [Ventas::class, 'addComentario']);
$app->get('[/]', [Ventas::class, 'comentarios']);
});
$app->group('/bono_pie', function($app) {
$app->post('/add[/]', [Ventas\Bonos::class, 'add']);
});
$app->group('/escritura', function($app) {
$app->post('/add[/]', [Ventas\Escrituras::class, 'add']);
});

View File

@ -10,4 +10,11 @@ $app->group('/pie/{pie_id}', function($app) {
});
$app->get('[/]', [Pies::class, 'cuotas']);
});
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'pies']));
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
});

View File

@ -0,0 +1,6 @@
<?php
use Incoviba\Controller\Ventas\Bonos;
$app->group('/bono_pie', function($app) {
$app->get('/add[/]', [Bonos::class, 'add']);
});