forked from nathalie/pedi2
Método renombrado
This commit is contained in:
parent
9c3b328de0
commit
ff0a17c776
3 changed files with 4 additions and 4 deletions
|
@ -99,7 +99,7 @@ class GrupoDeCompra extends Model
|
||||||
return TransporteHelper::cantidadTransporte($this->totalCentralesQuePaganTransporte());
|
return TransporteHelper::cantidadTransporte($this->totalCentralesQuePaganTransporte());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function exportarPlanillasAPdf()
|
public function exportarPedidosAPdf()
|
||||||
{
|
{
|
||||||
$subpedidos = $this->pedidosAprobados();
|
$subpedidos = $this->pedidosAprobados();
|
||||||
//generar pdf
|
//generar pdf
|
||||||
|
|
|
@ -17,8 +17,8 @@ class AdminController extends Controller
|
||||||
return view('auth/admin_subpedidos');
|
return view('auth/admin_subpedidos');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function exportarPlanillasAPdf(GrupoDeCompra $gdc) {
|
public function exportarPedidosAPdf(GrupoDeCompra $gdc) {
|
||||||
return $gdc->exportarPlanillasAPdf();
|
return $gdc->exportarPedidosAPdf();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function exportarPedidoACSV(GrupoDeCompra $gdc) {
|
public function exportarPedidoACSV(GrupoDeCompra $gdc) {
|
||||||
|
|
|
@ -35,7 +35,7 @@ Route::get('/admin/obtener_sesion', function() {
|
||||||
Route::middleware(['auth', 'admin'])->group( function () {
|
Route::middleware(['auth', 'admin'])->group( function () {
|
||||||
Route::get('/admin/pedidos', 'AdminController@index')->name('admin_login.index');
|
Route::get('/admin/pedidos', 'AdminController@index')->name('admin_login.index');
|
||||||
|
|
||||||
Route::get('/admin/exportar-planillas-a-pdf/{gdc}', 'AdminController@exportarPlanillasAPdf');
|
Route::get('/admin/exportar-planillas-a-pdf/{gdc}', 'AdminController@exportarPedidosAPdf');
|
||||||
|
|
||||||
Route::get('/admin/exportar-pedido-a-csv/{gdc}', 'AdminController@exportarPedidoACSV');
|
Route::get('/admin/exportar-pedido-a-csv/{gdc}', 'AdminController@exportarPedidoACSV');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue