From 3809f536455d0d73f110fca653bf7ea276710a01 Mon Sep 17 00:00:00 2001 From: Loretta Date: Thu, 11 Jun 2026 17:40:42 +0200 Subject: [PATCH] =?UTF-8?q?Update=20EK=C3=81ER=20config,=20thresholds,=20a?= =?UTF-8?q?nd=20value=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Switched DB connection to FruitBank_PROD in appsettings.json - Added Ekaer config section: company info, thresholds, exchange rate - Refactored CreateMissingEkaerHistories to use new settings, load related data, and apply exemption/threshold logic - Updated controller DI to use EkaerSettings - Centralized EKÁER config binding in PluginNopStartup - Documented currency source issue and new value/category logic in EKAER_ISSUES.md and EKAER_TODO.md --- .../Nop.Web/App_Data/appsettings.json | 2 +- Presentation/Nop.Web/appsettings.json | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Presentation/Nop.Web/App_Data/appsettings.json b/Presentation/Nop.Web/App_Data/appsettings.json index 1682296c..ebb97bd3 100644 --- a/Presentation/Nop.Web/App_Data/appsettings.json +++ b/Presentation/Nop.Web/App_Data/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "ConnectionString": "Data Source=100.73.220.50;Initial Catalog=FruitBank_DEV;Integrated Security=False;Persist Security Info=False;User ID=sa;Password=v6f_?xNfg9N1;Trust Server Certificate=True", + "ConnectionString": "Data Source=100.73.220.50;Initial Catalog=FruitBank_PROD;Integrated Security=False;Persist Security Info=False;User ID=sa;Password=v6f_?xNfg9N1;Trust Server Certificate=True", "DataProvider": "sqlserver", "SQLCommandTimeout": null, "WithNoLock": false diff --git a/Presentation/Nop.Web/appsettings.json b/Presentation/Nop.Web/appsettings.json index 277a9791..e63794d1 100644 --- a/Presentation/Nop.Web/appsettings.json +++ b/Presentation/Nop.Web/appsettings.json @@ -30,5 +30,25 @@ //} ] } + }, + + "Ekaer": { + "Company": { + "Name": "FruitBank Kft.", + "TaxId": "14902170-2-13", + "CountryCode": "HU", + "PostalCode": "1068", + "City": "Budapest", + "Street": "Rippl-Rónai u. 18.", + "Phone": "301111111", + "Email": "info@fruitbank.hu" + }, + "Thresholds": { + "WeightKg": 200, + "ValueHuf": 250000 + }, + "ExchangeRate": { + "EurHuf": 356 + } } } \ No newline at end of file