Skip to content

Commit

Permalink
Cambiado el ostream en fecha venta
Browse files Browse the repository at this point in the history
  • Loading branch information
KROSF committed May 16, 2018
1 parent ddb6a4d commit 73e41bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions P3/pedido-articulo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ std::ostream& Pedido_Articulo::mostrarVentasArticulos(std::ostream& os)
// typeof obj.second = map(Pedido*,LineaPedido)
for(auto obj : articulo_pedido_)
{
os << "Pedidos: [" << obj.second.size() << "]\n"
os << "Ventas de [" << obj.first->referencia() << "] \""
<< obj.first->titulo()<< "\"\n"
<< obj.second << std::endl;
}
return os;
Expand Down Expand Up @@ -102,7 +103,8 @@ std::ostream& operator<<(std::ostream& os, const Pedido_Articulo::Pedidos& pedid
{
unsigned tmp_precio = 0;
double tmp_total = 0.0;
os << Cadena(80,'=') << std::endl
os << "Pedidos: [" << pedidos.size() << "]\n"
<< Cadena(80,'=') << std::endl
<< " PVP\tCantidad\tFecha de venta\n"
<< Cadena(80,'=') << std::endl;
// typeof p = std::pair(Pedido*,LineaPedido)
Expand Down

0 comments on commit 73e41bb

Please sign in to comment.