Skip to content

Commit 0df15ce

Browse files
authored
Merge pull request #79 from chechojgb/buttonsLovers
fix: arreglo nombre clases
2 parents e805b59 + 42f6460 commit 0df15ce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/Http/Controllers/BlCuentaCobroController.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
class BlCuentaCobroController extends Controller
1414
{
1515
public function index()
16-
{
16+
{
17+
// .marcacion.pedido.items.empaque.producto
1718
$user = Auth::user();
18-
$cuentas = BlCuentaCobro::with(['items.marcacion.pedido.items.empaque.producto', 'usuario'])->get();
19+
$cuentas = BlCuentaCobro::with(['items', 'usuario'])->get();
1920
return Inertia::render('BLCuentaCobro', [
2021
'user' => $user,
2122
'cuentasCobro' => $cuentas,
@@ -37,7 +38,7 @@ public function pasarPagados(Request $request)
3738
'total' => $total,
3839
]);
3940
foreach ($items as $item) {
40-
BLCuentaCobroItem::create([
41+
BlCuentaCobroItem::create([
4142
'cuenta_cobro_id' => $cuenta->id,
4243
'marcacion_id' => $item['marcacion_id'],
4344
]);

0 commit comments

Comments
 (0)