Skip to content

Commit

Permalink
fix(stock): adjust CMM tests december
Browse files Browse the repository at this point in the history
Fixes the fact that we have some months with 30 days and others with 31
days.
  • Loading branch information
jniles committed Dec 2, 2020
1 parent abd0a3c commit f35575a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration-stock/depots.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ describe('(/depots) The depots API ', () => {

res = await agent.get(`/depots/${principal}/inventories/${ampicilline}/cmm`);
values = {
algo1 : 33.39,
algo1 : 33.27,
algo2 : 1143.75,
algo3 : 24.93,
algo_msh : 33.52,
algo_msh : 33.39,
sum_days : 367,
sum_stock_day : 274,
sum_stock_day : 275,
sum_consumption_day : 8,
sum_consumed_quantity : 300,
number_of_month : 12,
sum_stock_out_days : 93,
sum_stock_out_days : 92,
days_before_consumption : 0,
};

Expand Down

0 comments on commit f35575a

Please sign in to comment.