Implement ProductCommis

This commit is contained in:
jozsef.b@aycode.com 2024-04-06 06:21:06 +02:00
parent 018f12f0e4
commit 1bc801234b
5 changed files with 7 additions and 3 deletions

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

@ -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;