Colito008
Need help to detect error in code for POS system
would you believe me the error was on the if statement "if (cancelOrder.cboInventory.Text == "yes" && cancelOrder.CancelQtyValue > 0)" on the sense that the combo box had alternatives "Yes" and "No" so for the program it would allways be no cause of the uppercase Y
21 replies
Need help to detect error in code for POS system
if (cancelOrder.cboInventory.Text == "yes" && cancelOrder.CancelQtyValue > 0)
{
dbcon.ExecuteQuery("UPDATE tbProduct SET qty = qty + " + cancelOrder.CancelQtyValue + " where pcode= '" + cancelOrder.txtPcode.Text + "'");
} this piece of code does not update to the products table
21 replies