Crrocted the typo in SubScription Plans

This commit is contained in:
ashutosh.nehete 2025-08-04 12:16:40 +05:30
parent 53a2c5d87c
commit c708fa1ea1
5 changed files with 3903 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Marco.Pms.DataAccess.Migrations
{
/// <inheritdoc />
public partial class Corrected_Typo_In_SubscriptionPlan_Table : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "PriceHalfMonthly",
table: "SubscriptionPlans",
newName: "PriceHalfYearly");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "PriceHalfYearly",
table: "SubscriptionPlans",
newName: "PriceHalfMonthly");
}
}
}

View File

@ -2551,7 +2551,7 @@ namespace Marco.Pms.DataAccess.Migrations
.IsRequired()
.HasColumnType("longtext");
b.Property<double>("PriceHalfMonthly")
b.Property<double>("PriceHalfYearly")
.HasColumnType("double");
b.Property<double>("PriceMonthly")

View File

@ -12,7 +12,7 @@ namespace Marco.Pms.Model.TenantModels
public string Description { get; set; } = string.Empty;
public double PriceQuarterly { get; set; }
public double PriceMonthly { get; set; }
public double PriceHalfMonthly { get; set; }
public double PriceHalfYearly { get; set; }
public double PriceYearly { get; set; }
public int TrialDays { get; set; } = 30;
public double MaxUser { get; set; } = 10;

View File

@ -537,7 +537,7 @@ namespace Marco.Pms.Services.Controllers
response.Price = p.PriceMonthly;
break;
case 2:
response.Price = p.PriceHalfMonthly;
response.Price = p.PriceHalfYearly;
break;
case 3:
response.Price = p.PriceYearly;