Skip to content

Commit

Permalink
FIX order or proposals billed if both workflow conf activated
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-arnaud committed Aug 1, 2019
1 parent 9a87e27 commit f64092a
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -121,7 +121,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
if ($action == 'BILL_VALIDATE')
{
dol_syslog( "Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id );

$ret = null;

// First classify billed the order to allow the proposal classify process
if (! empty($conf->commande->enabled) && ! empty($conf->workflow->enabled) && ! empty($conf->global->WORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_ORDER))
{
Expand All @@ -142,7 +143,6 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
}
}
return $ret;
}

// Second classify billed the proposal.
Expand All @@ -165,8 +165,9 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
}
}
return $ret;
}

return $ret;
}

// classify billed order & billed propososal
Expand Down

0 comments on commit f64092a

Please sign in to comment.