FruitBankHybridApp/FruitBank.Common/Entities
Loretta e2c49940c6 Update docs: enforce .md sync, clarify structure & TFMs
Expanded and clarified solution/project documentation:
- Added all top-level docs and docs/ folder as solution items in .sln files
- Inserted maintenance notices in all project and subfolder READMEs: require .md sync with code
- Main READMEs now include project tables with TFM, purpose, and README links
- ARCHITECTURE.md now details dependency graph and TFM rationale
- CONVENTIONS.md and copilot-instructions.md require code reuse, no redundancy
- Glossary and conventions updated to require terminology/rule updates with code changes
- Emphasized DLL-only AyCode.Core refs and nopCommerce .NET 9.0 requirement
- Clarified domain terms and intentional typos
- No code logic changes; documentation and guidance only
2026-03-29 09:26:16 +02:00
..
Files.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
MeasuringItemPalletBase.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
OrderItemPallet.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
Pallet.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
Partner.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
README.md Update docs: enforce .md sync, clarify structure & TFMs 2026-03-29 09:26:16 +02:00
Shipping.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
ShippingDocument.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
ShippingDocumentToFiles.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
ShippingItem.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
ShippingItemPallet.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
StockQuantityHistoryExt.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
StockTaking.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
StockTakingItem.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
StockTakingItemPallet.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00

README.md

Entities

Domain entities for inbound/outbound goods tracking and inventory. All map to fb-prefixed database tables.

Shipping (Inbound)

  • Shipping.cs — Physical delivery event (truck arrival). Table: fbShipping.
  • ShippingDocument.cs — Supplier delivery note/invoice. Table: fbShippingDocument.
  • ShippingItem.cs — Product line on document with declared vs measured discrepancies. Table: fbShippingItem.
  • ShippingItemPallet.cs — Measurement record for incoming goods. Table: fbShippingItemPallet.
  • ShippingDocumentToFiles.cs — Many-to-many link: document ↔ file with DocumentType. Table: fbShippingDocumentToFiles.
  • Partner.cs — External supplier with address and tax info. Table: fbPartner.

Order (Outbound)

  • OrderItemPallet.cs — Measurement record for outgoing goods with RevisorId for audit. Table: fbOrderItemPallet.

Inventory

  • StockTaking.cs — Inventory session record. Table: fbStockTaking.
  • StockTakingItem.cs — Line item reconciling snapshot vs measured quantities. Table: fbStockTakingItem.
  • StockTakingItemPallet.cs — Measurement record for inventory. Table: fbStockTakingItemPallet.
  • StockQuantityHistoryExt.cs — Extended weight metadata for stock reconciliation.

Shared

  • MeasuringItemPalletBase.cs — Abstract base for all three measurement hierarchies. Defines NetWeight formula, validation methods, CreatorId/ModifierId tracking.
  • Pallet.cs — Physical pallet type definition (name, size, weight). Table: fbPallet.
  • Files.cs — Uploaded file with OCR-extracted RawText. Table: fbFiles.

Critical: "Pallet" Naming

Despite the name, XxxItemPallet entities are measurement records, NOT physical pallets. They are ALWAYS created for every item. For non-measurable products, weights = 0.0 and only TrayQuantity is tracked.