mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
feat : duplicar papel impresion con relaciones
This commit is contained in:
@ -276,6 +276,7 @@ $routes->group('papelesimpresion', ['namespace' => 'App\Controllers\Configuracio
|
||||
$routes->post('datatable', 'Papelesimpresion::datatable', ['as' => 'dataTableOfPapelesImpresion']);
|
||||
$routes->post('allmenuitems', 'Papelesimpresion::allItemsSelect', ['as' => 'select2ItemsOfPapelesImpresion']);
|
||||
$routes->post('menuitems', 'Papelesimpresion::menuItems', ['as' => 'menuItemsOfPapelesImpresion']);
|
||||
$routes->post('duplicate/(:num)','Papelesimpresion::duplicate/$1',['as' => 'duplicatePapelImpresion']);
|
||||
});
|
||||
$routes->resource('papelesimpresion', ['namespace' => 'App\Controllers\Configuracion', 'controller' => 'Papelesimpresion', 'except' => 'show,new,create,update']);
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
namespace Config;
|
||||
|
||||
use App\Services\FTPService;
|
||||
use App\Services\PapelImpresionService;
|
||||
use CodeIgniter\Config\BaseService;
|
||||
use App\Services\ProductionService;
|
||||
use App\Services\TarifaMaquinaService;
|
||||
@ -38,4 +39,8 @@ class Services extends BaseService
|
||||
public static function tarifa_maquina(){
|
||||
return new TarifaMaquinaService();
|
||||
}
|
||||
public static function papel_impresion()
|
||||
{
|
||||
return new PapelImpresionService();
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,6 +43,14 @@ class Validation extends BaseConfig
|
||||
// Rules
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* PapelImpresion duplicate validation
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public array $papel_impresion_duplicate = [
|
||||
"name" => "required|string"
|
||||
];
|
||||
/**========================================================================
|
||||
* TARIFA MAQUINA ACABADO
|
||||
*========================================================================**/
|
||||
|
||||
Reference in New Issue
Block a user