We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8521cd7 commit e4724ccCopy full SHA for e4724cc
1 file changed
modules/contratti/src/Contratto.php
@@ -232,6 +232,11 @@ public function triggerEvasione(Component $trigger)
232
parent::triggerEvasione($trigger);
233
234
if (setting('Cambia automaticamente stato contratti fatturati')) {
235
+ // Non modificare lo stato se il contratto è già in uno stato bloccato, non fatturabile e non pianificabile
236
+ if ($this->stato && $this->stato->is_bloccato && !$this->stato->is_fatturabile && !$this->stato->is_pianificabile) {
237
+ return;
238
+ }
239
+
240
$righe = $this->getRighe();
241
$qta_evasa = $righe->sum('qta_evasa');
242
$qta = $righe->sum('qta');
0 commit comments