Commit Graph

56 Commits

Author SHA1 Message Date
Loretta c71bf2fcd8 EKÁER: add mapping table, group logic, atomic ops
Refactored EKÁER logic to use EkaerHistoryMapping junction table, decoupling EkaerHistory from direct foreign keys. Grouped inbound declarations by (ShippingId, PartnerId, PartnerDepotId) and enabled atomic creation of histories with mappings. Updated controller endpoints, DI registration, and documentation. Improved error handling, logging, and adjusted method signatures for the new mapping-based approach.
2026-06-16 21:45:49 +02:00
Loretta 1d56eba8ec Update DB connection, EKÁER mapping, and partner loading
- Switched appsettings.json connection string to FruitBank_DEV.
- FruitBankDataController: GetPartners now loads PartnerDepots; GetPartnerById uses new overload.
- Clarified in EKAER_TODO.md and README.md that carrierText is optional and left empty for outgoing shipments (customer is the carrier).
2026-06-16 12:02:19 +02:00
Loretta 24164b5189 Refactor EKÁER history creation & update docs
- Refactored CreateMissingEkaerHistories to return detailed results (created count + messages), improved grouping, obligation checks, and error handling for both inbound and outbound records.
- Updated AcBinaryHubProtocol to use Bytes mode and set FlushTimeout.
- Enhanced documentation: clarified tradeType and carrier mapping, explained threshold logic and reconciliation workflow, and warned about over-reporting risks.
- Minor code and comment cleanups for clarity.
2026-06-15 11:53:00 +02:00
Loretta 3bde0b4063 Refactor EkaerHistory filtering; add count endpoint
Refactored GetEkaerHistories to use a new GetByFilter method in EkaerHistoryDbTable for SQL-compatible, flag-based filtering. Added GetEkaerHistoryCount endpoint and supporting CountByFilterAsync method. Improved status partitioning logic and clarified related comments.
2026-06-12 18:45:53 +02:00
Loretta b7a38c3efb Add EkaerHistoryFilter to GetEkaerHistories method
Enhanced GetEkaerHistories to accept an EkaerHistoryFilter parameter and apply server-side filtering based on StatusId. Updated logging to include the filter value. The method now returns filtered results according to the selected filter (ToSubmit, Sent, NeedsCompletion, or all), instead of always returning all records.
2026-06-12 09:00:33 +02:00
Loretta cd49b572ad EKAER: add site config, outgoing support, refactor settings
- Added "Site" section to appsettings.json for company location.
- Increased EKAER threshold values; updated phone format.
- Refactored to use IEkaerSettings DI and registered in startup.
- GenerateEkaerXmlDocument now supports both incoming and outgoing (order) documents.
- Updated EKAER_TODO.md to reflect config and outgoing mapping changes.
2026-06-12 07:54:33 +02:00
Loretta f1db5a9a99 Update EKÁER config, thresholds, and value logic
- 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
2026-06-11 17:40:42 +02:00
Loretta 75ce276f64 Add method to create missing EKÁER history records
Introduced CreateMissingEkaerHistories in FruitBankDataController to generate Pending EKÁER records for inbound shipping documents and completed outbound orders lacking such records from a specified date. The method is user-invoked, idempotent, logs actions and errors, and supports SignalR notifications.
2026-06-11 08:52:15 +02:00
Loretta c8ecbc94a2 Add EkaerHistory SignalR endpoints and service injection
Added IFruitBankEkaerService to FruitBankDataController and introduced two new SignalR methods: GenerateEkaerXmlDocument (generates/updates EkaerHistory for a shipping document) and CreateEkaerHistory (idempotently creates or returns EkaerHistory for a given key and direction). Both methods include detailed logging and entity validation.
2026-06-10 18:09:26 +02:00
Loretta 9cdd65eebd Add EkaerHistory support: controller, DI, and DbTable
- Added SignalR endpoints for EkaerHistory CRUD in FruitBankDataController.
- Introduced EkaerHistoryDbTable with ordering and query helpers.
- Registered EkaerHistoryDbTable in DI and DbContext.
- Updated appsettings.json to comment out NopLogWriter config with explanation.
2026-06-10 16:24:59 +02:00
Loretta b782d6a88d Add PartnerDepot support: data table, DI, SignalR endpoints
Introduced PartnerDepotDbTable for managing PartnerDepot entities, registered it in DI, and integrated it into FruitBankDbContext. Updated NameCompatibility and PartnerDbTable for proper mapping and relation loading. Added SignalR controller endpoints for PartnerDepot CRUD and queries.
2026-06-09 15:28:57 +02:00
Loretta 2442094a08 Add CargoPartner/CargoTruck relations and eager loading
- Updated controllers and DbTables to support eager loading of CargoPartner and CargoTruck relations.
- Enhanced Shipping and ShippingDocument queries to include related transport entities.
- Extended SCHEMA.md with CargoPartner, CargoTruck, and updated Shipping schema details.
2026-05-31 14:01:58 +02:00
Loretta 1468aa651c Rename Preorder domain to PreOrder across codebase
Comprehensively renamed all "Preorder" domain types, services, controllers, models, enums, database contexts, routes, views, JS, localization resources, and documentation to "PreOrder" (PascalCase, capital "O"). Updated all references in backend, frontend, localization, and schema docs for consistency. No business logic changes; this is a naming and normalization refactor.
2026-05-30 16:26:51 +02:00
Loretta 2a8dfeaca9 Add CargoPartner and CargoTruck support (API & DB)
- Introduced CargoPartnerDbTable and CargoTruckDbTable with DI registration.
- Extended FruitBankDbContext for new entities.
- Added CRUD SignalR endpoints for CargoPartner and CargoTruck.
- Renamed PartnerDbTable.GetByIdNameAsync to GetByNameAsync.
- Minor code style improvements.
2026-05-29 12:16:57 +02:00
Loretta 8020131c0e Add CargoPartner/Truck support, update config and protocol
- Switched DB connection to FruitBank_DEV in appsettings.json
- Added SignalR controller methods for CargoPartner CRUD (placeholders)
- Changed AcBinaryProtocol flush policy to Coalesced
- Registered CustomerCredit, CargoPartner, CargoTruck in NameCompatibility
2026-05-28 19:48:33 +02:00
Adam 2e7619b621 bug fixes on preorder, modified logic 2026-05-26 14:48:57 +02:00
Adam c86ef0e416 gyorsrendelés, előrendelés, előrendelés management, hasonlók 2026-05-12 16:18:19 +02:00
Adam 8e1b3f2a5d nem ír ez lószart se... gyors rendelés, deisgn 2026-03-18 15:15:50 +01:00
Adam 98b1ba9b22 Rendelések feldarabolása mérési státusz alapján, és szabad szétválasztás, deign update, adószám bug-fix, szállítás alatt mező automatikus kitöltése AI által termékben, átlagsúly kiszámítása és beírása termékbe bevételezéskor. AI üdvözlő szöveg alapvető elemzéssel. 2026-02-23 17:06:21 +01:00
Adam 51a60b0d53 Merge branch '4.80' of https://git.aycode.com/Adam/Mango.Nop.Plugins into 4.80 2025-12-22 16:15:32 +01:00
Adam bf3456e534 bleh... nullref fix 2025-12-22 16:15:24 +01:00
Loretta fd7f2b3407 Merge branch '4.80' of https://git.aycode.com/Adam/Mango.Nop.Plugins into 4.80 2025-12-22 14:39:32 +01:00
Loretta 9b5155684e Add AddPartner method with SignalR support to controller
Added AddPartner to FruitBankDataController, enabling partner creation via SignalR. The method logs the action, inserts the partner into the database, and returns the newly created partner, including ShippingDocuments if available.
2025-12-22 14:37:59 +01:00
Adam 365c911c11 AI document parsing small fixes (ismeasurable fix)
ShippingItem.UnitCostOnDocument added
other developments
2025-12-19 01:43:51 +01:00
Loretta 070d7ec3d2 .Net10, VS2026; StockTaking in progress... 2025-12-01 16:17:57 +01:00
Loretta 3b0b9ccd10 improvements, fixes 2025-11-26 09:42:07 +01:00
Loretta 1673f1fd90 improvements, fixes, etc... 2025-11-24 08:27:02 +01:00
Loretta b5057b9a4d improvements 2025-11-21 16:29:12 +01:00
Loretta 139413b1ae improvements 2025-11-21 07:20:43 +01:00
Loretta dd0d4f2097 improvements, fixes 2025-11-20 08:30:46 +01:00
Loretta 6c58cf6ee8 improvements, fixes, etc.. 2025-11-15 08:14:03 +01:00
Loretta f72a031a7e StockQuantityHistoryExt, StockQuantityHistoryDto; improvements, fixes; 2025-11-13 19:58:39 +01:00
Loretta 91c11ffc79 improvements, fixes, etc... 2025-11-04 15:31:49 +01:00
Loretta c63516e774 refactoring, cleanup v1.1... 2025-10-22 16:20:36 +02:00
Loretta a8a84def54 fixes 2025-10-19 13:56:36 +02:00
Loretta 35378d9b0d CustomOrders in progress.... 2025-10-11 07:11:00 +02:00
Loretta 2b6e022f8b Implement Tare; Implement OrderItemPallet;, improvements, fixes, etc... 2025-10-10 08:00:06 +02:00
Loretta c179a75ba2 improvements, fixes, etc... 2025-10-09 07:29:38 +02:00
Loretta 0ec3c0498f ShippingItemPallets improvements 2025-10-05 14:55:36 +02:00
Loretta bfb06be4cf improvements, fixes, etc... 2025-10-04 07:17:19 +02:00
Loretta c94c61e51e improvements, fixes, etc... 2025-10-03 07:19:24 +02:00
Loretta f231fd3165 rename: QuantityOnDocument, NetWeightOnDocument, GrossWeightOnDocument; improvements, fixes, etc... 2025-10-02 07:23:20 +02:00
Loretta 5a0e0e9b2f improvements, fixes, etc... 2025-09-30 18:18:22 +02:00
Loretta 6e43a1d18f improvements, fixes, etc... 2025-09-29 13:33:40 +02:00
Loretta 23e7b6a603 improvements, fixes 2025-09-23 12:17:24 +02:00
Loretta 56123bc787 improvements, fixes, etc... 2025-09-23 10:41:38 +02:00
Loretta c1bf3640b6 nuget packages update 2025-09-19 14:44:26 +02:00
Loretta 4c4bc11335 entities load relations improvements; fixes, etc.. 2025-09-16 09:12:40 +02:00
Loretta 15ac7a0771 improvements, fixes 2025-09-14 07:57:45 +02:00
Loretta efe66eaa88 improvement, fixes, etc... 2025-09-12 13:34:54 +02:00