@{
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 PROVEEDOR
@Html.Raw(acartuchos.NombreProveedor(cliente))
@if (acartuchos.CorreoCliente(cliente) == "")
{
NO HAY REGISTRO DE PROVEEDOR
}
REQUISICIÓN ACTUAL
| Cant |
|
Nombre |
|
|
|
|
|
@{
float subtotal = 0;
decimal tPeso = 0;
float total = 0, porcentaje = 0;
List Carrito = Session["choping_requi"] as List;
foreach (var item in Carrito)
{
id = item.id;
string imagen = item.id + ".jpg";
float precio = float.Parse(item.precio.ToString());
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;
| @item.cantidad |
|
@item.nombre
@item.descripcion
|
@item.puntos |
|
|
|
remove_circle |
}
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;
}
@{
db.Connection.Close();
db.Dispose();
db.Close();
}