mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en direcciones presupuesto cliente
This commit is contained in:
@ -344,6 +344,7 @@ $routes->group('clientes', ['namespace' => 'App\Controllers\Clientes'], function
|
||||
$routes->match(['get', 'post'], 'edit/(:num)', 'Cliente::edit/$1', ['as' => 'clienteEdit']);
|
||||
$routes->get('delete/(:num)', 'Cliente::delete/$1', ['as' => 'clienteDelete']);
|
||||
$routes->post('datatable', 'Cliente::datatable', ['as' => 'clienteDT']);
|
||||
$routes->post('menuitems', 'Cliente::menuItems', ['as' => 'menuItemsOfClientes']);
|
||||
});
|
||||
|
||||
/* Precios */
|
||||
@ -366,7 +367,7 @@ $routes->group('clientes', ['namespace' => 'App\Controllers\Clientes'], function
|
||||
$routes->get('delete/(:num)', 'Cliente::delete/$1', ['as' => 'deleteCliente']);
|
||||
$routes->post('datatable', 'Cliente::datatable', ['as' => 'dataTableOfClientes']);
|
||||
$routes->post('allmenuitems', 'Cliente::allItemsSelect', ['as' => 'select2ItemsOfClientes']);
|
||||
$routes->post('menuitems', 'Cliente::menuItems', ['as' => 'menuItemsOfClientes']);
|
||||
|
||||
});
|
||||
$routes->resource('cliente', ['namespace' => 'App\Controllers\Clientes', 'controller' => 'Cliente', 'except' => 'show,new,create,update']);*/
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ use App\Models\Configuracion\MaquinaModel;
|
||||
|
||||
use Exception;
|
||||
|
||||
class Presupuestocliente extends \App\Controllers\GoBaseResourceController
|
||||
class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
{
|
||||
protected $modelName = "PresupuestoModel";
|
||||
protected $format = 'json';
|
||||
|
||||
@ -96,6 +96,7 @@ $('#direcciones').on('change', function() {
|
||||
|
||||
|
||||
$('#insertarDireccion').on('click', function() {
|
||||
|
||||
//if( ('#direcciones').val() > 0 ) {
|
||||
|
||||
let unidades = $('#unidadesEnvio').val();
|
||||
@ -163,16 +164,14 @@ $('#insertarDireccion').on('click', function() {
|
||||
}
|
||||
|
||||
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
//}
|
||||
return false;
|
||||
})
|
||||
|
||||
|
||||
$(".eliminar-direccion").on('click', function() {
|
||||
|
||||
$(document).on('click', '.eliminar-direccion', function(e) {
|
||||
console.log("eliminar2");
|
||||
$(this).closest('.row.mb-3').remove();
|
||||
return false;
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
@ -576,7 +576,7 @@
|
||||
/**
|
||||
* JJO
|
||||
*/
|
||||
|
||||
--->
|
||||
<li class="menu-header small text-uppercase">
|
||||
<span class="menu-header-text">Test JJO</span>
|
||||
</li>
|
||||
@ -586,7 +586,7 @@
|
||||
<div data-i18n="Test">Test</div>
|
||||
</a>
|
||||
</li>
|
||||
--->
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
7712
xdebug.log
7712
xdebug.log
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user