Update inventory design to match dual catalog

This commit is contained in:
Simon Bruder 2023-11-12 13:48:25 +01:00
parent ed3f6c59f2
commit 09767cb9d2
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 8 additions and 4 deletions

View file

@ -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"

Binary file not shown.