diff --git a/.idea/.idea.EvoCalculator.Core/.idea/contentModel.xml b/.idea/.idea.EvoCalculator.Core/.idea/contentModel.xml index 147cde8..c9c3487 100644 --- a/.idea/.idea.EvoCalculator.Core/.idea/contentModel.xml +++ b/.idea/.idea.EvoCalculator.Core/.idea/contentModel.xml @@ -1,18 +1,17 @@ - + - - - - - - - - - + + + + + + + + diff --git a/.idea/.idea.EvoCalculator.Core/.idea/workspace.xml b/.idea/.idea.EvoCalculator.Core/.idea/workspace.xml index 5cfc6f8..9645b4b 100644 --- a/.idea/.idea.EvoCalculator.Core/.idea/workspace.xml +++ b/.idea/.idea.EvoCalculator.Core/.idea/workspace.xml @@ -14,7 +14,12 @@ + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -117,17 +113,22 @@ - - + + + - + + + + + + + + + + @@ -192,6 +198,10 @@ + + + + 1602593830686 @@ -299,89 +309,130 @@ - - + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + @@ -395,17 +446,19 @@ - - + + + - - + + + @@ -423,9 +476,10 @@ - - + + + @@ -442,40 +496,19 @@ file://$PROJECT_DIR$/EvoCalculator.Core.Tests/Calculation/Columns/InsuranceBonusExpensesTests.cs 56 - - - - - - + file://$PROJECT_DIR$/EvoCalculator.Core.Tests/Calculation/Columns/InsuranceBonusExpensesTests.cs 256 - - - - - - + file://$PROJECT_DIR$/EvoCalculator.Core.Tests/Calculation/Columns/SumCurrentTLM.cs 85 - - - - - - + @@ -483,8 +516,12 @@ + + + + diff --git a/EvoCalculator.Core.Models/Calculation/Models/Prepared/PreparedValues.cs b/EvoCalculator.Core.Models/Calculation/Models/Prepared/PreparedValues.cs index dd386d7..174b206 100644 --- a/EvoCalculator.Core.Models/Calculation/Models/Prepared/PreparedValues.cs +++ b/EvoCalculator.Core.Models/Calculation/Models/Prepared/PreparedValues.cs @@ -66,6 +66,7 @@ namespace EvoCalculator.Core.Models.Calculation.Models.Prepared public double NsibNettoPr { get; set; } public decimal NsibBase { get; set; } public double Repayment { get; set; } + public double NpviniDelta { get; set; } public decimal TransportTaxGrYear { get; set; } public decimal TransportTaxGr { get; set; } public decimal NsibBrutto { get; set; } @@ -91,5 +92,7 @@ namespace EvoCalculator.Core.Models.Calculation.Models.Prepared public double IRR_MSFO_Plan { get; set; } public double ExtraBonus { get; set; } public double DirectorBonus { get; set; } + public double DogCredit { get; set; } + public double DogCreditLeasing { get; set; } } } \ No newline at end of file diff --git a/EvoCalculator.Core.Models/Calculation/Models/Request/RequestCalculation.cs b/EvoCalculator.Core.Models/Calculation/Models/Request/RequestCalculation.cs index c3f3b4e..855e914 100644 --- a/EvoCalculator.Core.Models/Calculation/Models/Request/RequestCalculation.cs +++ b/EvoCalculator.Core.Models/Calculation/Models/Request/RequestCalculation.cs @@ -4,7 +4,7 @@ namespace EvoCalculator.Core.Models.Calculation.Models.Request { public class RequestCalculation { - public PreparedValues preparedValues; - public PreparedPayments preparedPayments; + public PreparedValues preparedValues { get; set; } + public PreparedPayments preparedPayments { get; set; } } } \ No newline at end of file diff --git a/EvoCalculator.Core/Controllers/v1/CalculationController.cs b/EvoCalculator.Core/Controllers/v1/CalculationController.cs index 6d1b589..19b5ab1 100644 --- a/EvoCalculator.Core/Controllers/v1/CalculationController.cs +++ b/EvoCalculator.Core/Controllers/v1/CalculationController.cs @@ -11,7 +11,7 @@ namespace EvoCalculator.Core.Controllers.V1 [Route("api/v{version:apiVersion}/[controller]")] public class CalculationController : Controller { - [HttpPost] + [HttpPost("[action]")] public ActionResult Calculate([FromBody] RequestCalculation requestCalculation) { var preparedValues = requestCalculation.preparedValues; @@ -219,7 +219,7 @@ namespace EvoCalculator.Core.Controllers.V1 preparedValues, preparedPayments, postValues, - + dateColumn, dateTempColumn, percentPaymentColumn, diff --git a/EvoCalculator.Core/Startup.cs b/EvoCalculator.Core/Startup.cs index dafc37b..c8a00c2 100644 --- a/EvoCalculator.Core/Startup.cs +++ b/EvoCalculator.Core/Startup.cs @@ -36,7 +36,7 @@ namespace EvoCalculator.Core app.UseDeveloperExceptionPage(); } - app.UseHttpsRedirection(); + // app.UseHttpsRedirection(); app.UseRouting();