Skip to content

Commit

Permalink
Test: complete data for the stock integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
lomamech committed Apr 15, 2021
1 parent 22158e3 commit dc05d8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions test/data/service-stock.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ SET CHARACTER SET utf8mb4, CHARACTER_SET_CONNECTION = utf8mb4;
INSERT INTO `stock_setting` (
`enterprise_id`,
`enable_auto_stock_accounting`,
`month_average_consumption`
) VALUES (1, 0, 12);
`month_average_consumption`,
`default_purchase_interval`
) VALUES (1, 0, 12, 0);


-- default constant
Expand All @@ -25,9 +26,9 @@ SET @third_depot_uuid = HUID('bd4b1452-4742-e4fa-a128-246814140877');
--

INSERT INTO `depot` VALUES
(@depot_uuid, 'Depot Principal', NULL, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 2, NULL, NULL),
(@second_depot_uuid, 'Depot Secondaire', NULL, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 3, NULL, NULL),
(@third_depot_uuid, 'Depot Tertiaire', NULL, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 3, NULL, NULL);
(@depot_uuid, 'Depot Principal', NULL, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 2, NULL, NULL, 0),
(@second_depot_uuid, 'Depot Secondaire', NULL, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 3, NULL, NULL, 0),
(@third_depot_uuid, 'Depot Tertiaire', NULL, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 3, NULL, NULL, 0);

--
-- Set Depot Management By User
Expand Down
11 changes: 6 additions & 5 deletions test/data/stock.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ SET CHARACTER SET utf8mb4, CHARACTER_SET_CONNECTION = utf8mb4;

INSERT INTO `stock_setting` (
`enterprise_id`,
`enable_auto_stock_accounting`
) VALUES (1, 0);
`enable_auto_stock_accounting`,
`default_purchase_interval`
) VALUES (1, 0, 0);


-- default constant
Expand All @@ -24,9 +25,9 @@ SET @third_deposit_uuid = HUID('bd4b1452-4742-e4fa-a128-246814140877');
--

INSERT INTO `depot` VALUES
(@depot_uuid, 'Depot Principal', NULL, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 2, NULL, NULL),
(@second_depot_uuid, 'Depot Secondaire', NULL, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 3, NULL, NULL),
(@third_deposit_uuid, 'Depot Tertiaire', NULL, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 3, NULL, NULL);
(@depot_uuid, 'Depot Principal', NULL, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 2, NULL, NULL, 0),
(@second_depot_uuid, 'Depot Secondaire', NULL, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 3, NULL, NULL, 0),
(@third_deposit_uuid, 'Depot Tertiaire', NULL, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 3, NULL, NULL, 0);

--
-- Set Depot Management By User
Expand Down

0 comments on commit dc05d8c

Please sign in to comment.