mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-15 03:49:24 +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 })
|
.where(my_module_repository_rows: { my_module_id: @my_module })
|
||||||
if @repository.has_stock_management?
|
if @repository.has_stock_management?
|
||||||
repository_rows = repository_rows
|
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
|
end
|
||||||
else
|
else
|
||||||
repository_rows = repository_rows
|
repository_rows = repository_rows
|
||||||
|
|
Loading…
Reference in a new issue