fix updQtaMagazzino

This commit is contained in:
La Programmatrice Verde 2025-10-23 11:17:45 +02:00
parent f2b61532d2
commit b823ddc6f6

View File

@ -57,7 +57,7 @@ public class Prodotto {
}
public void updQtaMagazzino(String nome, float qtaFinale) { // decreaseQuantity
if (this.nome.equals(nome)) {
if (this.nome.contains(nome)) {
this.qta = qtaFinale;
}
}