Amrul Hakim

Amrul Hakim

  • NA
  • 19
  • 3.6k

how to check stock c#

May 24 2017 5:20 AM
I want to check item in the stock table, if in the stock of items is not enough then there will be notification "Item Not enough"
  1. if (cm_status.SelectedItem.TosString() == "OUT")  
  2. {  
  3.    //check Stock QTY in Tabel Stock  <---- 
  4.    i want ceck Stock in here after Update
  5. }  
  6. Else  
  7. {  
  8.   cmd = New SqlCommand ("UPDATE Tb_Stock Set Qty= Qty - '"+ txt_Qty.text +"' WHERE Code_Items= '"+ txt_codeItem.text +"'",conn);  
  9. }  
 
 

Answers (1)