b = inv.get_Inv(Convert.ToInt32(ddl_product.SelectedValue)); d = inv.get_reorder(Convert.ToInt16(ddl_product.SelectedValue)); if (b > 0 && b >= Convert.ToInt32(Txtquantity.Text)) { c = b - Convert.ToInt32(Txtquantity.Text); saleorderid = (DLL.ClassSales.addsales(Convert.ToInt32(ddl_customer.SelectedValue), Convert.ToDateTime(Calendar1.SelectedDate), Convert.ToInt16(ddl_status.SelectedValue))).ToString(); DLL.ClassSales.addsaleOrderDetail(Convert.ToInt16(saleorderid), Convert.ToInt32(ddl_product.SelectedValue), Convert.ToDecimal(Txtupprice.Text), Convert.ToInt32(Txtquantity.Text)); DLL.ClassInventory.Update_inventory(Convert.ToInt32(ddl_product.SelectedValue), c); } if (c <= d) { // alert and email (main menu pe jana chahiye) Response.Redirect("Purchases.aspx"); } else { //Label1.Text = "Inventory invalid"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)