Ventas->Listado->Ventas

This commit is contained in:
Juan Pablo Vial
2023-07-28 16:22:20 -04:00
parent 38383f5295
commit ef30ae67d2
52 changed files with 1496 additions and 17 deletions

View File

@ -1,4 +1,6 @@
<?php
use Incoviba\Controller\Ventas;
$app->group('/ventas', function($app) {
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'ventas']));
foreach ($files as $file) {
@ -7,4 +9,5 @@ $app->group('/ventas', function($app) {
}
include_once $file->getRealPath();
}
$app->get('[/]', Ventas::class);
});

View File

@ -1,4 +1,6 @@
<?php
use Incoviba\Controller\Ventas;
$app->group('/ventas', function($app) {
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'ventas']);
if (file_exists($folder)) {
@ -10,4 +12,5 @@ $app->group('/ventas', function($app) {
include_once $file->getRealPath();
}
}
$app->post('[/]', [Ventas::class, 'proyecto']);
});

View File

@ -4,3 +4,8 @@ use Incoviba\Controller\Ventas\Precios;
$app->group('/precios', function($app) {
$app->post('[/]', [Precios::class, 'proyecto']);
});
$app->group('/precio', function($app) {
$app->group('/unidad/{unidad_id}', function($app) {
$app->get('[/]', [Precios::class, 'unidad']);
});
});

View File

@ -4,3 +4,6 @@ use Incoviba\Controller\Ventas\Cierres;
$app->group('/cierres', function($app) {
$app->get('[/]', Cierres::class);
});
$app->group('/cierre/{cierre_id}', function($app) {
$app->get('[/]', [Cierres::class, 'show']);
});