@{ acartuchos.fSeguridad("codigo"); string cliente = Request.QueryString["c"]; string id = "", com = "", valor= ""; float iva = 0, Total = 0; string sDNS = "cweb"; var db = WebMatrix.Data.Database.Open(sDNS); var selectQueryString = ("select * from catart"); db.Query(selectQueryString); } Agregar Ordenes Recurrentes : Falco PyMESoftware v3.0
DATOS DEL CLIENTE

@Html.Raw(acartuchos.NombreCliente(cliente))

@if (acartuchos.CorreoCliente(cliente) == "") { EL CLIENTE NO TIENE CORREO REGISTRADO FAVOR DE SOLICITARLO }

DETALLE DE LA VENTA

@{ float subtotal = 0; decimal tPeso = 0; float total = 0, porcentaje = 0; List Carrito = Session["choping_orden"] as List; foreach (var item in Carrito) { id = item.id; string imagen = item.id + ".jpg"; float precio = float.Parse(item.precio); int cantidad = Convert.ToInt32(item.cantidad); string desc_price = ("0." + item.descuento); float Descuento = float.Parse(desc_price); float Precio = precio - (precio * Descuento); float monto = (Precio * cantidad); subtotal = subtotal + monto; } db.Connection.Close(); db.Close(); db.Dispose(); total = (float)subtotal; if (com == "f") { iva = ((total * 1.16f) - total); Total = (total * 1.16f); } else { iva = 0; Total = (total); } int costo = Choping.envio(valor, tPeso); Total = Total + costo; }
Cant Nombre Puntos Precio Monto
@item.cantidad @item.nombre
@item.descripcion
@item.puntos @precio.ToString("N2") @monto.ToString("N2") remove_circle
Sub Total @subtotal.ToString("N2")
TOTAL

@Total.ToString("N2") MXN

@{ db.Connection.Close(); db.Dispose(); db.Close(); }