Skip to content
Snippets Groups Projects
Commit 5816c3dc authored by Pedro Pablo Cardona Arroyave's avatar Pedro Pablo Cardona Arroyave
Browse files

Merge branch '264-fix-money-from-fridge-to-waste' into 'main'

Resolve "Fix money from fridge to waste"

Closes #264

See merge request idatt2106-v23-03/backend!211
parents 1b3934da b06dea08
No related branches found
No related tags found
No related merge requests found
...@@ -202,6 +202,7 @@ public class FridgeService { ...@@ -202,6 +202,7 @@ public class FridgeService {
} }
groupRepository.save(group); groupRepository.save(group);
return Optional.of(wasteRepository.save(Waste.builder() return Optional.of(wasteRepository.save(Waste.builder()
.buyPrice(fridgeProductAsso1.getBuyPrice())
.amount(fridgeProductAsso1.getAmount()) .amount(fridgeProductAsso1.getAmount())
.unit(fridgeProductAsso1.getEan().getUnit()) .unit(fridgeProductAsso1.getEan().getUnit())
.ean(fridgeProductAsso1.getEan()) .ean(fridgeProductAsso1.getEan())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment