Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
GRIN-Global Server
GRIN-Global Server
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GRIN-Global
  • GRIN-Global ServerGRIN-Global Server
  • Issues
  • #91

Closed
Open
Opened Aug 11, 2020 by Matija Obreza@mobrezaOwner
  • Report abuse
  • New issue
Report abuse New issue

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 admin enable hashed storage. More information
Assignee
Assign to
1.0
Milestone
1.0
Assign milestone
Time tracking
None
Due date
None
Reference: grin-global/grin-global-server#91