Compare commits

..

No commits in common. "31e8b80d9dab4f83d5fbbbfa82c4c83a6ebef45a" and "2551da28b4d750bead3e7c01a15135d596d3f4ac" have entirely different histories.

2 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public class Invoice
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
DiscountPercentage = discountPercentage,
SellingPrice = sellingPrice,
Date = DateTime.Now,
DateInvoice = DateTime.Now,
Products = products
};
}

View File

@ -50,7 +50,8 @@ namespace ProjectCompanyFurniture.Forms
{
try
{
if (string.IsNullOrWhiteSpace(textBoxName.Text) || string.IsNullOrEmpty(textBoxCategory.Text)
if (string.IsNullOrWhiteSpace(textBoxName.Text)
|| string.IsNullOrEmpty(textBoxCategory.Text)
|| comboBoxManufacturer.SelectedIndex < 0)
{
throw new Exception("Имеются незаполненные поля");