This commit is contained in:
Adam 2024-04-06 12:53:20 +02:00
commit 65a8c19017
7 changed files with 9 additions and 3 deletions

View File

@ -378,6 +378,7 @@ namespace TIAM.Database.Test
ToAddress = toAddress,
PassengerCount = 3,
Price = 20000,
ContactName = "xyztest",
ContactEmail = "xyztest@gmail.hu",
ContactPhone = "+3671542771",
TransferStatusType = TransferStatusType.OrderConfirmed,

View File

@ -7,6 +7,7 @@ public interface ITransfeDestinationPrices
public double? Price2 { get; set; }
public double? Price3 { get; set; }
public double ProductCommis { get; set; }
public double? ExtraPrice { get; set; }
/// <summary>
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...

View File

@ -38,6 +38,7 @@ public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey<Guid?>, I
[MaxLength(200)] public string FromAddress { get; set; }
[MaxLength(200)] public string? ToAddress { get; set; }
public string ContactName {get;set; }
public string ContactEmail {get;set; }
public string ContactPhone {get;set; }

View File

@ -28,6 +28,7 @@ namespace TIAM.Entities.Transfers
public double? Price2 { get; set; }
public double? Price3 { get; set; }
public double ProductCommis { get;set; }
public double? ExtraPrice { get; set; }
/// <summary>
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...
@ -60,5 +61,4 @@ namespace TIAM.Entities.Transfers
}
}
}
}

View File

@ -23,6 +23,7 @@ namespace TIAM.Entities.Transfers
public double? Price2 { get; set; }
public double? Price3 { get; set; }
public double ProductCommis { get;set; }
public double? ExtraPrice { get; set; }
/// <summary>
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...

View File

@ -39,7 +39,8 @@ namespace TIAMWebApp.Server.Services
var tranferDestinationPrice = transferDestinationToProduct ?? baseDestination as ITransfeDestinationPrices;
var price = GetSeatNumberPrice(in tranferDestinationPrice, seatNumber);
//A ProductCommis nem ugyanaz mint az ExtraPrice?!? - J.
var price = GetSeatNumberPrice(in tranferDestinationPrice, seatNumber) + tranferDestinationPrice.ProductCommis;
//TODO: ExtraPrice - J. seatnum percent price, FirstName, LastName, CascadeDelete
//if (baseDestination.Id == fromTransferDestination.Id && )

View File

@ -94,6 +94,7 @@ namespace TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
destination.Price = model.Price;
destination.Price2 = model.Price2;
destination.Price3 = model.Price3;
//destination.ProductCommis = model.ProductCommis; //TODO: a wizardba betenni...
//destination.PriceType = model.PriceType;
destination.Address = model.Address;