Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • GGCE Server GGCE Server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GGCE
  • GGCE ServerGGCE Server
  • Issues
  • #91
Closed
Open
Created Aug 11, 2020 by Matija Obreza@mobrezaOwner

Add pending actions for new inventories

When a new Inventory is added to GG-CE, the system must automatically register two PENDING InventoryAction records:

  1. QUANTITYSET: Quantity update -- The actual amount of material is inspected.
  2. LOCATIONSET: Location update -- The location of the inventory is set.

These two actions are automatically closed when:

  1. QUANTITYSET is closed when Inventory#quantity is updated
  2. LOCATIONSET is closed when Inventory#storageLocation1..4 is updated

The codes need to be registered as CommunityCodeValues.

It may be sensible to add an aspect on the #save method(s) of InventoryRepository, check if Inventory is not yet persisted and add these actions in the aspect.

Also the InventoryService#addInventoryAction should first try to close an existing pending action before adding a new one. It should be renamed to #closeInventoryAction.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking