Purchase Order için TenantId hatası düzeltildi.
This commit is contained in:
parent
abb85cf097
commit
a641df82f0
8 changed files with 38 additions and 3 deletions
|
|
@ -222,7 +222,9 @@ public class PublicAppService : PlatformAppService
|
||||||
{
|
{
|
||||||
var entity = new Order()
|
var entity = new Order()
|
||||||
{
|
{
|
||||||
TenantId = input.Tenant.Id,
|
Name = input.Tenant.Name,
|
||||||
|
IsActive = input.Tenant.IsActive,
|
||||||
|
|
||||||
OrganizationName = input.Tenant.OrganizationName,
|
OrganizationName = input.Tenant.OrganizationName,
|
||||||
Founder = input.Tenant.Founder,
|
Founder = input.Tenant.Founder,
|
||||||
VknTckn = input.Tenant.VknTckn,
|
VknTckn = input.Tenant.VknTckn,
|
||||||
|
|
@ -238,6 +240,7 @@ public class PublicAppService : PlatformAppService
|
||||||
Fax = input.Tenant.Fax,
|
Fax = input.Tenant.Fax,
|
||||||
Email = input.Tenant.Email,
|
Email = input.Tenant.Email,
|
||||||
Website = input.Tenant.Website,
|
Website = input.Tenant.Website,
|
||||||
|
MenuGroup = input.Tenant.MenuGroup,
|
||||||
|
|
||||||
Subtotal = input.Subtotal,
|
Subtotal = input.Subtotal,
|
||||||
Commission = input.Commission,
|
Commission = input.Commission,
|
||||||
|
|
|
||||||
|
|
@ -13625,7 +13625,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
Name = AppCodes.Orders.PurchaseOrders,
|
Name = AppCodes.Orders.PurchaseOrders,
|
||||||
Title = AppCodes.Orders.PurchaseOrders,
|
Title = AppCodes.Orders.PurchaseOrders,
|
||||||
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
IsTenant = false,
|
IsTenant = true,
|
||||||
IsBranch = false,
|
IsBranch = false,
|
||||||
IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
Description = AppCodes.Orders.PurchaseOrders,
|
Description = AppCodes.Orders.PurchaseOrders,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ public class Order : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
|
||||||
public string OrganizationName { get; set; }
|
public string OrganizationName { get; set; }
|
||||||
public string Founder { get; set; }
|
public string Founder { get; set; }
|
||||||
public long VknTckn { get; set; }
|
public long VknTckn { get; set; }
|
||||||
|
|
@ -24,6 +27,7 @@ public class Order : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public string Fax { get; set; }
|
public string Fax { get; set; }
|
||||||
public string Email { get; set; }
|
public string Email { get; set; }
|
||||||
public string Website { get; set; }
|
public string Website { get; set; }
|
||||||
|
public string MenuGroup { get; set; }
|
||||||
|
|
||||||
public List<OrderItem> Items { get; set; } = new();
|
public List<OrderItem> Items { get; set; } = new();
|
||||||
public decimal Subtotal { get; set; }
|
public decimal Subtotal { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1377,6 +1377,7 @@ public class PlatformDbContext :
|
||||||
b.ToTable(Prefix.DbTableWeb + nameof(Order), Prefix.DbSchema);
|
b.ToTable(Prefix.DbTableWeb + nameof(Order), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(o => o.Name).HasMaxLength(64);
|
||||||
b.Property(o => o.OrganizationName).HasMaxLength(128);
|
b.Property(o => o.OrganizationName).HasMaxLength(128);
|
||||||
b.Property(o => o.Founder).HasMaxLength(128);
|
b.Property(o => o.Founder).HasMaxLength(128);
|
||||||
b.Property(o => o.TaxOffice).HasMaxLength(128);
|
b.Property(o => o.TaxOffice).HasMaxLength(128);
|
||||||
|
|
@ -1388,6 +1389,7 @@ public class PlatformDbContext :
|
||||||
b.Property(o => o.PostalCode).HasMaxLength(16);
|
b.Property(o => o.PostalCode).HasMaxLength(16);
|
||||||
b.Property(o => o.Email).HasMaxLength(128);
|
b.Property(o => o.Email).HasMaxLength(128);
|
||||||
b.Property(o => o.Website).HasMaxLength(128);
|
b.Property(o => o.Website).HasMaxLength(128);
|
||||||
|
b.Property(o => o.MenuGroup).HasMaxLength(64);
|
||||||
|
|
||||||
b.Property(o => o.Subtotal).IsRequired().HasPrecision(18, 2);
|
b.Property(o => o.Subtotal).IsRequired().HasPrecision(18, 2);
|
||||||
b.Property(o => o.Commission).IsRequired().HasPrecision(18, 2);
|
b.Property(o => o.Commission).IsRequired().HasPrecision(18, 2);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Kurs.Platform.Migrations
|
namespace Kurs.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20251012075048_Initial")]
|
[Migration("20251013062624_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -4643,6 +4643,9 @@ namespace Kurs.Platform.Migrations
|
||||||
b.Property<int?>("Installment")
|
b.Property<int?>("Installment")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bit")
|
.HasColumnType("bit")
|
||||||
|
|
@ -4657,9 +4660,17 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<string>("MenuGroup")
|
||||||
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("Mobile")
|
b.Property<string>("Mobile")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("OrganizationName")
|
b.Property<string>("OrganizationName")
|
||||||
.HasMaxLength(128)
|
.HasMaxLength(128)
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
@ -1934,6 +1934,8 @@ namespace Kurs.Platform.Migrations
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
|
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
||||||
OrganizationName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
OrganizationName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Founder = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
Founder = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
VknTckn = table.Column<long>(type: "bigint", nullable: false),
|
VknTckn = table.Column<long>(type: "bigint", nullable: false),
|
||||||
|
|
@ -1949,6 +1951,7 @@ namespace Kurs.Platform.Migrations
|
||||||
Fax = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Fax = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
|
MenuGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
Subtotal = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
Subtotal = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
Commission = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
Commission = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
Total = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
Total = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
|
|
@ -4640,6 +4640,9 @@ namespace Kurs.Platform.Migrations
|
||||||
b.Property<int?>("Installment")
|
b.Property<int?>("Installment")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("bit")
|
.HasColumnType("bit")
|
||||||
|
|
@ -4654,9 +4657,17 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<string>("MenuGroup")
|
||||||
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("Mobile")
|
b.Property<string>("Mobile")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("OrganizationName")
|
b.Property<string>("OrganizationName")
|
||||||
.HasMaxLength(128)
|
.HasMaxLength(128)
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ export const TenantForm: React.FC<TenantFormProps> = ({ onSubmit }) => {
|
||||||
fax: tenant.data.fax,
|
fax: tenant.data.fax,
|
||||||
email: tenant.data.email,
|
email: tenant.data.email,
|
||||||
website: tenant.data.website,
|
website: tenant.data.website,
|
||||||
|
menuGroup: tenant.data.menuGroup,
|
||||||
}))
|
}))
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Kurum bilgisi alınırken hata:', error)
|
console.error('Kurum bilgisi alınırken hata:', error)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue