mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-14 03:18:58 +08:00
Merge pull request #4231 from okriuchykhin/ok_SCI_6974
Fix display of stock consumption in assigned items table [SCI-6974]
This commit is contained in:
commit
0a8acb36f8
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class RepositoryDatatableService
|
|||
.where(my_module_repository_rows: { my_module_id: @my_module })
|
||||
if @repository.has_stock_management?
|
||||
repository_rows = repository_rows
|
||||
.select('SUM(my_module_repository_rows.stock_consumption) AS "consumed_stock"')
|
||||
.select('SUM(DISTINCT my_module_repository_rows.stock_consumption) AS "consumed_stock"')
|
||||
end
|
||||
else
|
||||
repository_rows = repository_rows
|
||||
|
|
Loading…
Reference in a new issue