diff --git a/app/Subpedido.php b/app/Subpedido.php index a0c6b5c..29d001e 100644 --- a/app/Subpedido.php +++ b/app/Subpedido.php @@ -16,7 +16,7 @@ class Subpedido extends Model 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 @@ -99,7 +99,6 @@ class Subpedido extends Model $this->productos()->syncWithoutDetaching([ $producto->id => [ 'cantidad' => $cantidad, - 'total' => $cantidad * $producto->precio, 'notas' => $notas, ] ]);