Fix set prezzo vendita in base al coefficiente

This commit is contained in:
MatteoPistorello 2022-04-06 11:16:03 +02:00
parent 96c780e731
commit 558570523d
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class Articolo extends Model
{
$this->attributes['prezzo_acquisto'] = $value;
if (!empty($this->coefficiente)) {
if ($this->coefficiente != 0) {
$prezzo_vendita = $value * $this->coefficiente;
$prezzi_ivati = setting('Utilizza prezzi di vendita comprensivi di IVA');