93f2f1bd3b
Major refactor replacing Sale/Order with ShopPO → Invoice → LoadingSheet flow. Removed legacy Sale/Order models and features; introduced ShopPO, ShopPOItem, Invoice, LoadingSheetOrder, and SysConfig models. Updated related entities, enums, repositories, and controllers. Added new migrations for schema changes and system config. Overhauled business logic and DI registrations. Updated documentation with migration plan.
14 lines
538 B
C#
14 lines
538 B
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.Invoice;
|
|
|
|
public interface IInvoiceRepository
|
|
{
|
|
Task<Models.Invoice?> GetByIdAsync(Guid id);
|
|
Task<Models.Invoice?> GetByShopPOIdAsync(Guid shopPOId);
|
|
Task<List<Models.Invoice>> GetAllAsync(Guid? agentId, Guid? routeId, Guid? shopId, InvoiceStatus? status, int page, int pageSize);
|
|
Task<int> GetCountAsync(Guid? agentId, Guid? routeId, Guid? shopId, InvoiceStatus? status);
|
|
Task AddAsync(Models.Invoice invoice);
|
|
void Update(Models.Invoice invoice);
|
|
}
|