mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
812db3f79e
- Added FIFO service integration in the adjustments module to manage stockable and usable items for adjustments. - Created a new repository for adjustment stocks to handle database operations. - Enhanced the adjustment service to track stock adjustments using FIFO logic for both increase and decrease operations. - Updated product warehouse DTOs and repositories to include project flock information. - Implemented FIFO logic in the transfer module to manage stock transfers between warehouses. - Added integration tests for FIFO operations in stock transfers, ensuring correct stock consumption and replenishment.
17 lines
403 B
PL/PgSQL
17 lines
403 B
PL/PgSQL
-- Rollback: Drop adjustment_stocks table
|
|
|
|
BEGIN;
|
|
|
|
DROP INDEX IF EXISTS idx_adjustment_stocks_product_warehouse;
|
|
DROP INDEX IF EXISTS idx_adjustment_stocks_stock_log;
|
|
|
|
ALTER TABLE adjustment_stocks
|
|
DROP CONSTRAINT IF EXISTS fk_adjustment_stocks_product_warehouse;
|
|
|
|
ALTER TABLE adjustment_stocks
|
|
DROP CONSTRAINT IF EXISTS fk_adjustment_stocks_stock_log;
|
|
|
|
DROP TABLE IF EXISTS adjustment_stocks;
|
|
|
|
COMMIT;
|