Commit 8700070a2950bbd969679fd05d1a2597660c22fd
1 parent
6acd502c
Exists in
master
Redmine #4783 Correção
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
cit-almoxarifado-api/src/main/java/br/com/centralit/api/service/impl/MaterialEstoqueFIFOItemServiceImpl.java
... | ... | @@ -23,9 +23,9 @@ public class MaterialEstoqueFIFOItemServiceImpl extends GenericServiceImpl<Mater |
23 | 23 | } |
24 | 24 | |
25 | 25 | @Override |
26 | - public boolean removeById(Long id) { | |
26 | + public boolean remove(MaterialEstoqueFIFOItem fifoItem) { | |
27 | 27 | |
28 | - MaterialEstoqueFIFOItem fifoItem = this.find(id); | |
28 | + fifoItem = this.find(fifoItem.getId()); | |
29 | 29 | fifoItem.setMaterialEstoqueInativo(fifoItem.getMaterialEstoque()); |
30 | 30 | fifoItem.setMaterialEstoque(null); |
31 | 31 | ... | ... |