Files
Kalana B. Thilakarathna 93f2f1bd3b Refactor sales pipeline: ShopPO, Invoice, SysConfig models
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.
2026-09-17 10:03:22 +05:30

28 lines
637 B
C#

using Distribution.Models;
namespace Distribution.Features.Ride;
public record RideResponse(
Guid Id,
RideStatus Status,
Guid VehicleId,
string VehicleNumberPlate,
Guid DriverProfileId,
string DriverFullName,
int Meterstart,
int Meterend,
DateTime? StartedAt,
DateTime? ClosedAt,
DateTime CreatedAt);
public record CreateRideRequest(
Guid VehicleId,
Guid DriverProfileId,
int Meterstart);
public record AssignRideDriverRequest(Guid DriverProfileId);
public record CloseRideRequest(int Meterend);
public record CancelRideRequest(CancelRequestType TypeCode, string Reason);