Ventas
This commit is contained in:
@ -9,6 +9,7 @@ $app->group('/ventas', function($app) {
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
$app->get('/add', [Ventas::class, 'add']);
|
||||
$app->get('[/]', Ventas::class);
|
||||
});
|
||||
$app->group('/venta/{proyecto_nombre:[A-za-zÑñ\+\ %0-9]+}/{unidad_descripcion:[0-9]+}', function($app) {
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Base;
|
||||
|
||||
$app->get('/construccion', [Base::class, 'construccion'])->setName('construccion');
|
||||
$app->get('[/]', Base::class);
|
||||
|
6
app/resources/routes/api/provincias.php
Normal file
6
app/resources/routes/api/provincias.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Provincias;
|
||||
|
||||
$app->group('/provincia/{provincia_id}', function($app) {
|
||||
$app->get('/comunas', [Provincias::class, 'comunas']);
|
||||
});
|
@ -4,3 +4,6 @@ use Incoviba\Controller\Proyectos;
|
||||
$app->group('/proyectos', function($app) {
|
||||
$app->get('[/]', [Proyectos::class, 'list']);
|
||||
});
|
||||
$app->group('/proyecto/{proyecto_id}', function($app) {
|
||||
$app->get('/unidades[/]', [Proyectos::class, 'unidades']);
|
||||
});
|
||||
|
7
app/resources/routes/api/regiones.php
Normal file
7
app/resources/routes/api/regiones.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Regiones;
|
||||
|
||||
//$app->group('/regiones', function($app) {});
|
||||
$app->group('/region/{region_id}', function($app) {
|
||||
$app->get('/provincias[/]', [Regiones::class, 'provincias']);
|
||||
});
|
@ -1,6 +1,11 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Ventas\Pagos;
|
||||
|
||||
$app->group('/pagos', function($app) {
|
||||
$app->get('/pendientes', [Pagos::class, 'para_pendientes']);
|
||||
$app->get('/abonar', [Pagos::class, 'para_abonar']);
|
||||
$app->get('/rebotes', [Pagos::class, 'rebotes']);
|
||||
});
|
||||
$app->group('/pago/{pago_id:[0-9]+}', function($app) {
|
||||
$app->put('/depositar[/]', [Pagos::class, 'depositar']);
|
||||
$app->put('/abonar[/]', [Pagos::class, 'abonar']);
|
||||
|
6
app/resources/routes/api/ventas/propietarios.php
Normal file
6
app/resources/routes/api/ventas/propietarios.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Ventas\Propietarios;
|
||||
|
||||
$app->group('/propietario/{propietario_rut}', function($app) {
|
||||
$app->get('[/]', [Propietarios::class, 'get']);
|
||||
});
|
@ -3,7 +3,10 @@ use Incoviba\Controller\Ventas\Cuotas;
|
||||
|
||||
$app->group('/cuotas', function($app) {
|
||||
$app->get('/pendientes[/]', [Cuotas::class, 'pendientes']);
|
||||
$app->get('/abonar[/]', [Cuotas::class, 'depositadas']);
|
||||
});
|
||||
$app->group('/cuota', function($app) {
|
||||
$app->post('/depositar[/]', [Cuotas::class, 'depositar']);
|
||||
$app->post('/abonar[/]', [Cuotas::class, 'abonar']);
|
||||
$app->post('/devolver[/]', [Cuotas::class, 'devolver']);
|
||||
});
|
||||
|
6
app/resources/routes/ventas/pagos.php
Normal file
6
app/resources/routes/ventas/pagos.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Incoviba\Controller\Ventas\Pagos;
|
||||
|
||||
$app->group('/pagos', function($app) {
|
||||
$app->get('/pendientes', [Pagos::class, 'pendientes']);
|
||||
});
|
Reference in New Issue
Block a user