You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Migrations
stored_item_movements
stored_items
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
The text was updated successfully, but these errors were encountered: