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

Merge branch '259-change-default-price-for-products' into 'main'

Resolve "Change default price for products"

Closes #259

See merge request idatt2106-v23-03/backend!208
parents c5592cf8 c2b3694e
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ public class FridgeService {
public Optional<Product> addProductToFridge(FridgeProductRequest fridgeProductRequest) {
Optional<Product> product = productService.getProductById(fridgeProductRequest.ean());
Optional<Fridge> fridge = fridgeRepository.findByGroupGroupId(fridgeProductRequest.groupId());
double price = 100.0;
double price = 10.0;
if(fridgeProductRequest.price() != 0.0){
price = fridgeProductRequest.price();
}
......
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