Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stored Item Movement Thingy #1430

Open
KirinZero0 opened this issue Feb 6, 2025 · 0 comments
Open

Stored Item Movement Thingy #1430

KirinZero0 opened this issue Feb 6, 2025 · 0 comments
Assignees

Comments

@KirinZero0
Copy link
Collaborator

KirinZero0 commented Feb 6, 2025

Migrations

stored_item_movements

  • add stored_item_audit_delta_id
  • add stored_item_audit_id
  • add pallet_delivery_id
  • add pallet_return_id
  • add pallet_id
  • add pallet_return_item_id

stored_items

  • add total_quantity

Mechanism

like a typical audit function

Whenever theres an audit delta or adding new pallet with stored items or returning stored items, a stored item movement should be created. In stored item movement quantity should reflect on the parent eg: audit could be -/+ , delivery should be + and return should be -. Total quantity of the all movement history should be the same to the stored item total quantity (current_quantity). And if its returning a few stored item , i should also update the pivot pallet_stored_items table.

Actions

StoreStoredItemMovement
CalculateStoredItemTotalQuantity

@KirinZero0 KirinZero0 self-assigned this Feb 6, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Aiku Feb 6, 2025
@KirinZero0 KirinZero0 moved this from Backlog to In progress 💪🏼 in Aiku Feb 6, 2025
KirinZero0 added a commit that referenced this issue Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress 💪🏼
Development

No branches or pull requests

1 participant