FruitBankHybridApp/FruitBank.Common/Dtos
Loretta 0a1287ce67 Refactor EKÁER mapping: unify company info, doc updates
- Introduced ICompanyInfoBase for standardized company/partner data; refactored PartnerBase and interfaces to implement it
- Replaced EkaerMappingOptions with EkaerCompanyInfo; updated all usages, constructors, and tests
- Refactored EKÁER mapping logic to use ICompanyInfoBase; improved normalization and address handling
- Added regex/validation for plate numbers and country codes; new error codes
- Added Currency to PartnerBase; updated grids to display it
- Updated ProductDto doc for GTIN/VTSZ data model issue
- Enabled validation in CargoTruck grid
- Added DMODEL topic docs: TOPIC_CODES.md, DATAMODEL_ISSUES.md, README.md
- Removed obsolete files and updated settings.local.json
- General code and doc improvements for maintainability
2026-06-03 16:58:47 +02:00
..
GenericAttributeDto.cs [LOADED_DOCS: 3 files, no new loads] 2026-05-15 08:40:53 +02:00
MeasuringProductDto.cs Improvements, fixes, etc... 2025-11-05 14:56:07 +01:00
OrderDto.cs [LOADED_DOCS: 3 files, no new loads] 2026-05-15 08:40:53 +02:00
OrderItemDto.cs [LOADED_DOCS: 3 files, no new loads] 2026-05-15 08:40:53 +02:00
ProductDto.cs Refactor EKÁER mapping: unify company info, doc updates 2026-06-03 16:58:47 +02:00
README.md Update docs: enforce .md sync, clarify structure & TFMs 2026-03-29 09:26:16 +02:00
StockQuantityHistoryDto.cs [LOADED_DOCS: 3 files, no new loads] 2026-05-15 08:40:53 +02:00

README.md

Dtos

Binary-serializable DTOs for efficient SignalR communication. All marked with [AcBinarySerializable].

Key Files

  • OrderDto.cs — Order with items, measurement status, auditing, receipt date, GenericAttributes. Computed: IsMeasured, IsComplete, MeasuringStatus, RevisorId.
  • OrderItemDto.cs — Order line item with OrderItemPallet collection. Computed: NetWeight, GrossWeight, AverageWeight, AverageWeightIsValid, IsMeasured, IsAudited.
  • ProductDto.cs — Product with GenericAttribute-backed properties: IsMeasurable, Tare, AverageWeight, AverageWeightTreshold, IncomingQuantity, NetWeight.
  • StockQuantityHistoryDto.cs — Stock history with net weight adjustments and inconsistency detection.
  • GenericAttributeDto.cs — Key-value attribute wrapper. Polymorphic: KeyGroup = owner type, EntityId = owner ID.

Why DTOs Exist

nopCommerce entities (Order, OrderItem, Product) are extended with measurement logic via these DTOs. The DTOs add computed properties and GenericAttribute access that the raw nopCommerce entities don't have.