Implement ProductCommis
This commit is contained in:
parent
018f12f0e4
commit
1bc801234b
|
|
@ -7,6 +7,7 @@ public interface ITransfeDestinationPrices
|
||||||
public double? Price2 { get; set; }
|
public double? Price2 { get; set; }
|
||||||
public double? Price3 { get; set; }
|
public double? Price3 { get; set; }
|
||||||
|
|
||||||
|
public double ProductCommis { get; set; }
|
||||||
public double? ExtraPrice { get; set; }
|
public double? ExtraPrice { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...
|
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ namespace TIAM.Entities.Transfers
|
||||||
public double? Price2 { get; set; }
|
public double? Price2 { get; set; }
|
||||||
public double? Price3 { get; set; }
|
public double? Price3 { get; set; }
|
||||||
|
|
||||||
|
public double ProductCommis { get;set; }
|
||||||
public double? ExtraPrice { get; set; }
|
public double? ExtraPrice { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...
|
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...
|
||||||
|
|
@ -61,4 +62,3 @@ namespace TIAM.Entities.Transfers
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ namespace TIAM.Entities.Transfers
|
||||||
public double? Price2 { get; set; }
|
public double? Price2 { get; set; }
|
||||||
public double? Price3 { get; set; }
|
public double? Price3 { get; set; }
|
||||||
|
|
||||||
|
public double ProductCommis { get;set; }
|
||||||
public double? ExtraPrice { get; set; }
|
public double? ExtraPrice { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...
|
/// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ namespace TIAMWebApp.Server.Services
|
||||||
|
|
||||||
var tranferDestinationPrice = transferDestinationToProduct ?? baseDestination as ITransfeDestinationPrices;
|
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
|
//TODO: ExtraPrice - J. seatnum percent price, FirstName, LastName, CascadeDelete
|
||||||
//if (baseDestination.Id == fromTransferDestination.Id && )
|
//if (baseDestination.Id == fromTransferDestination.Id && )
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@ namespace TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
||||||
destination.Price = model.Price;
|
destination.Price = model.Price;
|
||||||
destination.Price2 = model.Price2;
|
destination.Price2 = model.Price2;
|
||||||
destination.Price3 = model.Price3;
|
destination.Price3 = model.Price3;
|
||||||
|
//destination.ProductCommis = model.ProductCommis; //TODO: a wizardba betenni...
|
||||||
//destination.PriceType = model.PriceType;
|
//destination.PriceType = model.PriceType;
|
||||||
destination.Address = model.Address;
|
destination.Address = model.Address;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue