File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1313class 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 ]);
You can’t perform that action at this time.
0 commit comments