diff --git a/api/src/Erp.Platform.Application.Contracts/Banks/BankAccountDto.cs b/api/src/Erp.Platform.Application.Contracts/Banks/BankAccountDto.cs index 0682f77a..0cb9ff86 100644 --- a/api/src/Erp.Platform.Application.Contracts/Banks/BankAccountDto.cs +++ b/api/src/Erp.Platform.Application.Contracts/Banks/BankAccountDto.cs @@ -10,9 +10,8 @@ public class BankAccountDto : AuditedEntityDto public string BankName { get; set; } public string AccountOwner { get; set; } - - public Guid? CurrencyId { get; set; } - public string CurrencyCode { get; set; } + + public string Currency { get; set; } public bool CanTransferMoney { get; set; } diff --git a/api/src/Erp.Platform.Application.Contracts/Intranet/EmployeeDto.cs b/api/src/Erp.Platform.Application.Contracts/Intranet/EmployeeDto.cs index 3c2489f2..9aaeac8f 100644 --- a/api/src/Erp.Platform.Application.Contracts/Intranet/EmployeeDto.cs +++ b/api/src/Erp.Platform.Application.Contracts/Intranet/EmployeeDto.cs @@ -50,7 +50,7 @@ public class EmployeeDto : FullAuditedEntityDto public EmployeeDto Manager { get; set; } public decimal BaseSalary { get; set; } - public Guid? CurrencyId { get; set; } + public string Currency { get; set; } public string PayrollGroup { get; set; } // e.g., Monthly, Biweekly, Weekly public Guid? BankAccountId { get; set; } diff --git a/api/src/Erp.Platform.Application.Contracts/Intranet/ExpenseDto.cs b/api/src/Erp.Platform.Application.Contracts/Intranet/ExpenseDto.cs index d70d5109..bdd06bae 100644 --- a/api/src/Erp.Platform.Application.Contracts/Intranet/ExpenseDto.cs +++ b/api/src/Erp.Platform.Application.Contracts/Intranet/ExpenseDto.cs @@ -13,8 +13,7 @@ public class ExpenseDto : FullAuditedEntityDto public string Category { get; set; } public decimal Amount { get; set; } - public Guid? CurrencyId { get; set; } - public string CurrencyCode { get; set; } + public string Currency { get; set; } public DateTime RequestDate { get; set; } public string Description { get; set; } diff --git a/api/src/Erp.Platform.Application.Contracts/Intranet/JobPositionDto.cs b/api/src/Erp.Platform.Application.Contracts/Intranet/JobPositionDto.cs index a07bf8af..c4294d27 100644 --- a/api/src/Erp.Platform.Application.Contracts/Intranet/JobPositionDto.cs +++ b/api/src/Erp.Platform.Application.Contracts/Intranet/JobPositionDto.cs @@ -14,8 +14,7 @@ public class JobPositionDto : FullAuditedEntityDto public string Level { get; set; } public decimal MinSalary { get; set; } public decimal MaxSalary { get; set; } - public Guid? CurrencyId { get; set; } - public string CurrencyName { get; set; } + public string Currency { get; set; } public string RequiredSkills { get; set; } public string Responsibilities { get; set; } public string Qualifications { get; set; } diff --git a/api/src/Erp.Platform.Application.Contracts/Public/CountryDto.cs b/api/src/Erp.Platform.Application.Contracts/Public/CountryDto.cs index cb3a7ac7..05353f53 100644 --- a/api/src/Erp.Platform.Application.Contracts/Public/CountryDto.cs +++ b/api/src/Erp.Platform.Application.Contracts/Public/CountryDto.cs @@ -9,7 +9,7 @@ public class CountryDto : AuditedEntityDto public string Code { get; set; } public string Name { get; set; } public string GroupName { get; set; } - public string CurrencyCode { get; set; } + public string Currency { get; set; } public int PhoneCode { get; set; } public string TaxLabel { get; set; } public bool ZipRequired { get; set; } diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/Countries.json b/api/src/Erp.Platform.DbMigrator/Seeds/Countries.json index 909be3e4..ae383906 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/Countries.json +++ b/api/src/Erp.Platform.DbMigrator/Seeds/Countries.json @@ -2,7 +2,7 @@ { "Name": "Andorra", "Code": "AD", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 376, "TaxLabel": "", "GroupName": "Avrupa" @@ -10,7 +10,7 @@ { "Name": "Birleşik Arap Emirlikleri", "Code": "AE", - "CurrencyCode": "AED", + "Currency": "AED", "PhoneCode": 971, "TaxLabel": "", "GroupName": "Asya" @@ -18,7 +18,7 @@ { "Name": "Afganistan", "Code": "AF", - "CurrencyCode": "AFN", + "Currency": "AFN", "PhoneCode": 93, "TaxLabel": "", "GroupName": "Asya" @@ -26,7 +26,7 @@ { "Name": "Antigua ve Barbuda", "Code": "AG", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1268, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -34,7 +34,7 @@ { "Name": "Anguilla", "Code": "AI", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1264, "TaxLabel": "", "GroupName": "" @@ -42,7 +42,7 @@ { "Name": "Arnavutluk", "Code": "AL", - "CurrencyCode": "ALL", + "Currency": "ALL", "PhoneCode": 355, "TaxLabel": "", "GroupName": "" @@ -50,7 +50,7 @@ { "Name": "Ermenistan", "Code": "AM", - "CurrencyCode": "AMD", + "Currency": "AMD", "PhoneCode": 374, "TaxLabel": "", "GroupName": "Asya" @@ -58,7 +58,7 @@ { "Name": "Angola", "Code": "AO", - "CurrencyCode": "AOA", + "Currency": "AOA", "PhoneCode": 244, "TaxLabel": "", "GroupName": "Afrika" @@ -66,7 +66,7 @@ { "Name": "Antartika", "Code": "AQ", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 672, "TaxLabel": "", "GroupName": "" @@ -74,7 +74,7 @@ { "Name": "Arjantin", "Code": "AR", - "CurrencyCode": "ARS", + "Currency": "ARS", "PhoneCode": 54, "TaxLabel": "CUIT", "GroupName": "Güney Amerika" @@ -82,7 +82,7 @@ { "Name": "Amerikan Samoası", "Code": "AS", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1684, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -90,7 +90,7 @@ { "Name": "Avusturya", "Code": "AT", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 43, "TaxLabel": "USt", "GroupName": "Avrupa" @@ -98,7 +98,7 @@ { "Name": "Avustralya", "Code": "AU", - "CurrencyCode": "AUD", + "Currency": "AUD", "PhoneCode": 61, "TaxLabel": "ABN", "GroupName": "Okyanusya" @@ -106,7 +106,7 @@ { "Name": "Aruba", "Code": "AW", - "CurrencyCode": "AWG", + "Currency": "AWG", "PhoneCode": 297, "TaxLabel": "", "GroupName": "" @@ -114,7 +114,7 @@ { "Name": "Aland Adaları", "Code": "AX", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 358, "TaxLabel": "", "GroupName": "" @@ -122,7 +122,7 @@ { "Name": "Azerbaycan", "Code": "AZ", - "CurrencyCode": "AZN", + "Currency": "AZN", "PhoneCode": 994, "TaxLabel": "", "GroupName": "Asya" @@ -130,7 +130,7 @@ { "Name": "Bosna-Hersek", "Code": "BA", - "CurrencyCode": "BAM", + "Currency": "BAM", "PhoneCode": 387, "TaxLabel": "", "GroupName": "" @@ -138,7 +138,7 @@ { "Name": "Barbados", "Code": "BB", - "CurrencyCode": "BBD", + "Currency": "BBD", "PhoneCode": 1246, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -146,7 +146,7 @@ { "Name": "Bangladeş", "Code": "BD", - "CurrencyCode": "BDT", + "Currency": "BDT", "PhoneCode": 880, "TaxLabel": "", "GroupName": "Asya" @@ -154,7 +154,7 @@ { "Name": "Belçika", "Code": "BE", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 32, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -162,7 +162,7 @@ { "Name": "Burkina Faso", "Code": "BF", - "CurrencyCode": "XOF", + "Currency": "XOF", "PhoneCode": 226, "TaxLabel": "", "GroupName": "Afrika" @@ -170,7 +170,7 @@ { "Name": "Bulgaristan", "Code": "BG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 359, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -178,7 +178,7 @@ { "Name": "Bahreyn", "Code": "BH", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 973, "TaxLabel": "", "GroupName": "Asya" @@ -186,7 +186,7 @@ { "Name": "Burundi", "Code": "BI", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 257, "TaxLabel": "", "GroupName": "Afrika" @@ -194,7 +194,7 @@ { "Name": "Benin", "Code": "BJ", - "CurrencyCode": "XOF", + "Currency": "XOF", "PhoneCode": 229, "TaxLabel": "", "GroupName": "Afrika" @@ -202,7 +202,7 @@ { "Name": "Saint Barthelemy", "Code": "BL", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 590, "TaxLabel": "", "GroupName": "" @@ -210,7 +210,7 @@ { "Name": "Bermuda", "Code": "BM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 1441, "TaxLabel": "", "GroupName": "" @@ -218,7 +218,7 @@ { "Name": "Brunei", "Code": "BN", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 673, "TaxLabel": "", "GroupName": "Asya" @@ -226,7 +226,7 @@ { "Name": "Bolivya", "Code": "BO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 591, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -234,7 +234,7 @@ { "Name": "Bonaire, Sint Eustatius and Saba", "Code": "BQ", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 599, "TaxLabel": "", "GroupName": "" @@ -242,7 +242,7 @@ { "Name": "Brezilya", "Code": "BR", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 55, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -250,7 +250,7 @@ { "Name": "Bahamalar", "Code": "BS", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 1242, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -258,7 +258,7 @@ { "Name": "Bhutan", "Code": "BT", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 975, "TaxLabel": "", "GroupName": "" @@ -266,7 +266,7 @@ { "Name": "Bouvet Adası", "Code": "BV", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 55, "TaxLabel": "", "GroupName": "" @@ -274,7 +274,7 @@ { "Name": "Botsvana", "Code": "BW", - "CurrencyCode": "BWP", + "Currency": "BWP", "PhoneCode": 267, "TaxLabel": "", "GroupName": "Afrika" @@ -282,7 +282,7 @@ { "Name": "Belarus", "Code": "BY", - "CurrencyCode": "BYN", + "Currency": "BYN", "PhoneCode": 375, "TaxLabel": "", "GroupName": "" @@ -290,7 +290,7 @@ { "Name": "Belize", "Code": "BZ", - "CurrencyCode": "BZD", + "Currency": "BZD", "PhoneCode": 501, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -298,7 +298,7 @@ { "Name": "Kanada", "Code": "CA", - "CurrencyCode": "CAD", + "Currency": "CAD", "PhoneCode": 1, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -306,7 +306,7 @@ { "Name": "Kokos (Keeling) Adaları", "Code": "CC", - "CurrencyCode": "AUD", + "Currency": "AUD", "PhoneCode": 61, "TaxLabel": "", "GroupName": "" @@ -314,7 +314,7 @@ { "Name": "Orta Afrika Cumhuriyeti", "Code": "CF", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 236, "TaxLabel": "", "GroupName": "" @@ -322,7 +322,7 @@ { "Name": "Kongo Demokratik Cumhuriyeti", "Code": "CD", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 243, "TaxLabel": "", "GroupName": "Afrika" @@ -330,7 +330,7 @@ { "Name": "Kongo", "Code": "CG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 242, "TaxLabel": "", "GroupName": "Afrika" @@ -338,7 +338,7 @@ { "Name": "İsviçre", "Code": "CH", - "CurrencyCode": "CHF", + "Currency": "CHF", "PhoneCode": 41, "TaxLabel": "", "GroupName": "" @@ -346,7 +346,7 @@ { "Name": "Fildişi Sahili", "Code": "CI", - "CurrencyCode": "XOF", + "Currency": "XOF", "PhoneCode": 225, "TaxLabel": "", "GroupName": "Afrika" @@ -354,7 +354,7 @@ { "Name": "Cook Adaları", "Code": "CK", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 682, "TaxLabel": "", "GroupName": "" @@ -362,7 +362,7 @@ { "Name": "Şili", "Code": "CL", - "CurrencyCode": "CLP", + "Currency": "CLP", "PhoneCode": 56, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -370,7 +370,7 @@ { "Name": "Kamerun", "Code": "CM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 237, "TaxLabel": "", "GroupName": "Afrika" @@ -378,7 +378,7 @@ { "Name": "Çin Halk Cumhuriyeti", "Code": "CN", - "CurrencyCode": "CNY", + "Currency": "CNY", "PhoneCode": 86, "TaxLabel": "", "GroupName": "Asya" @@ -386,7 +386,7 @@ { "Name": "Kolombiya", "Code": "CO", - "CurrencyCode": "COP", + "Currency": "COP", "PhoneCode": 57, "TaxLabel": "NIT", "GroupName": "Güney Amerika" @@ -394,7 +394,7 @@ { "Name": "Kosta Rika", "Code": "CR", - "CurrencyCode": "CRC", + "Currency": "CRC", "PhoneCode": 506, "TaxLabel": "", "GroupName": "" @@ -402,7 +402,7 @@ { "Name": "Küba", "Code": "CU", - "CurrencyCode": "CUP", + "Currency": "CUP", "PhoneCode": 53, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -410,7 +410,7 @@ { "Name": "Cape Verde", "Code": "CV", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 238, "TaxLabel": "", "GroupName": "" @@ -418,7 +418,7 @@ { "Name": "Curacao", "Code": "CW", - "CurrencyCode": "ANG", + "Currency": "ANG", "PhoneCode": 599, "TaxLabel": "", "GroupName": "" @@ -426,7 +426,7 @@ { "Name": "Christmas Adası", "Code": "CX", - "CurrencyCode": "AUD", + "Currency": "AUD", "PhoneCode": 61, "TaxLabel": "", "GroupName": "" @@ -434,7 +434,7 @@ { "Name": "Kıbrıs Rum Kesimi", "Code": "CY", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 357, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -442,7 +442,7 @@ { "Name": "Çek Cumhuriyeti", "Code": "CZ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 420, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -450,7 +450,7 @@ { "Name": "Almanya", "Code": "DE", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 49, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -458,7 +458,7 @@ { "Name": "Cibuti", "Code": "DJ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 253, "TaxLabel": "", "GroupName": "" @@ -466,7 +466,7 @@ { "Name": "Danimarka", "Code": "DK", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 45, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -474,7 +474,7 @@ { "Name": "Dominika", "Code": "DM", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1767, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -482,7 +482,7 @@ { "Name": "Dominik Cumhuriyeti", "Code": "DO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 1849, "TaxLabel": "RNC", "GroupName": "" @@ -490,7 +490,7 @@ { "Name": "Cezayir", "Code": "DZ", - "CurrencyCode": "DZD", + "Currency": "DZD", "PhoneCode": 213, "TaxLabel": "", "GroupName": "Afrika" @@ -498,7 +498,7 @@ { "Name": "Ekvador", "Code": "EC", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 593, "TaxLabel": "RUC", "GroupName": "Güney Amerika" @@ -506,7 +506,7 @@ { "Name": "Estonya", "Code": "EE", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 372, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -514,7 +514,7 @@ { "Name": "Mısır", "Code": "EG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 20, "TaxLabel": "", "GroupName": "Afrika" @@ -522,7 +522,7 @@ { "Name": "Batı Sahra", "Code": "EH", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 212, "TaxLabel": "", "GroupName": "" @@ -530,7 +530,7 @@ { "Name": "Eritre", "Code": "ER", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 291, "TaxLabel": "", "GroupName": "" @@ -538,7 +538,7 @@ { "Name": "İspanya", "Code": "ES", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 34, "TaxLabel": "VKN/TCKN", "GroupName": "" @@ -546,7 +546,7 @@ { "Name": "Etiyopya", "Code": "ET", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 251, "TaxLabel": "", "GroupName": "Afrika" @@ -554,7 +554,7 @@ { "Name": "Finlandiya", "Code": "FI", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 358, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -562,7 +562,7 @@ { "Name": "Fiji", "Code": "FJ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 679, "TaxLabel": "", "GroupName": "Okyanusya" @@ -570,7 +570,7 @@ { "Name": "Falkland Adaları", "Code": "FK", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 500, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -578,7 +578,7 @@ { "Name": "Mikronezya", "Code": "FM", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 691, "TaxLabel": "", "GroupName": "Okyanusya" @@ -586,7 +586,7 @@ { "Name": "Faroe Adaları", "Code": "FO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 298, "TaxLabel": "", "GroupName": "" @@ -594,7 +594,7 @@ { "Name": "Fransa", "Code": "FR", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 33, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -602,7 +602,7 @@ { "Name": "Gabon", "Code": "GA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 241, "TaxLabel": "", "GroupName": "Afrika" @@ -610,7 +610,7 @@ { "Name": "Grenada", "Code": "GD", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1473, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -618,7 +618,7 @@ { "Name": "Gürcistan", "Code": "GE", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 995, "TaxLabel": "", "GroupName": "Asya" @@ -626,7 +626,7 @@ { "Name": "Fransız Guyanası", "Code": "GF", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 594, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -634,7 +634,7 @@ { "Name": "Gana", "Code": "GH", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 233, "TaxLabel": "", "GroupName": "Afrika" @@ -642,7 +642,7 @@ { "Name": "Cebelitarık", "Code": "GI", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 350, "TaxLabel": "", "GroupName": "" @@ -650,7 +650,7 @@ { "Name": "Guernsey", "Code": "GG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 44, "TaxLabel": "", "GroupName": "" @@ -658,7 +658,7 @@ { "Name": "Grönland", "Code": "GL", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 299, "TaxLabel": "", "GroupName": "" @@ -666,7 +666,7 @@ { "Name": "Gambiya", "Code": "GM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 220, "TaxLabel": "", "GroupName": "" @@ -674,7 +674,7 @@ { "Name": "Gine", "Code": "GN", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 224, "TaxLabel": "", "GroupName": "Afrika" @@ -682,7 +682,7 @@ { "Name": "Guadelup", "Code": "GP", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 590, "TaxLabel": "", "GroupName": "" @@ -690,7 +690,7 @@ { "Name": "Ekvator Ginesi", "Code": "GQ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 240, "TaxLabel": "", "GroupName": "Afrika" @@ -698,7 +698,7 @@ { "Name": "Yunanistan", "Code": "GR", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 30, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -706,7 +706,7 @@ { "Name": "Güney Georgia ve Güney Sandwich Adaları", "Code": "GS", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 500, "TaxLabel": "", "GroupName": "" @@ -714,7 +714,7 @@ { "Name": "Guatemala", "Code": "GT", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 502, "TaxLabel": "NIT", "GroupName": "Kuzey Amerika" @@ -722,7 +722,7 @@ { "Name": "Guam", "Code": "GU", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1671, "TaxLabel": "", "GroupName": "" @@ -730,7 +730,7 @@ { "Name": "Gine-Bissau", "Code": "GW", - "CurrencyCode": "XOF", + "Currency": "XOF", "PhoneCode": 245, "TaxLabel": "", "GroupName": "Afrika" @@ -738,7 +738,7 @@ { "Name": "Guyana", "Code": "GY", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 592, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -746,7 +746,7 @@ { "Name": "Hong Kong", "Code": "HK", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 852, "TaxLabel": "", "GroupName": "" @@ -754,7 +754,7 @@ { "Name": "Heard Adası ve McDonald Adaları", "Code": "HM", - "CurrencyCode": "AUD", + "Currency": "AUD", "PhoneCode": 672, "TaxLabel": "", "GroupName": "" @@ -762,7 +762,7 @@ { "Name": "Honduras", "Code": "HN", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 504, "TaxLabel": "RTN", "GroupName": "Kuzey Amerika" @@ -770,7 +770,7 @@ { "Name": "Hırvatistan", "Code": "HR", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 385, "TaxLabel": "VKN/TCKN", "GroupName": "" @@ -778,7 +778,7 @@ { "Name": "Haiti", "Code": "HT", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 509, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -786,7 +786,7 @@ { "Name": "Macaristan", "Code": "HU", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 36, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -794,7 +794,7 @@ { "Name": "Endonezya", "Code": "ID", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 62, "TaxLabel": "NPWP", "GroupName": "Asya" @@ -802,7 +802,7 @@ { "Name": "İrlanda", "Code": "IE", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 353, "TaxLabel": "VKN/TCKN", "GroupName": "" @@ -810,7 +810,7 @@ { "Name": "İsrail", "Code": "IL", - "CurrencyCode": "ILS", + "Currency": "ILS", "PhoneCode": 972, "TaxLabel": "", "GroupName": "" @@ -818,7 +818,7 @@ { "Name": "Man Adası", "Code": "IM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 44, "TaxLabel": "", "GroupName": "" @@ -826,7 +826,7 @@ { "Name": "Hindistan", "Code": "IN", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 91, "TaxLabel": "GSTIN", "GroupName": "Asya" @@ -834,7 +834,7 @@ { "Name": "İngiliz Hint Okyanusu Toprağı", "Code": "IO", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 246, "TaxLabel": "", "GroupName": "" @@ -842,7 +842,7 @@ { "Name": "Irak", "Code": "IQ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 964, "TaxLabel": "", "GroupName": "Asya" @@ -850,7 +850,7 @@ { "Name": "İran", "Code": "IR", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 98, "TaxLabel": "", "GroupName": "" @@ -858,7 +858,7 @@ { "Name": "İzlanda", "Code": "IS", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 354, "TaxLabel": "", "GroupName": "" @@ -866,7 +866,7 @@ { "Name": "İtalya", "Code": "IT", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 39, "TaxLabel": "VKN/TCKN", "GroupName": "" @@ -874,7 +874,7 @@ { "Name": "Jersey", "Code": "JE", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 44, "TaxLabel": "", "GroupName": "" @@ -882,7 +882,7 @@ { "Name": "Jamaika", "Code": "JM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 1876, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -890,7 +890,7 @@ { "Name": "Ürdün", "Code": "JO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 962, "TaxLabel": "", "GroupName": "" @@ -898,7 +898,7 @@ { "Name": "Japonya", "Code": "JP", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 81, "TaxLabel": "", "GroupName": "Asya" @@ -906,7 +906,7 @@ { "Name": "Kenya", "Code": "KE", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 254, "TaxLabel": "", "GroupName": "Afrika" @@ -914,7 +914,7 @@ { "Name": "Kırgızistan", "Code": "KG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 996, "TaxLabel": "", "GroupName": "Asya" @@ -922,7 +922,7 @@ { "Name": "Kamboçya", "Code": "KH", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 855, "TaxLabel": "", "GroupName": "Asya" @@ -930,7 +930,7 @@ { "Name": "Kiribati", "Code": "KI", - "CurrencyCode": "AUD", + "Currency": "AUD", "PhoneCode": 686, "TaxLabel": "", "GroupName": "Okyanusya" @@ -938,7 +938,7 @@ { "Name": "Komorlar", "Code": "KM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 269, "TaxLabel": "", "GroupName": "Afrika" @@ -946,7 +946,7 @@ { "Name": "Saint Kitts ve Nevis", "Code": "KN", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1869, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -954,7 +954,7 @@ { "Name": "Kuzey Kore", "Code": "KP", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 850, "TaxLabel": "", "GroupName": "Asya" @@ -962,7 +962,7 @@ { "Name": "Güney Kore", "Code": "KR", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 82, "TaxLabel": "", "GroupName": "Asya" @@ -970,7 +970,7 @@ { "Name": "Kuveyt", "Code": "KW", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 965, "TaxLabel": "", "GroupName": "Asya" @@ -978,7 +978,7 @@ { "Name": "Kayman Adaları", "Code": "KY", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 1345, "TaxLabel": "", "GroupName": "" @@ -986,7 +986,7 @@ { "Name": "Kazakistan", "Code": "KZ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 7, "TaxLabel": "", "GroupName": "Asya" @@ -994,7 +994,7 @@ { "Name": "Laos", "Code": "LA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 856, "TaxLabel": "", "GroupName": "Asya" @@ -1002,7 +1002,7 @@ { "Name": "Lübnan", "Code": "LB", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 961, "TaxLabel": "", "GroupName": "Asya" @@ -1010,7 +1010,7 @@ { "Name": "Saint Lucia", "Code": "LC", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1758, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -1018,7 +1018,7 @@ { "Name": "Lihtenştayn", "Code": "LI", - "CurrencyCode": "CHF", + "Currency": "CHF", "PhoneCode": 423, "TaxLabel": "", "GroupName": "Avrupa" @@ -1026,7 +1026,7 @@ { "Name": "Sri Lanka", "Code": "LK", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 94, "TaxLabel": "", "GroupName": "Asya" @@ -1034,7 +1034,7 @@ { "Name": "Liberya", "Code": "LR", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 231, "TaxLabel": "", "GroupName": "Afrika" @@ -1042,7 +1042,7 @@ { "Name": "Lesotho", "Code": "LS", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 266, "TaxLabel": "", "GroupName": "Afrika" @@ -1050,7 +1050,7 @@ { "Name": "Litvanya", "Code": "LT", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 370, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1058,7 +1058,7 @@ { "Name": "Lüksemburg", "Code": "LU", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 352, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1066,7 +1066,7 @@ { "Name": "Letonya", "Code": "LV", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 371, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1074,7 +1074,7 @@ { "Name": "Libya", "Code": "LY", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 218, "TaxLabel": "", "GroupName": "Afrika" @@ -1082,7 +1082,7 @@ { "Name": "Fas", "Code": "MA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 212, "TaxLabel": "", "GroupName": "Afrika" @@ -1090,7 +1090,7 @@ { "Name": "Monako", "Code": "MC", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 377, "TaxLabel": "", "GroupName": "Avrupa" @@ -1098,7 +1098,7 @@ { "Name": "Moldova Cumhuriyeti", "Code": "MD", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 373, "TaxLabel": "", "GroupName": "" @@ -1106,7 +1106,7 @@ { "Name": "Karadağ", "Code": "ME", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 382, "TaxLabel": "", "GroupName": "" @@ -1114,7 +1114,7 @@ { "Name": "Saint Martin (Fransız kısmı)", "Code": "MF", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 590, "TaxLabel": "", "GroupName": "" @@ -1122,7 +1122,7 @@ { "Name": "Madagaskar", "Code": "MG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 261, "TaxLabel": "", "GroupName": "Afrika" @@ -1130,7 +1130,7 @@ { "Name": "Marshall Adaları", "Code": "MH", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 692, "TaxLabel": "", "GroupName": "Okyanusya" @@ -1138,7 +1138,7 @@ { "Name": "Makedonya", "Code": "MK", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 389, "TaxLabel": "", "GroupName": "" @@ -1146,7 +1146,7 @@ { "Name": "Mali", "Code": "ML", - "CurrencyCode": "XOF", + "Currency": "XOF", "PhoneCode": 223, "TaxLabel": "", "GroupName": "Afrika" @@ -1154,7 +1154,7 @@ { "Name": "Myanmar", "Code": "MM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 95, "TaxLabel": "", "GroupName": "Asya" @@ -1162,7 +1162,7 @@ { "Name": "Moğolistan", "Code": "MN", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 976, "TaxLabel": "", "GroupName": "Asya" @@ -1170,7 +1170,7 @@ { "Name": "Makao", "Code": "MO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 853, "TaxLabel": "", "GroupName": "" @@ -1178,7 +1178,7 @@ { "Name": "Kuzey Mariana Adaları", "Code": "MP", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1670, "TaxLabel": "", "GroupName": "" @@ -1186,7 +1186,7 @@ { "Name": "Martinik", "Code": "MQ", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 596, "TaxLabel": "", "GroupName": "" @@ -1194,7 +1194,7 @@ { "Name": "Moritanya", "Code": "MR", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 222, "TaxLabel": "", "GroupName": "" @@ -1202,7 +1202,7 @@ { "Name": "Montserrat", "Code": "MS", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1664, "TaxLabel": "", "GroupName": "" @@ -1210,7 +1210,7 @@ { "Name": "Malta", "Code": "MT", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 356, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1218,7 +1218,7 @@ { "Name": "Mauritius", "Code": "MU", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 230, "TaxLabel": "", "GroupName": "" @@ -1226,7 +1226,7 @@ { "Name": "Maldivler", "Code": "MV", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 960, "TaxLabel": "", "GroupName": "Asya" @@ -1234,7 +1234,7 @@ { "Name": "Malavi", "Code": "MW", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 265, "TaxLabel": "", "GroupName": "Afrika" @@ -1242,7 +1242,7 @@ { "Name": "Solomon Adaları", "Code": "SB", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 677, "TaxLabel": "", "GroupName": "Okyanusya" @@ -1250,7 +1250,7 @@ { "Name": "Meksika", "Code": "MX", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 52, "TaxLabel": "RFC", "GroupName": "Kuzey Amerika" @@ -1258,7 +1258,7 @@ { "Name": "Malezya", "Code": "MY", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 60, "TaxLabel": "", "GroupName": "Asya" @@ -1266,7 +1266,7 @@ { "Name": "Mozambik", "Code": "MZ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 258, "TaxLabel": "", "GroupName": "Afrika" @@ -1274,7 +1274,7 @@ { "Name": "Namibya", "Code": "NA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 264, "TaxLabel": "", "GroupName": "Afrika" @@ -1282,7 +1282,7 @@ { "Name": "Yeni Kaledonya", "Code": "NC", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 687, "TaxLabel": "", "GroupName": "" @@ -1290,7 +1290,7 @@ { "Name": "Nijer", "Code": "NE", - "CurrencyCode": "XOF", + "Currency": "XOF", "PhoneCode": 227, "TaxLabel": "", "GroupName": "" @@ -1298,7 +1298,7 @@ { "Name": "Norfolk Adası", "Code": "NF", - "CurrencyCode": "AUD", + "Currency": "AUD", "PhoneCode": 672, "TaxLabel": "", "GroupName": "" @@ -1306,7 +1306,7 @@ { "Name": "Nijerya", "Code": "NG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 234, "TaxLabel": "", "GroupName": "" @@ -1314,7 +1314,7 @@ { "Name": "Nikaragua", "Code": "NI", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 505, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -1322,7 +1322,7 @@ { "Name": "Hollanda", "Code": "NL", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 31, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1330,7 +1330,7 @@ { "Name": "Norveç", "Code": "NO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 47, "TaxLabel": "", "GroupName": "Avrupa" @@ -1338,7 +1338,7 @@ { "Name": "Nepal", "Code": "NP", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 977, "TaxLabel": "", "GroupName": "Asya" @@ -1346,7 +1346,7 @@ { "Name": "Nauru", "Code": "NR", - "CurrencyCode": "AUD", + "Currency": "AUD", "PhoneCode": 674, "TaxLabel": "", "GroupName": "Okyanusya" @@ -1354,7 +1354,7 @@ { "Name": "Niue", "Code": "NU", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 683, "TaxLabel": "", "GroupName": "" @@ -1362,7 +1362,7 @@ { "Name": "Yeni Zelanda", "Code": "NZ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 64, "TaxLabel": "", "GroupName": "Okyanusya" @@ -1370,7 +1370,7 @@ { "Name": "Umman", "Code": "OM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 968, "TaxLabel": "", "GroupName": "" @@ -1378,7 +1378,7 @@ { "Name": "Panama", "Code": "PA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 507, "TaxLabel": "RUC", "GroupName": "Kuzey Amerika" @@ -1386,7 +1386,7 @@ { "Name": "Peru", "Code": "PE", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 51, "TaxLabel": "RUC", "GroupName": "Güney Amerika" @@ -1394,7 +1394,7 @@ { "Name": "Fransız Polinezyası", "Code": "PF", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 689, "TaxLabel": "N° Tahiti", "GroupName": "" @@ -1402,7 +1402,7 @@ { "Name": "Papua Yeni Gine", "Code": "PG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 675, "TaxLabel": "", "GroupName": "Afrika" @@ -1410,7 +1410,7 @@ { "Name": "Filipinler", "Code": "PH", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 63, "TaxLabel": "", "GroupName": "Asya" @@ -1418,7 +1418,7 @@ { "Name": "Pakistan", "Code": "PK", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 92, "TaxLabel": "", "GroupName": "Asya" @@ -1426,7 +1426,7 @@ { "Name": "Polonya", "Code": "PL", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 48, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1434,7 +1434,7 @@ { "Name": "Saint Pierre ve Mikelon", "Code": "PM", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 508, "TaxLabel": "", "GroupName": "" @@ -1442,7 +1442,7 @@ { "Name": "Pitcairn", "Code": "PN", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 64, "TaxLabel": "", "GroupName": "" @@ -1450,7 +1450,7 @@ { "Name": "Porto Riko", "Code": "PR", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1939, "TaxLabel": "", "GroupName": "" @@ -1458,7 +1458,7 @@ { "Name": "İşgal Altındaki Filistin Toprağı", "Code": "PS", - "CurrencyCode": "ILS", + "Currency": "ILS", "PhoneCode": 970, "TaxLabel": "", "GroupName": "" @@ -1466,7 +1466,7 @@ { "Name": "Portekiz", "Code": "PT", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 351, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1474,7 +1474,7 @@ { "Name": "Palau", "Code": "PW", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 680, "TaxLabel": "", "GroupName": "Okyanusya" @@ -1482,7 +1482,7 @@ { "Name": "Paraguay", "Code": "PY", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 595, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -1490,7 +1490,7 @@ { "Name": "Katar", "Code": "QA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 974, "TaxLabel": "", "GroupName": "Asya" @@ -1498,7 +1498,7 @@ { "Name": "Reunion", "Code": "RE", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 262, "TaxLabel": "", "GroupName": "" @@ -1506,7 +1506,7 @@ { "Name": "Romanya", "Code": "RO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 40, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1514,7 +1514,7 @@ { "Name": "Sırbistan", "Code": "RS", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 381, "TaxLabel": "", "GroupName": "" @@ -1522,7 +1522,7 @@ { "Name": "Rusya Federasyonu", "Code": "RU", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 7, "TaxLabel": "", "GroupName": "Asya" @@ -1530,7 +1530,7 @@ { "Name": "Ruanda", "Code": "RW", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 250, "TaxLabel": "", "GroupName": "Afrika" @@ -1538,7 +1538,7 @@ { "Name": "Suudi Arabistan", "Code": "SA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 966, "TaxLabel": "", "GroupName": "Asya" @@ -1546,7 +1546,7 @@ { "Name": "Seyşeller", "Code": "SC", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 248, "TaxLabel": "", "GroupName": "Afrika" @@ -1554,7 +1554,7 @@ { "Name": "Sudan", "Code": "SD", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 249, "TaxLabel": "", "GroupName": "Afrika" @@ -1562,7 +1562,7 @@ { "Name": "İsveç", "Code": "SE", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 46, "TaxLabel": "VKN/TCKN", "GroupName": "" @@ -1570,7 +1570,7 @@ { "Name": "Singapur", "Code": "SG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 65, "TaxLabel": "GST No.", "GroupName": "Asya" @@ -1578,7 +1578,7 @@ { "Name": "Saint Helena", "Code": "SH", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 290, "TaxLabel": "", "GroupName": "" @@ -1586,7 +1586,7 @@ { "Name": "Slovenya", "Code": "SI", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 386, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1594,7 +1594,7 @@ { "Name": "Svalbard ve Jan Mayen", "Code": "SJ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 47, "TaxLabel": "", "GroupName": "" @@ -1602,7 +1602,7 @@ { "Name": "Slovakya", "Code": "SK", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 421, "TaxLabel": "VKN/TCKN", "GroupName": "Avrupa" @@ -1610,7 +1610,7 @@ { "Name": "Sierra Leone", "Code": "SL", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 232, "TaxLabel": "", "GroupName": "Afrika" @@ -1618,7 +1618,7 @@ { "Name": "San Marino", "Code": "SM", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 378, "TaxLabel": "", "GroupName": "Avrupa" @@ -1626,7 +1626,7 @@ { "Name": "Senegal", "Code": "SN", - "CurrencyCode": "XOF", + "Currency": "XOF", "PhoneCode": 221, "TaxLabel": "", "GroupName": "Afrika" @@ -1634,7 +1634,7 @@ { "Name": "Somali", "Code": "SO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 252, "TaxLabel": "", "GroupName": "Afrika" @@ -1642,7 +1642,7 @@ { "Name": "Surinam", "Code": "SR", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 597, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -1650,7 +1650,7 @@ { "Name": "South Sudan", "Code": "SS", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 211, "TaxLabel": "", "GroupName": "Afrika" @@ -1658,7 +1658,7 @@ { "Name": "Sao Tome ve Principe", "Code": "ST", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 239, "TaxLabel": "", "GroupName": "Afrika" @@ -1666,7 +1666,7 @@ { "Name": "El Salvador", "Code": "SV", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 503, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -1674,7 +1674,7 @@ { "Name": "Sint Maarten", "Code": "SX", - "CurrencyCode": "ANG", + "Currency": "ANG", "PhoneCode": 1721, "TaxLabel": "", "GroupName": "" @@ -1682,7 +1682,7 @@ { "Name": "Suriye", "Code": "SY", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 963, "TaxLabel": "", "GroupName": "Asya" @@ -1690,7 +1690,7 @@ { "Name": "Svaziland", "Code": "SZ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 268, "TaxLabel": "", "GroupName": "Afrika" @@ -1698,7 +1698,7 @@ { "Name": "Turks ve Caicos Adaları", "Code": "TC", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1649, "TaxLabel": "", "GroupName": "" @@ -1706,7 +1706,7 @@ { "Name": "Çad", "Code": "TD", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 235, "TaxLabel": "", "GroupName": "Afrika" @@ -1714,7 +1714,7 @@ { "Name": "Fransız Güney Toprakları", "Code": "TF", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 262, "TaxLabel": "", "GroupName": "" @@ -1722,7 +1722,7 @@ { "Name": "Togo", "Code": "TG", - "CurrencyCode": "XOF", + "Currency": "XOF", "PhoneCode": 228, "TaxLabel": "", "GroupName": "Afrika" @@ -1730,7 +1730,7 @@ { "Name": "Tayland", "Code": "TH", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 66, "TaxLabel": "", "GroupName": "Asya" @@ -1738,7 +1738,7 @@ { "Name": "Tacikistan", "Code": "TJ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 992, "TaxLabel": "", "GroupName": "Asya" @@ -1746,7 +1746,7 @@ { "Name": "Tokelau", "Code": "TK", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 690, "TaxLabel": "", "GroupName": "" @@ -1754,7 +1754,7 @@ { "Name": "Türkmenistan", "Code": "TM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 993, "TaxLabel": "", "GroupName": "" @@ -1762,7 +1762,7 @@ { "Name": "Tunus", "Code": "TN", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 216, "TaxLabel": "", "GroupName": "Afrika" @@ -1770,7 +1770,7 @@ { "Name": "Tonga", "Code": "TO", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 676, "TaxLabel": "", "GroupName": "Okyanusya" @@ -1778,7 +1778,7 @@ { "Name": "Doğu Timor", "Code": "TL", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 670, "TaxLabel": "", "GroupName": "Asya" @@ -1786,7 +1786,7 @@ { "Name": "Türkiye", "Code": "TR", - "CurrencyCode": "TRY", + "Currency": "TRY", "PhoneCode": 90, "TaxLabel": "", "GroupName": "Avrupa" @@ -1794,7 +1794,7 @@ { "Name": "Trinidad ve Tobago", "Code": "TT", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 1868, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -1802,7 +1802,7 @@ { "Name": "Tuvalu", "Code": "TV", - "CurrencyCode": "AUD", + "Currency": "AUD", "PhoneCode": 688, "TaxLabel": "", "GroupName": "Okyanusya" @@ -1810,7 +1810,7 @@ { "Name": "Tayvan", "Code": "TW", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 886, "TaxLabel": "", "GroupName": "" @@ -1818,7 +1818,7 @@ { "Name": "Tanzanya Birleşik Cumhuriyeti", "Code": "TZ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 255, "TaxLabel": "", "GroupName": "Afrika" @@ -1826,7 +1826,7 @@ { "Name": "Ukrayna", "Code": "UA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 380, "TaxLabel": "", "GroupName": "" @@ -1834,7 +1834,7 @@ { "Name": "Uganda", "Code": "UG", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 256, "TaxLabel": "", "GroupName": "Afrika" @@ -1842,7 +1842,7 @@ { "Name": "Birleşik Krallık (Büyük Britanya ve Kuzey İrlanda)", "Code": "GB", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 44, "TaxLabel": "VKN/TCKN", "GroupName": "" @@ -1850,7 +1850,7 @@ { "Name": "Birleşik Devletler Minor Outlying Adaları", "Code": "UM", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 699, "TaxLabel": "", "GroupName": "" @@ -1858,7 +1858,7 @@ { "Name": "Amerika Birleşik Devletleri", "Code": "US", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -1866,7 +1866,7 @@ { "Name": "Uruguay", "Code": "UY", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 598, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -1874,7 +1874,7 @@ { "Name": "Özbekistan", "Code": "UZ", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 998, "TaxLabel": "", "GroupName": "Asya" @@ -1882,7 +1882,7 @@ { "Name": "Vatikan", "Code": "VA", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 379, "TaxLabel": "", "GroupName": "Avrupa" @@ -1890,7 +1890,7 @@ { "Name": "Saint Vincent ve Grenadinler", "Code": "VC", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1784, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -1898,7 +1898,7 @@ { "Name": "Venezuela", "Code": "VE", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 58, "TaxLabel": "", "GroupName": "Güney Amerika" @@ -1906,7 +1906,7 @@ { "Name": "Virjin Adaları (İngiliz)", "Code": "VG", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1284, "TaxLabel": "", "GroupName": "" @@ -1914,7 +1914,7 @@ { "Name": "Virjin Adaları (ABD)", "Code": "VI", - "CurrencyCode": "USD", + "Currency": "USD", "PhoneCode": 1340, "TaxLabel": "", "GroupName": "Kuzey Amerika" @@ -1922,7 +1922,7 @@ { "Name": "Vietnam", "Code": "VN", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 84, "TaxLabel": "", "GroupName": "" @@ -1930,7 +1930,7 @@ { "Name": "Vanuatu", "Code": "VU", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 678, "TaxLabel": "", "GroupName": "" @@ -1938,7 +1938,7 @@ { "Name": "Wallis ve Futuna", "Code": "WF", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 681, "TaxLabel": "", "GroupName": "" @@ -1946,7 +1946,7 @@ { "Name": "Samoa", "Code": "WS", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 685, "TaxLabel": "", "GroupName": "Okyanusya" @@ -1954,7 +1954,7 @@ { "Name": "Yemen", "Code": "YE", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 967, "TaxLabel": "", "GroupName": "Asya" @@ -1962,7 +1962,7 @@ { "Name": "Mayotte", "Code": "YT", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 262, "TaxLabel": "", "GroupName": "" @@ -1970,7 +1970,7 @@ { "Name": "Güney Afrika Cumhuriyeti", "Code": "ZA", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 27, "TaxLabel": "", "GroupName": "Afrika" @@ -1978,7 +1978,7 @@ { "Name": "Zambia", "Code": "ZM", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 260, "TaxLabel": "", "GroupName": "" @@ -1986,7 +1986,7 @@ { "Name": "Zimbabve", "Code": "ZW", - "CurrencyCode": "", + "Currency": "", "PhoneCode": 263, "TaxLabel": "", "GroupName": "" @@ -1994,7 +1994,7 @@ { "Name": "Kosova", "Code": "XK", - "CurrencyCode": "EUR", + "Currency": "EUR", "PhoneCode": 383, "TaxLabel": "", "GroupName": "" diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/HostDataSeeder.cs b/api/src/Erp.Platform.DbMigrator/Seeds/HostDataSeeder.cs index 2886caa2..03ab5641 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/HostDataSeeder.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/HostDataSeeder.cs @@ -285,14 +285,12 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency if (!seenCodes.Add(item.Code) || existingCodes.Contains(item.Code)) continue; - var currency = await _currencyRepository.FirstOrDefaultAsync(c => c.Code == item.CurrencyCode); - buffer.Add(new Country( Guid.NewGuid(), item.Code, item.Name, item.GroupName, - currency != null ? currency.Id : null, + item.Currency, item.PhoneCode, item.TaxLabel )); diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs index bc15e5f2..14385dad 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs @@ -390,12 +390,13 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende [ new EditingFormItemDto { Order = 1, DataField = "AccountNumber", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 2, DataField = "AccountOwner", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 3, DataField = "CurrencyId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 3, DataField = "Currency", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 4, DataField = "CanTransferMoney", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox }, ]} }), FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { FieldName = "CanTransferMoney", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value } + new() { FieldName = "CanTransferMoney", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value } }), }, autoSave: true ); @@ -456,15 +457,15 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende new() { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 150, ListOrderNo = 4, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), PivotSettingsJson = DefaultPivotSettingsJson diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Crm.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Crm.cs index b7580201..1b4048b9 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Crm.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Crm.cs @@ -338,7 +338,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency new EditingFormItemDto { Order = 4, DataField = "SectorId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 5, DataField = "TaxNumber", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 6, DataField = "TaxOffice", ColSpan = 1, EditorType2 = EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 7, DataField = "CurrencyId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 7, DataField = "Currency", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 8, DataField = "PaymentTermId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 9, DataField = "CreditLimit", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, ] @@ -385,6 +385,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency new() { FieldName = "LifetimeValue", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Country", FieldDbType = DbType.String, Value = "TR", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value }, }), CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { new() { @@ -530,14 +531,14 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 100, ListOrderNo = 8, Visible = true, IsActive = true, IsDeleted = false, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), PivotSettingsJson = DefaultPivotSettingsJson @@ -1163,7 +1164,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency new EditingFormItemDto { Order = 5, DataField="Stage", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 6, DataField="Probability", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 7, DataField="EstimatedValue", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions = EditorOptionValues.NumberStandartFormat }, - new EditingFormItemDto { Order = 8, DataField="CurrencyId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 8, DataField="Currency", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 9, DataField="ExpectedCloseDate", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxDateBox }, new EditingFormItemDto { Order = 10, DataField="ActualCloseDate", ColSpan = 1, EditorType2 = EditorTypes.dxDateBox }, new EditingFormItemDto { Order = 11, DataField="EmployeeId", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, @@ -1178,7 +1179,8 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency new() { FieldName = "EstimatedValue", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "ExpectedCloseDate", FieldDbType = DbType.Date, Value = "@NOW", CustomValueType = FieldCustomValueTypeEnum.CustomKey }, new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value }, - new() { FieldName = "Stage", FieldDbType = DbType.String, Value = "Qualification", CustomValueType = FieldCustomValueTypeEnum.Value } + new() { FieldName = "Stage", FieldDbType = DbType.String, Value = "Qualification", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value } }), CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { new() { @@ -1216,7 +1218,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Title", - Width = 100, + Width = 150, ListOrderNo = 2, Visible = true, IsActive = true, @@ -1356,15 +1358,15 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency new() { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 100, ListOrderNo = 9, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Code"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ValidationRuleJson = DefaultValidationRuleRequiredJson, ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), @@ -1476,7 +1478,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", - Width = 100, + Width = 150, ListOrderNo = 16, Visible = true, IsActive = true, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs index d4aadb3e..40557e12 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs @@ -186,7 +186,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new EditingFormItemDto { Order = 5, DataField="Level", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 6, DataField="MinSalary", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat }, new EditingFormItemDto { Order = 7, DataField="MaxSalary", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat }, - new EditingFormItemDto { Order = 8, DataField="CurrencyId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 8, DataField="Currency", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 9, DataField="RequiredSkills", ColSpan = 1, EditorType2 = EditorTypes.dxTextArea }, new EditingFormItemDto { Order = 10, DataField="Responsibilities", ColSpan = 1, EditorType2 = EditorTypes.dxTextArea }, new EditingFormItemDto { Order = 11, DataField="Qualifications", ColSpan = 1, EditorType2 = EditorTypes.dxTextArea }, @@ -348,15 +348,15 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new() { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 100, ListOrderNo = 9, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), PivotSettingsJson = DefaultPivotSettingsJson @@ -995,13 +995,14 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new EditingFormItemDto { Order = 7, DataField="CostCenterType", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 8, DataField="BudgetedAmount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat }, new EditingFormItemDto { Order = 9, DataField="ActualAmount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat }, - new EditingFormItemDto { Order = 10, DataField="CurrencyId", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 10, DataField="Currency", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 11, DataField="FiscalYear", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 12, DataField="IsActive", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox} ]} }), FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value } + new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value } }), } ); @@ -1188,15 +1189,15 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new() { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 100, ListOrderNo = 11, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), PivotSettingsJson = DefaultPivotSettingsJson @@ -1313,7 +1314,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new EditingFormItemDto { Order = 6, DataField = "WorkLocation", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 7, DataField = "ManagerId", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 8, DataField = "BaseSalary", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox, EditorOptions = EditorOptionValues.NumberStandartFormat }, - new EditingFormItemDto { Order = 9, DataField = "CurrencyId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 9, DataField = "Currency", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 10, DataField = "PayrollGroup", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 11, DataField = "BankAccountId", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 12, DataField = "BadgeId", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, @@ -1327,7 +1328,8 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency }), FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { new() { FieldName = "Country", FieldDbType = DbType.String, Value = "TR", CustomValueType = FieldCustomValueTypeEnum.Value }, - new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value } + new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value }, }), } ); @@ -1890,15 +1892,15 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new() { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 100, ListOrderNo = 31, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ValidationRuleJson = DefaultValidationRuleRequiredJson, ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), @@ -2671,7 +2673,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new EditingFormItemDto { Order = 1, DataField = "EmployeeId", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 2, DataField = "Category", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 3, DataField = "Amount", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat }, - new EditingFormItemDto { Order = 4, DataField = "CurrencyId", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 4, DataField = "Currency", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 5, DataField = "RequestDate", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxDateBox }, new EditingFormItemDto { Order = 6, DataField = "Description", ColSpan=1, EditorType2 = EditorTypes.dxTextArea }, new EditingFormItemDto { Order = 7, DataField = "Project", ColSpan=1, EditorType2 = EditorTypes.dxTextBox }, @@ -2682,7 +2684,8 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Askıda", CustomValueType = FieldCustomValueTypeEnum.Value }, - new() { FieldName = "RequestDate", FieldDbType = DbType.Date, Value = "@NOW", CustomValueType = FieldCustomValueTypeEnum.CustomKey } + new() { FieldName = "RequestDate", FieldDbType = DbType.Date, Value = "@NOW", CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value } }), CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { new() { @@ -2790,15 +2793,15 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new() { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 100, ListOrderNo = 5, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ValidationRuleJson = DefaultValidationRuleRequiredJson, ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs index dc77c947..fbc19c8c 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs @@ -4047,7 +4047,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency new EditingFormItemDto { Order = 1, DataField = "Code", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 3, DataField = "GroupName", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 4, DataField = "CurrencyId", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 4, DataField = "Currency", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 5, DataField = "PhoneCode", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 6, DataField = "TaxLabel", ColSpan = 1, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 7, DataField = "ZipRequired", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox }, @@ -4056,6 +4056,9 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency } }), InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson, + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value } + }) }); #region Country Fields @@ -4126,15 +4129,15 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 200, ListOrderNo = 5, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = false, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), }, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_SupplyChain.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_SupplyChain.cs index 028005af..0a1ad42b 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_SupplyChain.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_SupplyChain.cs @@ -404,7 +404,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend new EditingFormItemDto { Order = 4, DataField = "CostPrice", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 5, DataField = "SalesPrice", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, - new EditingFormItemDto { Order = 6, DataField = "CurrencyId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 6, DataField = "Currency", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 7, DataField = "MaterialTypeId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 8, DataField = "MaterialGroupId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 9, DataField = "TrackingType", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, @@ -421,7 +421,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend { new() { FieldName = "CostPrice", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "SalesPrice", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, - new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value } + new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value } }), }); @@ -532,14 +533,14 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 120, ListOrderNo = 5, Visible = true, IsActive = true, IsDeleted = false, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), PivotSettingsJson = DefaultPivotSettingsJson @@ -1091,7 +1092,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend new EditingFormItemDto { Order = 4, DataField = "SectorId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 5, DataField = "TaxNumber", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 6, DataField = "TaxOffice", ColSpan = 1, EditorType2 = EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 7, DataField = "CurrencyId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 7, DataField = "Currency", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 8, DataField = "PaymentTermId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 9, DataField = "CreditLimit", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, ] @@ -1138,6 +1139,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend new() { FieldName = "DiscountRate", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Country", FieldDbType = DbType.String, Value = "TR", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value }, }), CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { new() { @@ -1283,14 +1285,14 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 100, ListOrderNo = 8, Visible = true, IsActive = true, IsDeleted = false, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), PivotSettingsJson = DefaultPivotSettingsJson @@ -1743,7 +1745,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend new EditingFormItemDto { Order = 5, DataField="AccountOwner", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 6, DataField="BranchName", ColSpan = 1, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 7, DataField="AccountType", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 8, DataField="CurrencyId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 8, DataField="Currency", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 9, DataField="Balance", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 10, DataField="OverdraftLimit", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 11, DataField="DailyTransferLimit", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox }, @@ -1756,7 +1758,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend new() { FieldName = "OverdraftLimit", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "DailyTransferLimit", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "IsDefault", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value }, - new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value } + new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Currency", FieldDbType = DbType.String, Value = "TRY", CustomValueType = FieldCustomValueTypeEnum.Value } }), }, autoSave: true ); @@ -1903,15 +1906,15 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend new() { ListFormCode = listForm.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "CurrencyId", + SourceDbType = DbType.String, + FieldName = "Currency", Width = 100, ListOrderNo = 9, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, - LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"), + LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Code", "Name"), ValidationRuleJson = DefaultValidationRuleRequiredJson, ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(listForm.Name), diff --git a/api/src/Erp.Platform.Domain/Entities/Branch/Accounting/BankAccount.cs b/api/src/Erp.Platform.Domain/Entities/Branch/Accounting/BankAccount.cs index dde4c2c6..8db0690a 100644 --- a/api/src/Erp.Platform.Domain/Entities/Branch/Accounting/BankAccount.cs +++ b/api/src/Erp.Platform.Domain/Entities/Branch/Accounting/BankAccount.cs @@ -12,7 +12,7 @@ public class BankAccount : FullAuditedEntity, IMultiTenant public Guid BankId { get; set; } public Bank Bank { get; set; } public string AccountOwner { get; set; } - public Guid? CurrencyId { get; set; } // Currency entity'sine referans + public string Currency { get; set; } public bool CanTransferMoney { get; set; } public string Company { get; set; } diff --git a/api/src/Erp.Platform.Domain/Entities/Host/Country.cs b/api/src/Erp.Platform.Domain/Entities/Host/Country.cs index fcd4e5ef..707b7240 100644 --- a/api/src/Erp.Platform.Domain/Entities/Host/Country.cs +++ b/api/src/Erp.Platform.Domain/Entities/Host/Country.cs @@ -9,7 +9,7 @@ public class Country : FullAuditedEntity public string Code { get; set; } // TR, US public string Name { get; set; } public string GroupName { get; set; } - public Guid? CurrencyId { get; set; } + public string Currency { get; set; } public int PhoneCode { get; set; } public string TaxLabel { get; set; } public bool ZipRequired { get; set; } @@ -24,7 +24,7 @@ public class Country : FullAuditedEntity string code, string name, string groupName, - Guid? currencyId, + string currency, int phoneCode, string taxLabel, bool zipRequired = false, @@ -34,7 +34,7 @@ public class Country : FullAuditedEntity Code = code; Name = name; GroupName = groupName; - CurrencyId = currencyId; + Currency = currency; PhoneCode = phoneCode; TaxLabel = taxLabel; ZipRequired = zipRequired; diff --git a/api/src/Erp.Platform.Domain/Entities/Host/Currency.cs b/api/src/Erp.Platform.Domain/Entities/Host/Currency.cs index 6ab7e7b5..0286cbc8 100644 --- a/api/src/Erp.Platform.Domain/Entities/Host/Currency.cs +++ b/api/src/Erp.Platform.Domain/Entities/Host/Currency.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using Volo.Abp.Domain.Entities.Auditing; namespace Erp.Platform.Entities; @@ -12,7 +11,5 @@ public class Currency : FullAuditedEntity public decimal Rate { get; set; } // TRY başına değer public bool IsActive { get; set; } public DateTime? LastUpdated { get; set; } - - public ICollection Opportunities { get; set; } } diff --git a/api/src/Erp.Platform.Domain/Entities/Tenant/Crm/Opportunity.cs b/api/src/Erp.Platform.Domain/Entities/Tenant/Crm/Opportunity.cs index caaed96f..02a83759 100644 --- a/api/src/Erp.Platform.Domain/Entities/Tenant/Crm/Opportunity.cs +++ b/api/src/Erp.Platform.Domain/Entities/Tenant/Crm/Opportunity.cs @@ -21,8 +21,7 @@ public class Opportunity : FullAuditedEntity, IMultiTenant public int Probability { get; set; } // Başarı Olasılığı Yüzdesi public decimal EstimatedValue { get; set; } // Tahmini Değer - public Guid? CurrencyId { get; set; } - public Currency? Currency { get; set; } + public string Currency { get; set; } public DateTime ExpectedCloseDate { get; set; } // Beklenen Kapanış Tarihi public DateTime? ActualCloseDate { get; set; } // Gerçekleşen Kapanış Tarihi diff --git a/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/CostCenter.cs b/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/CostCenter.cs index f6652e99..3153c678 100644 --- a/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/CostCenter.cs +++ b/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/CostCenter.cs @@ -26,7 +26,7 @@ public class CostCenter : FullAuditedEntity, IMultiTenant public string CostCenterType { get; set; } public decimal BudgetedAmount { get; set; } public decimal ActualAmount { get; set; } - public Guid? CurrencyId { get; set; } + public string Currency { get; set; } public string FiscalYear { get; set; } public bool IsActive { get; set; } } diff --git a/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Employee.cs b/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Employee.cs index 404128cb..531b63b0 100644 --- a/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Employee.cs +++ b/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Employee.cs @@ -52,7 +52,7 @@ public class Employee : FullAuditedEntity, IMultiTenant public Employee Manager { get; set; } public decimal BaseSalary { get; set; } - public Guid? CurrencyId { get; set; } + public string Currency { get; set; } public string PayrollGroup { get; set; } // e.g., Monthly, Biweekly, Weekly diff --git a/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Expense.cs b/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Expense.cs index 4ebc3f95..b88769c4 100644 --- a/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Expense.cs +++ b/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Expense.cs @@ -13,7 +13,7 @@ public class Expense : FullAuditedEntity, IMultiTenant public string Category { get; set; } public decimal Amount { get; set; } - public Guid? CurrencyId { get; set; } + public string Currency { get; set; } public DateTime RequestDate { get; set; } public string Description { get; set; } diff --git a/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/JobPosition.cs b/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/JobPosition.cs index 6e06928f..688e18ce 100644 --- a/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/JobPosition.cs +++ b/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/JobPosition.cs @@ -16,7 +16,7 @@ public class JobPosition : FullAuditedEntity, IMultiTenant public string Level { get; set; } public decimal MinSalary { get; set; } public decimal MaxSalary { get; set; } - public Guid? CurrencyId { get; set; } + public string Currency { get; set; } public string RequiredSkills { get; set; } public string Responsibilities { get; set; } public string Qualifications { get; set; } diff --git a/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Material.cs b/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Material.cs index a35158bf..4a016c70 100644 --- a/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Material.cs +++ b/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Material.cs @@ -21,8 +21,7 @@ public class Material : FullAuditedEntity, IMultiTenant public Uom? Uom { get; set; } public decimal CostPrice { get; set; } public decimal SalesPrice { get; set; } - public Guid? CurrencyId { get; set; } - public Currency? Currency { get; set; } + public string Currency { get; set; } public bool IsActive { get; set; } public decimal TotalStock { get; set; } public string TrackingType { get; set; } //'Quantity' | 'Lot' | 'Serial' diff --git a/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Partner.cs b/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Partner.cs index 942ef366..58c23023 100644 --- a/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Partner.cs +++ b/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Partner.cs @@ -35,8 +35,7 @@ public class Partner : FullAuditedEntity, IMultiTenant public string Email { get; set; } public string Website { get; set; } - public Guid? CurrencyId { get; set; } - public Currency? Currency { get; set; } + public string Currency { get; set; } public Guid? PaymentTermId { get; set; } public PaymentTerm? PaymentTerm { get; set; } diff --git a/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/PartnerBank.cs b/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/PartnerBank.cs index 7074f83a..41b29792 100644 --- a/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/PartnerBank.cs +++ b/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/PartnerBank.cs @@ -18,8 +18,7 @@ public class PartnerBank : FullAuditedEntity, IMultiTenant public string BranchName { get; set; } //Şube Adı public string AccountType { get; set; } //Hesap Türü - public Guid? CurrencyId { get; set; } - public Currency? Currency { get; set; } + public string Currency { get; set; } public decimal Balance { get; set; } public decimal OverdraftLimit { get; set; } diff --git a/api/src/Erp.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs b/api/src/Erp.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs index dac7d8e2..1892d054 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs @@ -872,6 +872,7 @@ public class PlatformDbContext : b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.GroupName).HasMaxLength(128); b.Property(x => x.TaxLabel).HasMaxLength(64); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); b.HasIndex(x => x.Code).IsUnique(); b.HasIndex(x => x.GroupName); @@ -1726,6 +1727,7 @@ public class PlatformDbContext : b.Property(x => x.AccountNumber).IsRequired().HasMaxLength(64); b.Property(x => x.AccountOwner).IsRequired().HasMaxLength(256); b.Property(x => x.Company).HasMaxLength(256); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); b.Property(x => x.BankId).IsRequired(); @@ -1759,6 +1761,7 @@ public class PlatformDbContext : b.Property(x => x.IsActive).HasDefaultValue(true); b.Property(x => x.MinSalary).HasPrecision(18, 2); b.Property(x => x.MaxSalary).HasPrecision(18, 2); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); }); builder.Entity(b => @@ -1818,6 +1821,7 @@ public class PlatformDbContext : b.Property(x => x.IsActive).HasDefaultValue(true); b.Property(x => x.ActualAmount).HasPrecision(18, 4); b.Property(x => x.BudgetedAmount).HasPrecision(18, 4); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); b.HasOne(x => x.ParentCostCenter) .WithMany(x => x.SubCostCenters) @@ -1848,6 +1852,7 @@ public class PlatformDbContext : b.Property(x => x.WorkLocation).HasMaxLength(150); b.Property(x => x.IsActive).HasDefaultValue(true); b.Property(x => x.BaseSalary).HasPrecision(18, 2); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); b.HasOne(x => x.JobPosition) .WithMany() @@ -2110,6 +2115,7 @@ public class PlatformDbContext : b.Property(x => x.Status).IsRequired().HasMaxLength(20); b.Property(x => x.RejectionReason).HasMaxLength(300); b.Property(x => x.Notes).HasMaxLength(1000); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); b.HasOne(x => x.Employee) .WithMany(e => e.ExpenseRequests) @@ -2386,6 +2392,7 @@ public class PlatformDbContext : b.Property(p => p.Website).HasMaxLength(128); b.Property(p => p.CreditLimit).HasPrecision(18, 2).HasDefaultValue(0); b.Property(p => p.Status).IsRequired().HasMaxLength(10); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); //Supplier configuration b.Property(x => x.CardNumber).HasMaxLength(64); @@ -2443,6 +2450,7 @@ public class PlatformDbContext : b.Property(pb => pb.DailyTransferLimit).HasPrecision(18, 2).HasDefaultValue(0); b.Property(pb => pb.IsDefault).HasDefaultValue(false); b.Property(pb => pb.IsActive).HasDefaultValue(true); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); b.HasOne(pb => pb.Partner) .WithMany(x => x.Banks) @@ -2523,6 +2531,7 @@ public class PlatformDbContext : b.Property(x => x.SalesPrice).HasPrecision(18, 2).HasDefaultValue(0); b.Property(x => x.TotalStock).HasPrecision(18, 2).HasDefaultValue(0); b.Property(x => x.IsActive).HasDefaultValue(true); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); b.HasOne(x => x.MaterialType) .WithMany(x => x.Materials) @@ -2614,9 +2623,10 @@ public class PlatformDbContext : b.Property(x => x.Probability).HasDefaultValue(0); b.Property(x => x.EstimatedValue).HasPrecision(18, 2).HasDefaultValue(0); b.Property(x => x.ExpectedCloseDate).IsRequired(); - b.Property(x => x.CurrencyId).IsRequired(); + b.Property(x => x.Currency).IsRequired(); b.Property(x => x.SourceId).IsRequired(); b.Property(x => x.Status).IsRequired().HasMaxLength(50); + b.Property(x => x.Currency).IsRequired().HasMaxLength(8); }); builder.Entity(b => diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251123181533_Initial.Designer.cs b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251124190041_Initial.Designer.cs similarity index 99% rename from api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251123181533_Initial.Designer.cs rename to api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251124190041_Initial.Designer.cs index 07a659d7..a181c6f0 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251123181533_Initial.Designer.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251124190041_Initial.Designer.cs @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace Erp.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20251123181533_Initial")] + [Migration("20251124190041_Initial")] partial class Initial { /// @@ -1245,8 +1245,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -2580,8 +2582,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -2665,8 +2669,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -3972,8 +3978,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -4475,8 +4483,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -4998,8 +5008,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -6758,8 +6770,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -6828,8 +6842,6 @@ namespace Erp.Platform.Migrations b.HasKey("Id"); - b.HasIndex("CurrencyId"); - b.HasIndex("MaterialGroupId"); b.HasIndex("MaterialTypeId"); @@ -7450,8 +7462,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -7529,8 +7543,6 @@ namespace Erp.Platform.Migrations b.HasKey("Id"); - b.HasIndex("CurrencyId"); - b.HasIndex("EmployeeId"); b.HasIndex("LossReasonId"); @@ -7882,8 +7894,10 @@ namespace Erp.Platform.Migrations .HasColumnType("decimal(18,2)") .HasDefaultValue(0m); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CurrentBalance") .ValueGeneratedOnAdd() @@ -8033,8 +8047,6 @@ namespace Erp.Platform.Migrations b.HasKey("Id"); - b.HasIndex("CurrencyId"); - b.HasIndex("CustomerSegmentId"); b.HasIndex("CustomerTypeId"); @@ -8096,8 +8108,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DailyTransferLimit") .ValueGeneratedOnAdd() @@ -8161,8 +8175,6 @@ namespace Erp.Platform.Migrations b.HasKey("Id"); - b.HasIndex("CurrencyId"); - b.HasIndex("PartnerId"); b.ToTable("Adm_T_PartnerBank", (string)null); @@ -15079,10 +15091,6 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Material", b => { - b.HasOne("Erp.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - b.HasOne("Erp.Platform.Entities.MaterialGroup", "MaterialGroup") .WithMany("Materials") .HasForeignKey("MaterialGroupId") @@ -15098,8 +15106,6 @@ namespace Erp.Platform.Migrations .HasForeignKey("UomId") .OnDelete(DeleteBehavior.Restrict); - b.Navigation("Currency"); - b.Navigation("MaterialGroup"); b.Navigation("MaterialType"); @@ -15148,12 +15154,6 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b => { - b.HasOne("Erp.Platform.Entities.Currency", "Currency") - .WithMany("Opportunities") - .HasForeignKey("CurrencyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - b.HasOne("Erp.Platform.Entities.Employee", "Employee") .WithMany("Opportunities") .HasForeignKey("EmployeeId"); @@ -15168,8 +15168,6 @@ namespace Erp.Platform.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.Navigation("Currency"); - b.Navigation("Employee"); b.Navigation("LossReason"); @@ -15201,10 +15199,6 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Partner", b => { - b.HasOne("Erp.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - b.HasOne("Erp.Platform.Entities.CustomerSegment", "CustomerSegment") .WithMany("Partners") .HasForeignKey("CustomerSegmentId") @@ -15246,8 +15240,6 @@ namespace Erp.Platform.Migrations .HasForeignKey("SupplyCardTypeId") .OnDelete(DeleteBehavior.Restrict); - b.Navigation("Currency"); - b.Navigation("CustomerSegment"); b.Navigation("CustomerType"); @@ -15265,18 +15257,12 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.PartnerBank", b => { - b.HasOne("Erp.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - b.HasOne("Erp.Platform.Entities.Partner", "Partner") .WithMany("Banks") .HasForeignKey("PartnerId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); - b.Navigation("Currency"); - b.Navigation("Partner"); }); @@ -15975,11 +15961,6 @@ namespace Erp.Platform.Migrations b.Navigation("Cities"); }); - modelBuilder.Entity("Erp.Platform.Entities.Currency", b => - { - b.Navigation("Opportunities"); - }); - modelBuilder.Entity("Erp.Platform.Entities.CustomEntity", b => { b.Navigation("Fields"); diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251123181533_Initial.cs b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251124190041_Initial.cs similarity index 99% rename from api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251123181533_Initial.cs rename to api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251124190041_Initial.cs index a9f1e16b..3f4c5ed1 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251123181533_Initial.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251124190041_Initial.cs @@ -2810,7 +2810,7 @@ namespace Erp.Platform.Migrations AccountNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), BankId = table.Column(type: "uniqueidentifier", nullable: false), AccountOwner = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), CanTransferMoney = table.Column(type: "bit", nullable: false), Company = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -3256,7 +3256,7 @@ namespace Erp.Platform.Migrations Code = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), GroupName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), PhoneCode = table.Column(type: "int", nullable: false), TaxLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), ZipRequired = table.Column(type: "bit", nullable: false), @@ -4285,7 +4285,7 @@ namespace Erp.Platform.Migrations FaxNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Website = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), PaymentTermId = table.Column(type: "uniqueidentifier", nullable: false), CreditLimit = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), LastOrderDate = table.Column(type: "datetime2", nullable: true), @@ -4329,11 +4329,6 @@ namespace Erp.Platform.Migrations principalTable: "Crm_T_CustomerType", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Adm_T_Partner_Sas_H_Currency_CurrencyId", - column: x => x.CurrencyId, - principalTable: "Sas_H_Currency", - principalColumn: "Id"); table.ForeignKey( name: "FK_Adm_T_Partner_Sas_T_Sector_SectorId", column: x => x.SectorId, @@ -4374,7 +4369,7 @@ namespace Erp.Platform.Migrations AccountOwner = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), BranchName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), AccountType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), Balance = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), OverdraftLimit = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), DailyTransferLimit = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), @@ -4397,11 +4392,6 @@ namespace Erp.Platform.Migrations principalTable: "Adm_T_Partner", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Adm_T_PartnerBank_Sas_H_Currency_CurrencyId", - column: x => x.CurrencyId, - principalTable: "Sas_H_Currency", - principalColumn: "Id"); }); migrationBuilder.CreateTable( @@ -4515,7 +4505,7 @@ namespace Erp.Platform.Migrations UomId = table.Column(type: "uniqueidentifier", nullable: true), CostPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), SalesPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), TotalStock = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TrackingType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), @@ -4536,11 +4526,6 @@ namespace Erp.Platform.Migrations principalTable: "Adm_T_Uom", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Scp_T_Material_Sas_H_Currency_CurrencyId", - column: x => x.CurrencyId, - principalTable: "Sas_H_Currency", - principalColumn: "Id"); table.ForeignKey( name: "FK_Scp_T_Material_Scp_T_MaterialGroup_MaterialGroupId", column: x => x.MaterialGroupId, @@ -4661,7 +4646,7 @@ namespace Erp.Platform.Migrations Stage = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), Probability = table.Column(type: "int", nullable: false, defaultValue: 0), EstimatedValue = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: false), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), ExpectedCloseDate = table.Column(type: "datetime2", nullable: false), ActualCloseDate = table.Column(type: "datetime2", nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: true), @@ -4691,12 +4676,6 @@ namespace Erp.Platform.Migrations principalTable: "Prt_T_Source", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Crm_T_Opportunity_Sas_H_Currency_CurrencyId", - column: x => x.CurrencyId, - principalTable: "Sas_H_Currency", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( @@ -4714,7 +4693,7 @@ namespace Erp.Platform.Migrations CostCenterType = table.Column(type: "nvarchar(max)", nullable: true), BudgetedAmount = table.Column(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false), ActualAmount = table.Column(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), FiscalYear = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -4787,7 +4766,7 @@ namespace Erp.Platform.Migrations Level = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), MinSalary = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), MaxSalary = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), RequiredSkills = table.Column(type: "text", nullable: true), Responsibilities = table.Column(type: "text", nullable: true), Qualifications = table.Column(type: "text", nullable: true), @@ -4973,7 +4952,7 @@ namespace Erp.Platform.Migrations WorkLocation = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), ManagerId = table.Column(type: "uniqueidentifier", nullable: true), BaseSalary = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), PayrollGroup = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), BankAccountId = table.Column(type: "uniqueidentifier", nullable: true), BadgeId = table.Column(type: "uniqueidentifier", nullable: true), @@ -5192,7 +5171,7 @@ namespace Erp.Platform.Migrations EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), Amount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), RequestDate = table.Column(type: "datetime2", nullable: false), Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Project = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), @@ -6338,11 +6317,6 @@ namespace Erp.Platform.Migrations table: "Adm_T_OrderItem", column: "OrderId"); - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Partner_CurrencyId", - table: "Adm_T_Partner", - column: "CurrencyId"); - migrationBuilder.CreateIndex( name: "IX_Adm_T_Partner_CustomerSegmentId", table: "Adm_T_Partner", @@ -6383,11 +6357,6 @@ namespace Erp.Platform.Migrations table: "Adm_T_Partner", column: "SupplyCardTypeId"); - migrationBuilder.CreateIndex( - name: "IX_Adm_T_PartnerBank_CurrencyId", - table: "Adm_T_PartnerBank", - column: "CurrencyId"); - migrationBuilder.CreateIndex( name: "IX_Adm_T_PartnerBank_PartnerId", table: "Adm_T_PartnerBank", @@ -6560,11 +6529,6 @@ namespace Erp.Platform.Migrations table: "Crm_T_Competitor", column: "OpportunityId"); - migrationBuilder.CreateIndex( - name: "IX_Crm_T_Opportunity_CurrencyId", - table: "Crm_T_Opportunity", - column: "CurrencyId"); - migrationBuilder.CreateIndex( name: "IX_Crm_T_Opportunity_EmployeeId", table: "Crm_T_Opportunity", @@ -7091,11 +7055,6 @@ namespace Erp.Platform.Migrations table: "Scp_T_ApprovalStep", column: "ApprovalId"); - migrationBuilder.CreateIndex( - name: "IX_Scp_T_Material_CurrencyId", - table: "Scp_T_Material", - column: "CurrencyId"); - migrationBuilder.CreateIndex( name: "IX_Scp_T_Material_MaterialGroupId", table: "Scp_T_Material", @@ -7267,10 +7226,6 @@ namespace Erp.Platform.Migrations name: "FK_Hr_T_Department_Hr_T_Employee_ManagerId", table: "Hr_T_Department"); - migrationBuilder.DropForeignKey( - name: "FK_Scp_T_Material_Sas_H_Currency_CurrencyId", - table: "Scp_T_Material"); - migrationBuilder.DropForeignKey( name: "FK_Adm_T_Uom_Scp_T_Material_MaterialId", table: "Adm_T_Uom"); @@ -7585,6 +7540,9 @@ namespace Erp.Platform.Migrations migrationBuilder.DropTable( name: "Sas_H_ContactTitle"); + migrationBuilder.DropTable( + name: "Sas_H_Currency"); + migrationBuilder.DropTable( name: "Sas_H_DataSource"); @@ -7870,9 +7828,6 @@ namespace Erp.Platform.Migrations migrationBuilder.DropTable( name: "Hr_T_JobPosition"); - migrationBuilder.DropTable( - name: "Sas_H_Currency"); - migrationBuilder.DropTable( name: "Scp_T_Material"); diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index d13fe02b..7fd4eff8 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -1242,8 +1242,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -2577,8 +2579,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -2662,8 +2666,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -3969,8 +3975,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -4472,8 +4480,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -4995,8 +5005,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -6755,8 +6767,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -6825,8 +6839,6 @@ namespace Erp.Platform.Migrations b.HasKey("Id"); - b.HasIndex("CurrencyId"); - b.HasIndex("MaterialGroupId"); b.HasIndex("MaterialTypeId"); @@ -7447,8 +7459,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -7526,8 +7540,6 @@ namespace Erp.Platform.Migrations b.HasKey("Id"); - b.HasIndex("CurrencyId"); - b.HasIndex("EmployeeId"); b.HasIndex("LossReasonId"); @@ -7879,8 +7891,10 @@ namespace Erp.Platform.Migrations .HasColumnType("decimal(18,2)") .HasDefaultValue(0m); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CurrentBalance") .ValueGeneratedOnAdd() @@ -8030,8 +8044,6 @@ namespace Erp.Platform.Migrations b.HasKey("Id"); - b.HasIndex("CurrencyId"); - b.HasIndex("CustomerSegmentId"); b.HasIndex("CustomerTypeId"); @@ -8093,8 +8105,10 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); + b.Property("Currency") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DailyTransferLimit") .ValueGeneratedOnAdd() @@ -8158,8 +8172,6 @@ namespace Erp.Platform.Migrations b.HasKey("Id"); - b.HasIndex("CurrencyId"); - b.HasIndex("PartnerId"); b.ToTable("Adm_T_PartnerBank", (string)null); @@ -15076,10 +15088,6 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Material", b => { - b.HasOne("Erp.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - b.HasOne("Erp.Platform.Entities.MaterialGroup", "MaterialGroup") .WithMany("Materials") .HasForeignKey("MaterialGroupId") @@ -15095,8 +15103,6 @@ namespace Erp.Platform.Migrations .HasForeignKey("UomId") .OnDelete(DeleteBehavior.Restrict); - b.Navigation("Currency"); - b.Navigation("MaterialGroup"); b.Navigation("MaterialType"); @@ -15145,12 +15151,6 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b => { - b.HasOne("Erp.Platform.Entities.Currency", "Currency") - .WithMany("Opportunities") - .HasForeignKey("CurrencyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - b.HasOne("Erp.Platform.Entities.Employee", "Employee") .WithMany("Opportunities") .HasForeignKey("EmployeeId"); @@ -15165,8 +15165,6 @@ namespace Erp.Platform.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.Navigation("Currency"); - b.Navigation("Employee"); b.Navigation("LossReason"); @@ -15198,10 +15196,6 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Partner", b => { - b.HasOne("Erp.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - b.HasOne("Erp.Platform.Entities.CustomerSegment", "CustomerSegment") .WithMany("Partners") .HasForeignKey("CustomerSegmentId") @@ -15243,8 +15237,6 @@ namespace Erp.Platform.Migrations .HasForeignKey("SupplyCardTypeId") .OnDelete(DeleteBehavior.Restrict); - b.Navigation("Currency"); - b.Navigation("CustomerSegment"); b.Navigation("CustomerType"); @@ -15262,18 +15254,12 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.PartnerBank", b => { - b.HasOne("Erp.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - b.HasOne("Erp.Platform.Entities.Partner", "Partner") .WithMany("Banks") .HasForeignKey("PartnerId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); - b.Navigation("Currency"); - b.Navigation("Partner"); }); @@ -15972,11 +15958,6 @@ namespace Erp.Platform.Migrations b.Navigation("Cities"); }); - modelBuilder.Entity("Erp.Platform.Entities.Currency", b => - { - b.Navigation("Opportunities"); - }); - modelBuilder.Entity("Erp.Platform.Entities.CustomEntity", b => { b.Navigation("Fields"); diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Tenants/Seeds/TenantData.json b/api/src/Erp.Platform.EntityFrameworkCore/Tenants/Seeds/TenantData.json index d37aeded..012fd384 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Tenants/Seeds/TenantData.json +++ b/api/src/Erp.Platform.EntityFrameworkCore/Tenants/Seeds/TenantData.json @@ -2430,7 +2430,7 @@ "level": "Mid", "minSalary": 80000, "maxSalary": 120000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "JavaScript", "TypeScript", @@ -2458,7 +2458,7 @@ "level": "Manager", "minSalary": 100000, "maxSalary": 150000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "Project Management", "Agile", @@ -2486,7 +2486,7 @@ "level": "Mid", "minSalary": 70000, "maxSalary": 100000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "Testing", "Automation", @@ -2514,7 +2514,7 @@ "level": "Mid", "minSalary": 75000, "maxSalary": 110000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "Figma", "Adobe Creative Suite", @@ -2542,7 +2542,7 @@ "level": "Mid", "minSalary": 85000, "maxSalary": 125000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "SQL", "Python", @@ -2571,7 +2571,7 @@ "level": "Mid", "minSalary": 60000, "maxSalary": 85000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "HR Management", "Recruitment", @@ -2599,7 +2599,7 @@ "level": "Junior", "minSalary": 45000, "maxSalary": 70000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "Sales", "CRM", @@ -2627,7 +2627,7 @@ "level": "Mid", "minSalary": 55000, "maxSalary": 80000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "Accounting", "Excel", @@ -2656,7 +2656,7 @@ "level": "Entry", "minSalary": 35000, "maxSalary": 50000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "Customer Service", "Communication", @@ -2684,7 +2684,7 @@ "level": "Junior", "minSalary": 50000, "maxSalary": 75000, - "currencyCode": "USD", + "currency": "USD", "requiredSkills": [ "Windows", "Network Administration", @@ -2716,7 +2716,7 @@ "departmentCode": "HR", "budgetedAmount": 2500000, "actualAmount": 2350000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2730,7 +2730,7 @@ "departmentCode": "HR", "budgetedAmount": 1800000, "actualAmount": 1650000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2744,7 +2744,7 @@ "departmentCode": "HR", "budgetedAmount": 1500000, "actualAmount": 1420000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2758,7 +2758,7 @@ "departmentCode": "HR", "budgetedAmount": 3200000, "actualAmount": 3100000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2772,7 +2772,7 @@ "departmentCode": "HR", "budgetedAmount": 8500000, "actualAmount": 8200000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2786,7 +2786,7 @@ "departmentCode": "DEP", "budgetedAmount": 4200000, "actualAmount": 4050000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2800,7 +2800,7 @@ "departmentCode": "HR", "budgetedAmount": 1200000, "actualAmount": 1150000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2814,7 +2814,7 @@ "departmentCode": "BAK", "budgetedAmount": 2800000, "actualAmount": 2650000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2828,7 +2828,7 @@ "departmentCode": "KAL", "budgetedAmount": 3500000, "actualAmount": 3300000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2842,7 +2842,7 @@ "departmentCode": "HR", "budgetedAmount": 1600000, "actualAmount": 1520000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2856,7 +2856,7 @@ "departmentCode": "KAL", "budgetedAmount": 2200000, "actualAmount": 2100000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true }, @@ -2870,7 +2870,7 @@ "departmentCode": "IDR", "budgetedAmount": 1000000, "actualAmount": 950000, - "currencyCode": "TRY", + "currency": "TRY", "fiscalYear": "2025", "isActive": true } @@ -2905,7 +2905,7 @@ "workLocation": "Ankara Merkez", "baseSalary": 65000, "managerCode": null, - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "1", "badgeCode": "B001", @@ -2945,7 +2945,7 @@ "workLocation": "Ankara Şube", "baseSalary": 72000, "managerCode": "EMP-001", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "2", "badgeCode": "B002", @@ -2985,7 +2985,7 @@ "workLocation": "İstanbul HQ", "baseSalary": 85000, "managerCode": "EMP-001", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "2", "badgeCode": "B003", @@ -3025,7 +3025,7 @@ "workLocation": "Ankara Şube", "baseSalary": 60000, "managerCode": "EMP-003", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "3", "badgeCode": "B004", @@ -3065,7 +3065,7 @@ "workLocation": "İstanbul HQ", "baseSalary": 95000, "managerCode": "EMP-001", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "4", "badgeCode": "B005", @@ -3105,7 +3105,7 @@ "workLocation": "İzmir Ofis", "baseSalary": 15000, "managerCode": "EMP-003", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "1", "badgeCode": "B006", @@ -3145,7 +3145,7 @@ "workLocation": "Bursa Depo", "baseSalary": 75000, "managerCode": "EMP-001", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "3", "badgeCode": "B007", @@ -3185,7 +3185,7 @@ "workLocation": "İzmir Bölge Ofisi", "baseSalary": 130000, "managerCode": "EMP-001", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "2", "badgeCode": "B008", @@ -3225,7 +3225,7 @@ "workLocation": "Ankara Çağrı Merkezi", "baseSalary": 50000, "managerCode": "EMP-003", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "1", "badgeCode": "B009", @@ -3265,7 +3265,7 @@ "workLocation": "İstanbul Genel Merkez", "baseSalary": 250000, "managerCode": "EMP-001", - "currencyCode": "TRY", + "currency": "TRY", "payrollGroup": "Monthly", "bankAccountNumber": "4", "badgeCode": "B010", @@ -3843,7 +3843,7 @@ "employeeCode": "EMP-001", "category": "travel", "amount": 850, - "currencyCode": "TRY", + "currency": "TRY", "requestDate": "2025-10-04", "description": "Ankara ofis ziyareti - uçak bileti", "project": "Intranet v2", @@ -3855,7 +3855,7 @@ "employeeCode": "EMP-002", "category": "meal", "amount": 320, - "currencyCode": "TRY", + "currency": "TRY", "requestDate": "2025-10-07", "description": "Müşteri toplantısı - öğle yemeği", "project": null, @@ -3867,7 +3867,7 @@ "employeeCode": "EMP-003", "category": "accommodation", "amount": 1200, - "currencyCode": "TRY", + "currency": "TRY", "requestDate": "2025-10-04", "description": "İzmir workshop - otel konaklaması (2 gece)", "project": "UX Workshop", @@ -4300,7 +4300,7 @@ "uomName": "Adet", "costPrice": 15.5, "salesPrice": 18.75, - "currencyCode": "TRY", + "currency": "TRY", "isActive": true, "totalStock": 2500.0, "trackingType": "Quantity" @@ -4315,7 +4315,7 @@ "uomName": "kg", "costPrice": 45.0, "salesPrice": 55.0, - "currencyCode": "TRY", + "currency": "TRY", "isActive": true, "totalStock": 1200.0, "trackingType": "Lot" @@ -4330,7 +4330,7 @@ "uomName": "Adet", "costPrice": 850.0, "salesPrice": 1200.0, - "currencyCode": "TRY", + "currency": "TRY", "isActive": true, "totalStock": 45.0, "trackingType": "Lot" @@ -4345,7 +4345,7 @@ "uomName": "Adet", "costPrice": 25.0, "salesPrice": 35.0, - "currencyCode": "TRY", + "currency": "TRY", "isActive": true, "totalStock": 150.0, "trackingType": "Quantity" @@ -4360,7 +4360,7 @@ "uomName": "Adet", "costPrice": 8.5, "salesPrice": 15.0, - "currencyCode": "TRY", + "currency": "TRY", "isActive": true, "totalStock": 850.0, "trackingType": "Serial" @@ -4538,7 +4538,7 @@ "FaxNumber": null, "Email": "aliveli@gmail.com", "Website": "www.abcmalzeme.com", - "CurrencyCode": "TRY", + "Currency": "TRY", "PaymentTermName": "Net30", "CreditLimit": 500000, "Status": "Aktif", @@ -4576,7 +4576,7 @@ "FaxNumber": null, "Email": "aysedemir@gmail.com", "Website": null, - "CurrencyCode": "TRY", + "Currency": "TRY", "PaymentTermName": "Net15", "CreditLimit": 250000, "Status": "Aktif", @@ -4614,7 +4614,7 @@ "FaxNumber": null, "Email": "mehmetyilmaz@gmail.com", "Website": null, - "CurrencyCode": "TRY", + "Currency": "TRY", "PaymentTermName": "Net45", "CreditLimit": 150000, "Status": "Aktif", @@ -4652,7 +4652,7 @@ "FaxNumber": null, "Email": "fatmacelik@gmail.com", "Website": null, - "CurrencyCode": "TRY", + "Currency": "TRY", "PaymentTermName": "Net30", "CreditLimit": 100000, "Status": "Pasif", @@ -4690,7 +4690,7 @@ "FaxNumber": null, "Email": null, "Website": "www.uretim.com", - "CurrencyCode": "TRY", + "Currency": "TRY", "PaymentTermName": "Net60", "CreditLimit": 500000, "Status": "Aktif", @@ -4728,7 +4728,7 @@ "FaxNumber": null, "Email": null, "Website": "www.teknoloji.com", - "CurrencyCode": "TRY", + "Currency": "TRY", "PaymentTermName": "Net30", "CreditLimit": 1000000, "Status": "Aktif", diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Tenants/TenantDataSeeder.cs b/api/src/Erp.Platform.EntityFrameworkCore/Tenants/TenantDataSeeder.cs index d7b2f4f7..39816fbc 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Tenants/TenantDataSeeder.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/Tenants/TenantDataSeeder.cs @@ -985,7 +985,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency if (string.IsNullOrWhiteSpace(item.Code) || string.IsNullOrWhiteSpace(item.Name)) continue; - var currency = await _currencyRepository.FirstOrDefaultAsync(x => x.Code == item.CurrencyCode); var parentCostCenter = await _costCenterRepository.FirstOrDefaultAsync(x => x.Code == item.ParentCostCenterCode); var responsibleEmployee = await _employeeRepository.FirstOrDefaultAsync(x => x.Code == item.ResponsibleEmployeeCode); var department = await _departmentRepository.FirstOrDefaultAsync(x => x.Code == item.DepartmentCode); @@ -1005,7 +1004,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency CostCenterType = item.CostCenterType, BudgetedAmount = item.BudgetedAmount, ActualAmount = item.ActualAmount, - CurrencyId = currency != null ? currency.Id : null, + Currency = item.Currency, FiscalYear = item.FiscalYear, IsActive = item.IsActive }, autoSave: true); @@ -1020,7 +1019,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency if (exists) continue; - var currency = await _currencyRepository.FirstOrDefaultAsync(x => x.Code == item.CurrencyCode); var department = await _departmentRepository.FirstOrDefaultAsync(x => x.Code == item.DepartmentCode); await _jobPositionRepository.InsertAsync(new JobPosition @@ -1032,7 +1030,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency Level = item.Level, MinSalary = item.MinSalary, MaxSalary = item.MaxSalary, - CurrencyId = currency != null ? currency.Id : null, + Currency = item.Currency, RequiredSkills = item.RequiredSkills != null ? string.Join(",", item.RequiredSkills) : null, Responsibilities = item.Responsibilities != null ? string.Join(",", item.Responsibilities) : null, Qualifications = item.Qualifications != null ? string.Join(",", item.Qualifications) : null, @@ -1049,7 +1047,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency var employmentType = await _employeeTypeRepository.FirstOrDefaultAsync(x => x.Name == item.EmploymentTypeName); var department = await _departmentRepository.FirstOrDefaultAsync(x => x.Code == item.DepartmentCode); var jobPosition = await _jobPositionRepository.FirstOrDefaultAsync(x => x.Code == item.JobPositionCode); - var currency = await _currencyRepository.FirstOrDefaultAsync(x => x.Code == item.CurrencyCode); var manager = await _employeeRepository.FirstOrDefaultAsync(x => x.Code == item.ManagerCode); var bankAccount = await _bankAccountRepository.FirstOrDefaultAsync(x => x.AccountNumber == item.BankAccountNumber); var badge = await _badgeRepository.FirstOrDefaultAsync(x => x.Code == item.BadgeCode); @@ -1087,7 +1084,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency WorkLocation = item.WorkLocation, BaseSalary = item.BaseSalary, ManagerId = manager != null ? manager.Id : null, - CurrencyId = currency != null ? currency.Id : null, + Currency = item.Currency, PayrollGroup = item.PayrollGroup, BankAccountId = bankAccount != null ? bankAccount.Id : null, @@ -1381,14 +1378,13 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency if (exists) continue; var approver = await _employeeRepository.FirstOrDefaultAsync(x => x.Code == item.ApproverCode); - var currency = await _currencyRepository.FirstOrDefaultAsync(x => x.Code == item.CurrencyCode); await _expenseRepository.InsertAsync(new Expense { EmployeeId = employee != null ? employee.Id : null, Category = item.Category, Amount = item.Amount, - CurrencyId = currency != null ? currency.Id : null, + Currency = item.Currency, RequestDate = item.RequestDate, Description = item.Description, Project = item.Project, @@ -1716,7 +1712,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency var type = await _materialTypeRepository.FirstOrDefaultAsync(x => x.Code == item.MaterialTypeCode); var group = await _materialGroupRepository.FirstOrDefaultAsync(x => x.Code == item.MaterialGroupCode); - var currency = await _currencyRepository.FirstOrDefaultAsync(x => x.Code == item.CurrencyCode); var uom = await _uomRepository.FirstOrDefaultAsync(x => x.Name == item.UomName); await _materialRepository.InsertAsync(new Material @@ -1727,7 +1722,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency UomId = uom?.Id, CostPrice = item.CostPrice, SalesPrice = item.SalesPrice, - CurrencyId = currency?.Id, + Currency = item.Currency, IsActive = item.IsActive, TotalStock = item.TotalStock, MaterialTypeId = type?.Id, @@ -1843,7 +1838,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency if (exists) continue; - var currency = await _currencyRepository.FirstOrDefaultAsync(x => x.Code == item.CurrencyCode); var sector = await _sectorRepository.FirstOrDefaultAsync(x => x.Name == item.SectorName); var paymentTerm = await _paymentTermRepository.FirstOrDefaultAsync(x => x.Name == item.PaymentTermName); var customerType = await _customerTypeRepository.FirstOrDefaultAsync(x => x.Name == item.CustomerTypeName); @@ -1871,7 +1865,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency FaxNumber = item.FaxNumber, Email = item.Email, Website = item.Website, - CurrencyId = currency?.Id, + Currency = item.Currency, PaymentTermId = paymentTerm?.Id, CreditLimit = item.CreditLimit, Status = item.Status, diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Tenants/TenantSeederDto.cs b/api/src/Erp.Platform.EntityFrameworkCore/Tenants/TenantSeederDto.cs index 47329d60..5d3f2d2f 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Tenants/TenantSeederDto.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/Tenants/TenantSeederDto.cs @@ -251,7 +251,7 @@ public class PartnerSeedDto public string FaxNumber { get; set; } public string Email { get; set; } public string Website { get; set; } - public string CurrencyCode { get; set; } + public string Currency { get; set; } public string PaymentTermName { get; set; } public decimal CreditLimit { get; set; } public string Status { get; set; } @@ -330,7 +330,7 @@ public class MaterialSeedDto public string UomName { get; set; } public decimal CostPrice { get; set; } public decimal SalesPrice { get; set; } - public string CurrencyCode { get; set; } + public string Currency { get; set; } public bool IsActive { get; set; } public decimal TotalStock { get; set; } public string TrackingType { get; set; } @@ -452,7 +452,7 @@ public class ExpenseRequestSeedDto public string EmployeeCode { get; set; } public string Category { get; set; } public decimal Amount { get; set; } - public string CurrencyCode { get; set; } + public string Currency { get; set; } public DateTime RequestDate { get; set; } public string Description { get; set; } public string Project { get; set; } @@ -625,7 +625,7 @@ public class EmployeeSeedDto public decimal BaseSalary { get; set; } public string ManagerCode { get; set; } - public string CurrencyCode { get; set; } + public string Currency { get; set; } public string PayrollGroup { get; set; } public string BankAccountNumber { get; set; } @@ -660,7 +660,7 @@ public class CostCenterSeedDto public string CostCenterType { get; set; } public decimal BudgetedAmount { get; set; } public decimal ActualAmount { get; set; } - public string CurrencyCode { get; set; } + public string Currency { get; set; } public string FiscalYear { get; set; } public bool IsActive { get; set; } } @@ -687,7 +687,7 @@ public class JobPositionSeedDto public string Level { get; set; } public decimal MinSalary { get; set; } public decimal MaxSalary { get; set; } - public string CurrencyCode { get; set; } + public string Currency { get; set; } public List RequiredSkills { get; set; } public List Responsibilities { get; set; } public List Qualifications { get; set; }