Skip to content

Commit c19377c

Browse files
showRequest
1 parent 9915800 commit c19377c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

BackendAPI/Controllers/Request.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public Collection<RequestEntity> GetRequests(int id)
3535
r.Cantidad = reader.GetInt32(2);
3636
r.Total = reader.GetDecimal(3);
3737
r.FechaPedido = reader.GetDateTime(4);
38+
r.Unit_Price=reader.GetDecimal(5);
3839
response.Add(r);
3940
}
4041

@@ -88,7 +89,7 @@ public async Task<TransaccionEntidad> processRequest(RequestDone pedido)
8889
for(int i = 0; i < pedido.LineaPedido.Count; i++)
8990
{
9091

91-
SqlCommand cmd2 = new SqlCommand("dbo.postRequestLine", conn);
92+
SqlCommand cmd2 = new SqlCommand("dbo.postRequestLine", conn);
9293
cmd2.CommandType = System.Data.CommandType.StoredProcedure;
9394

9495
cmd2.Parameters.Add("@idRequest", System.Data.SqlDbType.Int).Value = lastIndex;

BackendAPI/Entity/RequestEntity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class RequestEntity
77
public int Cantidad { get;set; }
88
public Decimal Total { get; set; }
99
public DateTime FechaPedido { get; set; }
10+
public Decimal Unit_Price { get; set; }
1011

1112
public RequestEntity()
1213
{

0 commit comments

Comments
 (0)