public static void removeProduct(ActionEvent e)
	{
		System.out.println("Remove from the invoice button clicked.");

		if (e.getSource() instanceof JButton)
		{
			JButton source = (JButton) e.getSource();

			if (upcField == null || upcField.getText().isEmpty())
			{

				invoiceView.displayError("No UPC Provided.");

			}
			else
			{
				upcField.setText(lastUpc);
				invoiceView.displayError("UPC Defaulted to last UPC.");
			}

			boolean isValid = false;

			for (Product p : ExtractProductsandInventory.prod)
			{

				if (p.getUpc().equals(upcField.getText()))
				{

					isValid = true;
					lastUpc = upcField.getText();
					Integer quantity;
					String s = qtyField.getText();
					if (s == null || s.isEmpty())
					{
						quantity = 1;
					}
					else
					{
						quantity = Integer.valueOf(s);
					}
					Integer invoiceQuantity = invoiceDisplay.get(p);
					if (invoiceQuantity != null)
					{
						quantity = invoiceDisplay.get(p) - quantity;
						invoiceDisplay.put(p, p.getQuantity());
					}

					p.setUpc(upcField.getText());
					p.setQuantity(quantity);
					p.setPrice(p.getPrice());
					p.setDescription(p.getDescription());
					System.out.println(p);
					product.removeElement(p);
					invoiceDisplay.put(p, p.getQuantity());

				}
			}
			if (!isValid)
			{
				invoiceView.displayError("UPC was not found.");
				source.setText("Remove from Invoice");
				source.setEnabled(true);
			}

		}
	}