From 09767cb9d27aa632e9e486c66785ea91def7c7f1 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 12 Nov 2023 13:48:25 +0100 Subject: [PATCH] Update inventory design to match dual catalog --- src/main/asciidoc/models/design/inventory.puml | 8 ++++++-- src/main/asciidoc/models/design/inventory.svg | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/asciidoc/models/design/inventory.puml b/src/main/asciidoc/models/design/inventory.puml index 6ae1fa5..78bb32a 100644 --- a/src/main/asciidoc/models/design/inventory.puml +++ b/src/main/asciidoc/models/design/inventory.puml @@ -18,7 +18,8 @@ package Salespoint { package catering { package catalog { - interface CateringCatalog + interface ConsumableCatalog + interface RentableCatalog } package inventory { @@ -31,6 +32,8 @@ package catering { + add(form : InventoryMutateForm, result : Errors) : String + delete(pid : Product) : String } + InventoryController --> "1" catering.catalog.ConsumableCatalog : "-consumableCatalog" + InventoryController --> "1" catering.catalog.RentableCatalog : "-rentableCatalog" InventoryController ..> InventoryMutateForm InventoryController .u.> Salespoint.Product InventoryController -u-> "1" Salespoint.UniqueInventory : "-inventory" @@ -43,7 +46,8 @@ package catering { + InventoryInitializer(inventory : UniqueInventory, catalog : CateringCatalog) + initialize() : void } - InventoryInitializer --> "1" catering.catalog.CateringCatalog : "-cateringCatalog" + InventoryInitializer --> "1" catering.catalog.ConsumableCatalog : "-consumableCatalog" + InventoryInitializer --> "1" catering.catalog.RentableCatalog : "-rentableCatalog" InventoryInitializer .u.|> Salespoint.DataInitializer InventoryInitializer .u.> Salespoint.Quantity InventoryInitializer -u-> "1" Salespoint.UniqueInventory : "-inventory" diff --git a/src/main/asciidoc/models/design/inventory.svg b/src/main/asciidoc/models/design/inventory.svg index d1ade43..92aa1ea 100644 --- a/src/main/asciidoc/models/design/inventory.svg +++ b/src/main/asciidoc/models/design/inventory.svg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5e8ac032f40ae22f921f9949834f90401030add5849111597647bc9dd3aed707 -size 35482 +oid sha256:0ac0826bb9550c84d53a4af45824f397e9c8c6c524ecbbb648c510dff6696c53 +size 39046