funcion/refactor-general #45

Open
atasistro wants to merge 111 commits from funcion/refactor-general into master
Showing only changes of commit 44465c2783 - Show all commits

View file

@ -16,7 +16,7 @@ class Subpedido extends Model
public function productos(): BelongsToMany public function productos(): BelongsToMany
{ {
return $this->belongsToMany('App\Producto')->withPivot(["cantidad", "total", "notas"]); return $this->belongsToMany('App\Producto')->withPivot(["cantidad", "notas"]);
} }
public function grupoDeCompra(): BelongsTo public function grupoDeCompra(): BelongsTo
@ -99,7 +99,6 @@ class Subpedido extends Model
$this->productos()->syncWithoutDetaching([ $this->productos()->syncWithoutDetaching([
$producto->id => [ $producto->id => [
'cantidad' => $cantidad, 'cantidad' => $cantidad,
'total' => $cantidad * $producto->precio,
'notas' => $notas, 'notas' => $notas,
] ]
]); ]);