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.
27 lines
729 B
C#
27 lines
729 B
C#
namespace Distribution.Features.Grn;
|
|
|
|
public record GrnItemRequest(Guid PurchaseOrderItemId, int AcceptedQuantity, int RejectedQuantity);
|
|
|
|
public record CreateGrnRequest(Guid WarehouseId, List<GrnItemRequest> Items);
|
|
|
|
public record CreateFlatGrnRequest(Guid PurchaseOrderId, Guid WarehouseId, List<GrnItemRequest> Items);
|
|
|
|
public record GrnItemResponse(
|
|
Guid Id,
|
|
Guid PurchaseOrderItemId,
|
|
Guid ItemId,
|
|
string Sku,
|
|
string ItemName,
|
|
int AcceptedQuantity,
|
|
int RejectedQuantity);
|
|
|
|
public record GrnResponse(
|
|
Guid Id,
|
|
Guid PurchaseOrderId,
|
|
Guid ReceivedByUserId,
|
|
Guid WarehouseId,
|
|
string WarehouseName,
|
|
DateTime ReceivedAt,
|
|
DateTime CreatedAt,
|
|
List<GrnItemResponse> Items);
|