log.setActiveFlag(1);
if(cmbCategory.getItemCount()==0) JOptionPane.showMessageDialog(null, "Please insert category first");
if(cmbUom.getItemCount()==0) JOptionPane.showMessageDialog(null, "Please insert Unit Of Measurement first");
Check check = new Check();
if(check.checkInt(txtLimitPrice.getText())==false
&& check.checkInt(txtListprice.getText())==false
&& check.checkInt(txtStandardprice.getText())==false){
JOptionPane.showMessageDialog(null, "Please insert a valid number for price");
}
category = cats.get(cmbCategory.getSelectedIndex());
uom = uoms.get(cmbUom.getSelectedIndex());