Compare commits
10 Commits
467708f2bc
...
83dabadc7f
Author | SHA1 | Date | |
---|---|---|---|
|
83dabadc7f | ||
|
50c8f3070e | ||
|
46cd09306b | ||
|
f127d97074 | ||
|
13a5f9c68b | ||
|
b585fa198c | ||
|
5f9d203803 | ||
|
7e744cb8d9 | ||
|
8bded9e4bd | ||
|
02c015aa69 |
@ -37,7 +37,7 @@ public class Invoice
|
||||
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
|
||||
DiscountPercentage = discountPercentage,
|
||||
SellingPrice = sellingPrice,
|
||||
DateInvoice = DateTime.Now,
|
||||
Date = DateTime.Now,
|
||||
Products = products
|
||||
};
|
||||
}
|
||||
|
@ -50,8 +50,7 @@ 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("Имеются незаполненные поля");
|
||||
|
@ -9,7 +9,7 @@ namespace ProjectCompanyFurniture.Repositories;
|
||||
|
||||
public interface IInvoiceRepository
|
||||
{
|
||||
IEnumerable<Invoice> ReadInvoices (DateTime? dateForm = null, DateTime? dateTo = null, int? clientId = null);
|
||||
IEnumerable<Invoice> ReadInvoices (DateTime? dateForm = null, DateTime? dateTo = null, int? productId = null);
|
||||
void CreateInvoice(Invoice invoice);
|
||||
void DeleteInvoice(int id);
|
||||
|
||||
|
@ -76,7 +76,7 @@ public class InvoiceRepository : IInvoiceRepository
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<Invoice> ReadInvoices(DateTime? dateForm = null, DateTime? dateTo = null, int? clientId = null)
|
||||
public IEnumerable<Invoice> ReadInvoices(DateTime? dateForm = null, DateTime? dateTo = null, int? productId = null)
|
||||
{
|
||||
_logger.LogInformation("Получение всех объектов");
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user