Fix set prezzo vendita in base al coefficiente
This commit is contained in:
parent
96c780e731
commit
558570523d
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue