forked from nathalie/pedi2
Cambio de nombre de archivo y de parámetro
This commit is contained in:
parent
ff0a17c776
commit
b1caed8b15
2 changed files with 4 additions and 4 deletions
|
@ -128,7 +128,7 @@ class Subpedido extends Model
|
||||||
|
|
||||||
public function generarHTML()
|
public function generarHTML()
|
||||||
{
|
{
|
||||||
$view = view("pdfgen.subpedido_tabla", ["subpedido" => $this]);
|
$view = view("pdfgen.pedido_tabla", ["pedido" => $this]);
|
||||||
return $view->render();
|
return $view->render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
background: #CCC
|
background: #CCC
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<h3>{{$subpedido->nombre}}</h3>
|
<h3>{{$pedido->nombre}}</h3>
|
||||||
|
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -25,9 +25,9 @@
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@foreach($subpedido->productos as $producto)
|
@foreach($pedido->productos as $producto)
|
||||||
@if(!$producto->bono)
|
@if(!$producto->bono)
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ $producto->nombre }}
|
{{ $producto->nombre }}
|
Loading…
Add table
Reference in a new issue