dc7e7a70fc
Introduced FlatPaymentController under Distribution.Features.Payment, providing GET and POST endpoints at /api/payments. Supports listing, retrieving, and creating payments with filtering and error handling. Business logic is delegated to PaymentService.
17 lines
766 B
C#
17 lines
766 B
C#
namespace Distribution.Features.Grn;
|
|
|
|
public interface IGrnRepository
|
|
{
|
|
Task<Models.GoodsReceipt?> GetByIdAsync(Guid id);
|
|
Task<List<Models.GoodsReceipt>> GetAllAsync(Guid? purchaseOrderId, int page, int pageSize);
|
|
Task<int> GetCountAsync(Guid? purchaseOrderId);
|
|
Task<List<Models.GoodsReceipt>> GetByPurchaseOrderIdAsync(Guid purchaseOrderId);
|
|
Task AddAsync(Models.GoodsReceipt entity);
|
|
|
|
/// <summary>True if at least one GoodsReceipt exists against this Po (createPurchaseReturn guard).</summary>
|
|
Task<bool> HasAnyForPurchaseOrderAsync(Guid purchaseOrderId);
|
|
|
|
/// <summary>Sum of AcceptedQuantity per ItemId across all receipts for a Po.</summary>
|
|
Task<Dictionary<Guid, int>> GetAcceptedTotalsByItemAsync(Guid purchaseOrderId);
|
|
}
|