FIX second approval back in stable feature as is the setting for minimum amount (last part from PR#14286)
This commit is contained in:
parent
b4895c4dd2
commit
82b7f0e9e4
@ -999,7 +999,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
if (empty($secondlevel)) { // standard or first level approval
|
||||
$sql .= " date_approve='".$this->db->idate($now)."',";
|
||||
$sql .= " fk_user_approve = ".$user->id;
|
||||
if (!empty($conf->global->SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED) && $conf->global->MAIN_FEATURES_LEVEL > 0 && $this->total_ht >= $conf->global->SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED) {
|
||||
if (!empty($conf->global->SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED) && $this->total_ht >= $conf->global->SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED) {
|
||||
if (empty($this->user_approve_id2)) {
|
||||
$movetoapprovestatus = false; // second level approval not done
|
||||
$comment = ' (first level)';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user