Compare commits

..

No commits in common. "763fd3f646fc82602fdda19aaf2ae81ed0eb4ef5" and "797552831753d0c4e340482cbcfd3bcdae2214c8" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View file

@ -22,8 +22,7 @@ class SubpedidoResource extends JsonResource
'bonos_de_transporte' => $this->cantidadBDT(),
'subtotal_bonos_de_transporte' => number_format($this->getSubtotalBDT(),2),
'total' => number_format($this->getTotal(),2),
'grupo_de_compra' => $this->grupoDeCompra,
'productos' => $this->productos
'grupo_de_compra' => $this->grupoDeCompra
];
}
}

View file

@ -15,7 +15,7 @@ class Subpedido extends Model
public function productos()
{
return $this->belongsToMany('App\Producto')->withPivot(["cantidad","total"]);
return $this->belongsToMany('App\Producto')->withPivot(["cantidad"]);
}
//Bonos del MPS, Sororo, etc. NO devuelve bonos de transporte