Add stock report features r
This commit is contained in:
@@ -45,7 +45,12 @@ public record StockMovementResponse(
|
||||
DateTime CreatedAt,
|
||||
Guid CreatedBy,
|
||||
string? FromLocationName,
|
||||
string? ToLocationName);
|
||||
string? ToLocationName,
|
||||
Guid? BatchId = null,
|
||||
string? BatchNumber = null,
|
||||
DateTime? BatchExpiryDate = null,
|
||||
Guid? SerialId = null,
|
||||
string? SerialNumber = null);
|
||||
|
||||
// Write requests
|
||||
public record TransferRequest(
|
||||
@@ -82,3 +87,23 @@ public record AdjustmentRequest(
|
||||
// Movements are an immutable ledger — quantity, locations, and type can never change once recorded
|
||||
// (the running stock balance is the sum of all movements). Only the free-text reason/note is editable.
|
||||
public record UpdateMovementReasonRequest(string ReasonCode);
|
||||
|
||||
// Movement report filters
|
||||
public record MovementFilter(
|
||||
Guid? LocationId = null,
|
||||
Guid? ItemId = null,
|
||||
MovementType? Type = null,
|
||||
DateTime? From = null,
|
||||
DateTime? To = null,
|
||||
Guid? ReferenceId = null,
|
||||
Guid? BatchId = null,
|
||||
Guid? SerialId = null,
|
||||
Guid? CreatedBy = null,
|
||||
string? ReasonCode = null);
|
||||
|
||||
public record MovementSummary(
|
||||
decimal OpeningQuantity,
|
||||
decimal QuantityIn,
|
||||
decimal QuantityOut,
|
||||
decimal ClosingQuantity,
|
||||
decimal CurrentBalance);
|
||||
|
||||
Reference in New Issue
Block a user