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
445 B
C#
14 lines
445 B
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.Payment;
|
|
|
|
public interface IPaymentRepository
|
|
{
|
|
Task<Models.Payment?> GetByIdAsync(Guid id);
|
|
Task<List<Models.Payment>> GetAllAsync(Guid? invoiceId, int page, int pageSize);
|
|
Task<int> GetCountAsync(Guid? invoiceId);
|
|
Task<List<Models.Payment>> GetByInvoiceIdAsync(Guid invoiceId);
|
|
Task AddAsync(Models.Payment payment);
|
|
void Update(Models.Payment payment);
|
|
}
|